Fixed installer, kernel panic theme, fixed content pages

This commit is contained in:
Diego Najar 2017-07-15 21:28:54 +02:00
parent cb0ddf9069
commit 0be75f22c4
13 changed files with 55 additions and 18 deletions

View File

@ -203,11 +203,9 @@ function buildAllpages($onlyPublished=true) {
foreach($keys as $pageKey) {
$page = buildPage($pageKey);
if($page!==false) {
if($allPages || $page->published()) {
$tmp[$page->key()] = $page;
}
}
}
return $tmp;
}

View File

@ -2,6 +2,6 @@
"plugin-data":
{
"name": "About",
"description": "Little description about your site or yourself."
"description": "Shows a little description about your site or yourself."
}
}

View File

@ -3,7 +3,7 @@
"email": "",
"website": "https://plugins.bludit.com",
"version": "2.0",
"releaseDate": "2017-05-26",
"releaseDate": "2017-06-15",
"license": "MIT",
"compatible": "2.0",
"notes": ""

View File

@ -3,7 +3,7 @@
"email": "",
"website": "https://plugins.bludit.com",
"version": "2.0",
"releaseDate": "2017-07-07",
"releaseDate": "2017-06-15",
"license": "MIT",
"compatible": "2.0",
"notes": ""

View File

@ -3,7 +3,7 @@
"email": "",
"website": "https://plugins.bludit.com",
"version": "2.0",
"releaseDate": "2017-05-26",
"releaseDate": "2017-06-15",
"license": "MIT",
"compatible": "2.0",
"notes": ""

View File

@ -3,7 +3,7 @@
"email": "",
"website": "https://plugins.bludit.com",
"version": "2.0",
"releaseDate": "2017-05-26",
"releaseDate": "2017-06-15",
"license": "MIT",
"compatible": "2.0",
"notes": ""

View File

@ -3,7 +3,7 @@
"email": "",
"website": "https://plugins.bludit.com",
"version": "2.0",
"releaseDate": "2017-05-26",
"releaseDate": "2017-06-15",
"license": "MIT",
"compatible": "2.0",
"notes": ""

View File

@ -6,7 +6,7 @@ class pluginLinks extends Plugin {
{
// JSON database
$jsondb = json_encode(array(
'Bludit'=>'https://bludit.com',
'Bludit'=>'https://www.bludit.com',
'Donate'=>'https://paypal.me/bludit'
));

View File

@ -17,6 +17,7 @@ class pluginSitemap extends Plugin {
// Get DB
$pageNumber = 1;
$amountOfItems = -1;
$onlyPublished = true;
$db = $dbPages->getList($pageNumber, $amountOfItems, $onlyPublished);
$keys = array_keys($db);

View File

@ -8,6 +8,33 @@ a.home-title {
color: #222;
}
ul, ol {
margin-bottom: 1.5em;
}
ul li {
padding-bottom: 6px;
}
table {
width: 100%;
margin-bottom: 1.5em;
}
table thead {
background: #555555;
color: #FFF;
}
table td,
table th {
padding-left: 5px;
}
h1,
h2 {
font-weight: bold;
}
/* PAGES */
article.page:not(:last-child) {
@ -32,7 +59,11 @@ div.plugin:not(:last-child) {
margin-bottom: 40px;
}
div.plugin > h1,h2,h3,h4 {
div.plugin > h1,
div.plugin > h2,
div.plugin > h3,
div.plugin > h4,
div.plugin > h5 {
font-size: 1em;
}

View File

@ -11,9 +11,15 @@
<img src="<?php echo $page->coverImage() ?>" alt="<?php echo $page->slug() ?>">
<?php } ?>
</header>
<?php echo $page->content() ?>
<?php echo $page->contentBreak() ?>
<footer>
<div class="category"><i class="icon-price-tag"></i> <?php echo $page->category() ?></div>
<?php if ($page->readMore() ) { ?>
<div class="readmore">
<a href="<?php echo $page->permalink() ?>">
<i class="icon-arrow-down"></i> <?php echo $Language->get('Read more') ?>
</a>
</div>
<?php } ?>
</footer>
</article>
<?php endforeach ?>

View File

@ -342,7 +342,7 @@ function install($adminPassword, $email, $timezone)
'position'=>1,
'coverImage'=>'',
'md5file'=>'',
'category'=>'',
'category'=>'general',
'uuid'=>md5(uniqid())
)
);
@ -431,8 +431,9 @@ function install($adminPassword, $email, $timezone)
// File categories.php
$data = array(
'videos'=>array('name'=>'Videos', 'list'=>array()),
'music'=>array('name'=>'Music', 'list'=>array())
'general'=>array('name'=>'General', 'list'=>array()),
'music'=>array('name'=>'Music', 'list'=>array()),
'videos'=>array('name'=>'Videos', 'list'=>array())
);
file_put_contents(PATH_DATABASES.'categories.php', $dataHead.json_encode($data, JSON_PRETTY_PRINT), LOCK_EX);