diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-03-24 06:49:06 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-03-24 06:49:06 +0000 |
commit | 87ed74afd97c8c8d3bb1f6023de40fc590bcad3d (patch) | |
tree | 87b6fba15a453a65611903bced5677dec0b187f0 /include/template.class.php | |
parent | ea10c19ac5a1f6e89627497e5a6bfdefa37b5053 (diff) |
- remove code for backward compatibility (jquery ui effect + template variable)
git-svn-id: http://piwigo.org/svn/trunk@21818 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r-- | include/template.class.php | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/include/template.class.php b/include/template.class.php index 63133384f..5a99cab6f 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -46,7 +46,7 @@ class Template { const COMBINED_CSS_TAG = '<!-- COMBINED_CSS -->'; var $css_by_priority = array(); - + var $picture_buttons = array(); var $index_buttons = array(); @@ -602,13 +602,6 @@ class Template { } } - // TEMP in 2.5 for backward compatibility - if(!empty($params['require'])) - { - $params['require'] = str_replace('jquery.effects.', 'jquery.ui.effect-', $params['require'] ); - $params['require'] = str_replace('jquery.effects', 'jquery.ui.effect', $params['require'] ); - } - $this->scriptLoader->add( $params['id'], $load, empty($params['require']) ? array() : explode( ',', $params['require'] ), @$params['path'], @@ -692,13 +685,6 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa if ( !empty($content) ) { // second call - // TEMP in 2.5 for backward compatibility - if(!empty($params['require'])) - { - $params['require'] = str_replace('jquery.effects.', 'jquery.ui.effect-', $params['require'] ); - $params['require'] = str_replace('jquery.effects', 'jquery.ui.effect', $params['require'] ); - } - $this->scriptLoader->add_inline( $content, empty($params['require']) ? array() : explode(',', $params['require']) @@ -874,17 +860,17 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa } return $themeconfs[$dir]; } - + function add_picture_button($content, $rank) { $this->picture_buttons[$rank][] = $content; } - + function add_index_button($content, $rank) { $this->index_buttons[$rank][] = $content; } - + function parse_picture_buttons() { if (!empty($this->picture_buttons)) @@ -895,7 +881,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa $this->concat('PLUGIN_PICTURE_ACTIONS', $content); } } - + function parse_index_buttons() { if (!empty($this->index_buttons)) @@ -906,7 +892,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa $this->concat('PLUGIN_INDEX_ACTIONS', $content); } } - + } |