function wpct_footer_box() { ?> <p><?php _e("Credits Text:", 'wpct_footer'); ?> <br /> <textarea name="<?php echo GENESIS_SETTINGS_FIELD; ?> [wpct_footer_creds]" cols="39" rows="3"><?php echo htmlspecialchars(genesis_get_option('wpct_footer_creds')); ?> </textarea><br /> <span class="description"><?php _e('<b>Default Text:</b><br/> Copyright [footer_copyright] [footer_childtheme_link] &middot; [footer_genesis_link] [footer_studiopress_link] &middot; [footer_wordpress_link] &middot; [footer_loginout]', 'wpct_footer'); ?> </span></p> <p><?php _e("Custom Back To Top Text:", 'wpct_footer'); ?> <br /> <textarea name="<?php echo GENESIS_SETTINGS_FIELD; ?> [wpct_footer_backtotop]" cols="39" rows="3"><?php genesis_option('wpct_footer_backtotop'); ?> </textarea><br /> <span class="description"><?php _e('<b>Default Text:</b><br/> [footer_backtotop text="Return to top of page"]', 'wpct_footer'); ?> </span></p> <?php }
/** * Echo an SEO option from the SEO options database. * * @since 0.1.3 * * @uses genesis_option() Echo option from the options table and cache result. * @uses GENESIS_SEO_SETTINGS_FIELD * * @param string $key Option name. * @param boolean $use_cache Optional. Whether to use the Genesis cache value or not. Defaults to true. */ function genesis_seo_option($key, $use_cache = true) { genesis_option($key, GENESIS_SEO_SETTINGS_FIELD, $use_cache); }
/** * This function generates the form code to be used in the metaboxes * * @since 0.9 */ function genesis_responsive_slider_options_box() { ?> <div id="genesis-responsive-slider-content-type"> <h4><?php _e('Type of Content', 'genesis-responsive-slider'); ?> </h4> <p><label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [post_type]"><?php _e('Would you like to use posts or pages', 'genesis-responsive-slider'); ?> ?</label> <select id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [post_type]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [post_type]"> <?php $post_types = get_post_types(array('public' => true), 'names', 'and'); $post_types = array_filter($post_types, 'genesis_responsive_slider_exclude_post_types'); foreach ($post_types as $post_type) { ?> <option style="padding-right:10px;" value="<?php echo esc_attr($post_type); ?> " <?php selected(esc_attr($post_type), genesis_get_responsive_slider_option('post_type')); ?> ><?php echo esc_attr($post_type); ?> </option><?php } ?> </select></p> </div> <div id="genesis-responsive-slider-content-filter"> <div id="genesis-responsive-slider-taxonomy"> <p><strong style="display: block; font-size: 11px; margin-top: 10px;"><?php _e('By Taxonomy and Terms', 'genesis-responsive-slider'); ?> </strong><label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_term]"><?php _e('Choose a term to determine what slides to include', 'genesis-responsive-slider'); ?> .</label> <select id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_term]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_term]" style="margin-top: 5px;"> <option style="padding-right:10px;" value="" <?php selected('', genesis_get_responsive_slider_option('posts_term')); ?> ><?php _e('All Taxonomies and Terms', 'genesis-responsive-slider'); ?> </option> <?php $taxonomies = get_taxonomies(array('public' => true), 'objects'); $taxonomies = array_filter($taxonomies, 'genesis_responsive_slider_exclude_taxonomies'); $test = get_taxonomies(array('public' => true), 'objects'); foreach ($taxonomies as $taxonomy) { $query_label = ''; if (!empty($taxonomy->query_var)) { $query_label = $taxonomy->query_var; } else { $query_label = $taxonomy->name; } ?> <optgroup label="<?php echo esc_attr($taxonomy->labels->name); ?> "> <option style="margin-left: 5px; padding-right:10px;" value="<?php echo esc_attr($query_label); ?> " <?php selected(esc_attr($query_label), genesis_get_responsive_slider_option('posts_term')); ?> ><?php echo $taxonomy->labels->all_items; ?> </option><?php $terms = get_terms($taxonomy->name, 'orderby=name&hide_empty=1'); foreach ($terms as $term) { ?> <option style="margin-left: 8px; padding-right:10px;" value="<?php echo esc_attr($query_label) . ',' . $term->slug; ?> " <?php selected(esc_attr($query_label) . ',' . $term->slug, genesis_get_responsive_slider_option('posts_term')); ?> ><?php echo '-' . esc_attr($term->name); ?> </option><?php } ?> </optgroup> <?php } ?> </select> </p> <p><strong style="display: block; font-size: 11px; margin-top: 10px;"><?php _e('Include or Exclude by Taxonomy ID', 'genesis-responsive-slider'); ?> </strong></p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [exclude_terms]"><?php printf(__('List which category, tag or other taxonomy IDs to exclude. (1,2,3,4 for example)', 'genesis-responsive-slider'), '<br />'); ?> </label> </p> <p> <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [exclude_terms]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [exclude_terms]" value="<?php echo esc_attr(genesis_get_responsive_slider_option('exclude_terms')); ?> " style="width:60%;" /> </p> </div> <p> <strong style="font-size:11px;margin-top:10px;"><label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [include_exclude]"><?php printf(__('Include or Exclude by %s ID', 'genesis-responsive-slider'), genesis_get_responsive_slider_option('post_type')); ?> </label></strong> </p> <p><?php _e('Choose the include / exclude slides using their post / page ID in a comma-separated list. (1,2,3,4 for example)', 'genesis-responsive-slider'); ?> </p> <p> <select style="margin-top: 5px;" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [include_exclude]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [include_exclude]"> <option style="padding-right:10px;" value="" <?php selected('', genesis_get_responsive_slider_option('include_exclude')); ?> ><?php _e('Select', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="include" <?php selected('include', genesis_get_responsive_slider_option('include_exclude')); ?> ><?php _e('Include', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="exclude" <?php selected('exclude', genesis_get_responsive_slider_option('include_exclude')); ?> ><?php _e('Exclude', 'genesis-responsive-slider'); ?> </option> </select> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [post_id]"><?php _e('List which', 'genesis-responsive-slider'); ?> <strong><?php echo genesis_get_responsive_slider_option('post_type') . ' ' . __('ID', 'genesis-responsive-slider'); ?> s</strong> <?php _e('to include / exclude. (1,2,3,4 for example)', 'genesis-responsive-slider'); ?> </label></p> <p> <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [post_id]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [post_id]" value="<?php echo esc_attr(genesis_get_responsive_slider_option('post_id')); ?> " style="width:60%;" /> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_num]"><?php _e('Number of Slides to Show', 'genesis-responsive-slider'); ?> :</label> <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_num]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_num]" value="<?php echo esc_attr(genesis_get_responsive_slider_option('posts_num')); ?> " size="2" /> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_offset]"><?php _e('Number of Posts to Offset', 'genesis-responsive-slider'); ?> :</label> <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_offset]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [posts_offset]" value="<?php echo esc_attr(genesis_get_responsive_slider_option('posts_offset')); ?> " size="2" /> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [orderby]"><?php _e('Order By', 'genesis-responsive-slider'); ?> :</label> <select id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [orderby]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [orderby]"> <option style="padding-right:10px;" value="date" <?php selected('date', genesis_get_responsive_slider_option('orderby')); ?> ><?php _e('Date', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="title" <?php selected('title', genesis_get_responsive_slider_option('orderby')); ?> ><?php _e('Title', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="ID" <?php selected('ID', genesis_get_responsive_slider_option('orderby')); ?> ><?php _e('ID', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="rand" <?php selected('rand', genesis_get_responsive_slider_option('orderby')); ?> ><?php _e('Random', 'genesis-responsive-slider'); ?> </option> </select> </p> </div> <hr class="div" /> <h4><?php _e('Transition Settings', 'genesis-responsive-slider'); ?> </h4> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_timer]"><?php _e('Time Between Slides (in milliseconds)', 'genesis-responsive-slider'); ?> : <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_timer]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_timer]" value="<?php echo genesis_get_responsive_slider_option('slideshow_timer'); ?> " size="5" /></label> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_delay]"><?php _e('Slide Transition Speed (in milliseconds)', 'genesis-responsive-slider'); ?> : <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_delay]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_delay]" value="<?php echo genesis_get_responsive_slider_option('slideshow_delay'); ?> " size="5" /></label> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_effect]"><?php _e('Slider Effect', 'genesis-responsive-slider'); ?> : <?php _e('Select one of the following:', 'genesis-responsive-slider'); ?> <select name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_effect]" id="<?php echo GENESIS_SETTINGS_FIELD; ?> [slideshow_effect]"> <option value="slide" <?php selected('slide', genesis_get_option('slideshow_effect', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD)); ?> ><?php _e('Slide', 'genesis-responsive-slider'); ?> </option> <option value="fade" <?php selected('fade', genesis_get_option('slideshow_effect', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD)); ?> ><?php _e('Fade', 'genesis-responsive-slider'); ?> </option> </select> </p> <hr class="div" /> <h4><?php _e('Display Settings', 'genesis-responsive-slider'); ?> </h4> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_width]"><?php _e('Maximum Slider Width (in pixels)', 'genesis-responsive-slider'); ?> : <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_width]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_width]" value="<?php echo genesis_get_responsive_slider_option('slideshow_width'); ?> " size="5" /></label> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_height]"><?php _e('Maximum Slider Height (in pixels)', 'genesis-responsive-slider'); ?> : <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_height]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_height]" value="<?php echo genesis_get_responsive_slider_option('slideshow_height'); ?> " size="5" /></label> </p> <p> <input type="checkbox" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_arrows]" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_arrows]" value="1" <?php checked(1, genesis_get_responsive_slider_option('slideshow_arrows')); ?> /> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_arrows]"><?php _e('Display Next / Previous Arrows in Slider?', 'genesis-responsive-slider'); ?> </label> </p> <p> <input type="checkbox" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_pager]" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_pager]" value="1" <?php checked(1, genesis_get_responsive_slider_option('slideshow_pager')); ?> /> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_pager]"><?php _e('Display Pagination in Slider?', 'genesis-responsive-slider'); ?> </label> </p> <hr class="div" /> <h4><?php _e('Content Settings', 'genesis-responsive-slider'); ?> </h4> <p> <input type="checkbox" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_no_link]" id="<?php echo GENESIS_SLIDER_SETTINGS_FIELD; ?> [slideshow_title_show]" value="1" <?php checked(1, genesis_get_responsive_slider_option('slideshow_no_link')); ?> /> <label for="<?php echo GENESIS_SLIDER_SETTINGS_FIELD; ?> [slideshow_no_link]"><?php _e('Do not link Slider image to Post/Page.', 'genesis-slider'); ?> </label> </p> <p> <input type="checkbox" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_title_show]" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_title_show]" value="1" <?php checked(1, genesis_get_responsive_slider_option('slideshow_title_show')); ?> /> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_title_show]"><?php _e('Display Post/Page Title in Slider?', 'genesis-responsive-slider'); ?> </label> </p> <p> <input type="checkbox" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_show]" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_show]" value="1" <?php checked(1, genesis_get_responsive_slider_option('slideshow_excerpt_show')); ?> /> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_show]"><?php _e('Display Content in Slider?', 'genesis-responsive-slider'); ?> </label> </p> <p> <input type="checkbox" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_hide_mobile]" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_hide_mobile]" value="1" <?php checked(1, genesis_get_responsive_slider_option('slideshow_hide_mobile')); ?> /> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_hide_mobile]"><?php _e('Hide Title & Content on Mobile Devices', 'genesis-responsive-slider'); ?> </label> </p> <p> <?php _e('Select one of the following:', 'genesis-responsive-slider'); ?> <select name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_content]" id="<?php echo GENESIS_SETTINGS_FIELD; ?> [slideshow_excerpt_content]"> <option value="full" <?php selected('full', genesis_get_option('slideshow_excerpt_content', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD)); ?> ><?php _e('Display post content', 'genesis-responsive-slider'); ?> </option> <option value="excerpts" <?php selected('excerpts', genesis_get_option('slideshow_excerpt_content', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD)); ?> ><?php _e('Display post excerpts', 'genesis-responsive-slider'); ?> </option> </select> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_more_text]"><?php _e('More Text (if applicable)', 'genesis-responsive-slider'); ?> :</label> <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_more_text]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_more_text]" value="<?php echo esc_attr(genesis_get_option('slideshow_more_text', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD)); ?> " /> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_content_limit]"><?php _e('Limit content to', 'genesis-responsive-slider'); ?> </label> <input type="text" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_content_limit]" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_content_limit]" value="<?php echo esc_attr(genesis_option('slideshow_excerpt_content_limit', GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD)); ?> " size="3" /> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_content_limit]"><?php _e('characters', 'genesis-responsive-slider'); ?> </label> </p> <p><span class="description"><?php _e('Using this option will limit the text and strip all formatting from the text displayed. To use this option, choose "Display post content" in the select box above.', 'genesis-responsive-slider'); ?> </span></p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_width]"><?php _e('Slider Excerpt Width (in percentage)', 'genesis-responsive-slider'); ?> : <input type="text" id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_width]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [slideshow_excerpt_width]" value="<?php echo genesis_get_responsive_slider_option('slideshow_excerpt_width'); ?> " size="5" /></label> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [location_vertical]"><?php _e('Excerpt Location (vertical)', 'genesis-responsive-slider'); ?> :</label> <select id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [location_vertical]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [location_vertical]"> <option style="padding-right:10px;" value="top" <?php selected('top', genesis_get_responsive_slider_option('location_vertical')); ?> ><?php _e('Top', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="bottom" <?php selected('bottom', genesis_get_responsive_slider_option('location_vertical')); ?> ><?php _e('Bottom', 'genesis-responsive-slider'); ?> </option> </select> </p> <p> <label for="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [location_horizontal]"><?php _e('Excerpt Location (horizontal)', 'genesis-responsive-slider'); ?> :</label> <select id="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [location_horizontal]" name="<?php echo GENESIS_RESPONSIVE_SLIDER_SETTINGS_FIELD; ?> [location_horizontal]"> <option style="padding-right:10px;" value="left" <?php selected('left', genesis_get_responsive_slider_option('location_horizontal')); ?> ><?php _e('Left', 'genesis-responsive-slider'); ?> </option> <option style="padding-right:10px;" value="right" <?php selected('right', genesis_get_responsive_slider_option('location_horizontal')); ?> ><?php _e('Right', 'genesis-responsive-slider'); ?> </option> </select> </p> <?php }
function lifestyle_theme_settings_header_box() { ?> <p><input type="checkbox" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [header_custom]" id="<?php echo GENESIS_SETTINGS_FIELD; ?> [header_custom]" value="1" <?php checked(1, genesis_get_option('header_custom')); ?> /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?> [header_custom]"><?php _e("Enable Custom Header?", 'genesis'); ?> </label> </select></p> <p><label><?php _e('Header Image Height', 'lifestyle'); ?> : <input style="margin:0 5px 0 0;text-align:center;" type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [header_height]" value="<?php genesis_option('header_height'); ?> " size="2" />px</label></p> <?php }
function genesis_theme_settings_scripts_box() { ?> <p><?php _e("Enter scripts/code you would like output to <code>wp_head()</code>:", 'genesis'); ?> <br /> <textarea name="<?php echo GENESIS_SETTINGS_FIELD; ?> [header_scripts]" cols=39 rows=5><?php genesis_option('header_scripts'); ?> </textarea><br /> <span class="description"><?php _e('<strong>Note:</strong> The <code>wp_head()</code> hook executes immediately before the closing <code></head></code> tag in the document source', 'genesis'); ?> </span></p> <p><?php _e("Enter scripts/code you would like output to <code>wp_footer()</code>:", 'genesis'); ?> <br /> <textarea name="<?php echo GENESIS_SETTINGS_FIELD; ?> [footer_scripts]" cols=39 rows=5><?php genesis_option('footer_scripts'); ?> </textarea><br /> <span class="description"><?php _e('<strong>Note:</strong> The <code>wp_footer()</code> hook executes immediately before the closing <code></body></code> tag in the document source', 'genesis'); ?> </span></p> <?php }
/** * Echo the footer scripts, defined in Theme Settings. * * Applies the `genesis_footer_scripts` filter to the value returns from the footer_scripts option. * * @since 1.1.0 * * @uses genesis_option() Get theme setting value. */ function genesis_footer_scripts() { echo apply_filters('genesis_footer_scripts', genesis_option('footer_scripts')); }
/** * Adds Portfolio Options to Genesis Theme Settings Page */ function epik_theme_settings_portfolio() { ?> <p><?php _e("Display which category:", 'genesis'); ?> <?php wp_dropdown_categories(array('selected' => genesis_get_option('epik_portfolio_cat'), 'name' => GENESIS_SETTINGS_FIELD . '[epik_portfolio_cat]', 'orderby' => 'Name', 'hierarchical' => 1, 'show_option_all' => __("All Categories", 'genesis'), 'hide_empty' => '0')); ?> </p> <p><?php _e("Exclude the following Category IDs:", 'genesis'); ?> <br /> <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_cat_exclude]" value="<?php echo esc_attr(genesis_get_option('epik_portfolio_cat_exclude')); ?> " size="40" /><br /> <small><strong><?php _e("Comma separated - 1,2,3 for example", 'genesis'); ?> </strong></small></p> <p><?php _e('Number of Posts to Show', 'genesis'); ?> : <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_cat_num]" value="<?php echo esc_attr(genesis_option('epik_portfolio_cat_num')); ?> " size="2" /></p> <p><span class="description"><?php _e('<b>NOTE:</b> The Portfolio Page displays the "Portfolio Page" image size plus the excerpt or full content as selected below.', 'epik'); ?> </span></p> <p><?php _e("Select one of the following:", 'genesis'); ?> <select name="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_content]"> <option style="padding-right:10px;" value="full" <?php selected('full', genesis_get_option('epik_portfolio_content')); ?> ><?php _e("Display post content", 'genesis'); ?> </option> <option style="padding-right:10px;" value="excerpts" <?php selected('excerpts', genesis_get_option('epik_portfolio_content')); ?> ><?php _e("Display post excerpts", 'genesis'); ?> </option> </select></p> <p><label for="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_content_archive_limit]"><?php _e('Limit content to', 'genesis'); ?> </label> <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_content_archive_limit]" id="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_content_archive_limit]" value="<?php echo esc_attr(genesis_option('epik_portfolio_content_archive_limit')); ?> " size="3" /> <label for="<?php echo GENESIS_SETTINGS_FIELD; ?> [epik_portfolio_content_archive_limit]"><?php _e('characters', 'genesis'); ?> </label></p> <p><span class="description"><?php _e('<b>NOTE:</b> Using this option will limit the text and strip all formatting from the text displayed. To use this option, choose "Display post content" in the select box above.', 'genesis'); ?> </span></p> <?php }
function sp_option($key, $setting = null) { genesis_option($key, $settings); }
function genesis_seo_option($key) { genesis_option($key, GENESIS_SEO_SETTINGS_FIELD); }
function genesis_theme_settings_blogpage_box() { ?> <p><?php _e("Display which category:", 'genesis'); ?> <?php wp_dropdown_categories(array('selected' => genesis_get_option('blog_cat'), 'name' => GENESIS_SETTINGS_FIELD . '[blog_cat]', 'orderby' => 'Name', 'hierarchical' => 1, 'show_option_all' => __("All Categories", 'genesis'), 'hide_empty' => '0')); ?> </p> <p><?php _e("Exclude the following Category IDs:", 'genesis'); ?> <br /> <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [blog_cat_exclude]" value="<?php echo esc_attr(genesis_get_option('blog_cat_exclude')); ?> " size="40" /><br /> <small><strong><?php _e("Comma separated - 1,2,3 for example", 'genesis'); ?> </strong></small></p> <p><?php _e('Number of Posts to Show', 'genesis'); ?> : <input type="text" name="<?php echo GENESIS_SETTINGS_FIELD; ?> [blog_cat_num]" value="<?php echo esc_attr(genesis_option('blog_cat_num')); ?> " size="2" /></p> <?php }
function genesis_footer_scripts() { $text = apply_filters('genesis_footer_scripts', genesis_option('footer_scripts')); echo $text; }