]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Changed plugin name to Lightpics.
authorSem <sembrestels@riseup.net>
Sun, 29 Jul 2012 02:47:58 +0000 (04:47 +0200)
committerSem <sembrestels@riseup.net>
Sun, 29 Jul 2012 02:47:58 +0000 (04:47 +0200)
actions/photos/admin/upgrade.php
activate.php
lib/tidypics.php
manifest.xml
start.php
views/default/admin/settings/photos/help.php
views/default/admin/settings/photos/server_config.php

index c9ae1da483c0431f4f5f9da4c9db24d483378253..8e03c6bc5bb2704f1162d33c1dfa09ec1c1ca104 100644 (file)
@@ -5,7 +5,7 @@
 
 $plugins_path = elgg_get_plugins_path();
 
-require_once "{$plugins_path}tidypics/version.php";
+require_once "{$plugins_path}lightpics/version.php";
 
 $local_version = elgg_get_plugin_setting('version', 'tidypics');
 
@@ -16,7 +16,7 @@ if ($version <= $local_version) {
 
 set_time_limit(0);
 
-$base_dir = "{$plugins_path}tidypics/upgrades";
+$base_dir = "{$plugins_path}lightpics/upgrades";
 
 // taken from engine/lib/version.php
 if ($handle = opendir($base_dir)) {
index 6b83904066081942cf08b5628bcf8d69bc775b7e..b0f4a0c7fe593a668c58ba785a4ca9a228224585 100644 (file)
@@ -19,7 +19,6 @@ if (get_subtype_id('object', 'image')) {
 }
 
 // set default settings
-$plugin = elgg_get_plugin_from_id('tidypics');
 
 $image_sizes = array();
 $image_sizes['large_image_width'] = $image_sizes['large_image_height'] = 600;
@@ -46,7 +45,7 @@ $defaults = array(
 );
 
 foreach ($defaults as $name => $value) {
-       if ($plugin->getSetting($name) === null) {
-               $plugin->setSetting($name, $value);
+       if (elgg_get_plugin_setting($name, 'tidypics') === null) {
+               elgg_set_plugin_setting($name, $value, 'tidypics');
        }
 }
index 953c68b760c367db1f3ad407e22d98959a9ef6db..62c4c1c890cc3b22b38894da0a683b3c75da3e9c 100644 (file)
@@ -127,7 +127,7 @@ function tidypics_get_image_libraries() {
  */
 function tidypics_is_upgrade_available() {
        // sets $version based on code
-       require_once elgg_get_plugins_path() . "tidypics/version.php";
+       require_once elgg_get_plugins_path() . "lightpics/version.php";
 
        $local_version = elgg_get_plugin_setting('version', 'tidypics');
        if ($local_version === false) {
index 3f4025988e6a039a90365803f2580abdbea0915f..f1fe63581cc47dbe82a23fd557ffdce784a4bd5c 100644 (file)
@@ -1,16 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
-       <name>Tidypics Photo Gallery</name>
-       <author>Cash Costello</author>
-       <version>1.8.0-rc1</version>
-       <description>A photo gallery with albums, tagging, and a slideshow.</description>
+       <name>Lightpics Photo Gallery</name>
+       <author>Lorea Developers</author>
+       <version>1.8-rc1</version>
+       <description>A simple photo gallery plugin, forked from Tidypics.</description>
        <category>content</category>
        <category>multimedia</category>
-       <website>https://github.com/cash/Tidypics</website>
-       <copyright>Cash Costello 2011-2012</copyright>
+       <website>https://lorea.org</website>
+       <copyright>(C) Cash Costello 2011-2012, Lorea 2012</copyright>
        <license>GNU General Public License Version 2</license>
        <requires>
                <type>elgg_release</type>
                <version>1.8</version>
        </requires>
-</plugin_manifest>
\ No newline at end of file
+       <conflicts>
+               <type>plugin</type>
+               <name>tidypics</name>
+       </conflicts>
+</plugin_manifest>
index fc3311d42a9d830c19e0326b406b3440b3563359..b365a65a74931e6498ff9517a3548e8b1860eea7 100644 (file)
--- a/start.php
+++ b/start.php
@@ -13,7 +13,7 @@ elgg_register_event_handler('init', 'system', 'tidypics_init');
  */
 function tidypics_init() {
        // Register libraries
-       $base_dir = elgg_get_plugins_path() . 'tidypics/lib';
+       $base_dir = elgg_get_plugins_path() . 'lightpics/lib';
        elgg_register_library('tidypics:core', "$base_dir/tidypics.php");
        elgg_register_library('tidypics:upload', "$base_dir/upload.php");
        elgg_register_library('tidypics:resize', "$base_dir/resize.php");
@@ -74,7 +74,7 @@ function tidypics_init() {
        elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'tidypics_notify_message');
 
        // Register actions
-       $base_dir = elgg_get_plugins_path() . 'tidypics/actions/photos';
+       $base_dir = elgg_get_plugins_path() . 'lightpics/actions/photos';
        elgg_register_action("photos/delete", "$base_dir/delete.php");
 
        elgg_register_action("photos/album/save", "$base_dir/album/save.php");
@@ -107,7 +107,7 @@ function tidypics_page_handler($page) {
 
        elgg_load_js('tidypics');
 
-       $base = elgg_get_plugins_path() . 'tidypics/pages/photos';
+       $base = elgg_get_plugins_path() . 'lightpics/pages/photos';
        switch ($page[0]) {
                case "all": // all site albums
                case "world":
@@ -191,7 +191,7 @@ function tidypics_page_handler($page) {
                        if (isset($page[1])) {
                                set_input('batch', $page[1]);
                        }
-                       include($CONFIG->pluginspath . "tidypics/pages/edit_multiple.php");
+                       include($CONFIG->pluginspath . "lightpics/pages/edit_multiple.php");
                        break;
 
                case "download": // download an image
@@ -204,30 +204,30 @@ function tidypics_page_handler($page) {
                        if (isset($page[1])) {
                                set_input('username', $page[1]);
                        }
-                       include($CONFIG->pluginspath . "tidypics/pages/lists/mostviewedimages.php");
+                       include($CONFIG->pluginspath . "lightpics/pages/lists/mostviewedimages.php");
                        break;
 
                case "mostrecent": // images uploaded most recently
                        if (isset($page[1])) {
                                set_input('username', $page[1]);
                        }
-                       include($CONFIG->pluginspath . "tidypics/pages/lists/mostrecentimages.php");
+                       include($CONFIG->pluginspath . "lightpics/pages/lists/mostrecentimages.php");
                        break;
 
                case "recentlyviewed": // images most recently viewed
-                       include($CONFIG->pluginspath . "tidypics/pages/lists/recentlyviewed.php");
+                       include($CONFIG->pluginspath . "lightpics/pages/lists/recentlyviewed.php");
                        break;
 
                case "recentlycommented": // images with the most recent comments
-                       include($CONFIG->pluginspath . "tidypics/pages/lists/recentlycommented.php");
+                       include($CONFIG->pluginspath . "lightpics/pages/lists/recentlycommented.php");
                        break;
 
                case "highestrated": // images with the highest average rating
-                       include($CONFIG->pluginspath . "tidypics/pages/lists/highestrated.php");
+                       include($CONFIG->pluginspath . "lightpics/pages/lists/highestrated.php");
                        break;
 
                case "admin":
-                       include ($CONFIG->pluginspath . "tidypics/pages/admin.php");
+                       include ($CONFIG->pluginspath . "lightpics/pages/admin.php");
                        break;
 
                default:
index c3ac2477eb5c838eaa781ec7182162bdaa0dbc2d..1e5bdd2546aa0f7b9c5dc5633bd189948bf771d4 100644 (file)
@@ -6,7 +6,7 @@
 
 elgg_load_library('elgg:markdown');
 
-$faq = elgg_get_plugins_path() . 'tidypics/FAQ.txt';
+$faq = elgg_get_plugins_path() . 'lightpics/FAQ.txt';
 $text = Markdown(file_get_contents($faq));
 
 $content = "<div class=\"elgg-markdown\">$text</div>";
index 8268b646a7b7069b0f317b803e2a8fceac2ce0d1..b4fe552ecc039e0cb7df0bc877038b2fb0c5a16d 100644 (file)
@@ -6,7 +6,7 @@
 
 elgg_load_library('elgg:markdown');
 
-$faq = elgg_get_plugins_path() . 'tidypics/CONFIG.txt';
+$faq = elgg_get_plugins_path() . 'lightpics/CONFIG.txt';
 $text = Markdown(file_get_contents($faq));
 
 $content = "<div class=\"elgg-markdown\">$text</div>";