Changeset 182792
- Timestamp:
- 12/14/2009 06:51:02 PM (16 years ago)
- Location:
- wp-prettyphoto
- Files:
-
- 2 edited
- 6 copied
-
tags/1.5.4 (copied) (copied from wp-prettyphoto/trunk)
-
tags/1.5.4/css/prettyPhoto.css (copied) (copied from wp-prettyphoto/trunk/css/prettyPhoto.css)
-
tags/1.5.4/js/jquery.prettyPhoto.js (copied) (copied from wp-prettyphoto/trunk/js/jquery.prettyPhoto.js)
-
tags/1.5.4/lang/wp-prettyphoto.pot (copied) (copied from wp-prettyphoto/trunk/lang/wp-prettyphoto.pot)
-
tags/1.5.4/readme.txt (copied) (copied from wp-prettyphoto/trunk/readme.txt) (2 diffs)
-
tags/1.5.4/wp-prettyphoto.php (copied) (copied from wp-prettyphoto/trunk/wp-prettyphoto.php) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-prettyphoto.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-prettyphoto/tags/1.5.4/readme.txt
r172860 r182792 4 4 Requires at least: 2.7 5 5 Tested up to: 2.8.6 6 Stable tag: 1.5. 36 Stable tag: 1.5.4 7 7 Author: Pier-Luc Petitclerc 8 8 Author URI: http://blog.fusi0n.org … … 48 48 49 49 == ChangeLog == 50 51 = Version 1.5.4 = 52 53 * Fixed Settings Page bug 50 54 51 55 = Version 1.5.3 = -
wp-prettyphoto/tags/1.5.4/wp-prettyphoto.php
r172860 r182792 4 4 Plugin URI: http://blog.fusi0n.org/category/wp-prettyphoto 5 5 Description: prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrame. It's a full blown media modal box. WP-prettyPhoto embeds those functionalities in WordPress. 6 Version: 1.5. 36 Version: 1.5.4 7 7 Author: Pier-Luc Petitclerc 8 8 Author URI: http://blog.fusi0n.org … … 59 59 else { 60 60 $this->loadLocale(get_locale()); 61 add_action('admin_init', array(&$this, 'wppp_ section_register'));62 add_action('admin_menu', array(&$this, 'wppp_ admin_menu'));61 add_action('admin_init', array(&$this, 'wppp_admin_init')); 62 add_action('admin_menu', array(&$this, 'wppp_hooks_admin')); 63 63 add_action('plugin_action_links_'.plugin_basename(__FILE__), array(&$this, 'wppp_plugin_links')); 64 64 } … … 146 146 * @since 1.4 147 147 */ 148 public function wppp_section_register() { 149 // add_settings_section($id, $title, $callback, $page) 150 //add_settings_section('wp-prettyphoto', 'WP-prettyPhoto Options', array(&$this, 'wppp_section_callback'), 'media'); 151 //add_settings_section('wppp_automate', 'Automation', array(&$this, 'wppp_section_automate'), 'media'); 152 //add_settings_section('wppp_appearance', 'Appearance', array(&$this, 'wppp_section_appearance'), 'media'); 153 //add_settings_section('wppp_technical', 'Technical', array(&$this, 'wppp_section_technical'), 'media'); 148 public function wppp_admin_init() { 154 149 foreach ($this->opts as $optName => $optVal) { 155 150 register_setting('prettyphoto', $optName); 156 // add_settings_field($id, $title, $callback, $page, $section = 'default', $args = array()) 157 //add_settings_field($optName, $optVal['name'], array(&$this, 'wppp_settings_'.$optName), 'media', 'wppp_'.$optVal['section']); 158 } 151 } 152 } 153 154 public function wppp_hooks_admin() { 155 add_options_page('WP-prettyPhoto', 'WP-prettyPhoto', 'edit_files', __FILE__, array(&$this, 'wppp_options_page')); 159 156 } 160 157 … … 182 179 } 183 180 184 public function wppp_admin_menu() {185 add_options_page('WP-prettyPhoto', 'WP-prettyPhoto', 'edit_files', __FILE__, array(&$this, 'wppp_options_page'));186 }187 188 181 private function _getOptionsBySection() { 189 182 $section = array(); … … 208 201 <h2>WP prettyPhoto Options</h2> 209 202 <form method="post" action="options.php"> 203 EOHTML; 204 $plugin_options = implode(',', array_keys($this->opts)); 205 $nonce = (function_exists('settings_fields'))? settings_fields('prettyphoto') : wp_nonce_field('update-options').'<input type="hidden" name="action" value="update" /><input type="hidden" name="page_options" value="'.$plugin_options.'" />'; 206 echo <<<EOHTML 210 207 <input type="hidden" name="action" value="update" /> 211 208 <h3>Automation</h3> … … 222 219 {$technical} 223 220 <p class="submit"> 224 <input type="submit" name="Submit" value=" '._('Save Changes').'" />221 <input type="submit" name="Submit" value="Save Changes" /> 225 222 </p> 226 223 </form> 227 224 </div> 228 225 EOHTML; 229 if (function_exists('settings_fields')) { settings_fields('prettyphoto'); }230 else { wp_nonce_field('update-options'); }231 226 } 232 227 -
wp-prettyphoto/trunk/readme.txt
r172860 r182792 4 4 Requires at least: 2.7 5 5 Tested up to: 2.8.6 6 Stable tag: 1.5. 36 Stable tag: 1.5.4 7 7 Author: Pier-Luc Petitclerc 8 8 Author URI: http://blog.fusi0n.org … … 48 48 49 49 == ChangeLog == 50 51 = Version 1.5.4 = 52 53 * Fixed Settings Page bug 50 54 51 55 = Version 1.5.3 = -
wp-prettyphoto/trunk/wp-prettyphoto.php
r172860 r182792 4 4 Plugin URI: http://blog.fusi0n.org/category/wp-prettyphoto 5 5 Description: prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrame. It's a full blown media modal box. WP-prettyPhoto embeds those functionalities in WordPress. 6 Version: 1.5. 36 Version: 1.5.4 7 7 Author: Pier-Luc Petitclerc 8 8 Author URI: http://blog.fusi0n.org … … 59 59 else { 60 60 $this->loadLocale(get_locale()); 61 add_action('admin_init', array(&$this, 'wppp_ section_register'));62 add_action('admin_menu', array(&$this, 'wppp_ admin_menu'));61 add_action('admin_init', array(&$this, 'wppp_admin_init')); 62 add_action('admin_menu', array(&$this, 'wppp_hooks_admin')); 63 63 add_action('plugin_action_links_'.plugin_basename(__FILE__), array(&$this, 'wppp_plugin_links')); 64 64 } … … 146 146 * @since 1.4 147 147 */ 148 public function wppp_section_register() { 149 // add_settings_section($id, $title, $callback, $page) 150 //add_settings_section('wp-prettyphoto', 'WP-prettyPhoto Options', array(&$this, 'wppp_section_callback'), 'media'); 151 //add_settings_section('wppp_automate', 'Automation', array(&$this, 'wppp_section_automate'), 'media'); 152 //add_settings_section('wppp_appearance', 'Appearance', array(&$this, 'wppp_section_appearance'), 'media'); 153 //add_settings_section('wppp_technical', 'Technical', array(&$this, 'wppp_section_technical'), 'media'); 148 public function wppp_admin_init() { 154 149 foreach ($this->opts as $optName => $optVal) { 155 150 register_setting('prettyphoto', $optName); 156 // add_settings_field($id, $title, $callback, $page, $section = 'default', $args = array()) 157 //add_settings_field($optName, $optVal['name'], array(&$this, 'wppp_settings_'.$optName), 'media', 'wppp_'.$optVal['section']); 158 } 151 } 152 } 153 154 public function wppp_hooks_admin() { 155 add_options_page('WP-prettyPhoto', 'WP-prettyPhoto', 'edit_files', __FILE__, array(&$this, 'wppp_options_page')); 159 156 } 160 157 … … 182 179 } 183 180 184 public function wppp_admin_menu() {185 add_options_page('WP-prettyPhoto', 'WP-prettyPhoto', 'edit_files', __FILE__, array(&$this, 'wppp_options_page'));186 }187 188 181 private function _getOptionsBySection() { 189 182 $section = array(); … … 208 201 <h2>WP prettyPhoto Options</h2> 209 202 <form method="post" action="options.php"> 203 EOHTML; 204 $plugin_options = implode(',', array_keys($this->opts)); 205 $nonce = (function_exists('settings_fields'))? settings_fields('prettyphoto') : wp_nonce_field('update-options').'<input type="hidden" name="action" value="update" /><input type="hidden" name="page_options" value="'.$plugin_options.'" />'; 206 echo <<<EOHTML 210 207 <input type="hidden" name="action" value="update" /> 211 208 <h3>Automation</h3> … … 222 219 {$technical} 223 220 <p class="submit"> 224 <input type="submit" name="Submit" value=" '._('Save Changes').'" />221 <input type="submit" name="Submit" value="Save Changes" /> 225 222 </p> 226 223 </form> 227 224 </div> 228 225 EOHTML; 229 if (function_exists('settings_fields')) { settings_fields('prettyphoto'); }230 else { wp_nonce_field('update-options'); }231 226 } 232 227
Note: See TracChangeset
for help on using the changeset viewer.