Changeset 415872
- Timestamp:
- 07/27/2011 12:53:05 PM (15 years ago)
- Location:
- genesis-post-teasers/trunk
- Files:
-
- 2 edited
-
genesis-post-teasers.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
genesis-post-teasers/trunk/genesis-post-teasers.php
r415405 r415872 4 4 Plugin URI: http://genesistutorials.com/plug-ins/genesis-post-teasers/ 5 5 Description: Add theme settings for enabling teasers for the Genesis Theme Framework by studiopress. Uses genesis_grid_loop(); 6 Version: 1.0.3. 16 Version: 1.0.3.2 7 7 Author: Christopher Cochran 8 8 Author URI: http://christophercochran.me … … 198 198 // and to use teaser or not. 199 199 // If enable teasers is not checked none the previous code will run. 200 add_action('admin_menu', 'add_gPostTeaz_settings_page', 15 ); 201 function add_gPostTeaz_settings_page() { 202 global $gPostTeaz_settings_page; 203 204 $gPostTeaz_settings_page = add_submenu_page( 'genesis', 'Post Teaser Settings', 'Post Teaser Settings', 'manage_options', 'genesis-post-teaser-settings', 'gPostTeaz_settings_box'); 205 206 add_action( 'admin_enqueue_scripts', 'gpt_admin_enqueue_scripts' ); 207 } 208 209 210 function gpt_admin_enqueue_scripts( $curr_page ) { 211 global $gPostTeaz_settings_page; 212 213 if ( $gPostTeaz_settings_page == $curr_page ) 214 wp_enqueue_script('settingslide', WP_PLUGIN_URL . '/genesis-post-teasers/js/settingslide.js'); 200 add_action('genesis_init', 'add_gPostTeaz_settings_init', 15 ); 201 function add_gPostTeaz_settings_init() { 202 add_action('admin_menu', 'gPostTeaz_settings_init' ); 203 } 204 205 function gPostTeaz_settings_init() { 206 global $_genesis_theme_settings_pagehook; 207 208 add_action('load-'.$_genesis_theme_settings_pagehook, 'gPostTeaz_settings_boxes'); 209 add_action('load-'.$_genesis_theme_settings_pagehook, 'gPostTeaz_settings_scripts'); 210 } 211 212 213 function gPostTeaz_settings_scripts() { 214 wp_enqueue_script('settingslide', WP_PLUGIN_URL . '/genesis-post-teasers/js/settingslide.js'); 215 } 216 217 function gPostTeaz_settings_boxes() { 218 global $_genesis_theme_settings_pagehook; 219 220 add_meta_box('gPostTeaz-settings-box', 'Teaser Boxes Settings', 'gPostTeaz_settings_box', $_genesis_theme_settings_pagehook, 'column2', 'high' ); 215 221 } 216 222 217 223 function gPostTeaz_settings_box() { ?> 218 <div id="genesis-theme-settings" class="wrap genesis-metaboxes"> 219 <form method="post" action="options.php"> 220 221 <?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false ); ?> 222 <?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false ); ?> 223 <?php settings_fields(GENESIS_SETTINGS_FIELD); // important! ?> 224 <input type="hidden" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[theme_version]>" value="<?php echo esc_attr(genesis_option('theme_version')); ?>" /> 225 <input type="hidden" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[db_version]>" value="<?php echo esc_attr(genesis_option('db_version')); ?>" /> 226 227 <?php screen_icon('options-general'); ?> 228 <h2> 229 <?php _e('Genesis - Post Teaser Settings', 'genesis'); ?> 230 <input type="submit" class="button-primary genesis-h2-button" value="<?php _e('Save Settings', 'genesis') ?>" /> 231 </h2> 232 233 <div class="metabox-holder"> 234 <div class="postbox-container" style="width: 99%;"> 235 <div id="gPostTeaz-settings-box" class="postbox "> 236 <div class="inside"> 237 <p> 238 <label>Enable teasers on <select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[teasers_enable]"> 239 <?php 240 echo '<option style="padding-right: 10px;" value="Home Page" '.selected( 'Home Page', genesis_get_option('teasers_enable'), FALSE).'>Home Page</option>'; 241 echo '<option style="padding-right: 10px;" value="Blog Template" '.selected( 'Blog Template', genesis_get_option('teasers_enable'), FALSE).'>Blog Template</option>'; 242 echo '<option style="padding-right: 10px;" value="Archives" '.selected( 'Archives', genesis_get_option('teasers_enable'), FALSE).'>Archives</option>'; 243 ?> 244 </select></lable> 245 </p> 246 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[no_pair_teasers]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[no_pair_teasers]" value="1" <?php checked(1, genesis_get_option('no_pair_teasers')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[no_pair_teasers]"><?php _e('Do not show teasers in pairs.', 'genesis'); ?></label></p> 247 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_info]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_info]" value="1" <?php checked(1, genesis_get_option('disable_teaser_info')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_info]"><?php _e('Disable post info (byline) on teasers?', 'genesis'); ?></label></p> 248 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_meta]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_meta]" value="1" <?php checked(1, genesis_get_option('disable_teaser_meta')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_meta]"><?php _e('Disable post meta on teasers?', 'genesis'); ?></label></p> 249 <p> 250 <label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[use_css]" value="pluginstyles" <?php checked('pluginstyles', genesis_get_option('use_css')); ?> /> 251 <?php echo 'Plugin CSS' ?></label><br /> 252 <label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[use_css]" value="stylesheet" <?php checked('stylesheet', genesis_get_option('use_css')); ?> /> 253 <?php echo 'Child Theme CSS' ?></label> 254 </p> 255 <p> 256 <span class="description">NOTE: "Plugin CSS" will allow you to change the teasers height and width. "Child Theme CSS" uses the styles in child theme for teasers widths and height.</span> 257 </p> 258 <div class="css-opts <?php if ( genesis_get_option('use_css') === 'stylesheet' ) echo 'hidden' ?>"> 259 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_custom_teaser_styles]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_custom_teaser_styles]" value="1" <?php checked(1, genesis_get_option('enable_custom_teaser_styles')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_custom_teaser_styles]"><?php _e('Edit teaser styles?', 'genesis'); ?></label></p> 260 <div class="custom-css-opts <?php if ( genesis_get_option('enable_custom_teaser_styles') != 1 ) echo 'hidden' ?>"> 261 <hr class="div"> 262 <p><?php echo "Enter width for teaser boxes: "; ?> 263 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[post_teaser_width]" value="<?php echo esc_attr( genesis_get_option('post_teaser_width') ); ?>" size="3" />px</p> 264 <p><span class="description">Depending on your layout or child theme you may want to change the width of your teasers. By Default it will auto adjust. </span></p> 265 266 <p><?php echo "Enter height for teaser boxes: "; ?> 267 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[post_teaser_height]" value="<?php echo esc_attr( genesis_get_option('post_teaser_height') ); ?>" size="3" />px</p> 268 <p><span class="description">If you want a defined height place here. By default the height will auto adjust. </span></p> 269 <p><span class="description">( NOTE: When teasers are not show in pairs you cannot edit the height or width from the plugin. ) </span></p> 270 271 </div> 272 </div> 273 <hr class="div"> 274 <p>Featured posts settings:</p> 275 <p> 276 <?php echo "How many Featured posts before teasers?"; ?> 277 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[numof_full_posts]" value="<?php echo esc_attr( genesis_get_option('numof_full_posts') ); ?>" size="1" /> 278 </p> 279 <p><label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[featured_post_content_limit]">Limit featured post content to</label> <input type="text" size="3" value="<?php echo esc_attr( genesis_get_option('featured_post_content_limit') ); ?>" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[featured_post_content_limit]" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[featured_post_content_limit]"> <label for="genesis-settings[featured_post_content_limit]">characters</label></p> 280 <p class="enable-feat-thumbnail"><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_enable_featured_thumbnail]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_enable_featured_thumbnail]" value="1" <?php checked(1, genesis_get_option('gpt_enable_featured_thumbnail')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_enable_featured_thumbnail]"><?php _e('Include featured image on featured posts?', 'genesis'); ?></label></p> 281 <p style="padding-left: 20px;" class="select-feat-image-size <?php if ( genesis_get_option('gpt_enable_featured_thumbnail') == '' ) echo 'hidden' ?>"> 282 <?php _e("Image Size", 'genesis'); ?>: 283 <?php $sizes = genesis_get_additional_image_sizes(); ?> 284 <select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_thumbnail_featured_size]"> 285 <option style="padding-right:10px;" value="thumbnail">thumbnail (<?php echo get_option('thumbnail_size_w'); ?>x<?php echo get_option('thumbnail_size_h'); ?>)</option> 286 <?php 287 foreach((array)$sizes as $name => $size) : 288 echo '<option style="padding-right: 10px;" value="'.$name.'" '.selected($name, genesis_get_option('teaser_thumbnail_size'), FALSE).'>'.$name.' ('.$size['width'].'x'.$size['height'].')</option>'; 289 endforeach; 290 ?> 291 </select> 292 </p> 293 <hr class="div"> 294 <p>Teaser settings:</p> 295 <p><label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_post_content_limit]">Limit teaser post content to</label> <input type="text" size="3" value="<?php echo esc_attr( genesis_get_option('teaser_post_content_limit') ); ?>" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_post_content_limit]" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_post_content_limit]"> <label for="genesis-settings[teaser_post_content_limit]">characters</label></p> 296 <p class="enable-thumbnail"><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_teaser_thumbnail]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_teaser_thumbnail]" value="1" <?php checked(1, genesis_get_option('enable_teaser_thumbnail')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_teaser_thumbnail]"><?php _e('Include featured image on teasers?', 'genesis'); ?></label></p> 297 <p style="padding-left: 20px;" class="select-image-size <?php if ( genesis_get_option('enable_teaser_thumbnail') == '' ) echo 'hidden' ?>"> 298 <?php _e("Image Size", 'genesis'); ?>: 299 <?php $sizes = genesis_get_additional_image_sizes(); ?> 300 <select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_thumbnail_size]"> 301 <option style="padding-right:10px;" value="thumbnail">thumbnail (<?php echo get_option('thumbnail_size_w'); ?>x<?php echo get_option('thumbnail_size_h'); ?>)</option> 302 <?php 303 foreach((array)$sizes as $name => $size) : 304 echo '<option style="padding-right: 10px;" value="'.$name.'" '.selected($name, genesis_get_option('teaser_thumbnail_size'), FALSE).'>'.$name.' ('.$size['width'].'x'.$size['height'].')</option>'; 305 endforeach; 306 ?> 307 </select> 308 </p> 309 <hr class="div"> 310 <p> 311 <?php echo "How many posts per page?"; ?> 312 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[numof_posts_per_page]" value="<?php echo esc_attr( genesis_get_option('numof_posts_per_page') ); ?>" size="1" /> 313 </p> 314 <?php /* <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_on_teasers]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_on_teasers]" value="1" <?php checked(1, genesis_get_option('readmore_on_teasers')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_on_teasers]"><?php _e('Enable "Read More" link on teasers?', 'genesis'); ?></label></p> */ ?> 315 <p><?php echo 'Custom "[Continue reading...]" text.'; ?> 316 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_link_on_teasers]" value="<?php echo esc_attr( genesis_get_option('readmore_link_on_teasers') ); ?>" size="15" /> 317 </p> 318 319 <?php /*<p><label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[show_advance_opts]" value="no" <?php checked('pluginstyles', genesis_get_option('use_css')); ?> /> 320 <?php echo 'Use default values for post info, meta and read more.' ?><br /> 321 <label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[show_advance_opts]" value="yes" <?php checked('stylesheet', genesis_get_option('use_css')); ?> /> 322 <?php echo 'Filter text for post info, meta and the read more link.' ?></label> 323 </p> 324 <?php echo "Custom read more text."; ?> 325 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_link_on_teasers]" value="<?php echo esc_attr( genesis_get_option('readmore_link_on_teasers') ); ?>" size="15" /></p> 326 </div> 327 */ ?> 328 </div> 329 </div> 330 </div> 224 <p> 225 <label>Enable teasers on <select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[teasers_enable]"> 226 <?php 227 echo '<option style="padding-right: 10px;" value="Home Page" '.selected( 'Home Page', genesis_get_option('teasers_enable'), FALSE).'>Home Page</option>'; 228 echo '<option style="padding-right: 10px;" value="Blog Template" '.selected( 'Blog Template', genesis_get_option('teasers_enable'), FALSE).'>Blog Template</option>'; 229 echo '<option style="padding-right: 10px;" value="Archives" '.selected( 'Archives', genesis_get_option('teasers_enable'), FALSE).'>Archives</option>'; 230 ?> 231 </select></lable> 232 </p> 233 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[no_pair_teasers]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[no_pair_teasers]" value="1" <?php checked(1, genesis_get_option('no_pair_teasers')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[no_pair_teasers]"><?php _e('Do not show teasers in pairs.', 'genesis'); ?></label></p> 234 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_info]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_info]" value="1" <?php checked(1, genesis_get_option('disable_teaser_info')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_info]"><?php _e('Disable post info (byline) on teasers?', 'genesis'); ?></label></p> 235 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_meta]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_meta]" value="1" <?php checked(1, genesis_get_option('disable_teaser_meta')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[disable_teaser_meta]"><?php _e('Disable post meta on teasers?', 'genesis'); ?></label></p> 236 <p> 237 <label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[use_css]" value="pluginstyles" <?php checked('pluginstyles', genesis_get_option('use_css')); ?> /> 238 <?php echo 'Plugin CSS' ?></label><br /> 239 <label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[use_css]" value="stylesheet" <?php checked('stylesheet', genesis_get_option('use_css')); ?> /> 240 <?php echo 'Child Theme CSS' ?></label> 241 </p> 242 <p> 243 <span class="description">NOTE: "Plugin CSS" will allow you to change the teasers height and width. "Child Theme CSS" uses the styles in child theme for teasers widths and height.</span> 244 </p> 245 <div class="css-opts <?php if ( genesis_get_option('use_css') === 'stylesheet' ) echo 'hidden' ?>"> 246 <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_custom_teaser_styles]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_custom_teaser_styles]" value="1" <?php checked(1, genesis_get_option('enable_custom_teaser_styles')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_custom_teaser_styles]"><?php _e('Edit teaser styles?', 'genesis'); ?></label></p> 247 <div class="custom-css-opts <?php if ( genesis_get_option('enable_custom_teaser_styles') != 1 ) echo 'hidden' ?>"> 248 <hr class="div"> 249 <p><?php echo "Enter width for teaser boxes: "; ?> 250 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[post_teaser_width]" value="<?php echo esc_attr( genesis_get_option('post_teaser_width') ); ?>" size="3" />px</p> 251 <p><span class="description">Depending on your layout or child theme you may want to change the width of your teasers. By Default it will auto adjust. </span></p> 252 253 <p><?php echo "Enter height for teaser boxes: "; ?> 254 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[post_teaser_height]" value="<?php echo esc_attr( genesis_get_option('post_teaser_height') ); ?>" size="3" />px</p> 255 <p><span class="description">If you want a defined height place here. By default the height will auto adjust. </span></p> 256 <p><span class="description">( NOTE: When teasers are not show in pairs you cannot edit the height or width from the plugin. ) </span></p> 257 331 258 </div> 332 333 <div class="bottom-buttons"> 334 <input type="submit" class="button-primary" value="<?php _e('Save Settings', 'genesis') ?>" /> 259 </div> 260 <hr class="div"> 261 <p>Featured posts settings:</p> 262 <p> 263 <?php echo "How many Featured posts before teasers?"; ?> 264 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[numof_full_posts]" value="<?php echo esc_attr( genesis_get_option('numof_full_posts') ); ?>" size="1" /> 265 </p> 266 <p><label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[featured_post_content_limit]">Limit featured post content to</label> <input type="text" size="3" value="<?php echo esc_attr( genesis_get_option('featured_post_content_limit') ); ?>" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[featured_post_content_limit]" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[featured_post_content_limit]"> <label for="genesis-settings[featured_post_content_limit]">characters</label></p> 267 <p class="enable-feat-thumbnail"><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_enable_featured_thumbnail]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_enable_featured_thumbnail]" value="1" <?php checked(1, genesis_get_option('gpt_enable_featured_thumbnail')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_enable_featured_thumbnail]"><?php _e('Include featured image on featured posts?', 'genesis'); ?></label></p> 268 <p style="padding-left: 20px;" class="select-feat-image-size <?php if ( genesis_get_option('gpt_enable_featured_thumbnail') == '' ) echo 'hidden' ?>"> 269 <?php _e("Image Size", 'genesis'); ?>: 270 <?php $sizes = genesis_get_additional_image_sizes(); ?> 271 <select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[gpt_thumbnail_featured_size]"> 272 <option style="padding-right:10px;" value="thumbnail">thumbnail (<?php echo get_option('thumbnail_size_w'); ?>x<?php echo get_option('thumbnail_size_h'); ?>)</option> 273 <?php 274 foreach((array)$sizes as $name => $size) : 275 echo '<option style="padding-right: 10px;" value="'.$name.'" '.selected($name, genesis_get_option('teaser_thumbnail_size'), FALSE).'>'.$name.' ('.$size['width'].'x'.$size['height'].')</option>'; 276 endforeach; 277 ?> 278 </select> 279 </p> 280 <hr class="div"> 281 <p>Teaser settings:</p> 282 <p><label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_post_content_limit]">Limit teaser post content to</label> <input type="text" size="3" value="<?php echo esc_attr( genesis_get_option('teaser_post_content_limit') ); ?>" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_post_content_limit]" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_post_content_limit]"> <label for="genesis-settings[teaser_post_content_limit]">characters</label></p> 283 <p class="enable-thumbnail"><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_teaser_thumbnail]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_teaser_thumbnail]" value="1" <?php checked(1, genesis_get_option('enable_teaser_thumbnail')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[enable_teaser_thumbnail]"><?php _e('Include featured image on teasers?', 'genesis'); ?></label></p> 284 <p style="padding-left: 20px;" class="select-image-size <?php if ( genesis_get_option('enable_teaser_thumbnail') == '' ) echo 'hidden' ?>"> 285 <?php _e("Image Size", 'genesis'); ?>: 286 <?php $sizes = genesis_get_additional_image_sizes(); ?> 287 <select name="<?php echo GENESIS_SETTINGS_FIELD; ?>[teaser_thumbnail_size]"> 288 <option style="padding-right:10px;" value="thumbnail">thumbnail (<?php echo get_option('thumbnail_size_w'); ?>x<?php echo get_option('thumbnail_size_h'); ?>)</option> 289 <?php 290 foreach((array)$sizes as $name => $size) : 291 echo '<option style="padding-right: 10px;" value="'.$name.'" '.selected($name, genesis_get_option('teaser_thumbnail_size'), FALSE).'>'.$name.' ('.$size['width'].'x'.$size['height'].')</option>'; 292 endforeach; 293 ?> 294 </select> 295 </p> 296 <hr class="div"> 297 <p> 298 <?php echo "How many posts per page?"; ?> 299 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[numof_posts_per_page]" value="<?php echo esc_attr( genesis_get_option('numof_posts_per_page') ); ?>" size="1" /> 300 </p> 301 <?php /* <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_on_teasers]" id="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_on_teasers]" value="1" <?php checked(1, genesis_get_option('readmore_on_teasers')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_on_teasers]"><?php _e('Enable "Read More" link on teasers?', 'genesis'); ?></label></p> */ ?> 302 <p><?php echo 'Custom "[Continue reading...]" text.'; ?> 303 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_link_on_teasers]" value="<?php echo esc_attr( genesis_get_option('readmore_link_on_teasers') ); ?>" size="15" /> 304 </p> 305 306 <?php /*<p><label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[show_advance_opts]" value="no" <?php checked('pluginstyles', genesis_get_option('use_css')); ?> /> 307 <?php echo 'Use default values for post info, meta and read more.' ?><br /> 308 <label><input type="radio" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[show_advance_opts]" value="yes" <?php checked('stylesheet', genesis_get_option('use_css')); ?> /> 309 <?php echo 'Filter text for post info, meta and the read more link.' ?></label> 310 </p> 311 <?php echo "Custom read more text."; ?> 312 <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?>[readmore_link_on_teasers]" value="<?php echo esc_attr( genesis_get_option('readmore_link_on_teasers') ); ?>" size="15" /></p> 335 313 </div> 336 </form> 337 </div> 314 */ ?> 338 315 339 316 <?php } -
genesis-post-teasers/trunk/readme.txt
r415405 r415872 36 36 37 37 == Changelog == 38 = 1.0.3.2 = 39 * Fixed: Any settings get reset on save. 40 * Change: Moved the settings back to main genesis theme settings page for now. 41 38 42 = 1.0.3.1 = 39 43 * Fixed: Default styles will not show if edit styles is not checked.
Note: See TracChangeset
for help on using the changeset viewer.