Changes in metastore for Bludit v3.2

This commit is contained in:
Diego Najar 2018-10-20 21:34:04 +02:00
parent f39cc831b1
commit bfabd248ac
35 changed files with 84 additions and 92 deletions

View File

@ -254,5 +254,5 @@ td.child {
padding: 10px 5% !important; padding: 10px 5% !important;
font-size: 16px; font-size: 16px;
line-height: 1.5em; line-height: 1.5em;
border: 1px solid #ccc;
} }

View File

@ -87,7 +87,7 @@ function table($type) {
echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL; echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL;
echo '<a class="btn btn-secondary btn-sm mb-1" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><span class="oi oi-pencil"></span> '.$L->g('Edit').'</a>'.PHP_EOL; echo '<a class="btn btn-secondary btn-sm mb-1" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><span class="oi oi-pencil"></span> '.$L->g('Edit').'</a>'.PHP_EOL;
echo '<button type="button" class="btn btn-secondary btn-sm deletePageButton mb-1" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$page->key().'"><span class="oi oi-trash"></span> '.$L->g('Delete').'</button>'.PHP_EOL; echo '<button type="button" class="btn btn-danger btn-sm deletePageButton mb-1" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$page->key().'"><span class="oi oi-trash"></span> '.$L->g('Delete').'</button>'.PHP_EOL;
echo '</td>'; echo '</td>';
echo '</tr>'; echo '</tr>';
@ -111,7 +111,7 @@ function table($type) {
echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL; echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL;
echo '<a class="btn btn-secondary btn-sm mb-1" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$child->key().'"><span class="oi oi-pencil"></span> '.$L->g('Edit').'</a>'.PHP_EOL; echo '<a class="btn btn-secondary btn-sm mb-1" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$child->key().'"><span class="oi oi-pencil"></span> '.$L->g('Edit').'</a>'.PHP_EOL;
echo '<button type="button" class="btn btn-secondary btn-sm deletePageButton mb-1" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$child->key().'"><span class="oi oi-trash"></span> '.$L->g('Delete').'</button>'.PHP_EOL; echo '<button type="button" class="btn btn-danger btn-sm deletePageButton mb-1" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$child->key().'"><span class="oi oi-trash"></span> '.$L->g('Delete').'</button>'.PHP_EOL;
echo '</td>'; echo '</td>';
echo '</tr>'; echo '</tr>';
@ -143,7 +143,7 @@ function table($type) {
echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL; echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL;
echo '<a class="btn btn-secondary btn-sm mb-1" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><span class="oi oi-pencil"></span> '.$L->g('Edit').'</a>'.PHP_EOL; echo '<a class="btn btn-secondary btn-sm mb-1" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><span class="oi oi-pencil"></span> '.$L->g('Edit').'</a>'.PHP_EOL;
echo '<button type="button" class="btn btn-secondary btn-sm deletePageButton mb-1" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$page->key().'"><span class="oi oi-trash"></span> '.$L->g('Delete').'</button>'.PHP_EOL; echo '<button type="button" class="btn btn-danger btn-sm deletePageButton mb-1" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$page->key().'"><span class="oi oi-trash"></span> '.$L->g('Delete').'</button>'.PHP_EOL;
echo '</td>'; echo '</td>';
echo '</tr>'; echo '</tr>';

View File

@ -4,18 +4,20 @@
<!-- Good message --> <!-- Good message -->
<div> <div>
<h2 id="hello-message"><span class="oi oi-target"></span> <?php echo $L->g('hello') ?></h2> <h2 id="hello-message"><?php echo $L->g('hello') ?></h2>
<script> <script>
$( document ).ready(function() { $( document ).ready(function() {
$("#hello-message").fadeOut(1000, function() { $("#hello-message").fadeOut(1000, function() {
var date = new Date() var date = new Date()
var hours = date.getHours() var hours = date.getHours()
if (hours < 12) { if (hours > 6 && hours < 12) {
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-morning') ?>'); $(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-morning') ?>');
} else if (hours < 18) { } else if (hours > 12 && hours < 18) {
$(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-afternoon') ?>'); $(this).html('<span class="oi oi-sun"></span> <?php echo $L->g('good-afternoon') ?>');
} else { } else if (hours > 18 && hours < 22) {
$(this).html('<span class="oi oi-moon"></span> <?php echo $L->g('good-evening') ?>'); $(this).html('<span class="oi oi-moon"></span> <?php echo $L->g('good-evening') ?>');
} else {
$(this).html('<span class="oi oi-moon"></span> <?php echo $L->g('good-night') ?>');
} }
}).fadeIn(1000); }).fadeIn(1000);
}); });

View File

@ -1,10 +1,10 @@
<?php defined('BLUDIT') or die('Bludit CMS.'); <?php defined('BLUDIT') or die('Bludit CMS.');
// Bludit version // Bludit version
define('BLUDIT_VERSION', '3.1'); define('BLUDIT_VERSION', '3.2');
define('BLUDIT_CODENAME', 'Malt'); define('BLUDIT_CODENAME', 'Yeast');
define('BLUDIT_RELEASE_DATE', '2018-10-08'); define('BLUDIT_RELEASE_DATE', '2018-10-20');
define('BLUDIT_BUILD', '20181008'); define('BLUDIT_BUILD', '20181020');
// Debug mode // Debug mode
// Change to FALSE, for prevent warning or errors on browser // Change to FALSE, for prevent warning or errors on browser

View File

@ -360,6 +360,7 @@
"good-morning": "Good morning", "good-morning": "Good morning",
"good-afternoon": "Good afternoon", "good-afternoon": "Good afternoon",
"good-evening": "Good evening", "good-evening": "Good evening",
"good-night": "Good night",
"hello": "Hello", "hello": "Hello",
"there-are-no-images-for-the-page": "There are no images for the page.", "there-are-no-images-for-the-page": "There are no images for the page.",
"select-cover-image": "Select cover image" "select-cover-image": "Select cover image"

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,7 +2,7 @@
"plugin-data": "plugin-data":
{ {
"name": "Remote Content", "name": "Remote Content",
"description": "" "description": "This plugin provides an easy way to have the content of your site on Github or similar and in turn is synchronized with your Bludit."
}, },
"webhook": "Webhook", "webhook": "Webhook",
"source": "Source", "source": "Source",

View File

@ -2,7 +2,7 @@
"plugin-data": "plugin-data":
{ {
"name": "Contenido remoto", "name": "Contenido remoto",
"description": "" "description": "Este plugin provee una forma facil de tener el contenido de tu sitio en Github o similar y a su vez esta sincronizado con tu Bludit."
}, },
"webhook": "Webhook", "webhook": "Webhook",
"source": "Source", "source": "Source",

View File

@ -1,12 +0,0 @@
{
"plugin-data":
{
"name": "Uzak İçerik",
"description": ""
},
"webhook": "Webhook",
"source": "Kaynak",
"keep-content": "İçeriği sakla",
"complete-url-of-the-zip-file": "zip dosyasının tam URL'si.",
"if-you-want-to-keep-the-content-generate-via-the-user-interface-enable-this-field": "İçeriği kullanıcı arayüzü üzerinden tutmak istiyorsanız bu alanı etkinleştirin."
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com/plugin/remote-content", "website": "https://plugins.bludit.com/plugin/remote-content",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-09-14", "releaseDate": "2018-09-14",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -4,5 +4,5 @@
"name": "Search", "name": "Search",
"description": "Provide a search box to your users to search through the content of your site." "description": "Provide a search box to your users to search through the content of your site."
}, },
"search": "Search", "search": "Search"
} }

View File

@ -4,5 +4,5 @@
"name": "Buscador", "name": "Buscador",
"description": "Este plugin provee un buscador para tus usuarios para buscar a través del contenido de su sitio." "description": "Este plugin provee un buscador para tus usuarios para buscar a través del contenido de su sitio."
}, },
"search": "Buscador", "search": "Buscador"
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-07", "releaseDate": "2018-10-07",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -5,6 +5,6 @@
"version": "1.11.2", "version": "1.11.2",
"releaseDate": "2016-06-14", "releaseDate": "2016-06-14",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -90,7 +90,8 @@ class pluginsimpleMDE extends Plugin {
$html .= '$(document).ready(function() { '.PHP_EOL; $html .= '$(document).ready(function() { '.PHP_EOL;
$html .= ' $html .= '
$( "#jseditor" ).replaceWith( "<textarea id=\"jseditor\"></textarea>" ); var currentContent = $( "#jseditor" ).html();
$( "#jseditor" ).replaceWith( "<textarea id=\"jseditor\">"+currentContent+"</textarea>" );
simplemde = new SimpleMDE({ simplemde = new SimpleMDE({
element: document.getElementById("jseditor"), element: document.getElementById("jseditor"),
status: false, status: false,

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-03-07", "releaseDate": "2018-03-07",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -5,6 +5,6 @@
"version": "4.8.3", "version": "4.8.3",
"releaseDate": "2018-09-13", "releaseDate": "2018-09-13",
"license": "GPL v2", "license": "GPL v2",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://plugins.bludit.com", "website": "https://plugins.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-10-08", "releaseDate": "2018-10-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://themes.bludit.com", "website": "https://themes.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-02-20", "releaseDate": "2018-02-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://themes.bludit.com", "website": "https://themes.bludit.com",
"version": "3.1", "version": "3.2",
"releaseDate": "2018-02-20", "releaseDate": "2018-02-20",
"license": "MIT", "license": "MIT",
"compatible": "3.1", "compatible": "3.2",
"notes": "" "notes": ""
} }