Guest User

Untitled

a guest
Mar 30th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.12 KB | None | 0 0
  1. <?php
  2. //google ad list sizes
  3. $td_google_ad_list_sizes = array(
  4. array('text' => 'Auto' , 'val' => ''),
  5. array('text' => '120 x 90' , 'val' => '120 x 90'),
  6. array('text' => '120 x 240' , 'val' => '120 x 240'),
  7. array('text' => '120 x 600' , 'val' => '120 x 600'),
  8. array('text' => '125 x 125' , 'val' => '125 x 125'),
  9. array('text' => '160 x 90' , 'val' => '160 x 90'),
  10. array('text' => '160 x 600' , 'val' => '160 x 600'),
  11. array('text' => '180 x 90' , 'val' => '180 x 90'),
  12. array('text' => '180 x 150' , 'val' => '180 x 150'),
  13. array('text' => '200 x 90' , 'val' => '200 x 90'),
  14. array('text' => '200 x 200' , 'val' => '200 x 200'),
  15. array('text' => '234 x 60' , 'val' => '234 x 60'),
  16. array('text' => '250 x 250' , 'val' => '250 x 250'),
  17. array('text' => '320 x 100' , 'val' => '320 x 100'),
  18. array('text' => '300 x 250' , 'val' => '300 x 250'),
  19. array('text' => '300 x 600' , 'val' => '300 x 600'),
  20. array('text' => '320 x 50' , 'val' => '320 x 50'),
  21. array('text' => '336 x 280' , 'val' => '336 x 280'),
  22. array('text' => '468 x 15' , 'val' => '468 x 15'),
  23. array('text' => '468 x 60' , 'val' => '468 x 60'),
  24. array('text' => '728 x 15' , 'val' => '728 x 15'),
  25. array('text' => '728 x 90' , 'val' => '728 x 90'),
  26. array('text' => '970 x 90' , 'val' => '970 x 90'),
  27. array('text' => '240 x 400 - Regional ad sizes' , 'val' => '240 x 400'),
  28. array('text' => '250 x 360 - Regional ad sizes' , 'val' => '250 x 360'),
  29. array('text' => '580 x 400 - Regional ad sizes' , 'val' => '580 x 400'),
  30. array('text' => '750 x 100 - Regional ad sizes' , 'val' => '750 x 100'),
  31. array('text' => '750 x 200 - Regional ad sizes' , 'val' => '750 x 200'),
  32. array('text' => '750 x 300 - Regional ad sizes' , 'val' => '750 x 300'),
  33. array('text' => '980 x 120 - Regional ad sizes' , 'val' => '980 x 120'),
  34. array('text' => '930 x 180 - Regional ad sizes' , 'val' => '930 x 180')
  35. );
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. echo td_panel_generator::box_start('Header ad', false);?>
  46. <!-- ad box code -->
  47. <div class="td-box-row">
  48. <div class="td-box-description">
  49. <span class="td-box-title">YOUR HEADER AD</span>
  50. <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>
  51. </div>
  52. <div class="td-box-control-full">
  53. <?php
  54. echo td_panel_generator::textarea(array(
  55. 'ds' => 'td_ads',
  56. 'item_id' => 'header',
  57. 'option_id' => 'ad_code',
  58. ));
  59. ?>
  60. </div>
  61. </div>
  62.  
  63.  
  64. <div class="td-box-row">
  65. <div class="td-box-description td-box-full">
  66. <span class="td-box-title">Advance usage:</span>
  67. <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>
  68. </div>
  69. <div class="td-box-row-margin-bottom"></div>
  70. </div>
  71.  
  72. <!-- disable ad on monitor -->
  73. <div class="td-box-row">
  74. <div class="td-box-description">
  75. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  76. <p></p>
  77. </div>
  78. <div class="td-box-control-full">
  79. <span>
  80. <?php
  81. echo td_panel_generator::checkbox(array(
  82. 'ds' => 'td_ads',
  83. 'item_id' => 'header',
  84. 'option_id' => 'disable_m',
  85. 'true_value' => 'yes',
  86. 'false_value' => ''
  87. ));
  88. ?>
  89. </span>
  90. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  91. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  92. <span class="td-content-float-right">
  93. <?php
  94. echo td_panel_generator::dropdown(array(
  95. 'ds' => 'td_ads',
  96. 'item_id' => 'header',
  97. 'option_id' => 'm_size',
  98. 'values' => $td_google_ad_list_sizes
  99. ));
  100. ?>
  101. </span>
  102. </div>
  103. </div>
  104.  
  105.  
  106.  
  107. <!-- disable ad on tablet portrait -->
  108. <div class="td-box-row">
  109. <div class="td-box-description">
  110. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  111. <p></p>
  112. </div>
  113. <div class="td-box-control-full">
  114. <span>
  115. <?php
  116. echo td_panel_generator::checkbox(array(
  117. 'ds' => 'td_ads',
  118. 'item_id' => 'header',
  119. 'option_id' => 'disable_tp',
  120. 'true_value' => 'yes',
  121. 'false_value' => ''
  122. ));
  123. ?>
  124. </span>
  125. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  126. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  127. <span class="td-content-float-right">
  128. <?php
  129. echo td_panel_generator::dropdown(array(
  130. 'ds' => 'td_ads',
  131. 'item_id' => 'header',
  132. 'option_id' => 'tp_size',
  133. 'values' => $td_google_ad_list_sizes
  134. ));
  135. ?>
  136. </span>
  137.  
  138. </div>
  139. </div>
  140.  
  141.  
  142. <!-- disable ad on phones -->
  143. <div class="td-box-row">
  144. <div class="td-box-description">
  145. <span class="td-box-title">DISABLE ON PHONE</span>
  146. <p>Google adsense requiers that you do not use big header ads on mobiles!</p>
  147. </div>
  148. <div class="td-box-control-full">
  149. <span>
  150. <?php
  151. echo td_panel_generator::checkbox(array(
  152. 'ds' => 'td_ads',
  153. 'item_id' => 'header',
  154. 'option_id' => 'disable_p',
  155. 'true_value' => 'yes',
  156. 'false_value' => ''
  157. ));
  158. ?>
  159. </span>
  160. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  161. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  162. <span class="td-content-float-right">
  163. <?php
  164. echo td_panel_generator::dropdown(array(
  165. 'ds' => 'td_ads',
  166. 'item_id' => 'header',
  167. 'option_id' => 'p_size',
  168. 'values' => $td_google_ad_list_sizes
  169. ));
  170. ?>
  171. </span>
  172.  
  173. </div>
  174. </div>
  175. <?php echo td_panel_generator::box_end();?>
  176.  
  177.  
  178.  
  179.  
  180. <?php echo td_panel_generator::box_start('Sidebar ad', false);?>
  181.  
  182. <div class="td-box-row">
  183. <div class="td-box-description td-box-full">
  184. <span class="td-box-title">Notice:</span>
  185. <p>To show the ads on the sidebar, please drag the "[taDiv] Ad box" widget to the desired sidebar. </p>
  186. </div>
  187. <div class="td-box-row-margin-bottom"></div>
  188. </div>
  189.  
  190. <!-- ad box code -->
  191. <div class="td-box-row">
  192. <div class="td-box-description">
  193. <span class="td-box-title">YOUR SIDEBAR AD</span>
  194. <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>
  195. </div>
  196. <div class="td-box-control-full">
  197. <?php
  198. echo td_panel_generator::textarea(array(
  199. 'ds' => 'td_ads',
  200. 'item_id' => 'sidebar',
  201. 'option_id' => 'ad_code',
  202. ));
  203. ?>
  204. </div>
  205. </div>
  206.  
  207.  
  208. <div class="td-box-row">
  209. <div class="td-box-description td-box-full">
  210. <span class="td-box-title">Advance usage:</span>
  211. <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>
  212. </div>
  213. <div class="td-box-row-margin-bottom"></div>
  214. </div>
  215.  
  216.  
  217. <!-- disable ad on monitor -->
  218. <div class="td-box-row">
  219. <div class="td-box-description">
  220. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  221. <p></p>
  222. </div>
  223. <div class="td-box-control-full">
  224. <span>
  225. <?php
  226. echo td_panel_generator::checkbox(array(
  227. 'ds' => 'td_ads',
  228. 'item_id' => 'sidebar',
  229. 'option_id' => 'disable_m',
  230. 'true_value' => 'yes',
  231. 'false_value' => ''
  232. ));
  233. ?>
  234. </span>
  235. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  236. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  237. <span class="td-content-float-right">
  238. <?php
  239. echo td_panel_generator::dropdown(array(
  240. 'ds' => 'td_ads',
  241. 'item_id' => 'sidebar',
  242. 'option_id' => 'm_size',
  243. 'values' => $td_google_ad_list_sizes
  244. ));
  245. ?>
  246. </span>
  247.  
  248. </div>
  249. </div>
  250.  
  251.  
  252.  
  253.  
  254. <!-- disable ad on tablet portrait -->
  255. <div class="td-box-row">
  256. <div class="td-box-description">
  257. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  258. <p></p>
  259. </div>
  260. <div class="td-box-control-full">
  261. <span>
  262. <?php
  263. echo td_panel_generator::checkbox(array(
  264. 'ds' => 'td_ads',
  265. 'item_id' => 'sidebar',
  266. 'option_id' => 'disable_tp',
  267. 'true_value' => 'yes',
  268. 'false_value' => ''
  269. ));
  270. ?>
  271. </span>
  272. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  273. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  274. <span class="td-content-float-right">
  275. <?php
  276. echo td_panel_generator::dropdown(array(
  277. 'ds' => 'td_ads',
  278. 'item_id' => 'sidebar',
  279. 'option_id' => 'tp_size',
  280. 'values' => $td_google_ad_list_sizes
  281. ));
  282. ?>
  283. </span>
  284.  
  285. </div>
  286. </div>
  287.  
  288.  
  289. <!-- disable ad on phones -->
  290. <div class="td-box-row">
  291. <div class="td-box-description">
  292. <span class="td-box-title">DISABLE ON PHONE</span>
  293. <p></p>
  294. </div>
  295. <div class="td-box-control-full">
  296. <span>
  297. <?php
  298. echo td_panel_generator::checkbox(array(
  299. 'ds' => 'td_ads',
  300. 'item_id' => 'sidebar',
  301. 'option_id' => 'disable_p',
  302. 'true_value' => 'yes',
  303. 'false_value' => ''
  304. ));
  305. ?>
  306. </span>
  307. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  308. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  309. <span class="td-content-float-right">
  310. <?php
  311. echo td_panel_generator::dropdown(array(
  312. 'ds' => 'td_ads',
  313. 'item_id' => 'sidebar',
  314. 'option_id' => 'p_size',
  315. 'values' => $td_google_ad_list_sizes
  316. ));
  317. ?>
  318. </span>
  319. </div>
  320. </div>
  321.  
  322. <?php echo td_panel_generator::box_end();?>
  323.  
  324.  
  325.  
  326. <?php echo td_panel_generator::box_start('Article top ad', false);?>
  327.  
  328. <!-- ad box code -->
  329. <div class="td-box-row">
  330. <div class="td-box-description">
  331. <span class="td-box-title">YOUR ARTICLE TOP AD</span>
  332. <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>
  333. </div>
  334. <div class="td-box-control-full">
  335. <?php
  336. echo td_panel_generator::textarea(array(
  337. 'ds' => 'td_ads',
  338. 'item_id' => 'content_top',
  339. 'option_id' => 'ad_code',
  340. ));
  341. ?>
  342. </div>
  343. </div>
  344.  
  345.  
  346. <div class="td-box-row">
  347. <div class="td-box-description td-box-full">
  348. <span class="td-box-title">Advance usage:</span>
  349. <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>
  350. </div>
  351. <div class="td-box-row-margin-bottom"></div>
  352. </div>
  353.  
  354.  
  355. <!-- disable ad on monitor -->
  356. <div class="td-box-row">
  357. <div class="td-box-description">
  358. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  359. <p></p>
  360. </div>
  361. <div class="td-box-control-full">
  362. <span>
  363. <?php
  364. echo td_panel_generator::checkbox(array(
  365. 'ds' => 'td_ads',
  366. 'item_id' => 'content_top',
  367. 'option_id' => 'disable_m',
  368. 'true_value' => 'yes',
  369. 'false_value' => ''
  370. ));
  371. ?>
  372. </span>
  373. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  374. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  375. <span class="td-content-float-right">
  376. <?php
  377. echo td_panel_generator::dropdown(array(
  378. 'ds' => 'td_ads',
  379. 'item_id' => 'content_top',
  380. 'option_id' => 'm_size',
  381. 'values' => $td_google_ad_list_sizes
  382. ));
  383. ?>
  384. </span>
  385.  
  386. </div>
  387. </div>
  388.  
  389.  
  390.  
  391.  
  392. <!-- disable ad on tablet portrait -->
  393. <div class="td-box-row">
  394. <div class="td-box-description">
  395. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  396. <p></p>
  397. </div>
  398. <div class="td-box-control-full">
  399. <span>
  400. <?php
  401. echo td_panel_generator::checkbox(array(
  402. 'ds' => 'td_ads',
  403. 'item_id' => 'content_top',
  404. 'option_id' => 'disable_tp',
  405. 'true_value' => 'yes',
  406. 'false_value' => ''
  407. ));
  408. ?>
  409. </span>
  410. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  411. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  412. <span class="td-content-float-right">
  413. <?php
  414. echo td_panel_generator::dropdown(array(
  415. 'ds' => 'td_ads',
  416. 'item_id' => 'content_top',
  417. 'option_id' => 'tp_size',
  418. 'values' => $td_google_ad_list_sizes
  419. ));
  420. ?>
  421. </span>
  422.  
  423. </div>
  424. </div>
  425.  
  426.  
  427. <!-- disable ad on phones -->
  428. <div class="td-box-row">
  429. <div class="td-box-description">
  430. <span class="td-box-title">DISABLE ON PHONE</span>
  431. <p></p>
  432. </div>
  433. <div class="td-box-control-full">
  434. <span>
  435. <?php
  436. echo td_panel_generator::checkbox(array(
  437. 'ds' => 'td_ads',
  438. 'item_id' => 'content_top',
  439. 'option_id' => 'disable_p',
  440. 'true_value' => 'yes',
  441. 'false_value' => ''
  442. ));
  443. ?>
  444. </span>
  445. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  446. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  447. <span class="td-content-float-right">
  448. <?php
  449. echo td_panel_generator::dropdown(array(
  450. 'ds' => 'td_ads',
  451. 'item_id' => 'content_top',
  452. 'option_id' => 'p_size',
  453. 'values' => $td_google_ad_list_sizes
  454. ));
  455. ?>
  456. </span>
  457.  
  458. </div>
  459. </div>
  460.  
  461. <?php echo td_panel_generator::box_end();?>
  462.  
  463.  
  464.  
  465. <?php echo td_panel_generator::box_start('Article inline ad', false);?>
  466.  
  467. <!-- ad box code -->
  468. <div class="td-box-row">
  469. <div class="td-box-description">
  470. <span class="td-box-title">YOUR ARTICLE INLINE AD</span>
  471. <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>
  472. </div>
  473. <div class="td-box-control-full">
  474. <?php
  475. echo td_panel_generator::textarea(array(
  476. 'ds' => 'td_ads',
  477. 'item_id' => 'content_inline',
  478. 'option_id' => 'ad_code',
  479. ));
  480. ?>
  481. </div>
  482. </div>
  483.  
  484. <!-- After paragraph //alignment & after paragraph settings only for inline ads-->
  485. <div class="td-box-row">
  486. <div class="td-box-description">
  487. <span class="td-box-title">AFTER PARAGRAPH:</span>
  488. <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>
  489. </div>
  490. <div class="td-box-control-full">
  491. <?php
  492. echo td_panel_generator::input(array(
  493. 'ds' => 'td_option',
  494. 'option_id' => 'tds_inline_ad_paragraph'
  495. ));
  496. ?>
  497. </div>
  498. </div>
  499.  
  500.  
  501. <!-- DISPLAY VIEW -->
  502. <div class="td-box-row">
  503. <div class="td-box-description">
  504. <span class="td-box-title">AD POSITION IN CONTENT</span>
  505. <p>Ad position in content. Float left, full post width or float right.</p>
  506. </div>
  507. <div class="td-box-control-full td-panel-module">
  508. <?php
  509. echo td_panel_generator::visual_select_o(array(
  510. 'ds' => 'td_option',
  511. 'option_id' => 'tds_inline_ad_align',
  512. 'values' => array(
  513. array('text' => '', 'title' => '', 'val' => 'left', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/ad-left.png'),
  514. array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/ad-center.png'),
  515. array('text' => '', 'title' => '', 'val' => 'right', 'img' => get_template_directory_uri() . '/includes/wp_booster/wp-admin/images/panel/ad-right.png')
  516. )
  517. ));
  518. ?>
  519. </div>
  520. </div>
  521.  
  522.  
  523. <div class="td-box-row">
  524. <div class="td-box-description td-box-full">
  525. <span class="td-box-title">Advance usage:</span>
  526. <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>
  527. </div>
  528. <div class="td-box-row-margin-bottom"></div>
  529. </div>
  530.  
  531.  
  532. <!-- disable ad on monitor -->
  533. <div class="td-box-row">
  534. <div class="td-box-description">
  535. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  536. <p></p>
  537. </div>
  538. <div class="td-box-control-full">
  539. <span>
  540. <?php
  541. echo td_panel_generator::checkbox(array(
  542. 'ds' => 'td_ads',
  543. 'item_id' => 'content_inline',
  544. 'option_id' => 'disable_m',
  545. 'true_value' => 'yes',
  546. 'false_value' => ''
  547. ));
  548. ?>
  549. </span>
  550. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  551. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  552. <span class="td-content-float-right">
  553. <?php
  554. echo td_panel_generator::dropdown(array(
  555. 'ds' => 'td_ads',
  556. 'item_id' => 'content_inline',
  557. 'option_id' => 'm_size',
  558. 'values' => $td_google_ad_list_sizes
  559. ));
  560. ?>
  561. </span>
  562.  
  563. </div>
  564. </div>
  565.  
  566.  
  567.  
  568.  
  569. <!-- disable ad on tablet portrait -->
  570. <div class="td-box-row">
  571. <div class="td-box-description">
  572. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  573. <p></p>
  574. </div>
  575. <div class="td-box-control-full">
  576. <span>
  577. <?php
  578. echo td_panel_generator::checkbox(array(
  579. 'ds' => 'td_ads',
  580. 'item_id' => 'content_inline',
  581. 'option_id' => 'disable_tp',
  582. 'true_value' => 'yes',
  583. 'false_value' => ''
  584. ));
  585. ?>
  586. </span>
  587. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  588. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  589. <span class="td-content-float-right">
  590. <?php
  591. echo td_panel_generator::dropdown(array(
  592. 'ds' => 'td_ads',
  593. 'item_id' => 'content_inline',
  594. 'option_id' => 'tp_size',
  595. 'values' => $td_google_ad_list_sizes
  596. ));
  597. ?>
  598. </span>
  599.  
  600. </div>
  601. </div>
  602.  
  603.  
  604. <!-- disable ad on phones -->
  605. <div class="td-box-row">
  606. <div class="td-box-description">
  607. <span class="td-box-title">DISABLE ON PHONE</span>
  608. <p></p>
  609. </div>
  610. <div class="td-box-control-full">
  611. <span>
  612. <?php
  613. echo td_panel_generator::checkbox(array(
  614. 'ds' => 'td_ads',
  615. 'item_id' => 'content_inline',
  616. 'option_id' => 'disable_p',
  617. 'true_value' => 'yes',
  618. 'false_value' => ''
  619. ));
  620. ?>
  621. </span>
  622. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  623. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  624. <span class="td-content-float-right">
  625. <?php
  626. echo td_panel_generator::dropdown(array(
  627. 'ds' => 'td_ads',
  628. 'item_id' => 'content_inline',
  629. 'option_id' => 'p_size',
  630. 'values' => $td_google_ad_list_sizes
  631. ));
  632. ?>
  633. </span>
  634.  
  635. </div>
  636. </div>
  637.  
  638. <?php echo td_panel_generator::box_end();?>
  639.  
  640.  
  641.  
  642. <?php echo td_panel_generator::box_start('Article bottom ad', false);?>
  643.  
  644. <!-- ad box code -->
  645. <div class="td-box-row">
  646. <div class="td-box-description">
  647. <span class="td-box-title">YOUR ARTICLE BOTTOM AD</span>
  648. <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>
  649. </div>
  650. <div class="td-box-control-full">
  651. <?php
  652. echo td_panel_generator::textarea(array(
  653. 'ds' => 'td_ads',
  654. 'item_id' => 'content_bottom',
  655. 'option_id' => 'ad_code',
  656. ));
  657. ?>
  658. </div>
  659. </div>
  660.  
  661.  
  662. <div class="td-box-row">
  663. <div class="td-box-description td-box-full">
  664. <span class="td-box-title">Advance usage:</span>
  665. <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>
  666. </div>
  667. <div class="td-box-row-margin-bottom"></div>
  668. </div>
  669.  
  670.  
  671. <!-- disable ad on monitor -->
  672. <div class="td-box-row">
  673. <div class="td-box-description">
  674. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  675. <p></p>
  676. </div>
  677. <div class="td-box-control-full">
  678. <span>
  679. <?php
  680. echo td_panel_generator::checkbox(array(
  681. 'ds' => 'td_ads',
  682. 'item_id' => 'content_bottom',
  683. 'option_id' => 'disable_m',
  684. 'true_value' => 'yes',
  685. 'false_value' => ''
  686. ));
  687. ?>
  688. </span>
  689. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  690. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  691. <span class="td-content-float-right">
  692. <?php
  693. echo td_panel_generator::dropdown(array(
  694. 'ds' => 'td_ads',
  695. 'item_id' => 'content_bottom',
  696. 'option_id' => 'm_size',
  697. 'values' => $td_google_ad_list_sizes
  698. ));
  699. ?>
  700. </span>
  701.  
  702. </div>
  703. </div>
  704.  
  705.  
  706.  
  707.  
  708. <!-- disable ad on tablet portrait -->
  709. <div class="td-box-row">
  710. <div class="td-box-description">
  711. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  712. <p></p>
  713. </div>
  714. <div class="td-box-control-full">
  715. <span>
  716. <?php
  717. echo td_panel_generator::checkbox(array(
  718. 'ds' => 'td_ads',
  719. 'item_id' => 'content_bottom',
  720. 'option_id' => 'disable_tp',
  721. 'true_value' => 'yes',
  722. 'false_value' => ''
  723. ));
  724. ?>
  725. </span>
  726. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  727. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  728. <span class="td-content-float-right">
  729. <?php
  730. echo td_panel_generator::dropdown(array(
  731. 'ds' => 'td_ads',
  732. 'item_id' => 'content_bottom',
  733. 'option_id' => 'tp_size',
  734. 'values' => $td_google_ad_list_sizes
  735. ));
  736. ?>
  737. </span>
  738.  
  739. </div>
  740. </div>
  741.  
  742.  
  743. <!-- disable ad on phones -->
  744. <div class="td-box-row">
  745. <div class="td-box-description">
  746. <span class="td-box-title">DISABLE ON PHONE</span>
  747. <p></p>
  748. </div>
  749. <div class="td-box-control-full">
  750. <span>
  751. <?php
  752. echo td_panel_generator::checkbox(array(
  753. 'ds' => 'td_ads',
  754. 'item_id' => 'content_bottom',
  755. 'option_id' => 'disable_p',
  756. 'true_value' => 'yes',
  757. 'false_value' => ''
  758. ));
  759. ?>
  760. </span>
  761. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  762. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  763. <span class="td-content-float-right">
  764. <?php
  765. echo td_panel_generator::dropdown(array(
  766. 'ds' => 'td_ads',
  767. 'item_id' => 'content_bottom',
  768. 'option_id' => 'p_size',
  769. 'values' => $td_google_ad_list_sizes
  770. ));
  771. ?>
  772. </span>
  773.  
  774. </div>
  775. </div>
  776.  
  777. <?php echo td_panel_generator::box_end();?>
  778.  
  779.  
  780.  
  781. <?php
  782. //backround add
  783. echo td_panel_generator::box_start('Background click Ad', false);?>
  784.  
  785. <div class="td-box-row">
  786. <div class="td-box-description td-box-full">
  787. <span class="td-box-title">Notice:</span>
  788. <p>Please go to <strong>BACKGROUND</strong> tab and uncheck <strong>STRETCH BACKGROUND</strong> option, for Background Click Ad to work</p>
  789. </div>
  790. <div class="td-box-row-margin-bottom"></div>
  791. </div>
  792.  
  793. <!-- ad box code -->
  794. <div class="td-box-row">
  795. <div class="td-box-description">
  796. <span class="td-box-title">URL</span>
  797. <p>Paste your link here like : http://www.domain.com</p>
  798. </div>
  799. <div class="td-box-control-full td-panel-input-wide">
  800. <?php
  801. echo td_panel_generator::input(array(
  802. 'ds' => 'td_ads',
  803. 'item_id' => 'background_click',
  804. 'option_id' => 'link',
  805. ));
  806. ?>
  807. </div>
  808. </div>
  809.  
  810.  
  811. <!-- ad taget -->
  812. <div class="td-box-row">
  813. <div class="td-box-description">
  814. <span class="td-box-title">Open in new window</span>
  815. <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>
  816. </div>
  817. <div class="td-box-control-full">
  818. <?php
  819. echo td_panel_generator::checkbox(array(
  820. 'ds' => 'td_ads',
  821. 'item_id' => 'background_click',
  822. 'option_id' => 'target',
  823. 'true_value' => '_blank',
  824. 'false_value' => ''
  825. ));
  826. ?>
  827. </div>
  828. </div>
  829.  
  830. <?php echo td_panel_generator::box_end();?>
  831.  
  832.  
  833.  
  834. <?php echo td_panel_generator::box_start('Custom ad 1', false);?>
  835.  
  836.  
  837. <!-- ad box code -->
  838. <div class="td-box-row">
  839. <div class="td-box-description">
  840. <span class="td-box-title">YOUR CUSTOM AD 1</span>
  841. <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>
  842. </div>
  843. <div class="td-box-control-full">
  844. <?php
  845. echo td_panel_generator::textarea(array(
  846. 'ds' => 'td_ads',
  847. 'item_id' => 'custom_ad_1',
  848. 'option_id' => 'ad_code',
  849. ));
  850. ?>
  851. </div>
  852. </div>
  853.  
  854.  
  855. <div class="td-box-row">
  856. <div class="td-box-description td-box-full">
  857. <span class="td-box-title">Advance usage:</span>
  858. <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>
  859. </div>
  860. <div class="td-box-row-margin-bottom"></div>
  861. </div>
  862.  
  863.  
  864. <!-- disable ad on monitor -->
  865. <div class="td-box-row">
  866. <div class="td-box-description">
  867. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  868. <p></p>
  869. </div>
  870. <div class="td-box-control-full">
  871. <span>
  872. <?php
  873. echo td_panel_generator::checkbox(array(
  874. 'ds' => 'td_ads',
  875. 'item_id' => 'custom_ad_1',
  876. 'option_id' => 'disable_m',
  877. 'true_value' => 'yes',
  878. 'false_value' => ''
  879. ));
  880. ?>
  881. </span>
  882. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  883. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  884. <span class="td-content-float-right">
  885. <?php
  886. echo td_panel_generator::dropdown(array(
  887. 'ds' => 'td_ads',
  888. 'item_id' => 'custom_ad_1',
  889. 'option_id' => 'm_size',
  890. 'values' => $td_google_ad_list_sizes
  891. ));
  892. ?>
  893. </span>
  894.  
  895. </div>
  896. </div>
  897.  
  898.  
  899.  
  900.  
  901. <!-- disable ad on tablet portrait -->
  902. <div class="td-box-row">
  903. <div class="td-box-description">
  904. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  905. <p></p>
  906. </div>
  907. <div class="td-box-control-full">
  908. <span>
  909. <?php
  910. echo td_panel_generator::checkbox(array(
  911. 'ds' => 'td_ads',
  912. 'item_id' => 'custom_ad_1',
  913. 'option_id' => 'disable_tp',
  914. 'true_value' => 'yes',
  915. 'false_value' => ''
  916. ));
  917. ?>
  918. </span>
  919. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  920. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  921. <span class="td-content-float-right">
  922. <?php
  923. echo td_panel_generator::dropdown(array(
  924. 'ds' => 'td_ads',
  925. 'item_id' => 'custom_ad_1',
  926. 'option_id' => 'tp_size',
  927. 'values' => $td_google_ad_list_sizes
  928. ));
  929. ?>
  930. </span>
  931.  
  932. </div>
  933. </div>
  934.  
  935.  
  936. <!-- disable ad on phones -->
  937. <div class="td-box-row">
  938. <div class="td-box-description">
  939. <span class="td-box-title">DISABLE ON PHONE</span>
  940. <p></p>
  941. </div>
  942. <div class="td-box-control-full">
  943. <span>
  944. <?php
  945. echo td_panel_generator::checkbox(array(
  946. 'ds' => 'td_ads',
  947. 'item_id' => 'custom_ad_1',
  948. 'option_id' => 'disable_p',
  949. 'true_value' => 'yes',
  950. 'false_value' => ''
  951. ));
  952. ?>
  953. </span>
  954. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  955. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  956. <span class="td-content-float-right">
  957. <?php
  958. echo td_panel_generator::dropdown(array(
  959. 'ds' => 'td_ads',
  960. 'item_id' => 'custom_ad_1',
  961. 'option_id' => 'p_size',
  962. 'values' => $td_google_ad_list_sizes
  963. ));
  964. ?>
  965. </span>
  966.  
  967. </div>
  968. </div>
  969.  
  970. <?php echo td_panel_generator::box_end();?>
  971.  
  972.  
  973.  
  974. <?php echo td_panel_generator::box_start('Custom ad 2', false);?>
  975.  
  976.  
  977. <!-- ad box code -->
  978. <div class="td-box-row">
  979. <div class="td-box-description">
  980. <span class="td-box-title">YOUR CUSTOM AD 2</span>
  981. <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>
  982. </div>
  983. <div class="td-box-control-full">
  984. <?php
  985. echo td_panel_generator::textarea(array(
  986. 'ds' => 'td_ads',
  987. 'item_id' => 'custom_ad_2',
  988. 'option_id' => 'ad_code',
  989. ));
  990. ?>
  991. </div>
  992. </div>
  993.  
  994.  
  995. <div class="td-box-row">
  996. <div class="td-box-description td-box-full">
  997. <span class="td-box-title">Advance usage:</span>
  998. <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>
  999. </div>
  1000. <div class="td-box-row-margin-bottom"></div>
  1001. </div>
  1002.  
  1003.  
  1004. <!-- disable ad on monitor -->
  1005. <div class="td-box-row">
  1006. <div class="td-box-description">
  1007. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1008. <p></p>
  1009. </div>
  1010. <div class="td-box-control-full">
  1011. <span>
  1012. <?php
  1013. echo td_panel_generator::checkbox(array(
  1014. 'ds' => 'td_ads',
  1015. 'item_id' => 'custom_ad_2',
  1016. 'option_id' => 'disable_m',
  1017. 'true_value' => 'yes',
  1018. 'false_value' => ''
  1019. ));
  1020. ?>
  1021. </span>
  1022. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1023. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1024. <span class="td-content-float-right">
  1025. <?php
  1026. echo td_panel_generator::dropdown(array(
  1027. 'ds' => 'td_ads',
  1028. 'item_id' => 'custom_ad_2',
  1029. 'option_id' => 'm_size',
  1030. 'values' => $td_google_ad_list_sizes
  1031. ));
  1032. ?>
  1033. </span>
  1034.  
  1035. </div>
  1036. </div>
  1037.  
  1038.  
  1039.  
  1040.  
  1041. <!-- disable ad on tablet portrait -->
  1042. <div class="td-box-row">
  1043. <div class="td-box-description">
  1044. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1045. <p></p>
  1046. </div>
  1047. <div class="td-box-control-full">
  1048. <span>
  1049. <?php
  1050. echo td_panel_generator::checkbox(array(
  1051. 'ds' => 'td_ads',
  1052. 'item_id' => 'custom_ad_2',
  1053. 'option_id' => 'disable_tp',
  1054. 'true_value' => 'yes',
  1055. 'false_value' => ''
  1056. ));
  1057. ?>
  1058. </span>
  1059. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1060. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1061. <span class="td-content-float-right">
  1062. <?php
  1063. echo td_panel_generator::dropdown(array(
  1064. 'ds' => 'td_ads',
  1065. 'item_id' => 'custom_ad_2',
  1066. 'option_id' => 'tp_size',
  1067. 'values' => $td_google_ad_list_sizes
  1068. ));
  1069. ?>
  1070. </span>
  1071.  
  1072. </div>
  1073. </div>
  1074.  
  1075.  
  1076. <!-- disable ad on phones -->
  1077. <div class="td-box-row">
  1078. <div class="td-box-description">
  1079. <span class="td-box-title">DISABLE ON PHONE</span>
  1080. <p></p>
  1081. </div>
  1082. <div class="td-box-control-full">
  1083. <span>
  1084. <?php
  1085. echo td_panel_generator::checkbox(array(
  1086. 'ds' => 'td_ads',
  1087. 'item_id' => 'custom_ad_2',
  1088. 'option_id' => 'disable_p',
  1089. 'true_value' => 'yes',
  1090. 'false_value' => ''
  1091. ));
  1092. ?>
  1093. </span>
  1094. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1095. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1096. <span class="td-content-float-right">
  1097. <?php
  1098. echo td_panel_generator::dropdown(array(
  1099. 'ds' => 'td_ads',
  1100. 'item_id' => 'custom_ad_2',
  1101. 'option_id' => 'p_size',
  1102. 'values' => $td_google_ad_list_sizes
  1103. ));
  1104. ?>
  1105. </span>
  1106.  
  1107. </div>
  1108. </div>
  1109.  
  1110. <?php echo td_panel_generator::box_end();?>
  1111.  
  1112.  
  1113.  
  1114. <?php echo td_panel_generator::box_start('Custom ad 3', false);?>
  1115.  
  1116.  
  1117. <!-- ad box code -->
  1118. <div class="td-box-row">
  1119. <div class="td-box-description">
  1120. <span class="td-box-title">YOUR CUSTOM AD 3</span>
  1121. <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>
  1122. </div>
  1123. <div class="td-box-control-full">
  1124. <?php
  1125. echo td_panel_generator::textarea(array(
  1126. 'ds' => 'td_ads',
  1127. 'item_id' => 'custom_ad_3',
  1128. 'option_id' => 'ad_code',
  1129. ));
  1130. ?>
  1131. </div>
  1132. </div>
  1133.  
  1134.  
  1135. <div class="td-box-row">
  1136. <div class="td-box-description td-box-full">
  1137. <span class="td-box-title">Advance usage:</span>
  1138. <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>
  1139. </div>
  1140. <div class="td-box-row-margin-bottom"></div>
  1141. </div>
  1142.  
  1143.  
  1144. <!-- disable ad on monitor -->
  1145. <div class="td-box-row">
  1146. <div class="td-box-description">
  1147. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1148. <p></p>
  1149. </div>
  1150. <div class="td-box-control-full">
  1151. <span>
  1152. <?php
  1153. echo td_panel_generator::checkbox(array(
  1154. 'ds' => 'td_ads',
  1155. 'item_id' => 'custom_ad_3',
  1156. 'option_id' => 'disable_m',
  1157. 'true_value' => 'yes',
  1158. 'false_value' => ''
  1159. ));
  1160. ?>
  1161. </span>
  1162. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1163. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1164. <span class="td-content-float-right">
  1165. <?php
  1166. echo td_panel_generator::dropdown(array(
  1167. 'ds' => 'td_ads',
  1168. 'item_id' => 'custom_ad_3',
  1169. 'option_id' => 'm_size',
  1170. 'values' => $td_google_ad_list_sizes
  1171. ));
  1172. ?>
  1173. </span>
  1174.  
  1175. </div>
  1176. </div>
  1177.  
  1178.  
  1179.  
  1180.  
  1181. <!-- disable ad on tablet portrait -->
  1182. <div class="td-box-row">
  1183. <div class="td-box-description">
  1184. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1185. <p></p>
  1186. </div>
  1187. <div class="td-box-control-full">
  1188. <span>
  1189. <?php
  1190. echo td_panel_generator::checkbox(array(
  1191. 'ds' => 'td_ads',
  1192. 'item_id' => 'custom_ad_3',
  1193. 'option_id' => 'disable_tp',
  1194. 'true_value' => 'yes',
  1195. 'false_value' => ''
  1196. ));
  1197. ?>
  1198. </span>
  1199. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1200. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1201. <span class="td-content-float-right">
  1202. <?php
  1203. echo td_panel_generator::dropdown(array(
  1204. 'ds' => 'td_ads',
  1205. 'item_id' => 'custom_ad_3',
  1206. 'option_id' => 'tp_size',
  1207. 'values' => $td_google_ad_list_sizes
  1208. ));
  1209. ?>
  1210. </span>
  1211.  
  1212. </div>
  1213. </div>
  1214.  
  1215.  
  1216. <!-- disable ad on phones -->
  1217. <div class="td-box-row">
  1218. <div class="td-box-description">
  1219. <span class="td-box-title">DISABLE ON PHONE</span>
  1220. <p></p>
  1221. </div>
  1222. <div class="td-box-control-full">
  1223. <span>
  1224. <?php
  1225. echo td_panel_generator::checkbox(array(
  1226. 'ds' => 'td_ads',
  1227. 'item_id' => 'custom_ad_3',
  1228. 'option_id' => 'disable_p',
  1229. 'true_value' => 'yes',
  1230. 'false_value' => ''
  1231. ));
  1232. ?>
  1233. </span>
  1234. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1235. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1236. <span class="td-content-float-right">
  1237. <?php
  1238. echo td_panel_generator::dropdown(array(
  1239. 'ds' => 'td_ads',
  1240. 'item_id' => 'custom_ad_3',
  1241. 'option_id' => 'p_size',
  1242. 'values' => $td_google_ad_list_sizes
  1243. ));
  1244. ?>
  1245. </span>
  1246.  
  1247. </div>
  1248. </div>
  1249.  
  1250. <?php echo td_panel_generator::box_end(); ?>
  1251.  
  1252. <?php echo td_panel_generator::box_start('Custom ad 4', false);?>
  1253.  
  1254.  
  1255. <!-- ad box code -->
  1256. <div class="td-box-row">
  1257. <div class="td-box-description">
  1258. <span class="td-box-title">YOUR CUSTOM AD 4</span>
  1259. <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>
  1260. </div>
  1261. <div class="td-box-control-full">
  1262. <?php
  1263. echo td_panel_generator::textarea(array(
  1264. 'ds' => 'td_ads',
  1265. 'item_id' => 'custom_ad_4',
  1266. 'option_id' => 'ad_code',
  1267. ));
  1268. ?>
  1269. </div>
  1270. </div>
  1271.  
  1272.  
  1273. <div class="td-box-row">
  1274. <div class="td-box-description td-box-full">
  1275. <span class="td-box-title">Advance usage:</span>
  1276. <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>
  1277. </div>
  1278. <div class="td-box-row-margin-bottom"></div>
  1279. </div>
  1280.  
  1281.  
  1282. <!-- disable ad on monitor -->
  1283. <div class="td-box-row">
  1284. <div class="td-box-description">
  1285. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1286. <p></p>
  1287. </div>
  1288. <div class="td-box-control-full">
  1289. <span>
  1290. <?php
  1291. echo td_panel_generator::checkbox(array(
  1292. 'ds' => 'td_ads',
  1293. 'item_id' => 'custom_ad_4',
  1294. 'option_id' => 'disable_m',
  1295. 'true_value' => 'yes',
  1296. 'false_value' => ''
  1297. ));
  1298. ?>
  1299. </span>
  1300. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1301. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1302. <span class="td-content-float-right">
  1303. <?php
  1304. echo td_panel_generator::dropdown(array(
  1305. 'ds' => 'td_ads',
  1306. 'item_id' => 'custom_ad_4',
  1307. 'option_id' => 'm_size',
  1308. 'values' => $td_google_ad_list_sizes
  1309. ));
  1310. ?>
  1311. </span>
  1312.  
  1313. </div>
  1314. </div>
  1315.  
  1316.  
  1317.  
  1318.  
  1319. <!-- disable ad on tablet portrait -->
  1320. <div class="td-box-row">
  1321. <div class="td-box-description">
  1322. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1323. <p></p>
  1324. </div>
  1325. <div class="td-box-control-full">
  1326. <span>
  1327. <?php
  1328. echo td_panel_generator::checkbox(array(
  1329. 'ds' => 'td_ads',
  1330. 'item_id' => 'custom_ad_4',
  1331. 'option_id' => 'disable_tp',
  1332. 'true_value' => 'yes',
  1333. 'false_value' => ''
  1334. ));
  1335. ?>
  1336. </span>
  1337. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1338. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1339. <span class="td-content-float-right">
  1340. <?php
  1341. echo td_panel_generator::dropdown(array(
  1342. 'ds' => 'td_ads',
  1343. 'item_id' => 'custom_ad_4',
  1344. 'option_id' => 'tp_size',
  1345. 'values' => $td_google_ad_list_sizes
  1346. ));
  1347. ?>
  1348. </span>
  1349.  
  1350. </div>
  1351. </div>
  1352.  
  1353.  
  1354. <!-- disable ad on phones -->
  1355. <div class="td-box-row">
  1356. <div class="td-box-description">
  1357. <span class="td-box-title">DISABLE ON PHONE</span>
  1358. <p></p>
  1359. </div>
  1360. <div class="td-box-control-full">
  1361. <span>
  1362. <?php
  1363. echo td_panel_generator::checkbox(array(
  1364. 'ds' => 'td_ads',
  1365. 'item_id' => 'custom_ad_4',
  1366. 'option_id' => 'disable_p',
  1367. 'true_value' => 'yes',
  1368. 'false_value' => ''
  1369. ));
  1370. ?>
  1371. </span>
  1372. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1373. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1374. <span class="td-content-float-right">
  1375. <?php
  1376. echo td_panel_generator::dropdown(array(
  1377. 'ds' => 'td_ads',
  1378. 'item_id' => 'custom_ad_4',
  1379. 'option_id' => 'p_size',
  1380. 'values' => $td_google_ad_list_sizes
  1381. ));
  1382. ?>
  1383. </span>
  1384.  
  1385. </div>
  1386. </div>
  1387.  
  1388. <?php echo td_panel_generator::box_end(); ?>
  1389.  
  1390. <?php echo td_panel_generator::box_start('Custom ad 5', false);?>
  1391.  
  1392.  
  1393. <!-- ad box code -->
  1394. <div class="td-box-row">
  1395. <div class="td-box-description">
  1396. <span class="td-box-title">YOUR CUSTOM AD 5</span>
  1397. <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>
  1398. </div>
  1399. <div class="td-box-control-full">
  1400. <?php
  1401. echo td_panel_generator::textarea(array(
  1402. 'ds' => 'td_ads',
  1403. 'item_id' => 'custom_ad_5',
  1404. 'option_id' => 'ad_code',
  1405. ));
  1406. ?>
  1407. </div>
  1408. </div>
  1409.  
  1410.  
  1411. <div class="td-box-row">
  1412. <div class="td-box-description td-box-full">
  1413. <span class="td-box-title">Advance usage:</span>
  1414. <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>
  1415. </div>
  1416. <div class="td-box-row-margin-bottom"></div>
  1417. </div>
  1418.  
  1419.  
  1420. <!-- disable ad on monitor -->
  1421. <div class="td-box-row">
  1422. <div class="td-box-description">
  1423. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1424. <p></p>
  1425. </div>
  1426. <div class="td-box-control-full">
  1427. <span>
  1428. <?php
  1429. echo td_panel_generator::checkbox(array(
  1430. 'ds' => 'td_ads',
  1431. 'item_id' => 'custom_ad_5',
  1432. 'option_id' => 'disable_m',
  1433. 'true_value' => 'yes',
  1434. 'false_value' => ''
  1435. ));
  1436. ?>
  1437. </span>
  1438. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1439. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1440. <span class="td-content-float-right">
  1441. <?php
  1442. echo td_panel_generator::dropdown(array(
  1443. 'ds' => 'td_ads',
  1444. 'item_id' => 'custom_ad_5',
  1445. 'option_id' => 'm_size',
  1446. 'values' => $td_google_ad_list_sizes
  1447. ));
  1448. ?>
  1449. </span>
  1450.  
  1451. </div>
  1452. </div>
  1453.  
  1454.  
  1455.  
  1456.  
  1457. <!-- disable ad on tablet portrait -->
  1458. <div class="td-box-row">
  1459. <div class="td-box-description">
  1460. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1461. <p></p>
  1462. </div>
  1463. <div class="td-box-control-full">
  1464. <span>
  1465. <?php
  1466. echo td_panel_generator::checkbox(array(
  1467. 'ds' => 'td_ads',
  1468. 'item_id' => 'custom_ad_5',
  1469. 'option_id' => 'disable_tp',
  1470. 'true_value' => 'yes',
  1471. 'false_value' => ''
  1472. ));
  1473. ?>
  1474. </span>
  1475. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1476. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1477. <span class="td-content-float-right">
  1478. <?php
  1479. echo td_panel_generator::dropdown(array(
  1480. 'ds' => 'td_ads',
  1481. 'item_id' => 'custom_ad_5',
  1482. 'option_id' => 'tp_size',
  1483. 'values' => $td_google_ad_list_sizes
  1484. ));
  1485. ?>
  1486. </span>
  1487.  
  1488. </div>
  1489. </div>
  1490.  
  1491.  
  1492. <!-- disable ad on phones -->
  1493. <div class="td-box-row">
  1494. <div class="td-box-description">
  1495. <span class="td-box-title">DISABLE ON PHONE</span>
  1496. <p></p>
  1497. </div>
  1498. <div class="td-box-control-full">
  1499. <span>
  1500. <?php
  1501. echo td_panel_generator::checkbox(array(
  1502. 'ds' => 'td_ads',
  1503. 'item_id' => 'custom_ad_5',
  1504. 'option_id' => 'disable_p',
  1505. 'true_value' => 'yes',
  1506. 'false_value' => ''
  1507. ));
  1508. ?>
  1509. </span>
  1510. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1511. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1512. <span class="td-content-float-right">
  1513. <?php
  1514. echo td_panel_generator::dropdown(array(
  1515. 'ds' => 'td_ads',
  1516. 'item_id' => 'custom_ad_5',
  1517. 'option_id' => 'p_size',
  1518. 'values' => $td_google_ad_list_sizes
  1519. ));
  1520. ?>
  1521. </span>
  1522.  
  1523. </div>
  1524. </div>
  1525.  
  1526. <?php echo td_panel_generator::box_end();
Advertisement
Add Comment
Please, Sign In to add comment