[Solved] Order in sidebar
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
You can take the code of the plugin and build your own sidebar.
The part that is shown in the sidebar is in the file plugin.php following "public function siteSidebar()".
For example the code of the plugin About is the following (line 31):
You can use for example the following in your sidebar:
The part that is shown in the sidebar is in the file plugin.php following "public function siteSidebar()".
For example the code of the plugin About is the following (line 31):
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>';
}
?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets