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/custom_shorts.php |
<?php /** * Defines shortcodes functions, primarily intended to be used in embedding changeable affiliate links. * * <code>[footer_something]</code> * <code>[footer_something before="<em>" after="</em>" foo="bar"]</code> * * @Custom Made by PreMadeThemes * @link http://www.premadethemes.com/ */ /*-----------------------------------------------------------------------------------*/ /* Home Link /*-----------------------------------------------------------------------------------*/ function genesis_footer_home_shortcode( $atts ) { $defaults = array( 'after' => '', 'before' => '', 'url' => HOME_URL . '/', 'bname' => get_bloginfo('name'), ); $atts = shortcode_atts( $defaults, $atts ); $output = sprintf( '%s<a href="%s" title="%s">%s</a>%s', $atts['before'], esc_url( $atts['url']), $atts['bname'], $atts['bname'], $atts['after'] ); return apply_filters( 'genesis_footer_home_shortcode', $output, $atts ); } add_shortcode( 'footer_home_link', 'genesis_footer_home_shortcode' ); /*-----------------------------------------------------------------------------------*/ /* Privacy Link /*-----------------------------------------------------------------------------------*/ function genesis_footer_privacy_shortcode( $atts ) { $defaults = array( 'after' => '', 'before' => '', 'url' => HOME_URL . '/', 'extn' => 'privacy', 'nofollow' => true, 'text' => __( 'Privacy Policy', 'genesis' ), ); $atts = shortcode_atts( $defaults, $atts ); $nofollow = $atts['nofollow'] ? 'rel="nofollow"' : ''; $output = sprintf( '%s<a href="%s%s" %s>%s</a>%s', $atts['before'], esc_url( $atts['url']), $atts['extn'], $nofollow, $atts['text'], $atts['after'] ); return apply_filters( 'genesis_footer_privacy_shortcode', $output, $atts ); } add_shortcode( 'footer_privacy_link', 'genesis_footer_privacy_shortcode' ); /*-----------------------------------------------------------------------------------*/ /* TOS Link /*-----------------------------------------------------------------------------------*/ function genesis_footer_tos_shortcode( $atts ) { $defaults = array( 'after' => '', 'before' => '', 'url' => HOME_URL . '/', 'extn' => 'tos', 'nofollow' => true, 'text' => __( 'Terms of Service', 'genesis' ), ); $atts = shortcode_atts( $defaults, $atts ); $nofollow = $atts['nofollow'] ? 'rel="nofollow"' : ''; $output = sprintf( '%s<a href="%s%s" %s>%s</a>%s', $atts['before'], esc_url( $atts['url']), $atts['extn'], $nofollow, $atts['text'], $atts['after'] ); return apply_filters( 'genesis_footer_tos_shortcode', $output, $atts ); } add_shortcode( 'footer_tos_link', 'genesis_footer_tos_shortcode' ); /*-----------------------------------------------------------------------------------*/ /* Footer Link /*-----------------------------------------------------------------------------------*/ function genesis_footer_pmniches_link_shortcode( $atts ) { $defaults = array( 'after' => '', 'before' => '', 'linkurl' => genesis_get_option('footer_link_url', 'millionaire'), 'linkname' => genesis_get_option('footer_link_keyword', 'millionaire'), ); $atts = shortcode_atts( $defaults, $atts ); $output = sprintf( '%s<a href="%s" title="%s">%s</a>%s', $atts['before'], $atts['linkurl'], $atts['linkname'], $atts['linkname'], $atts['after'] ); return apply_filters( 'genesis_footer_pmniches_link_shortcode', $output, $atts ); } add_shortcode( 'footer_pmniches_link', 'genesis_footer_pmniches_link_shortcode' ); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #1 **** /*-----------------------------------------------------------------------------------*/ function aff1Link() { return genesis_get_option('aff1_link', 'millionaire'); } add_shortcode('aff1link', 'aff1Link'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #1 Title/Alt Tag /*-----------------------------------------------------------------------------------*/ function aff1tag() { return genesis_get_option('aff1_title_tag', 'millionaire'); } add_shortcode('aff1tag', 'aff1tag'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #1 Banner URL #1 - e.g. 300x250 /*-----------------------------------------------------------------------------------*/ function aff1Banner1() { return genesis_get_option('aff1_banner_url_1', 'millionaire'); } add_shortcode('aff1banner1', 'aff1Banner1'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #1 Banner URL #2 - e.g. 125x125 /*-----------------------------------------------------------------------------------*/ function aff1Banner2() { return genesis_get_option('aff1_banner_url_2', 'millionaire'); } add_shortcode('aff1banner2', 'aff1Banner2'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #1 Banner URL #3 - e.g. 468x60 /*-----------------------------------------------------------------------------------*/ function aff1Banner3() { return genesis_get_option('aff1_banner_url_3', 'millionaire'); } add_shortcode('aff1banner3', 'aff1Banner3'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #2 /*-----------------------------------------------------------------------------------*/ function aff2Link() { return genesis_get_option('aff2_link', 'millionaire'); } add_shortcode('aff2link', 'aff2Link'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #2 Title/Alt Tag /*-----------------------------------------------------------------------------------*/ function aff2tag() { return genesis_get_option('aff2_title_tag', 'millionaire'); } add_shortcode('aff2tag', 'aff2tag'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #2 Banner URL #1 - e.g. 300x250 /*-----------------------------------------------------------------------------------*/ function aff2Banner1() { return genesis_get_option('aff2_banner_url_1', 'millionaire'); } add_shortcode('aff2banner1', 'aff2Banner1'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #2 Banner URL #2 - e.g. 125x125 /*-----------------------------------------------------------------------------------*/ function aff2Banner2() { return genesis_get_option('aff2_banner_url_2', 'millionaire'); } add_shortcode('aff2banner2', 'aff2Banner2'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #2 Banner URL #3 - e.g. 468x60 /*-----------------------------------------------------------------------------------*/ function aff2Banner3() { return genesis_get_option('aff2_banner_url_3', 'millionaire'); } add_shortcode('aff2banner3', 'aff2Banner3'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #3 /*-----------------------------------------------------------------------------------*/ function aff3Link() { return genesis_get_option('aff3_link', 'millionaire'); } add_shortcode('aff3link', 'aff3Link'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #3 Title/Alt Tag /*-----------------------------------------------------------------------------------*/ function aff3tag() { return genesis_get_option('aff3_title_tag', 'millionaire'); } add_shortcode('aff3tag', 'aff3tag'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #3 Banner URL #1 - e.g. 300x250 /*-----------------------------------------------------------------------------------*/ function aff3Banner1() { return genesis_get_option('aff3_banner_url_1', 'millionaire'); } add_shortcode('aff3banner1', 'aff3Banner1'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #3 Banner URL #2 - e.g. 125x125 /*-----------------------------------------------------------------------------------*/ function aff3Banner2() { return genesis_get_option('aff3_banner_url_2', 'millionaire'); } add_shortcode('aff3banner2', 'aff3Banner2'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #3 Banner URL #3 - e.g. 468x60 /*-----------------------------------------------------------------------------------*/ function aff3Banner3() { return genesis_get_option('aff3_banner_url_3', 'millionaire'); } add_shortcode('aff3banner3', 'aff3Banner3'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #4 /*-----------------------------------------------------------------------------------*/ function aff4Link() { return genesis_get_option('aff4_link', 'millionaire'); } add_shortcode('aff4link', 'aff4Link'); /*-----------------------------------------------------------------------------------*/ /* Affiliate URL #4 Title/Alt Tag /*-----------------------------------------------------------------------------------*/ function aff4tag() { return genesis_get_option('aff4_title_tag', 'millionaire'); } add_shortcode('aff4tag', 'aff4tag'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #4 Banner URL #1 - e.g. 300x250 /*-----------------------------------------------------------------------------------*/ function aff4Banner1() { return genesis_get_option('aff4_banner_url_1', 'millionaire'); } add_shortcode('aff4banner1', 'aff4Banner1'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #4 Banner URL #2 - e.g. 125x125 /*-----------------------------------------------------------------------------------*/ function aff4Banner2() { return genesis_get_option('aff4_banner_url_2', 'millionaire'); } add_shortcode('aff4banner2', 'aff4Banner2'); /*-----------------------------------------------------------------------------------*/ /* Affiliate #4 Banner URL #3 - e.g. 468x60 /*-----------------------------------------------------------------------------------*/ function aff4Banner3() { return genesis_get_option('aff4_banner_url_3', 'millionaire'); } add_shortcode('aff4banner3', 'aff4Banner3'); /*-----------------------------------------------------------------------------------*/ /* Header Banner Affiliate URL /*-----------------------------------------------------------------------------------*/ function headeraffurl() { return genesis_get_option('ad_top_url', 'millionaire'); } add_shortcode('headeraffurl', 'headeraffurl'); /*-----------------------------------------------------------------------------------*/ /* Header Banner Image URL /*-----------------------------------------------------------------------------------*/ function headerimgurl() { return genesis_get_option('ad_top_image', 'millionaire'); } add_shortcode('headerimgurl', 'headerimgurl'); /*-----------------------------------------------------------------------------------*/ /* Header Banner ALT Tag /*-----------------------------------------------------------------------------------*/ function headeralttag() { return genesis_get_option('ad_top_alt_tag', 'millionaire'); } add_shortcode('headeralttag', 'headeralttag'); /*-----------------------------------------------------------------------------------*/ /* Amazon ID /*-----------------------------------------------------------------------------------*/ function amazonid() { return genesis_get_option('amazon_id', 'millionaire'); } add_shortcode('amazonid', 'amazonid'); /*-----------------------------------------------------------------------------------*/ /* Amazon Keyword /*-----------------------------------------------------------------------------------*/ function amazonkw() { return genesis_get_option('amazon_keyword', 'millionaire'); } add_shortcode('amazonkw', 'amazonkw'); /*-----------------------------------------------------------------------------------*/ /* Clickbank ID /*-----------------------------------------------------------------------------------*/ function clickbankid() { return genesis_get_option('clickbank_id', 'millionaire'); } add_shortcode('clickbankid', 'clickbankid'); /*-----------------------------------------------------------------------------------*/ /* Clickbank Keyword /*-----------------------------------------------------------------------------------*/ function clickbankkw() { return genesis_get_option('clickbank_keyword', 'millionaire'); } add_shortcode('clickbankkw', 'clickbankkw'); /*-----------------------------------------------------------------------------------*/ /* CB Engine ID /*-----------------------------------------------------------------------------------*/ function cbengineid() { return genesis_get_option('cbengine_id', 'millionaire'); } add_shortcode('cbengineid', 'cbengineid'); /*-----------------------------------------------------------------------------------*/ /* Adsense Code #1 /*-----------------------------------------------------------------------------------*/ function adsense1() { return genesis_get_option('adsense_300', 'millionaire'); } add_shortcode('adsense1', 'adsense1'); /*-----------------------------------------------------------------------------------*/ /* Adsense Code #2 /*-----------------------------------------------------------------------------------*/ function adsense2() { return genesis_get_option('adsense_468', 'millionaire'); } add_shortcode('adsense2', 'adsense2'); /*-----------------------------------------------------------------------------------*/ /* Adsense Code #3 /*-----------------------------------------------------------------------------------*/ function adsense3() { return genesis_get_option('adsense_336', 'millionaire'); } add_shortcode('adsense3', 'adsense3');