[Solved] Order in sidebar
Posted: Fri Jan 12, 2018 3:28 pm
Hello everybody !
Can we change the order of the plugins that are displayed in the sidebar ?
Can we change the order of the plugins that are displayed in the sidebar ?
Code: Select all
public function siteSidebar()
{
$html = '<div class="plugin plugin-about">';
$html .= '<h2 class="plugin-label">'.$this->getValue('label').'</h2>';
$html .= '<div class="plugin-content">';
$html .= html_entity_decode(nl2br($this->getValue('text')));
$html .= '</div>';
$html .= '</div>';
return $html;
}
Code: Select all
<?php
if( $plugins['all']['pluginAbout']->installed() ){
echo '<div class="plugin plugin-about">';
echo '<h2 class="plugin-label">'.$plugins['all']['pluginAbout']->getValue('label').'</h2>';
echo '<div class="plugin-content">';
echo html_entity_decode(nl2br($plugins['all']['pluginAbout']->getValue('text')));
echo '</div>';
echo '</div>';
}
?>