Changeset 617477
- Timestamp:
- 10/25/2012 06:38:07 PM (13 years ago)
- Location:
- 3pagination/trunk
- Files:
-
- 2 edited
-
class.settings.php (modified) (11 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
3pagination/trunk/class.settings.php
r617476 r617477 231 231 public function labels_previous() { 232 232 233 $settings = get_option( '3pagination_settings', TRUE );233 $settings = (array) get_option( '3pagination_settings', TRUE ); 234 234 ?> 235 235 <input type="text" name="3pagination_settings[labels_previous]" value="<?php echo $this->init_var( $settings, 'labels_previous', '‹', TRUE ); ?>" /> … … 244 244 public function labels_next() { 245 245 246 $settings = get_option( '3pagination_settings', TRUE );246 $settings = (array) get_option( '3pagination_settings', TRUE ); 247 247 ?> 248 248 <input type="text" name="3pagination_settings[labels_next]" value="<?php echo $this->init_var( $settings, 'labels_next', '›', TRUE ); ?>" /> … … 257 257 public function labels_first() { 258 258 259 $settings = get_option( '3pagination_settings', TRUE );259 $settings = (array) get_option( '3pagination_settings', TRUE ); 260 260 ?> 261 261 <input type="text" name="3pagination_settings[labels_first]" value="<?php echo $this->init_var( $settings, 'labels_first', '«', TRUE ); ?>" /> … … 270 270 public function labels_last() { 271 271 272 $settings = get_option( '3pagination_settings', TRUE );272 $settings = (array) get_option( '3pagination_settings', TRUE ); 273 273 ?> 274 274 <input type="text" name="3pagination_settings[labels_last]" value="<?php echo $this->init_var( $settings, 'labels_last', '»', TRUE ); ?>" /> … … 303 303 public function placement_footer() { 304 304 305 $settings = get_option( '3pagination_settings', TRUE );305 $settings = (array) get_option( '3pagination_settings', TRUE ); 306 306 ?> 307 307 <input type="checkbox" name="3pagination_settings[placement_footer_index]" <?php checked( $this->init_var( $settings, 'placement_footer_index', FALSE ), 'on' ); ?> /> … … 323 323 public function placement_prepend() { 324 324 325 $settings = get_option( '3pagination_settings', TRUE );325 $settings = (array) get_option( '3pagination_settings', TRUE ); 326 326 ?> 327 327 <input type="text" name="3pagination_settings[placement_prepend_id]" value="<?php echo $this->init_var( $settings, 'placement_prepend_id', FALSE ); ?>" /> … … 345 345 public function placement_append() { 346 346 347 $settings = get_option( '3pagination_settings', TRUE );347 $settings = (array) get_option( '3pagination_settings', TRUE ); 348 348 ?> 349 349 <input type="text" name="3pagination_settings[placement_append_id]" value="<?php echo $this->init_var( $settings, 'placement_append_id', FALSE ); ?>" /> … … 367 367 public function css_class() { 368 368 369 $settings = get_option( '3pagination_settings', TRUE );369 $settings = (array) get_option( '3pagination_settings', TRUE ); 370 370 ?> 371 371 <input type="text" name="3pagination_settings[css_class]" value="<?php echo $this->init_var( $settings, 'css_class', 'classic', TRUE ); ?>" /> … … 377 377 public function other_maxnumpages() { 378 378 379 $settings = get_option( '3pagination_settings', TRUE );379 $settings = (array) get_option( '3pagination_settings', TRUE ); 380 380 ?> 381 381 <input type="text" name="3pagination_settings[other_maxnumpages]" value="<?php echo $this->init_var( $settings, 'other_maxnumpages', '999', TRUE ); ?>" /> … … 387 387 public function other_pretty() { 388 388 389 $settings = get_option( '3pagination_settings', TRUE );389 $settings = (array) get_option( '3pagination_settings', TRUE ); 390 390 ?> 391 391 <input type="checkbox" name="3pagination_settings[other_pretty]" <?php checked( $this->init_var( $settings, 'other_pretty', 'on' ), 'on' ); ?> /> … … 404 404 public function threepagination_validate( $data ) { 405 405 406 $settings = get_option( '3pagination_settings' );406 $settings = (array) get_option( '3pagination_settings' ); 407 407 408 408 $settings[ 'labels_show' ] = esc_attr( $data[ 'labels_show' ] ); -
3pagination/trunk/readme.txt
r566573 r617477 4 4 Requires at least: 3.3.2 5 5 Tested up to: 3.4.1 6 Stable tag: 1.3. 1b6 Stable tag: 1.3.2b 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 103 103 - New function parameter $wp_query : support for custom query object 104 104 105 = 1.3.2b = 106 - Fixed error message in options screen after fresh install 107 105 108 == A brief Markdown Example == 106 109 `<?php if ( class_exists( 'threepagination' ) ) : threepagination::draw(); endif; ?>`
Note: See TracChangeset
for help on using the changeset viewer.