Fixed installer, kernel panic theme, fixed content pages
This commit is contained in:
parent
cb0ddf9069
commit
0be75f22c4
@ -203,9 +203,7 @@ function buildAllpages($onlyPublished=true) {
|
||||
foreach($keys as $pageKey) {
|
||||
$page = buildPage($pageKey);
|
||||
if($page!==false) {
|
||||
if($allPages || $page->published()) {
|
||||
$tmp[$page->key()] = $page;
|
||||
}
|
||||
$tmp[$page->key()] = $page;
|
||||
}
|
||||
}
|
||||
return $tmp;
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
@ -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": ""
|
||||
|
@ -3,8 +3,8 @@
|
||||
"email": "",
|
||||
"website": "https://plugins.bludit.com",
|
||||
"version": "2.0",
|
||||
"releaseDate": "2017-07-07",
|
||||
"releaseDate": "2017-06-15",
|
||||
"license": "MIT",
|
||||
"compatible": "2.0",
|
||||
"notes": ""
|
||||
}
|
||||
}
|
@ -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": ""
|
||||
|
@ -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": ""
|
||||
|
@ -8,4 +8,4 @@
|
||||
"home-page": "Home page",
|
||||
"show-home-link": "Show home link",
|
||||
"amount-of-items": "Amount of items"
|
||||
}
|
||||
}
|
@ -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": ""
|
||||
|
@ -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'
|
||||
));
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 ?>
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user