Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //google ad list sizes
- $td_google_ad_list_sizes = array(
- array('text' => 'Auto' , 'val' => ''),
- array('text' => '120 x 90' , 'val' => '120 x 90'),
- array('text' => '120 x 240' , 'val' => '120 x 240'),
- array('text' => '120 x 600' , 'val' => '120 x 600'),
- array('text' => '125 x 125' , 'val' => '125 x 125'),
- array('text' => '160 x 90' , 'val' => '160 x 90'),
- array('text' => '160 x 600' , 'val' => '160 x 600'),
- array('text' => '180 x 90' , 'val' => '180 x 90'),
- array('text' => '180 x 150' , 'val' => '180 x 150'),
- array('text' => '200 x 90' , 'val' => '200 x 90'),
- array('text' => '200 x 200' , 'val' => '200 x 200'),
- array('text' => '234 x 60' , 'val' => '234 x 60'),
- array('text' => '250 x 250' , 'val' => '250 x 250'),
- array('text' => '320 x 100' , 'val' => '320 x 100'),
- array('text' => '300 x 250' , 'val' => '300 x 250'),
- array('text' => '300 x 600' , 'val' => '300 x 600'),
- array('text' => '320 x 50' , 'val' => '320 x 50'),
- array('text' => '336 x 280' , 'val' => '336 x 280'),
- array('text' => '468 x 15' , 'val' => '468 x 15'),
- array('text' => '468 x 60' , 'val' => '468 x 60'),
- array('text' => '728 x 15' , 'val' => '728 x 15'),
- array('text' => '728 x 90' , 'val' => '728 x 90'),
- array('text' => '970 x 90' , 'val' => '970 x 90'),
- array('text' => '240 x 400 - Regional ad sizes' , 'val' => '240 x 400'),
- array('text' => '250 x 360 - Regional ad sizes' , 'val' => '250 x 360'),
- array('text' => '580 x 400 - Regional ad sizes' , 'val' => '580 x 400'),
- array('text' => '750 x 100 - Regional ad sizes' , 'val' => '750 x 100'),
- array('text' => '750 x 200 - Regional ad sizes' , 'val' => '750 x 200'),
- array('text' => '750 x 300 - Regional ad sizes' , 'val' => '750 x 300'),
- array('text' => '980 x 120 - Regional ad sizes' , 'val' => '980 x 120'),
- array('text' => '930 x 180 - Regional ad sizes' , 'val' => '930 x 180')
- );
- echo td_panel_generator::box_start('Header ad', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR HEADER AD</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p>Google adsense requiers that you do not use big header ads on mobiles!</p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'header',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Sidebar ad', false);?>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Notice:</span>
- <p>To show the ads on the sidebar, please drag the "[taDiv] Ad box" widget to the desired sidebar. </p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR SIDEBAR AD</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'sidebar',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Article top ad', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR ARTICLE TOP AD</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_top',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Article inline ad', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR ARTICLE INLINE AD</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <!-- After paragraph //alignment & after paragraph settings only for inline ads-->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">AFTER PARAGRAPH:</span>
- <p>After how many paragraphs the ad will display. The theme will analyze the content of each post and it will inject an ad after the selected number of paragraphs</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::input(array(
- 'ds' => 'td_option',
- 'option_id' => 'tds_inline_ad_paragraph'
- ));
- ?>
- </div>
- </div>
- <!-- DISPLAY VIEW -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">AD POSITION IN CONTENT</span>
- <p>Ad position in content. Float left, full post width or float right.</p>
- </div>
- <div class="td-box-control-full td-panel-module">
- <?php
- echo td_panel_generator::visual_select_o(array(
- 'ds' => 'td_option',
- 'option_id' => 'tds_inline_ad_align',
- 'values' => array(
- array('text' => '', 'title' => '', 'val' => 'left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/ad-left.png'),
- array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/ad-center.png'),
- array('text' => '', 'title' => '', 'val' => 'right', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/ad-right.png')
- )
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_inline',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Article bottom ad', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR ARTICLE BOTTOM AD</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'content_bottom',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php
- //backround add
- echo td_panel_generator::box_start('Background click Ad', false);?>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Notice:</span>
- <p>Please go to <strong>BACKGROUND</strong> tab and uncheck <strong>STRETCH BACKGROUND</strong> option, for Background Click Ad to work</p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">URL</span>
- <p>Paste your link here like : http://www.domain.com</p>
- </div>
- <div class="td-box-control-full td-panel-input-wide">
- <?php
- echo td_panel_generator::input(array(
- 'ds' => 'td_ads',
- 'item_id' => 'background_click',
- 'option_id' => 'link',
- ));
- ?>
- </div>
- </div>
- <!-- ad taget -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">Open in new window</span>
- <p>If enabled, this option will open the URL in a new window. Leave disabled for the URL to be loaded in current page</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'background_click',
- 'option_id' => 'target',
- 'true_value' => '_blank',
- 'false_value' => ''
- ));
- ?>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Custom ad 1', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR CUSTOM AD 1</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_1',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Custom ad 2', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR CUSTOM AD 2</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_2',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();?>
- <?php echo td_panel_generator::box_start('Custom ad 3', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR CUSTOM AD 3</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_3',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end(); ?>
- <?php echo td_panel_generator::box_start('Custom ad 4', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR CUSTOM AD 4</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_4',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end(); ?>
- <?php echo td_panel_generator::box_start('Custom ad 5', false);?>
- <!-- ad box code -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">YOUR CUSTOM AD 5</span>
- <p>Paste your ad code here. Google adsense will be made responsive automatically. <br><br> To add non adsense responsive ads, <br> <a target="_blank" href="http://forum.tagdiv.com/ads-system-full-guide/">click here</a> (last paragraph)</p>
- </div>
- <div class="td-box-control-full">
- <?php
- echo td_panel_generator::textarea(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'ad_code',
- ));
- ?>
- </div>
- </div>
- <div class="td-box-row">
- <div class="td-box-description td-box-full">
- <span class="td-box-title">Advance usage:</span>
- <p>If you leave the AdSense size boxes on Auto, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads-system-full-guide/" target="_blank">link</a></p>
- </div>
- <div class="td-box-row-margin-bottom"></div>
- </div>
- <!-- disable ad on monitor -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'disable_m',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'm_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on tablet portrait -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'disable_tp',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'tp_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <!-- disable ad on phones -->
- <div class="td-box-row">
- <div class="td-box-description">
- <span class="td-box-title">DISABLE ON PHONE</span>
- <p></p>
- </div>
- <div class="td-box-control-full">
- <span>
- <?php
- echo td_panel_generator::checkbox(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'disable_p',
- 'true_value' => 'yes',
- 'false_value' => ''
- ));
- ?>
- </span>
- <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
- <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
- <span class="td-content-float-right">
- <?php
- echo td_panel_generator::dropdown(array(
- 'ds' => 'td_ads',
- 'item_id' => 'custom_ad_5',
- 'option_id' => 'p_size',
- 'values' => $td_google_ad_list_sizes
- ));
- ?>
- </span>
- </div>
- </div>
- <?php echo td_panel_generator::box_end();
Advertisement
Add Comment
Please, Sign In to add comment