';
+
+echo '';
+?>
+
+
\ No newline at end of file
diff --git a/bl-kernel/admin/views/plugins.php b/bl-kernel/admin/views/plugins.php
index 57bb10ef..443981b9 100644
--- a/bl-kernel/admin/views/plugins.php
+++ b/bl-kernel/admin/views/plugins.php
@@ -2,6 +2,8 @@
HTML::title(array('title'=>$L->g('Plugins'), 'icon'=>'puzzle-piece'));
+echo ' '.$L->g('Change the position of the plugins').'';
+
echo '
diff --git a/bl-kernel/boot/rules/69.pages.php b/bl-kernel/boot/rules/69.pages.php
index f9d50445..b3cb53cd 100644
--- a/bl-kernel/boot/rules/69.pages.php
+++ b/bl-kernel/boot/rules/69.pages.php
@@ -42,7 +42,7 @@ $page = $Page = false;
N => Page Object),
)
*/
-$pagesByParent = array(PARENT=>array());
+//$pagesByParent = array(PARENT=>array()); // DEPREACTED
// Array with pages order by parent and by key
/*
@@ -66,7 +66,7 @@ $pagesByParent = array(PARENT=>array());
"childKeyZ" => Page Object),
)
*/
-$pagesByParentByKey = array(PARENT=>array());
+//$pagesByParentByKey = array(PARENT=>array()); // DEPREACTED
// Array with static content, each item is a Page Object
// Order by position
@@ -100,7 +100,7 @@ if ($dbPages->scheduler()) {
}
// Generate pages parent tree, only published pages
-buildPagesByParent(true, true);
+//buildPagesByParent(true, true);
// Set home page is the user defined one
if ($Site->homepage() && $Url->whereAmI()==='home') {
@@ -111,25 +111,19 @@ if ($Site->homepage() && $Url->whereAmI()==='home') {
}
}
-// The filter blog alway show all the content
-// Change the where am i to use
-if ($Url->whereAmI()==='blog') {
- //$Url->setWhereAmI('home');
-}
-
// Build specific page
if ($Url->whereAmI()==='page') {
buildThePage();
}
-// Build pages by tag
+// Build content by tag
elseif ($Url->whereAmI()==='tag') {
buildPagesByTag();
}
-// Build pages by category
+// Build content by category
elseif ($Url->whereAmI()==='category') {
buildPagesByCategory();
}
-// Build pages for the homepage
+// Build content for the homepage
elseif ( ($Url->whereAmI()==='home') || ($Url->whereAmI()==='blog') ) {
buildPagesForHome();
}
diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php
index a3068224..59f72b8c 100644
--- a/bl-kernel/functions.php
+++ b/bl-kernel/functions.php
@@ -336,6 +336,27 @@ function deactivatePlugin($pluginClassName) {
return false;
}
+function changePluginsPosition($pluginClassList) {
+ global $plugins;
+ global $Syslog;
+ global $Language;
+
+ foreach ($pluginClassList as $position=>$pluginClassName) {
+ if (isset($plugins['all'][$pluginClassName])) {
+ $plugin = $plugins['all'][$pluginClassName];
+ $plugin->setPosition(++$position);
+ }
+ }
+
+ // Add to syslog
+ $Syslog->add(array(
+ 'dictionaryKey'=>'plugins-sorted',
+ 'notes'=>''
+ ));
+
+ return true;
+}
+
function createPage($args) {
global $dbPages;
global $Syslog;
diff --git a/bl-languages/en.json b/bl-languages/en.json
index 5ffb4d04..6a99dd65 100644
--- a/bl-languages/en.json
+++ b/bl-languages/en.json
@@ -29,7 +29,7 @@
"Jan": "Jan",
"Feb": "Feb",
"Mar": "Mar",
- "Apr": "Apr",
+ "Apr": "Apr",
"Jun": "Jun",
"Jul": "Jul",
"Aug": "Aug",
@@ -276,5 +276,9 @@
"congratulations-you-have-successfully-installed-your-bludit": "Congratulations you have successfully installed your **Bludit**.",
"this-theme-may-not-be-supported-by-this-version-of-bludit": "This theme may not be supported by this version of Bludit",
"read-more": "Read more",
- "remember-me": "Remember me"
+ "remember-me": "Remember me",
+ "plugins-position": "Plugin position",
+ "plugins-position-changed": "Plugin position changed",
+ "drag-and-drop-to-set-the-position-of-the-plugin": "Drag and Drop to set the position of the plugins",
+ "change-the-position-of-the-plugins": "Change the position of the plugins"
}