PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mobile-tips.kerihosting.com/wp-content/themes/lifestyle/lib/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mobile-tips.kerihosting.com/wp-content/themes/lifestyle/lib/adsettings.php |
<?php /** * ADS Settings * Requires Genesis 1.8 or later * Custom made by PreMadeThemes <www.premadethemes.com> * * * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) * @link http://www.premadethemes.com */ /** * Registers a new admin page, use for replacing and managing existing * affiliate links and banners. * * * @package Genesis Child Theme * @package Admin * * @since 1.8.0 */ class Premadethemes_Millionaire_Settings extends Genesis_Admin_Boxes { /** * Create an admin submenu item and settings page. */ function __construct() { $page_id = 'premadethemes'; $menu_ops = array( 'submenu' => array( 'parent_slug' => 'genesis', 'page_title' => __( 'ADS Settings', 'genesis' ), 'menu_title' => __( 'ADS Settings', 'genesis' ) ) ); $page_ops = array( 'screen_icon' => 'options-general', 'save_button_text' => __( 'Save ADS Settings', 'genesis' ), 'reset_button_text' => __( 'Reset ADS Settings', 'genesis' ), 'saved_notice_text' => __( 'ADS Settings saved.', 'genesis' ), 'reset_notice_text' => __( 'ADS Settings reset.', 'genesis' ), 'error_notice_text' => __( 'Error saving ADS settings.', 'genesis' ), ); $settings_field = 'millionaire'; $default_settings = apply_filters( 'genesis_premadethemes_defaults', array( 'amazon_id' => 'feewow-20', 'amazon_keyword' => 'money', 'amazon_show_posts' => 0, 'amazon_store_link' => '', 'amazon_show_store' => 0, 'amazon_country' => 'US', 'clickbank_id' => 'ijalmar77', 'clickbank_keyword' => 'money', 'cbengine_id' => 'cbsuccess777', 'clickbank_keyword' => 'money', 'clickbank_show_sidebar' => 'true', 'adsense_300' => '', 'adsense_336' => '', 'adsense_468' => '', 'adsense_archive' => '', 'top_navbar_show' => 1, 'adsense_archive_show' => 0, 'adsense_300_show' => 0, 'adsense_336_show' => 0, 'adsense_468_show' => 0, 'adsense_archive_show_below' => 0, 'adsense_300_show_home' => 0, 'ad_top_image' => '', 'ad_top_url' => 'http://www.premadethemes.com/', 'ad_top_alt_tag' => 'PreMadeThemes', 'move_main_nav' => 0, 'aff1_link' => '', 'aff2_link' => '', 'aff3_link' => '', 'aff4_link' => '', 'aff1_title_tag' => '', 'aff2_title_tag' => '', 'aff3_title_tag' => '', 'aff4_title_tag' => '', 'aff1_banner_url_1' => '', 'aff2_banner_url_1' => '', 'aff3_banner_url_1' => '', 'aff4_banner_url_1' => '', 'aff1_banner_url_2' => '', 'aff2_banner_url_2' => '', 'aff3_banner_url_2' => '', 'aff4_banner_url_2' => '', 'aff1_banner_url_3' => '', 'aff2_banner_url_3' => '', 'aff3_banner_url_3' => '', 'aff4_banner_url_3' => '', ) ); $this->create( $page_id, $menu_ops, $page_ops, $settings_field, $default_settings ); add_action( 'genesis_settings_sanitizer_init', array( $this, 'sanitizer_filters' ) ); } /** * Registers each of the settings with a sanitization filter type. */ public function sanitizer_filters() { genesis_add_option_filter( 'one_zero', $this->settings_field, array( 'amazon_show_posts', 'amazon_show_store', 'clickbank_show_sidebar', 'move_main_nav', 'adsense_300_show', 'adsense_336_show', 'adsense_468_show', 'adsense_archive_show', 'adsense_archive_show_below', 'adsense_300_show_home', 'top_navbar_show', ) ); genesis_add_option_filter( 'no_html', $this->settings_field, array( 'amazon_id', 'amazon_keyword', 'amazon_store_link', 'amazon_country', 'clickbank_id', 'clickbank_keyword', 'cbengine_id', 'ad_top_image', 'ad_top_url', 'ad_top_alt_tag', 'aff1_link', 'aff2_link', 'aff3_link', 'aff4_link', 'aff1_title_tag', 'aff2_title_tag', 'aff3_title_tag', 'aff4_title_tag', 'aff1_banner_url_1', 'aff2_banner_url_1', 'aff3_banner_url_1', 'aff4_banner_url_1', 'aff1_banner_url_2', 'aff2_banner_url_2', 'aff3_banner_url_2', 'aff4_banner_url_2', 'aff1_banner_url_3', 'aff2_banner_url_3', 'aff3_banner_url_3', 'aff4_banner_url_3', ) ); genesis_add_option_filter( 'requires_unfiltered_html', $this->settings_field, array( 'adsense_300', 'adsense_336', 'adsense_468', 'adsense_archive', ) ); } /** * Register meta boxes on the ADS Settings page. */ function metaboxes() { add_meta_box( 'premadethemes-adsinfo', __( 'Replace and Manage Affiliate Links/Banners', 'genesis' ), array( $this, 'adsinfo_box' ), $this->pagehook, 'main', 'high'); add_meta_box( 'premadethemes-amazonstore', __( 'Amazon aStore', 'genesis' ), array( $this, 'amazon_alink' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-amazon', __( 'Amazon Ads', 'genesis' ), array( $this, 'amazon_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-clickbank', __( 'Clickbank Ads', 'genesis' ), array( $this, 'clickbank_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-cbengine', __( 'CB Engine', 'genesis' ), array( $this, 'cbengine_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-adsense', __( 'Adsense Ads', 'genesis' ), array( $this, 'adsense_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-archivead', __( 'Ads on Archive Pages (Categories and Tags)', 'genesis' ), array( $this, 'archivead_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-bannerins', __( 'BANNER ADS', 'genesis' ), array( $this, 'bannerins_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-headbanner', __( 'Header Banner Ad (468 x 60)', 'genesis' ), array( $this, 'headbanner_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-bannerad1', __( 'Banner Ad #1', 'genesis' ), array( $this, 'bannerad1_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-bannerad2', __( 'Banner Ad #2', 'genesis' ), array( $this, 'bannerad2_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-bannerad3', __( 'Banner Ad #3', 'genesis' ), array( $this, 'bannerad3_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-bannerad4', __( 'Banner Ad #4', 'genesis' ), array( $this, 'bannerad4_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-footerlink', __( 'Footer Credit Link', 'genesis' ), array( $this, 'footerlink_box' ), $this->pagehook, 'main' ); add_meta_box( 'premadethemes-subscribe', __( 'Wordpress Niche Themes', 'genesis' ), array( $this, 'subscribe_box' ), $this->pagehook, 'main' ); } /** * Callback for ADS Settings Document Title meta box. * */ function adsinfo_box() { ?> <p><?php _e( 'Use custom boxes provided below to automatically replace ALL existing affiliate links and banners on this ready made blog.', 'genesis' ); ?></p> <p><span class="description"><?php _e( 'If you want to use this theme on a new or another site you own and want to have total control in managing your own affiliate links (ex. adding more banners, adding more adsense blocks), use the Widgets area.', 'genesis' ); ?></span></p> <hr class="div" /> <p> <input type="checkbox" name="<?php echo $this->get_field_name( 'top_navbar_show' ); ?>" id="<?php echo $this->get_field_id( 'top_navbar_show' ); ?>" value="1"<?php checked( $this->get_field_value( 'top_navbar_show' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'top_navbar_show' ); ?>"><?php _e( 'Enable the top navigation bar (contains date and RSS subscription links).', 'genesis' ); ?></label> </p> <?php } /** * Callback for ADS Settings Amazon meta box. * */ function amazon_alink() { ?> <p> <label for="<?php echo $this->get_field_id( 'amazon_store_link' ); ?>"><?php _e( 'Amazon aStore Link/URL:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'amazon_store_link' ); ?>" id="<?php echo $this->get_field_id( 'amazon_store_link' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'amazon_store_link' ) ); ?>" size="50" /> </p> <p><?php _e( 'Create your own Amazon aStore link <a href="https://affiliate-program.amazon.com/gp/associates/network/store/manage-your-stores.html" target="_blank">here</a>. Otherwise, simply unchecked this and put your Amazon ID below. The Amazon Search Widget will show up instead of the aStore.', 'genesis' ); ?></p> <p> <input type="checkbox" name="<?php echo $this->get_field_name( 'amazon_show_store' ); ?>" id="<?php echo $this->get_field_id( 'amazon_show_store' ); ?>" value="1"<?php checked( $this->get_field_value( 'amazon_show_store' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'amazon_show_store' ); ?>"><?php _e( 'Enable Amazon aStore?', 'genesis' ); ?></label> </p> <?php } /** * Callback for ADS Settings Amazon meta box. * */ function amazon_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'amazon_id' ); ?>"><?php _e( 'Enter your Amazon ID:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'amazon_id' ); ?>" id="<?php echo $this->get_field_id( 'amazon_id' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'amazon_id' ) ); ?>" size="50" /> </p> <p> <label for="<?php echo $this->get_field_id( 'amazon_keyword' ); ?>"><?php _e( 'Enter your Amazon Keyword:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'amazon_keyword' ); ?>" id="<?php echo $this->get_field_id( 'amazon_keyword' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'amazon_keyword' ) ); ?>" size="50" /> </p> <p> <label for="<?php echo $this->get_field_id( 'amazon_country' ); ?>"><?php _e( 'Enter Amazon Country Code:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'amazon_country' ); ?>" id="<?php echo $this->get_field_id( 'amazon_country' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'amazon_country' ) ); ?>" size="20" /> </p> <p><?php _e( '<strong>Country Codes</strong>: <strong>AT</strong> (Austria), <strong>BR</strong> (Brazil), <strong>CA</strong> (Canada), <strong>CN</strong> (China), <strong>FR</strong> (France), <strong>DE</strong> (Germany), <strong>IT</strong> (Italy), <strong>JP</strong> (Japan), <strong>ES</strong> (Spain), <strong>GB</strong> (United Kingdom), <strong>US</strong> (United States)', 'genesis' ); ?></p> <p> <input type="checkbox" name="<?php echo $this->get_field_name( 'amazon_show_posts' ); ?>" id="<?php echo $this->get_field_id( 'amazon_show_posts' ); ?>" value="1"<?php checked( $this->get_field_value( 'amazon_show_posts' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'amazon_show_posts' ); ?>"><?php _e( 'Enable Amazon Ads Below Posts?', 'genesis' ); ?></label> </p> <?php } /** * Callback for ADS Settings Document Head meta box. * */ function clickbank_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'clickbank_id' ); ?>"><?php _e( 'Enter your Clickbank ID:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'clickbank_id' ); ?>" id="<?php echo $this->get_field_id( 'clickbank_id' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'clickbank_id' ) ); ?>" size="50" /> </p> <p> <label for="<?php echo $this->get_field_id( 'clickbank_keyword' ); ?>"><?php _e( 'Enter your Clickbank Keyword:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'clickbank_keyword' ); ?>" id="<?php echo $this->get_field_id( 'clickbank_keyword' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'clickbank_keyword' ) ); ?>" size="50" /> </p> <?php } /** * Callback for ADS Settings Document Head meta box. * */ function cbengine_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'cbengine_id' ); ?>"><?php _e( 'Enter your CB Engine Username (Used for Adsense like Text Ads):', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'cbengine_id' ); ?>" id="<?php echo $this->get_field_id( 'cbengine_id' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'cbengine_id' ) ); ?>" size="50" /> </p> <p> <span class="description"><?php _e( '<a href="http://www.premadethemes.com/cbpro" target="_blank">CB Engine</a> is still the best alternative for Clickbank\'s now decommisioned Hop Ad Builder. If you don\'t want to use CB Engine, you can remove existing Ad Blocks by going to the Widgets area.', 'genesis' ); ?></span> </p> <?php } /** * Callback for ADS Settings adsense meta box. * */ function adsense_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'adsense_300' ); ?>"><?php _e( 'Enter Adsense code #1: (300 x 250 for Top Sidebar)', 'genesis' ); ?></label><br /> <textarea name="<?php echo $this->get_field_name( 'adsense_300' ); ?>" id="<?php echo $this->get_field_id( 'adsense_300' ); ?>" cols="78" rows="8"><?php echo esc_textarea( $this->get_field_value( 'adsense_300' ) ); ?></textarea> </p> <p> <input type="checkbox" name="<?php echo $this->get_field_name( 'adsense_300_show' ); ?>" id="<?php echo $this->get_field_id( 'adsense_300_show' ); ?>" value="1"<?php checked( $this->get_field_value( 'adsense_300_show' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'adsense_300_show' ); ?>"><?php _e( 'Enable this Adsense block (appears on posts only).', 'genesis' ); ?></label><br /> <input type="checkbox" name="<?php echo $this->get_field_name( 'adsense_300_show_home' ); ?>" id="<?php echo $this->get_field_id( 'adsense_300_show_home' ); ?>" value="1"<?php checked( $this->get_field_value( 'adsense_300_show_home' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'adsense_300_show_home' ); ?>"><?php _e( 'Enable this Adsense block to appear on home page.', 'genesis' ); ?></label><br /> </p> <hr class="div" /> <p> <label for="<?php echo $this->get_field_id( 'adsense_468' ); ?>"><?php _e( 'Enter Adsense code #2:', 'genesis' ); ?></label><br /> <textarea name="<?php echo $this->get_field_name( 'adsense_468' ); ?>" id="<?php echo $this->get_field_id( 'adsense_468' ); ?>" cols="78" rows="8"><?php echo esc_textarea( $this->get_field_value( 'adsense_468' ) ); ?></textarea><br /> <input type="checkbox" name="<?php echo $this->get_field_name( 'adsense_468_show' ); ?>" id="<?php echo $this->get_field_id( 'adsense_468_show' ); ?>" value="1"<?php checked( $this->get_field_value( 'adsense_468_show' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'adsense_468_show' ); ?>"><?php _e( 'Enable this Adsense block on left of posts.', 'genesis' ); ?></label> </p> <hr class="div" /> <p> <label for="<?php echo $this->get_field_id( 'adsense_336' ); ?>"><?php _e( 'Enter Adsense code #3:', 'genesis' ); ?></label><br /> <textarea name="<?php echo $this->get_field_name( 'adsense_336' ); ?>" id="<?php echo $this->get_field_id( 'adsense_336' ); ?>" cols="78" rows="8"><?php echo esc_textarea( $this->get_field_value( 'adsense_336' ) ); ?></textarea><br /> <input type="checkbox" name="<?php echo $this->get_field_name( 'adsense_336_show' ); ?>" id="<?php echo $this->get_field_id( 'adsense_336_show' ); ?>" value="1"<?php checked( $this->get_field_value( 'adsense_336_show' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'adsense_336_show' ); ?>"><?php _e( 'Enable this Adsense block below posts.', 'genesis' ); ?></label> </p> <?php } /** * Callback for ADS Settings adsense meta box. * */ function archivead_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'adsense_archive' ); ?>"><?php _e( 'Enter ad code (Adsense code or other affiliate ad codes):', 'genesis' ); ?></label><br /> <textarea name="<?php echo $this->get_field_name( 'adsense_archive' ); ?>" id="<?php echo $this->get_field_id( 'adsense_archive' ); ?>" cols="78" rows="8"><?php echo esc_textarea( $this->get_field_value( 'adsense_archive' ) ); ?></textarea> </p> <p> <input type="checkbox" name="<?php echo $this->get_field_name( 'adsense_archive_show' ); ?>" id="<?php echo $this->get_field_id( 'adsense_archive_show' ); ?>" value="1"<?php checked( $this->get_field_value( 'adsense_archive_show' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'adsense_archive_show' ); ?>"><?php _e( 'Enable this Ad block.', 'genesis' ); ?></label><br /> <input type="checkbox" name="<?php echo $this->get_field_name( 'adsense_archive_show_below' ); ?>" id="<?php echo $this->get_field_id( 'adsense_archive_show_below' ); ?>" value="1"<?php checked( $this->get_field_value( 'adsense_archive_show_below' ) ); ?> /> <label for="<?php echo $this->get_field_id( 'adsense_archive_show_below' ); ?>"><?php _e( 'Enable this Ad block below archive page.', 'genesis' ); ?></label> </p> <?php } /** * Callback for Banner ads insructions meta box. * */ function bannerins_box() { ?> <p><?php _e( 'Use below boxes to replace existing banner affiliate links to your own affiliate link.', 'genesis' ); ?></p> <p>Please open <a href='admin.php?page=genesis-readme' target='_blank'>README page</a> for instructions on how to get your own affiliate link.</p> <?php } /** * Callback for ADS Settings Header Banner meta box. * */ function headbanner_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'ad_top_url' ); ?>"><?php _e( 'Enter Your Own Affiliate Link:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'ad_top_url' ); ?>" id="<?php echo $this->get_field_id( 'ad_top_url' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'ad_top_url' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'ad_top_alt_tag' ); ?>"><?php _e( 'Alt Tag:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'ad_top_alt_tag' ); ?>" id="<?php echo $this->get_field_id( 'ad_top_alt_tag' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'ad_top_alt_tag' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'ad_top_image' ); ?>"><?php _e( 'Banner URL:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'ad_top_image' ); ?>" id="<?php echo $this->get_field_id( 'ad_top_image' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'ad_top_image' ) ); ?>" size="78" /> </p> <p> <span class="description"><?php _e( 'To disable header ads, go to the Widgets area and delete the Ad Code Widget inside Header Right Box', 'genesis' ); ?></span> </p> <?php } /** * Callback for ADS Settings Affiliate Link #1 meta box. * */ function bannerad1_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'aff1_link' ); ?>"><?php _e( 'Enter Your Own Affiliate Link:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff1_link' ); ?>" id="<?php echo $this->get_field_id( 'aff1_link' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff1_link' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff1_title_tag' ); ?>"><?php _e( 'Alt Tag:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff1_title_tag' ); ?>" id="<?php echo $this->get_field_id( 'aff1_title_tag' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff1_title_tag' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff1_banner_url_1' ); ?>"><?php _e( 'Banner URL 1:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff1_banner_url_1' ); ?>" id="<?php echo $this->get_field_id( 'aff1_banner_url_1' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff1_banner_url_1' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff1_banner_url_2' ); ?>"><?php _e( 'Banner URL 2:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff1_banner_url_2' ); ?>" id="<?php echo $this->get_field_id( 'aff1_banner_url_2' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff1_banner_url_2' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff1_banner_url_3' ); ?>"><?php _e( 'Banner URL 3:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff1_banner_url_3' ); ?>" id="<?php echo $this->get_field_id( 'aff1_banner_url_3' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff1_banner_url_3' ) ); ?>" size="78" /> </p> <?php } /** * Callback for ADS Settings Affiliate Link #2 meta box. * */ function bannerad2_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'aff2_link' ); ?>"><?php _e( 'Enter Your Own Affiliate Link:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff2_link' ); ?>" id="<?php echo $this->get_field_id( 'aff2_link' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff2_link' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff2_title_tag' ); ?>"><?php _e( 'Alt Tag:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff2_title_tag' ); ?>" id="<?php echo $this->get_field_id( 'aff2_title_tag' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff2_title_tag' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff2_banner_url_1' ); ?>"><?php _e( 'Banner URL 1:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff2_banner_url_1' ); ?>" id="<?php echo $this->get_field_id( 'aff2_banner_url_1' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff2_banner_url_1' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff2_banner_url_2' ); ?>"><?php _e( 'Banner URL 2:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff2_banner_url_2' ); ?>" id="<?php echo $this->get_field_id( 'aff2_banner_url_2' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff2_banner_url_2' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff2_banner_url_3' ); ?>"><?php _e( 'Banner URL 3:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff2_banner_url_3' ); ?>" id="<?php echo $this->get_field_id( 'aff2_banner_url_3' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff2_banner_url_3' ) ); ?>" size="78" /> </p> <?php } /** * Callback for ADS Settings Affiliate Link #3 meta box. * */ function bannerad3_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'aff3_link' ); ?>"><?php _e( 'Enter Your Own Affiliate Link:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff3_link' ); ?>" id="<?php echo $this->get_field_id( 'aff3_link' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff3_link' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff3_title_tag' ); ?>"><?php _e( 'Alt Tag:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff3_title_tag' ); ?>" id="<?php echo $this->get_field_id( 'aff3_title_tag' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff3_title_tag' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff3_banner_url_1' ); ?>"><?php _e( 'Banner URL 1:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff3_banner_url_1' ); ?>" id="<?php echo $this->get_field_id( 'aff3_banner_url_1' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff3_banner_url_1' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff3_banner_url_2' ); ?>"><?php _e( 'Banner URL 2:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff3_banner_url_2' ); ?>" id="<?php echo $this->get_field_id( 'aff3_banner_url_2' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff3_banner_url_2' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff3_banner_url_3' ); ?>"><?php _e( 'Banner URL 3:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff3_banner_url_3' ); ?>" id="<?php echo $this->get_field_id( 'aff3_banner_url_3' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff3_banner_url_3' ) ); ?>" size="78" /> </p> <?php } /** * Callback for ADS Settings Affiliate Link #4 meta box. * */ function bannerad4_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'aff4_link' ); ?>"><?php _e( 'Enter Your Own Affiliate Link:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff4_link' ); ?>" id="<?php echo $this->get_field_id( 'aff4_link' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff4_link' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff4_title_tag' ); ?>"><?php _e( 'Alt Tag:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff4_title_tag' ); ?>" id="<?php echo $this->get_field_id( 'aff4_title_tag' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff4_title_tag' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff4_banner_url_1' ); ?>"><?php _e( 'Banner URL 1:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff4_banner_url_1' ); ?>" id="<?php echo $this->get_field_id( 'aff4_banner_url_1' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff4_banner_url_1' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff4_banner_url_2' ); ?>"><?php _e( 'Banner URL 2:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff4_banner_url_2' ); ?>" id="<?php echo $this->get_field_id( 'aff4_banner_url_2' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff4_banner_url_2' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'aff4_banner_url_3' ); ?>"><?php _e( 'Banner URL 3:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'aff4_banner_url_3' ); ?>" id="<?php echo $this->get_field_id( 'aff4_banner_url_3' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'aff4_banner_url_3' ) ); ?>" size="78" /> </p> <?php } /** * Callback for Footer Link meta box. * */ function footerlink_box() { ?> <p> <label for="<?php echo $this->get_field_id( 'footer_link_url' ); ?>"><?php _e( 'Footer Link URL:', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'footer_link_url' ); ?>" id="<?php echo $this->get_field_id( 'footer_link_url' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'footer_link_url' ) ); ?>" size="78" /> </p> <p> <label for="<?php echo $this->get_field_id( 'footer_link_keyword' ); ?>"><?php _e( 'Keyword', 'genesis' ); ?></label><br /> <input type="text" name="<?php echo $this->get_field_name( 'footer_link_keyword' ); ?>" id="<?php echo $this->get_field_id( 'footer_link_keyword' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'footer_link_keyword' ) ); ?>" size="78" /> </p> <?php } /** * Callback for ADS Settings Subscription Box. * */ function subscribe_box() { ?> <p><?php _e( 'Do you need custom Wordpress themes for your niche blogs? <a href="http://www.premadethemes.com" target="_blank">Visit us now</a>!', 'genesis' ); ?></p> <?php } }