test
This commit is contained in:
parent
05838e31a6
commit
efdd2d1845
|
@ -45,7 +45,7 @@ class pluginLatestPosts extends Plugin {
|
|||
|
||||
foreach($posts as $Post)
|
||||
{
|
||||
$html .= '<li>';
|
||||
$html .= '<li class="plugin-title">';
|
||||
$html .= '<a href="'.$Post->permalink().'">'.$Post->title().'</a>';
|
||||
$html .= '</li>';
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ class pluginPages extends Plugin {
|
|||
public function init()
|
||||
{
|
||||
$this->dbFields = array(
|
||||
'homeLink'=>true,
|
||||
'homeLink'=>1,
|
||||
'label'=>'Pages'
|
||||
);
|
||||
}
|
||||
|
@ -20,7 +20,8 @@ class pluginPages extends Plugin {
|
|||
$html .= '</div>';
|
||||
|
||||
$html .= '<div>';
|
||||
$html .= '<input name="homeLink" id="jshomeLink" type="checkbox" value="true" '.($this->getDbField('homeLink')?'checked':'').'>';
|
||||
$html .= '<input type="hidden" name="homeLink" value="0">';
|
||||
$html .= '<input name="homeLink" id="jshomeLink" type="checkbox" value="1" '.($this->getDbField('homeLink')?'checked':'').'>';
|
||||
$html .= '<label class="forCheckbox" for="jshomeLink">'.$Language->get('Show home link').'</label>';
|
||||
$html .= '</div>';
|
||||
|
||||
|
@ -38,15 +39,15 @@ class pluginPages extends Plugin {
|
|||
// Print the label if not empty.
|
||||
$label = $this->getDbField('label');
|
||||
if( !empty($label) ) {
|
||||
$html .= '<h2>'.$label.'</h2>';
|
||||
$html .= '<h2 class="plugin-title">'.$label.'</h2>';
|
||||
}
|
||||
|
||||
$html .= '<div class="plugin-content">';
|
||||
$html .= '<ul>';
|
||||
$html .= '<ul class="parents">';
|
||||
|
||||
// Show home link ?
|
||||
if($this->getDbField('homeLink')) {
|
||||
$html .= '<li>';
|
||||
$html .= '<li class="plugin-title">';
|
||||
$html .= '<a class="parent'.( ($Url->whereAmI()=='home')?' active':'').'" href="'.$Site->homeLink().'">'.$Language->get('Home').'</a>';
|
||||
$html .= '</li>';
|
||||
}
|
||||
|
@ -58,8 +59,8 @@ class pluginPages extends Plugin {
|
|||
if( $parent->published() )
|
||||
{
|
||||
// Print the parent
|
||||
$html .= '<li>';
|
||||
$html .= '<a class="parent '.( ($parent->key()==$Url->slug())?' active':'').'" href="'.$parent->permalink().'">'.$parent->title().'</a>';
|
||||
$html .= '<li class="plugin-title">';
|
||||
$html .= '<a class="parent'.( ($parent->key()==$Url->slug())?' active':'').'" href="'.$parent->permalink().'">'.$parent->title().'</a>';
|
||||
|
||||
// Check if the parent has children
|
||||
if(isset($pagesParents[$parent->key()]))
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"author": "Bludit",
|
||||
"email": "",
|
||||
"website": "https://github.com/dignajar/bludit-plugins",
|
||||
"version": "1.1",
|
||||
"releaseDate": "2016-02-13",
|
||||
"website": "https://plugins.bludit.com",
|
||||
"version": "1.4",
|
||||
"releaseDate": "2016-05-28",
|
||||
"license": "MIT",
|
||||
"requires": "Bludit v1.1",
|
||||
"compatible": "1.5beta",
|
||||
"notes": ""
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue