Guest User

Untitled

a guest
Sep 12th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.05 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. echo td_panel_generator::box_start('Header ad', false);?>
  38.  
  39.  
  40.  
  41. <!-- ad box code -->
  42. <div class="td-box-row">
  43. <div class="td-box-description">
  44. <span class="td-box-title">YOUR HEADER AD</span>
  45. <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/">click here</a> (last paragraph)</p>
  46. </div>
  47. <div class="td-box-control-full">
  48. <?php
  49. echo td_panel_generator::textarea(array(
  50. 'ds' => 'td_ads',
  51. 'item_id' => 'header',
  52. 'option_id' => 'ad_code',
  53. ));
  54. ?>
  55. </div>
  56. </div>
  57.  
  58.  
  59. <div class="td-box-row">
  60. <div class="td-box-description td-box-full">
  61. <span class="td-box-title">Advance usage:</span>
  62. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  63. </div>
  64. <div class="td-box-row-margin-bottom"></div>
  65. </div>
  66.  
  67. <!-- disable ad on monitor -->
  68. <div class="td-box-row">
  69. <div class="td-box-description">
  70. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  71. <p></p>
  72. </div>
  73. <div class="td-box-control-full">
  74. <span>
  75. <?php
  76. echo td_panel_generator::checkbox(array(
  77. 'ds' => 'td_ads',
  78. 'item_id' => 'header',
  79. 'option_id' => 'disable_m',
  80. 'true_value' => 'yes',
  81. 'false_value' => ''
  82. ));
  83. ?>
  84. </span>
  85. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  86. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  87. <span class="td-content-float-right">
  88. <?php
  89. echo td_panel_generator::dropdown(array(
  90. 'ds' => 'td_ads',
  91. 'item_id' => 'header',
  92. 'option_id' => 'm_size',
  93. 'values' => $td_google_ad_list_sizes
  94. ));
  95. ?>
  96. </span>
  97. </div>
  98. </div>
  99.  
  100.  
  101. <!-- disable ad on table landscape -->
  102. <div class="td-box-row">
  103. <div class="td-box-description">
  104. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  105. <p></p>
  106. </div>
  107. <div class="td-box-control-full">
  108. <span>
  109. <?php
  110. echo td_panel_generator::checkbox(array(
  111. 'ds' => 'td_ads',
  112. 'item_id' => 'header',
  113. 'option_id' => 'disable_tl',
  114. 'true_value' => 'yes',
  115. 'false_value' => ''
  116. ));
  117. ?>
  118. </span>
  119. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  120. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  121. <span class="td-content-float-right">
  122. <?php
  123. echo td_panel_generator::dropdown(array(
  124. 'ds' => 'td_ads',
  125. 'item_id' => 'header',
  126. 'option_id' => 'tl_size',
  127. 'values' => $td_google_ad_list_sizes
  128. ));
  129. ?>
  130. </span>
  131. </div>
  132. </div>
  133.  
  134.  
  135. <!-- disable ad on tablet portrait -->
  136. <div class="td-box-row">
  137. <div class="td-box-description">
  138. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  139. <p></p>
  140. </div>
  141. <div class="td-box-control-full">
  142. <span>
  143. <?php
  144. echo td_panel_generator::checkbox(array(
  145. 'ds' => 'td_ads',
  146. 'item_id' => 'header',
  147. 'option_id' => 'disable_tp',
  148. 'true_value' => 'yes',
  149. 'false_value' => ''
  150. ));
  151. ?>
  152. </span>
  153. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  154. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  155. <span class="td-content-float-right">
  156. <?php
  157. echo td_panel_generator::dropdown(array(
  158. 'ds' => 'td_ads',
  159. 'item_id' => 'header',
  160. 'option_id' => 'tp_size',
  161. 'values' => $td_google_ad_list_sizes
  162. ));
  163. ?>
  164. </span>
  165.  
  166. </div>
  167. </div>
  168.  
  169.  
  170. <!-- disable ad on phones -->
  171. <div class="td-box-row">
  172. <div class="td-box-description">
  173. <span class="td-box-title">DISABLE ON PHONE</span>
  174. <p>Google adsense requiers that you do not use big header ads on mobiles!</p>
  175. </div>
  176. <div class="td-box-control-full">
  177. <span>
  178. <?php
  179. echo td_panel_generator::checkbox(array(
  180. 'ds' => 'td_ads',
  181. 'item_id' => 'header',
  182. 'option_id' => 'disable_p',
  183. 'true_value' => 'yes',
  184. 'false_value' => ''
  185. ));
  186. ?>
  187. </span>
  188. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  189. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  190. <span class="td-content-float-right">
  191. <?php
  192. echo td_panel_generator::dropdown(array(
  193. 'ds' => 'td_ads',
  194. 'item_id' => 'header',
  195. 'option_id' => 'p_size',
  196. 'values' => $td_google_ad_list_sizes
  197. ));
  198. ?>
  199. </span>
  200.  
  201. </div>
  202. </div>
  203.  
  204. <?php echo td_panel_generator::box_end();?>
  205.  
  206.  
  207.  
  208.  
  209. <?php echo td_panel_generator::box_start('Sidebar ad', false);?>
  210.  
  211. <div class="td-box-row">
  212. <div class="td-box-description td-box-full">
  213. <span class="td-box-title">Notice:</span>
  214. <p>To show the ads on the sidebar, please drag the [taDiv] adbox widget to the desired sidebar. </p>
  215. </div>
  216. <div class="td-box-row-margin-bottom"></div>
  217. </div>
  218.  
  219. <!-- ad box code -->
  220. <div class="td-box-row">
  221. <div class="td-box-description">
  222. <span class="td-box-title">YOUR SIDEBAR AD</span>
  223. <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/">click here</a> (last paragraph)</p>
  224. </div>
  225. <div class="td-box-control-full">
  226. <?php
  227. echo td_panel_generator::textarea(array(
  228. 'ds' => 'td_ads',
  229. 'item_id' => 'sidebar',
  230. 'option_id' => 'ad_code',
  231. ));
  232. ?>
  233. </div>
  234. </div>
  235.  
  236.  
  237. <div class="td-box-row">
  238. <div class="td-box-description td-box-full">
  239. <span class="td-box-title">Advance usage:</span>
  240. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  241. </div>
  242. <div class="td-box-row-margin-bottom"></div>
  243. </div>
  244.  
  245.  
  246. <!-- disable ad on monitor -->
  247. <div class="td-box-row">
  248. <div class="td-box-description">
  249. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  250. <p></p>
  251. </div>
  252. <div class="td-box-control-full">
  253. <span>
  254. <?php
  255. echo td_panel_generator::checkbox(array(
  256. 'ds' => 'td_ads',
  257. 'item_id' => 'sidebar',
  258. 'option_id' => 'disable_m',
  259. 'true_value' => 'yes',
  260. 'false_value' => ''
  261. ));
  262. ?>
  263. </span>
  264. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  265. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  266. <span class="td-content-float-right">
  267. <?php
  268. echo td_panel_generator::dropdown(array(
  269. 'ds' => 'td_ads',
  270. 'item_id' => 'sidebar',
  271. 'option_id' => 'm_size',
  272. 'values' => $td_google_ad_list_sizes
  273. ));
  274. ?>
  275. </span>
  276.  
  277. </div>
  278. </div>
  279.  
  280.  
  281. <!-- disable ad on table landscape -->
  282. <div class="td-box-row">
  283. <div class="td-box-description">
  284. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  285. <p></p>
  286. </div>
  287. <div class="td-box-control-full">
  288. <span>
  289. <?php
  290. echo td_panel_generator::checkbox(array(
  291. 'ds' => 'td_ads',
  292. 'item_id' => 'sidebar',
  293. 'option_id' => 'disable_tl',
  294. 'true_value' => 'yes',
  295. 'false_value' => ''
  296. ));
  297. ?>
  298. </span>
  299. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  300. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  301. <span class="td-content-float-right">
  302. <?php
  303. echo td_panel_generator::dropdown(array(
  304. 'ds' => 'td_ads',
  305. 'item_id' => 'sidebar',
  306. 'option_id' => 'tl_size',
  307. 'values' => $td_google_ad_list_sizes
  308. ));
  309. ?>
  310. </span>
  311.  
  312. </div>
  313. </div>
  314.  
  315.  
  316. <!-- disable ad on tablet portrait -->
  317. <div class="td-box-row">
  318. <div class="td-box-description">
  319. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  320. <p></p>
  321. </div>
  322. <div class="td-box-control-full">
  323. <span>
  324. <?php
  325. echo td_panel_generator::checkbox(array(
  326. 'ds' => 'td_ads',
  327. 'item_id' => 'sidebar',
  328. 'option_id' => 'disable_tp',
  329. 'true_value' => 'yes',
  330. 'false_value' => ''
  331. ));
  332. ?>
  333. </span>
  334. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  335. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  336. <span class="td-content-float-right">
  337. <?php
  338. echo td_panel_generator::dropdown(array(
  339. 'ds' => 'td_ads',
  340. 'item_id' => 'sidebar',
  341. 'option_id' => 'tp_size',
  342. 'values' => $td_google_ad_list_sizes
  343. ));
  344. ?>
  345. </span>
  346.  
  347. </div>
  348. </div>
  349.  
  350.  
  351. <!-- disable ad on phones -->
  352. <div class="td-box-row">
  353. <div class="td-box-description">
  354. <span class="td-box-title">DISABLE ON PHONE</span>
  355. <p></p>
  356. </div>
  357. <div class="td-box-control-full">
  358. <span>
  359. <?php
  360. echo td_panel_generator::checkbox(array(
  361. 'ds' => 'td_ads',
  362. 'item_id' => 'sidebar',
  363. 'option_id' => 'disable_p',
  364. 'true_value' => 'yes',
  365. 'false_value' => ''
  366. ));
  367. ?>
  368. </span>
  369. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  370. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  371. <span class="td-content-float-right">
  372. <?php
  373. echo td_panel_generator::dropdown(array(
  374. 'ds' => 'td_ads',
  375. 'item_id' => 'sidebar',
  376. 'option_id' => 'p_size',
  377. 'values' => $td_google_ad_list_sizes
  378. ));
  379. ?>
  380. </span>
  381. </div>
  382. </div>
  383.  
  384. <?php echo td_panel_generator::box_end();?>
  385.  
  386.  
  387.  
  388. <?php echo td_panel_generator::box_start('Article top ad', false);?>
  389.  
  390. <!-- ad box code -->
  391. <div class="td-box-row">
  392. <div class="td-box-description">
  393. <span class="td-box-title">YOUR ARTICLE TOP AD</span>
  394. <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/">click here</a> (last paragraph)</p>
  395. </div>
  396. <div class="td-box-control-full">
  397. <?php
  398. echo td_panel_generator::textarea(array(
  399. 'ds' => 'td_ads',
  400. 'item_id' => 'content_top',
  401. 'option_id' => 'ad_code',
  402. ));
  403. ?>
  404. </div>
  405. </div>
  406.  
  407.  
  408. <div class="td-box-row">
  409. <div class="td-box-description td-box-full">
  410. <span class="td-box-title">Advance usage:</span>
  411. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  412. </div>
  413. <div class="td-box-row-margin-bottom"></div>
  414. </div>
  415.  
  416.  
  417. <!-- disable ad on monitor -->
  418. <div class="td-box-row">
  419. <div class="td-box-description">
  420. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  421. <p></p>
  422. </div>
  423. <div class="td-box-control-full">
  424. <span>
  425. <?php
  426. echo td_panel_generator::checkbox(array(
  427. 'ds' => 'td_ads',
  428. 'item_id' => 'content_top',
  429. 'option_id' => 'disable_m',
  430. 'true_value' => 'yes',
  431. 'false_value' => ''
  432. ));
  433. ?>
  434. </span>
  435. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  436. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  437. <span class="td-content-float-right">
  438. <?php
  439. echo td_panel_generator::dropdown(array(
  440. 'ds' => 'td_ads',
  441. 'item_id' => 'content_top',
  442. 'option_id' => 'm_size',
  443. 'values' => $td_google_ad_list_sizes
  444. ));
  445. ?>
  446. </span>
  447.  
  448. </div>
  449. </div>
  450.  
  451.  
  452. <!-- disable ad on table landscape -->
  453. <div class="td-box-row">
  454. <div class="td-box-description">
  455. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  456. <p></p>
  457. </div>
  458. <div class="td-box-control-full">
  459. <span>
  460. <?php
  461. echo td_panel_generator::checkbox(array(
  462. 'ds' => 'td_ads',
  463. 'item_id' => 'content_top',
  464. 'option_id' => 'disable_tl',
  465. 'true_value' => 'yes',
  466. 'false_value' => ''
  467. ));
  468. ?>
  469. </span>
  470. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  471. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  472. <span class="td-content-float-right">
  473. <?php
  474. echo td_panel_generator::dropdown(array(
  475. 'ds' => 'td_ads',
  476. 'item_id' => 'content_top',
  477. 'option_id' => 'tl_size',
  478. 'values' => $td_google_ad_list_sizes
  479. ));
  480. ?>
  481. </span>
  482.  
  483. </div>
  484. </div>
  485.  
  486.  
  487. <!-- disable ad on tablet portrait -->
  488. <div class="td-box-row">
  489. <div class="td-box-description">
  490. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  491. <p></p>
  492. </div>
  493. <div class="td-box-control-full">
  494. <span>
  495. <?php
  496. echo td_panel_generator::checkbox(array(
  497. 'ds' => 'td_ads',
  498. 'item_id' => 'content_top',
  499. 'option_id' => 'disable_tp',
  500. 'true_value' => 'yes',
  501. 'false_value' => ''
  502. ));
  503. ?>
  504. </span>
  505. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  506. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  507. <span class="td-content-float-right">
  508. <?php
  509. echo td_panel_generator::dropdown(array(
  510. 'ds' => 'td_ads',
  511. 'item_id' => 'content_top',
  512. 'option_id' => 'tp_size',
  513. 'values' => $td_google_ad_list_sizes
  514. ));
  515. ?>
  516. </span>
  517.  
  518. </div>
  519. </div>
  520.  
  521.  
  522. <!-- disable ad on phones -->
  523. <div class="td-box-row">
  524. <div class="td-box-description">
  525. <span class="td-box-title">DISABLE ON PHONE</span>
  526. <p></p>
  527. </div>
  528. <div class="td-box-control-full">
  529. <span>
  530. <?php
  531. echo td_panel_generator::checkbox(array(
  532. 'ds' => 'td_ads',
  533. 'item_id' => 'content_top',
  534. 'option_id' => 'disable_p',
  535. 'true_value' => 'yes',
  536. 'false_value' => ''
  537. ));
  538. ?>
  539. </span>
  540. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  541. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  542. <span class="td-content-float-right">
  543. <?php
  544. echo td_panel_generator::dropdown(array(
  545. 'ds' => 'td_ads',
  546. 'item_id' => 'content_top',
  547. 'option_id' => 'p_size',
  548. 'values' => $td_google_ad_list_sizes
  549. ));
  550. ?>
  551. </span>
  552.  
  553. </div>
  554. </div>
  555.  
  556. <?php echo td_panel_generator::box_end();?>
  557.  
  558.  
  559.  
  560. <?php echo td_panel_generator::box_start('Article inline ad', false);?>
  561.  
  562. <!-- ad box code -->
  563. <div class="td-box-row">
  564. <div class="td-box-description">
  565. <span class="td-box-title">YOUR ARTICLE INLINE AD</span>
  566. <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/">click here</a> (last paragraph)</p>
  567. </div>
  568. <div class="td-box-control-full">
  569. <?php
  570. echo td_panel_generator::textarea(array(
  571. 'ds' => 'td_ads',
  572. 'item_id' => 'content_inline',
  573. 'option_id' => 'ad_code',
  574. ));
  575. ?>
  576. </div>
  577. </div>
  578.  
  579. <!-- After paragraph //alignment & after paragraph settings only for inline ads-->
  580. <div class="td-box-row">
  581. <div class="td-box-description">
  582. <span class="td-box-title">AFTER PARAGRAPH:</span>
  583. <p>After witch paragraph the ad will be displayed</p>
  584. </div>
  585. <div class="td-box-control-full">
  586. <?php
  587. echo td_panel_generator::input(array(
  588. 'ds' => 'td_option',
  589. 'option_id' => 'tds_inline_ad_paragraph'
  590. ));
  591. ?>
  592. </div>
  593. </div>
  594.  
  595.  
  596. <!-- DISPLAY VIEW -->
  597. <div class="td-box-row">
  598. <div class="td-box-description">
  599. <span class="td-box-title">AD POSITION IN CONTENT</span>
  600. <p>Ad position in content</p>
  601. </div>
  602. <div class="td-box-control-full td-panel-module">
  603. <?php
  604. echo td_panel_generator::visual_select_o(array(
  605. 'ds' => 'td_option',
  606. 'option_id' => 'tds_inline_ad_align',
  607. 'values' => array(
  608. array('text' => '', 'title' => '', 'val' => 'left', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/ad-left.png'),
  609. array('text' => '', 'title' => '', 'val' => '', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/ad-center.png'),
  610. array('text' => '', 'title' => '', 'val' => 'right', 'img' => get_template_directory_uri() . '/wp-admin/images/panel/ad-right.png')
  611. )
  612. ));
  613. ?>
  614. </div>
  615. </div>
  616.  
  617.  
  618. <div class="td-box-row">
  619. <div class="td-box-description td-box-full">
  620. <span class="td-box-title">Advance usage:</span>
  621. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  622. </div>
  623. <div class="td-box-row-margin-bottom"></div>
  624. </div>
  625.  
  626.  
  627. <!-- disable ad on monitor -->
  628. <div class="td-box-row">
  629. <div class="td-box-description">
  630. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  631. <p></p>
  632. </div>
  633. <div class="td-box-control-full">
  634. <span>
  635. <?php
  636. echo td_panel_generator::checkbox(array(
  637. 'ds' => 'td_ads',
  638. 'item_id' => 'content_inline',
  639. 'option_id' => 'disable_m',
  640. 'true_value' => 'yes',
  641. 'false_value' => ''
  642. ));
  643. ?>
  644. </span>
  645. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  646. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  647. <span class="td-content-float-right">
  648. <?php
  649. echo td_panel_generator::dropdown(array(
  650. 'ds' => 'td_ads',
  651. 'item_id' => 'content_inline',
  652. 'option_id' => 'm_size',
  653. 'values' => $td_google_ad_list_sizes
  654. ));
  655. ?>
  656. </span>
  657.  
  658. </div>
  659. </div>
  660.  
  661.  
  662. <!-- disable ad on table landscape -->
  663. <div class="td-box-row">
  664. <div class="td-box-description">
  665. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  666. <p></p>
  667. </div>
  668. <div class="td-box-control-full">
  669. <span>
  670. <?php
  671. echo td_panel_generator::checkbox(array(
  672. 'ds' => 'td_ads',
  673. 'item_id' => 'content_inline',
  674. 'option_id' => 'disable_tl',
  675. 'true_value' => 'yes',
  676. 'false_value' => ''
  677. ));
  678. ?>
  679. </span>
  680. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  681. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  682. <span class="td-content-float-right">
  683. <?php
  684. echo td_panel_generator::dropdown(array(
  685. 'ds' => 'td_ads',
  686. 'item_id' => 'content_inline',
  687. 'option_id' => 'tl_size',
  688. 'values' => $td_google_ad_list_sizes
  689. ));
  690. ?>
  691. </span>
  692.  
  693. </div>
  694. </div>
  695.  
  696.  
  697. <!-- disable ad on tablet portrait -->
  698. <div class="td-box-row">
  699. <div class="td-box-description">
  700. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  701. <p></p>
  702. </div>
  703. <div class="td-box-control-full">
  704. <span>
  705. <?php
  706. echo td_panel_generator::checkbox(array(
  707. 'ds' => 'td_ads',
  708. 'item_id' => 'content_inline',
  709. 'option_id' => 'disable_tp',
  710. 'true_value' => 'yes',
  711. 'false_value' => ''
  712. ));
  713. ?>
  714. </span>
  715. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  716. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  717. <span class="td-content-float-right">
  718. <?php
  719. echo td_panel_generator::dropdown(array(
  720. 'ds' => 'td_ads',
  721. 'item_id' => 'content_inline',
  722. 'option_id' => 'tp_size',
  723. 'values' => $td_google_ad_list_sizes
  724. ));
  725. ?>
  726. </span>
  727.  
  728. </div>
  729. </div>
  730.  
  731.  
  732. <!-- disable ad on phones -->
  733. <div class="td-box-row">
  734. <div class="td-box-description">
  735. <span class="td-box-title">DISABLE ON PHONE</span>
  736. <p></p>
  737. </div>
  738. <div class="td-box-control-full">
  739. <span>
  740. <?php
  741. echo td_panel_generator::checkbox(array(
  742. 'ds' => 'td_ads',
  743. 'item_id' => 'content_inline',
  744. 'option_id' => 'disable_p',
  745. 'true_value' => 'yes',
  746. 'false_value' => ''
  747. ));
  748. ?>
  749. </span>
  750. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  751. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  752. <span class="td-content-float-right">
  753. <?php
  754. echo td_panel_generator::dropdown(array(
  755. 'ds' => 'td_ads',
  756. 'item_id' => 'content_inline',
  757. 'option_id' => 'p_size',
  758. 'values' => $td_google_ad_list_sizes
  759. ));
  760. ?>
  761. </span>
  762.  
  763. </div>
  764. </div>
  765.  
  766. <?php echo td_panel_generator::box_end();?>
  767.  
  768.  
  769.  
  770. <?php echo td_panel_generator::box_start('Article bottom ad', false);?>
  771.  
  772. <!-- ad box code -->
  773. <div class="td-box-row">
  774. <div class="td-box-description">
  775. <span class="td-box-title">YOUR ARTICLE BOTTOM AD</span>
  776. <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/">click here</a> (last paragraph)</p>
  777. </div>
  778. <div class="td-box-control-full">
  779. <?php
  780. echo td_panel_generator::textarea(array(
  781. 'ds' => 'td_ads',
  782. 'item_id' => 'content_bottom',
  783. 'option_id' => 'ad_code',
  784. ));
  785. ?>
  786. </div>
  787. </div>
  788.  
  789.  
  790. <div class="td-box-row">
  791. <div class="td-box-description td-box-full">
  792. <span class="td-box-title">Advance usage:</span>
  793. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  794. </div>
  795. <div class="td-box-row-margin-bottom"></div>
  796. </div>
  797.  
  798.  
  799. <!-- disable ad on monitor -->
  800. <div class="td-box-row">
  801. <div class="td-box-description">
  802. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  803. <p></p>
  804. </div>
  805. <div class="td-box-control-full">
  806. <span>
  807. <?php
  808. echo td_panel_generator::checkbox(array(
  809. 'ds' => 'td_ads',
  810. 'item_id' => 'content_bottom',
  811. 'option_id' => 'disable_m',
  812. 'true_value' => 'yes',
  813. 'false_value' => ''
  814. ));
  815. ?>
  816. </span>
  817. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  818. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  819. <span class="td-content-float-right">
  820. <?php
  821. echo td_panel_generator::dropdown(array(
  822. 'ds' => 'td_ads',
  823. 'item_id' => 'content_bottom',
  824. 'option_id' => 'm_size',
  825. 'values' => $td_google_ad_list_sizes
  826. ));
  827. ?>
  828. </span>
  829.  
  830. </div>
  831. </div>
  832.  
  833.  
  834. <!-- disable ad on table landscape -->
  835. <div class="td-box-row">
  836. <div class="td-box-description">
  837. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  838. <p></p>
  839. </div>
  840. <div class="td-box-control-full">
  841. <span>
  842. <?php
  843. echo td_panel_generator::checkbox(array(
  844. 'ds' => 'td_ads',
  845. 'item_id' => 'content_bottom',
  846. 'option_id' => 'disable_tl',
  847. 'true_value' => 'yes',
  848. 'false_value' => ''
  849. ));
  850. ?>
  851. </span>
  852. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  853. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  854. <span class="td-content-float-right">
  855. <?php
  856. echo td_panel_generator::dropdown(array(
  857. 'ds' => 'td_ads',
  858. 'item_id' => 'content_bottom',
  859. 'option_id' => 'tl_size',
  860. 'values' => $td_google_ad_list_sizes
  861. ));
  862. ?>
  863. </span>
  864.  
  865. </div>
  866. </div>
  867.  
  868.  
  869. <!-- disable ad on tablet portrait -->
  870. <div class="td-box-row">
  871. <div class="td-box-description">
  872. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  873. <p></p>
  874. </div>
  875. <div class="td-box-control-full">
  876. <span>
  877. <?php
  878. echo td_panel_generator::checkbox(array(
  879. 'ds' => 'td_ads',
  880. 'item_id' => 'content_bottom',
  881. 'option_id' => 'disable_tp',
  882. 'true_value' => 'yes',
  883. 'false_value' => ''
  884. ));
  885. ?>
  886. </span>
  887. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  888. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  889. <span class="td-content-float-right">
  890. <?php
  891. echo td_panel_generator::dropdown(array(
  892. 'ds' => 'td_ads',
  893. 'item_id' => 'content_bottom',
  894. 'option_id' => 'tp_size',
  895. 'values' => $td_google_ad_list_sizes
  896. ));
  897. ?>
  898. </span>
  899.  
  900. </div>
  901. </div>
  902.  
  903.  
  904. <!-- disable ad on phones -->
  905. <div class="td-box-row">
  906. <div class="td-box-description">
  907. <span class="td-box-title">DISABLE ON PHONE</span>
  908. <p></p>
  909. </div>
  910. <div class="td-box-control-full">
  911. <span>
  912. <?php
  913. echo td_panel_generator::checkbox(array(
  914. 'ds' => 'td_ads',
  915. 'item_id' => 'content_bottom',
  916. 'option_id' => 'disable_p',
  917. 'true_value' => 'yes',
  918. 'false_value' => ''
  919. ));
  920. ?>
  921. </span>
  922. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  923. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  924. <span class="td-content-float-right">
  925. <?php
  926. echo td_panel_generator::dropdown(array(
  927. 'ds' => 'td_ads',
  928. 'item_id' => 'content_bottom',
  929. 'option_id' => 'p_size',
  930. 'values' => $td_google_ad_list_sizes
  931. ));
  932. ?>
  933. </span>
  934.  
  935. </div>
  936. </div>
  937.  
  938. <?php echo td_panel_generator::box_end();?>
  939.  
  940.  
  941.  
  942. <?php
  943. //backround add
  944. echo td_panel_generator::box_start('Background click Ad', false);?>
  945.  
  946. <div class="td-box-row">
  947. <div class="td-box-description td-box-full">
  948. <span class="td-box-title">Notice:</span>
  949. <p>Please go to <strong>BACKGROUND</strong> tab and uncheck <strong>STRETCH BACKGROUND</strong> option, for Background Click Ad to work</p>
  950. </div>
  951. <div class="td-box-row-margin-bottom"></div>
  952. </div>
  953.  
  954. <!-- ad box code -->
  955. <div class="td-box-row">
  956. <div class="td-box-description">
  957. <span class="td-box-title">URL</span>
  958. <p>Paste your link here like : http://www.domain.com</p>
  959. </div>
  960. <div class="td-box-control-full td-panel-input-wide">
  961. <?php
  962. echo td_panel_generator::input(array(
  963. 'ds' => 'td_ads',
  964. 'item_id' => 'background_click',
  965. 'option_id' => 'link',
  966. ));
  967. ?>
  968. </div>
  969. </div>
  970.  
  971.  
  972. <!-- ad taget -->
  973. <div class="td-box-row">
  974. <div class="td-box-description">
  975. <span class="td-box-title">Target</span>
  976. <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>
  977. </div>
  978. <div class="td-box-control-full">
  979. <?php
  980. echo td_panel_generator::checkbox(array(
  981. 'ds' => 'td_ads',
  982. 'item_id' => 'background_click',
  983. 'option_id' => 'target',
  984. 'true_value' => '_blank',
  985. 'false_value' => ''
  986. ));
  987. ?>
  988. </div>
  989. </div>
  990.  
  991. <?php echo td_panel_generator::box_end();?>
  992.  
  993.  
  994.  
  995. <?php echo td_panel_generator::box_start('Custom ad 1', false);?>
  996.  
  997.  
  998. <!-- ad box code -->
  999. <div class="td-box-row">
  1000. <div class="td-box-description">
  1001. <span class="td-box-title">YOUR CUSTOM AD 1</span>
  1002. <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/">click here</a> (last paragraph)</p>
  1003. </div>
  1004. <div class="td-box-control-full">
  1005. <?php
  1006. echo td_panel_generator::textarea(array(
  1007. 'ds' => 'td_ads',
  1008. 'item_id' => 'custom_ad_1',
  1009. 'option_id' => 'ad_code',
  1010. ));
  1011. ?>
  1012. </div>
  1013. </div>
  1014.  
  1015.  
  1016. <div class="td-box-row">
  1017. <div class="td-box-description td-box-full">
  1018. <span class="td-box-title">Advance usage:</span>
  1019. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  1020. </div>
  1021. <div class="td-box-row-margin-bottom"></div>
  1022. </div>
  1023.  
  1024.  
  1025. <!-- disable ad on monitor -->
  1026. <div class="td-box-row">
  1027. <div class="td-box-description">
  1028. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1029. <p></p>
  1030. </div>
  1031. <div class="td-box-control-full">
  1032. <span>
  1033. <?php
  1034. echo td_panel_generator::checkbox(array(
  1035. 'ds' => 'td_ads',
  1036. 'item_id' => 'custom_ad_1',
  1037. 'option_id' => 'disable_m',
  1038. 'true_value' => 'yes',
  1039. 'false_value' => ''
  1040. ));
  1041. ?>
  1042. </span>
  1043. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1044. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1045. <span class="td-content-float-right">
  1046. <?php
  1047. echo td_panel_generator::dropdown(array(
  1048. 'ds' => 'td_ads',
  1049. 'item_id' => 'custom_ad_1',
  1050. 'option_id' => 'm_size',
  1051. 'values' => $td_google_ad_list_sizes
  1052. ));
  1053. ?>
  1054. </span>
  1055.  
  1056. </div>
  1057. </div>
  1058.  
  1059.  
  1060. <!-- disable ad on table landscape -->
  1061. <div class="td-box-row">
  1062. <div class="td-box-description">
  1063. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  1064. <p></p>
  1065. </div>
  1066. <div class="td-box-control-full">
  1067. <span>
  1068. <?php
  1069. echo td_panel_generator::checkbox(array(
  1070. 'ds' => 'td_ads',
  1071. 'item_id' => 'custom_ad_1',
  1072. 'option_id' => 'disable_tl',
  1073. 'true_value' => 'yes',
  1074. 'false_value' => ''
  1075. ));
  1076. ?>
  1077. </span>
  1078. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1079. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1080. <span class="td-content-float-right">
  1081. <?php
  1082. echo td_panel_generator::dropdown(array(
  1083. 'ds' => 'td_ads',
  1084. 'item_id' => 'custom_ad_1',
  1085. 'option_id' => 'tl_size',
  1086. 'values' => $td_google_ad_list_sizes
  1087. ));
  1088. ?>
  1089. </span>
  1090.  
  1091. </div>
  1092. </div>
  1093.  
  1094.  
  1095. <!-- disable ad on tablet portrait -->
  1096. <div class="td-box-row">
  1097. <div class="td-box-description">
  1098. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1099. <p></p>
  1100. </div>
  1101. <div class="td-box-control-full">
  1102. <span>
  1103. <?php
  1104. echo td_panel_generator::checkbox(array(
  1105. 'ds' => 'td_ads',
  1106. 'item_id' => 'custom_ad_1',
  1107. 'option_id' => 'disable_tp',
  1108. 'true_value' => 'yes',
  1109. 'false_value' => ''
  1110. ));
  1111. ?>
  1112. </span>
  1113. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1114. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1115. <span class="td-content-float-right">
  1116. <?php
  1117. echo td_panel_generator::dropdown(array(
  1118. 'ds' => 'td_ads',
  1119. 'item_id' => 'custom_ad_1',
  1120. 'option_id' => 'tp_size',
  1121. 'values' => $td_google_ad_list_sizes
  1122. ));
  1123. ?>
  1124. </span>
  1125.  
  1126. </div>
  1127. </div>
  1128.  
  1129.  
  1130. <!-- disable ad on phones -->
  1131. <div class="td-box-row">
  1132. <div class="td-box-description">
  1133. <span class="td-box-title">DISABLE ON PHONE</span>
  1134. <p></p>
  1135. </div>
  1136. <div class="td-box-control-full">
  1137. <span>
  1138. <?php
  1139. echo td_panel_generator::checkbox(array(
  1140. 'ds' => 'td_ads',
  1141. 'item_id' => 'custom_ad_1',
  1142. 'option_id' => 'disable_p',
  1143. 'true_value' => 'yes',
  1144. 'false_value' => ''
  1145. ));
  1146. ?>
  1147. </span>
  1148. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1149. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1150. <span class="td-content-float-right">
  1151. <?php
  1152. echo td_panel_generator::dropdown(array(
  1153. 'ds' => 'td_ads',
  1154. 'item_id' => 'custom_ad_1',
  1155. 'option_id' => 'p_size',
  1156. 'values' => $td_google_ad_list_sizes
  1157. ));
  1158. ?>
  1159. </span>
  1160.  
  1161. </div>
  1162. </div>
  1163.  
  1164. <?php echo td_panel_generator::box_end();?>
  1165.  
  1166.  
  1167.  
  1168. <?php echo td_panel_generator::box_start('Custom ad 2', false);?>
  1169.  
  1170.  
  1171. <!-- ad box code -->
  1172. <div class="td-box-row">
  1173. <div class="td-box-description">
  1174. <span class="td-box-title">YOUR CUSTOM AD 2</span>
  1175. <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/">click here</a> (last paragraph)</p>
  1176. </div>
  1177. <div class="td-box-control-full">
  1178. <?php
  1179. echo td_panel_generator::textarea(array(
  1180. 'ds' => 'td_ads',
  1181. 'item_id' => 'custom_ad_2',
  1182. 'option_id' => 'ad_code',
  1183. ));
  1184. ?>
  1185. </div>
  1186. </div>
  1187.  
  1188.  
  1189. <div class="td-box-row">
  1190. <div class="td-box-description td-box-full">
  1191. <span class="td-box-title">Advance usage:</span>
  1192. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  1193. </div>
  1194. <div class="td-box-row-margin-bottom"></div>
  1195. </div>
  1196.  
  1197.  
  1198. <!-- disable ad on monitor -->
  1199. <div class="td-box-row">
  1200. <div class="td-box-description">
  1201. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1202. <p></p>
  1203. </div>
  1204. <div class="td-box-control-full">
  1205. <span>
  1206. <?php
  1207. echo td_panel_generator::checkbox(array(
  1208. 'ds' => 'td_ads',
  1209. 'item_id' => 'custom_ad_2',
  1210. 'option_id' => 'disable_m',
  1211. 'true_value' => 'yes',
  1212. 'false_value' => ''
  1213. ));
  1214. ?>
  1215. </span>
  1216. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1217. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1218. <span class="td-content-float-right">
  1219. <?php
  1220. echo td_panel_generator::dropdown(array(
  1221. 'ds' => 'td_ads',
  1222. 'item_id' => 'custom_ad_2',
  1223. 'option_id' => 'm_size',
  1224. 'values' => $td_google_ad_list_sizes
  1225. ));
  1226. ?>
  1227. </span>
  1228.  
  1229. </div>
  1230. </div>
  1231.  
  1232.  
  1233. <!-- disable ad on table landscape -->
  1234. <div class="td-box-row">
  1235. <div class="td-box-description">
  1236. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  1237. <p></p>
  1238. </div>
  1239. <div class="td-box-control-full">
  1240. <span>
  1241. <?php
  1242. echo td_panel_generator::checkbox(array(
  1243. 'ds' => 'td_ads',
  1244. 'item_id' => 'custom_ad_2',
  1245. 'option_id' => 'disable_tl',
  1246. 'true_value' => 'yes',
  1247. 'false_value' => ''
  1248. ));
  1249. ?>
  1250. </span>
  1251. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1252. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1253. <span class="td-content-float-right">
  1254. <?php
  1255. echo td_panel_generator::dropdown(array(
  1256. 'ds' => 'td_ads',
  1257. 'item_id' => 'custom_ad_2',
  1258. 'option_id' => 'tl_size',
  1259. 'values' => $td_google_ad_list_sizes
  1260. ));
  1261. ?>
  1262. </span>
  1263.  
  1264. </div>
  1265. </div>
  1266.  
  1267.  
  1268. <!-- disable ad on tablet portrait -->
  1269. <div class="td-box-row">
  1270. <div class="td-box-description">
  1271. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1272. <p></p>
  1273. </div>
  1274. <div class="td-box-control-full">
  1275. <span>
  1276. <?php
  1277. echo td_panel_generator::checkbox(array(
  1278. 'ds' => 'td_ads',
  1279. 'item_id' => 'custom_ad_2',
  1280. 'option_id' => 'disable_tp',
  1281. 'true_value' => 'yes',
  1282. 'false_value' => ''
  1283. ));
  1284. ?>
  1285. </span>
  1286. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1287. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1288. <span class="td-content-float-right">
  1289. <?php
  1290. echo td_panel_generator::dropdown(array(
  1291. 'ds' => 'td_ads',
  1292. 'item_id' => 'custom_ad_2',
  1293. 'option_id' => 'tp_size',
  1294. 'values' => $td_google_ad_list_sizes
  1295. ));
  1296. ?>
  1297. </span>
  1298.  
  1299. </div>
  1300. </div>
  1301.  
  1302.  
  1303. <!-- disable ad on phones -->
  1304. <div class="td-box-row">
  1305. <div class="td-box-description">
  1306. <span class="td-box-title">DISABLE ON PHONE</span>
  1307. <p></p>
  1308. </div>
  1309. <div class="td-box-control-full">
  1310. <span>
  1311. <?php
  1312. echo td_panel_generator::checkbox(array(
  1313. 'ds' => 'td_ads',
  1314. 'item_id' => 'custom_ad_2',
  1315. 'option_id' => 'disable_p',
  1316. 'true_value' => 'yes',
  1317. 'false_value' => ''
  1318. ));
  1319. ?>
  1320. </span>
  1321. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1322. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1323. <span class="td-content-float-right">
  1324. <?php
  1325. echo td_panel_generator::dropdown(array(
  1326. 'ds' => 'td_ads',
  1327. 'item_id' => 'custom_ad_2',
  1328. 'option_id' => 'p_size',
  1329. 'values' => $td_google_ad_list_sizes
  1330. ));
  1331. ?>
  1332. </span>
  1333.  
  1334. </div>
  1335. </div>
  1336.  
  1337. <?php echo td_panel_generator::box_end();?>
  1338.  
  1339.  
  1340.  
  1341. <?php echo td_panel_generator::box_start('Custom ad 3', false);?>
  1342.  
  1343.  
  1344. <!-- ad box code -->
  1345. <div class="td-box-row">
  1346. <div class="td-box-description">
  1347. <span class="td-box-title">YOUR CUSTOM AD 3</span>
  1348. <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/">click here</a> (last paragraph)</p>
  1349. </div>
  1350. <div class="td-box-control-full">
  1351. <?php
  1352. echo td_panel_generator::textarea(array(
  1353. 'ds' => 'td_ads',
  1354. 'item_id' => 'custom_ad_3',
  1355. 'option_id' => 'ad_code',
  1356. ));
  1357. ?>
  1358. </div>
  1359. </div>
  1360.  
  1361.  
  1362. <div class="td-box-row">
  1363. <div class="td-box-description td-box-full">
  1364. <span class="td-box-title">Advance usage:</span>
  1365. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  1366. </div>
  1367. <div class="td-box-row-margin-bottom"></div>
  1368. </div>
  1369.  
  1370.  
  1371. <!-- disable ad on monitor -->
  1372. <div class="td-box-row">
  1373. <div class="td-box-description">
  1374. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1375. <p></p>
  1376. </div>
  1377. <div class="td-box-control-full">
  1378. <span>
  1379. <?php
  1380. echo td_panel_generator::checkbox(array(
  1381. 'ds' => 'td_ads',
  1382. 'item_id' => 'custom_ad_3',
  1383. 'option_id' => 'disable_m',
  1384. 'true_value' => 'yes',
  1385. 'false_value' => ''
  1386. ));
  1387. ?>
  1388. </span>
  1389. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1390. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1391. <span class="td-content-float-right">
  1392. <?php
  1393. echo td_panel_generator::dropdown(array(
  1394. 'ds' => 'td_ads',
  1395. 'item_id' => 'custom_ad_3',
  1396. 'option_id' => 'm_size',
  1397. 'values' => $td_google_ad_list_sizes
  1398. ));
  1399. ?>
  1400. </span>
  1401.  
  1402. </div>
  1403. </div>
  1404.  
  1405.  
  1406. <!-- disable ad on table landscape -->
  1407. <div class="td-box-row">
  1408. <div class="td-box-description">
  1409. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  1410. <p></p>
  1411. </div>
  1412. <div class="td-box-control-full">
  1413. <span>
  1414. <?php
  1415. echo td_panel_generator::checkbox(array(
  1416. 'ds' => 'td_ads',
  1417. 'item_id' => 'custom_ad_3',
  1418. 'option_id' => 'disable_tl',
  1419. 'true_value' => 'yes',
  1420. 'false_value' => ''
  1421. ));
  1422. ?>
  1423. </span>
  1424. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1425. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1426. <span class="td-content-float-right">
  1427. <?php
  1428. echo td_panel_generator::dropdown(array(
  1429. 'ds' => 'td_ads',
  1430. 'item_id' => 'custom_ad_3',
  1431. 'option_id' => 'tl_size',
  1432. 'values' => $td_google_ad_list_sizes
  1433. ));
  1434. ?>
  1435. </span>
  1436.  
  1437.  
  1438. </div>
  1439. </div>
  1440.  
  1441.  
  1442. <!-- disable ad on tablet portrait -->
  1443. <div class="td-box-row">
  1444. <div class="td-box-description">
  1445. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1446. <p></p>
  1447. </div>
  1448. <div class="td-box-control-full">
  1449. <span>
  1450. <?php
  1451. echo td_panel_generator::checkbox(array(
  1452. 'ds' => 'td_ads',
  1453. 'item_id' => 'custom_ad_3',
  1454. 'option_id' => 'disable_tp',
  1455. 'true_value' => 'yes',
  1456. 'false_value' => ''
  1457. ));
  1458. ?>
  1459. </span>
  1460. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1461. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1462. <span class="td-content-float-right">
  1463. <?php
  1464. echo td_panel_generator::dropdown(array(
  1465. 'ds' => 'td_ads',
  1466. 'item_id' => 'custom_ad_3',
  1467. 'option_id' => 'tp_size',
  1468. 'values' => $td_google_ad_list_sizes
  1469. ));
  1470. ?>
  1471. </span>
  1472.  
  1473. </div>
  1474. </div>
  1475.  
  1476.  
  1477. <!-- disable ad on phones -->
  1478. <div class="td-box-row">
  1479. <div class="td-box-description">
  1480. <span class="td-box-title">DISABLE ON PHONE</span>
  1481. <p></p>
  1482. </div>
  1483. <div class="td-box-control-full">
  1484. <span>
  1485. <?php
  1486. echo td_panel_generator::checkbox(array(
  1487. 'ds' => 'td_ads',
  1488. 'item_id' => 'custom_ad_3',
  1489. 'option_id' => 'disable_p',
  1490. 'true_value' => 'yes',
  1491. 'false_value' => ''
  1492. ));
  1493. ?>
  1494. </span>
  1495. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1496. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1497. <span class="td-content-float-right">
  1498. <?php
  1499. echo td_panel_generator::dropdown(array(
  1500. 'ds' => 'td_ads',
  1501. 'item_id' => 'custom_ad_3',
  1502. 'option_id' => 'p_size',
  1503. 'values' => $td_google_ad_list_sizes
  1504. ));
  1505. ?>
  1506. </span>
  1507.  
  1508. </div>
  1509. </div>
  1510.  
  1511. <?php echo td_panel_generator::box_end();?>
  1512.  
  1513.  
  1514.  
  1515. <?php echo td_panel_generator::box_start('Custom ad 4', false);?>
  1516.  
  1517.  
  1518. <!-- ad box code -->
  1519. <div class="td-box-row">
  1520. <div class="td-box-description">
  1521. <span class="td-box-title">YOUR CUSTOM AD 4</span>
  1522. <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/">click here</a> (last paragraph)</p>
  1523. </div>
  1524. <div class="td-box-control-full">
  1525. <?php
  1526. echo td_panel_generator::textarea(array(
  1527. 'ds' => 'td_ads',
  1528. 'item_id' => 'custom_ad_4',
  1529. 'option_id' => 'ad_code',
  1530. ));
  1531. ?>
  1532. </div>
  1533. </div>
  1534.  
  1535.  
  1536. <div class="td-box-row">
  1537. <div class="td-box-description td-box-full">
  1538. <span class="td-box-title">Advance usage:</span>
  1539. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  1540. </div>
  1541. <div class="td-box-row-margin-bottom"></div>
  1542. </div>
  1543.  
  1544.  
  1545. <!-- disable ad on monitor -->
  1546. <div class="td-box-row">
  1547. <div class="td-box-description">
  1548. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1549. <p></p>
  1550. </div>
  1551. <div class="td-box-control-full">
  1552. <span>
  1553. <?php
  1554. echo td_panel_generator::checkbox(array(
  1555. 'ds' => 'td_ads',
  1556. 'item_id' => 'custom_ad_4',
  1557. 'option_id' => 'disable_m',
  1558. 'true_value' => 'yes',
  1559. 'false_value' => ''
  1560. ));
  1561. ?>
  1562. </span>
  1563. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1564. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1565. <span class="td-content-float-right">
  1566. <?php
  1567. echo td_panel_generator::dropdown(array(
  1568. 'ds' => 'td_ads',
  1569. 'item_id' => 'custom_ad_4',
  1570. 'option_id' => 'm_size',
  1571. 'values' => $td_google_ad_list_sizes
  1572. ));
  1573. ?>
  1574. </span>
  1575.  
  1576. </div>
  1577. </div>
  1578.  
  1579.  
  1580. <!-- disable ad on table landscape -->
  1581. <div class="td-box-row">
  1582. <div class="td-box-description">
  1583. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  1584. <p></p>
  1585. </div>
  1586. <div class="td-box-control-full">
  1587. <span>
  1588. <?php
  1589. echo td_panel_generator::checkbox(array(
  1590. 'ds' => 'td_ads',
  1591. 'item_id' => 'custom_ad_4',
  1592. 'option_id' => 'disable_tl',
  1593. 'true_value' => 'yes',
  1594. 'false_value' => ''
  1595. ));
  1596. ?>
  1597. </span>
  1598. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1599. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1600. <span class="td-content-float-right">
  1601. <?php
  1602. echo td_panel_generator::dropdown(array(
  1603. 'ds' => 'td_ads',
  1604. 'item_id' => 'custom_ad_4',
  1605. 'option_id' => 'tl_size',
  1606. 'values' => $td_google_ad_list_sizes
  1607. ));
  1608. ?>
  1609. </span>
  1610.  
  1611.  
  1612. </div>
  1613. </div>
  1614.  
  1615.  
  1616. <!-- disable ad on tablet portrait -->
  1617. <div class="td-box-row">
  1618. <div class="td-box-description">
  1619. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1620. <p></p>
  1621. </div>
  1622. <div class="td-box-control-full">
  1623. <span>
  1624. <?php
  1625. echo td_panel_generator::checkbox(array(
  1626. 'ds' => 'td_ads',
  1627. 'item_id' => 'custom_ad_4',
  1628. 'option_id' => 'disable_tp',
  1629. 'true_value' => 'yes',
  1630. 'false_value' => ''
  1631. ));
  1632. ?>
  1633. </span>
  1634. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1635. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1636. <span class="td-content-float-right">
  1637. <?php
  1638. echo td_panel_generator::dropdown(array(
  1639. 'ds' => 'td_ads',
  1640. 'item_id' => 'custom_ad_4',
  1641. 'option_id' => 'tp_size',
  1642. 'values' => $td_google_ad_list_sizes
  1643. ));
  1644. ?>
  1645. </span>
  1646.  
  1647. </div>
  1648. </div>
  1649.  
  1650.  
  1651. <!-- disable ad on phones -->
  1652. <div class="td-box-row">
  1653. <div class="td-box-description">
  1654. <span class="td-box-title">DISABLE ON PHONE</span>
  1655. <p></p>
  1656. </div>
  1657. <div class="td-box-control-full">
  1658. <span>
  1659. <?php
  1660. echo td_panel_generator::checkbox(array(
  1661. 'ds' => 'td_ads',
  1662. 'item_id' => 'custom_ad_4',
  1663. 'option_id' => 'disable_p',
  1664. 'true_value' => 'yes',
  1665. 'false_value' => ''
  1666. ));
  1667. ?>
  1668. </span>
  1669. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1670. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1671. <span class="td-content-float-right">
  1672. <?php
  1673. echo td_panel_generator::dropdown(array(
  1674. 'ds' => 'td_ads',
  1675. 'item_id' => 'custom_ad_4',
  1676. 'option_id' => 'p_size',
  1677. 'values' => $td_google_ad_list_sizes
  1678. ));
  1679. ?>
  1680. </span>
  1681.  
  1682. </div>
  1683. </div>
  1684.  
  1685. <?php echo td_panel_generator::box_end();?>
  1686.  
  1687.  
  1688. <?php echo td_panel_generator::box_start('Custom ad 5', false);?>
  1689.  
  1690.  
  1691. <!-- ad box code -->
  1692. <div class="td-box-row">
  1693. <div class="td-box-description">
  1694. <span class="td-box-title">YOUR CUSTOM AD 5</span>
  1695. <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/">click here</a> (last paragraph)</p>
  1696. </div>
  1697. <div class="td-box-control-full">
  1698. <?php
  1699. echo td_panel_generator::textarea(array(
  1700. 'ds' => 'td_ads',
  1701. 'item_id' => 'custom_ad_5',
  1702. 'option_id' => 'ad_code',
  1703. ));
  1704. ?>
  1705. </div>
  1706. </div>
  1707.  
  1708.  
  1709. <div class="td-box-row">
  1710. <div class="td-box-description td-box-full">
  1711. <span class="td-box-title">Advance usage:</span>
  1712. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  1713. </div>
  1714. <div class="td-box-row-margin-bottom"></div>
  1715. </div>
  1716.  
  1717.  
  1718. <!-- disable ad on monitor -->
  1719. <div class="td-box-row">
  1720. <div class="td-box-description">
  1721. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1722. <p></p>
  1723. </div>
  1724. <div class="td-box-control-full">
  1725. <span>
  1726. <?php
  1727. echo td_panel_generator::checkbox(array(
  1728. 'ds' => 'td_ads',
  1729. 'item_id' => 'custom_ad_5',
  1730. 'option_id' => 'disable_m',
  1731. 'true_value' => 'yes',
  1732. 'false_value' => ''
  1733. ));
  1734. ?>
  1735. </span>
  1736. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1737. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1738. <span class="td-content-float-right">
  1739. <?php
  1740. echo td_panel_generator::dropdown(array(
  1741. 'ds' => 'td_ads',
  1742. 'item_id' => 'custom_ad_5',
  1743. 'option_id' => 'm_size',
  1744. 'values' => $td_google_ad_list_sizes
  1745. ));
  1746. ?>
  1747. </span>
  1748.  
  1749. </div>
  1750. </div>
  1751.  
  1752.  
  1753. <!-- disable ad on table landscape -->
  1754. <div class="td-box-row">
  1755. <div class="td-box-description">
  1756. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  1757. <p></p>
  1758. </div>
  1759. <div class="td-box-control-full">
  1760. <span>
  1761. <?php
  1762. echo td_panel_generator::checkbox(array(
  1763. 'ds' => 'td_ads',
  1764. 'item_id' => 'custom_ad_5',
  1765. 'option_id' => 'disable_tl',
  1766. 'true_value' => 'yes',
  1767. 'false_value' => ''
  1768. ));
  1769. ?>
  1770. </span>
  1771. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1772. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1773. <span class="td-content-float-right">
  1774. <?php
  1775. echo td_panel_generator::dropdown(array(
  1776. 'ds' => 'td_ads',
  1777. 'item_id' => 'custom_ad_5',
  1778. 'option_id' => 'tl_size',
  1779. 'values' => $td_google_ad_list_sizes
  1780. ));
  1781. ?>
  1782. </span>
  1783.  
  1784.  
  1785. </div>
  1786. </div>
  1787.  
  1788.  
  1789. <!-- disable ad on tablet portrait -->
  1790. <div class="td-box-row">
  1791. <div class="td-box-description">
  1792. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1793. <p></p>
  1794. </div>
  1795. <div class="td-box-control-full">
  1796. <span>
  1797. <?php
  1798. echo td_panel_generator::checkbox(array(
  1799. 'ds' => 'td_ads',
  1800. 'item_id' => 'custom_ad_5',
  1801. 'option_id' => 'disable_tp',
  1802. 'true_value' => 'yes',
  1803. 'false_value' => ''
  1804. ));
  1805. ?>
  1806. </span>
  1807. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1808. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1809. <span class="td-content-float-right">
  1810. <?php
  1811. echo td_panel_generator::dropdown(array(
  1812. 'ds' => 'td_ads',
  1813. 'item_id' => 'custom_ad_5',
  1814. 'option_id' => 'tp_size',
  1815. 'values' => $td_google_ad_list_sizes
  1816. ));
  1817. ?>
  1818. </span>
  1819.  
  1820. </div>
  1821. </div>
  1822.  
  1823.  
  1824. <!-- disable ad on phones -->
  1825. <div class="td-box-row">
  1826. <div class="td-box-description">
  1827. <span class="td-box-title">DISABLE ON PHONE</span>
  1828. <p></p>
  1829. </div>
  1830. <div class="td-box-control-full">
  1831. <span>
  1832. <?php
  1833. echo td_panel_generator::checkbox(array(
  1834. 'ds' => 'td_ads',
  1835. 'item_id' => 'custom_ad_5',
  1836. 'option_id' => 'disable_p',
  1837. 'true_value' => 'yes',
  1838. 'false_value' => ''
  1839. ));
  1840. ?>
  1841. </span>
  1842. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1843. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1844. <span class="td-content-float-right">
  1845. <?php
  1846. echo td_panel_generator::dropdown(array(
  1847. 'ds' => 'td_ads',
  1848. 'item_id' => 'custom_ad_5',
  1849. 'option_id' => 'p_size',
  1850. 'values' => $td_google_ad_list_sizes
  1851. ));
  1852. ?>
  1853. </span>
  1854.  
  1855. </div>
  1856. </div>
  1857.  
  1858. <?php echo td_panel_generator::box_end();?>
  1859.  
  1860.  
  1861. <?php echo td_panel_generator::box_start('Custom ad 6', false);?>
  1862.  
  1863.  
  1864. <!-- ad box code -->
  1865. <div class="td-box-row">
  1866. <div class="td-box-description">
  1867. <span class="td-box-title">YOUR CUSTOM AD 6</span>
  1868. <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/">click here</a> (last paragraph)</p>
  1869. </div>
  1870. <div class="td-box-control-full">
  1871. <?php
  1872. echo td_panel_generator::textarea(array(
  1873. 'ds' => 'td_ads',
  1874. 'item_id' => 'custom_ad_6',
  1875. 'option_id' => 'ad_code',
  1876. ));
  1877. ?>
  1878. </div>
  1879. </div>
  1880.  
  1881.  
  1882. <div class="td-box-row">
  1883. <div class="td-box-description td-box-full">
  1884. <span class="td-box-title">Advance usage:</span>
  1885. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  1886. </div>
  1887. <div class="td-box-row-margin-bottom"></div>
  1888. </div>
  1889.  
  1890.  
  1891. <!-- disable ad on monitor -->
  1892. <div class="td-box-row">
  1893. <div class="td-box-description">
  1894. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  1895. <p></p>
  1896. </div>
  1897. <div class="td-box-control-full">
  1898. <span>
  1899. <?php
  1900. echo td_panel_generator::checkbox(array(
  1901. 'ds' => 'td_ads',
  1902. 'item_id' => 'custom_ad_6',
  1903. 'option_id' => 'disable_m',
  1904. 'true_value' => 'yes',
  1905. 'false_value' => ''
  1906. ));
  1907. ?>
  1908. </span>
  1909. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1910. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1911. <span class="td-content-float-right">
  1912. <?php
  1913. echo td_panel_generator::dropdown(array(
  1914. 'ds' => 'td_ads',
  1915. 'item_id' => 'custom_ad_6',
  1916. 'option_id' => 'm_size',
  1917. 'values' => $td_google_ad_list_sizes
  1918. ));
  1919. ?>
  1920. </span>
  1921.  
  1922. </div>
  1923. </div>
  1924.  
  1925.  
  1926. <!-- disable ad on table landscape -->
  1927. <div class="td-box-row">
  1928. <div class="td-box-description">
  1929. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  1930. <p></p>
  1931. </div>
  1932. <div class="td-box-control-full">
  1933. <span>
  1934. <?php
  1935. echo td_panel_generator::checkbox(array(
  1936. 'ds' => 'td_ads',
  1937. 'item_id' => 'custom_ad_6',
  1938. 'option_id' => 'disable_tl',
  1939. 'true_value' => 'yes',
  1940. 'false_value' => ''
  1941. ));
  1942. ?>
  1943. </span>
  1944. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1945. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1946. <span class="td-content-float-right">
  1947. <?php
  1948. echo td_panel_generator::dropdown(array(
  1949. 'ds' => 'td_ads',
  1950. 'item_id' => 'custom_ad_6',
  1951. 'option_id' => 'tl_size',
  1952. 'values' => $td_google_ad_list_sizes
  1953. ));
  1954. ?>
  1955. </span>
  1956.  
  1957.  
  1958. </div>
  1959. </div>
  1960.  
  1961.  
  1962. <!-- disable ad on tablet portrait -->
  1963. <div class="td-box-row">
  1964. <div class="td-box-description">
  1965. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  1966. <p></p>
  1967. </div>
  1968. <div class="td-box-control-full">
  1969. <span>
  1970. <?php
  1971. echo td_panel_generator::checkbox(array(
  1972. 'ds' => 'td_ads',
  1973. 'item_id' => 'custom_ad_6',
  1974. 'option_id' => 'disable_tp',
  1975. 'true_value' => 'yes',
  1976. 'false_value' => ''
  1977. ));
  1978. ?>
  1979. </span>
  1980. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  1981. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  1982. <span class="td-content-float-right">
  1983. <?php
  1984. echo td_panel_generator::dropdown(array(
  1985. 'ds' => 'td_ads',
  1986. 'item_id' => 'custom_ad_6',
  1987. 'option_id' => 'tp_size',
  1988. 'values' => $td_google_ad_list_sizes
  1989. ));
  1990. ?>
  1991. </span>
  1992.  
  1993. </div>
  1994. </div>
  1995.  
  1996.  
  1997. <!-- disable ad on phones -->
  1998. <div class="td-box-row">
  1999. <div class="td-box-description">
  2000. <span class="td-box-title">DISABLE ON PHONE</span>
  2001. <p></p>
  2002. </div>
  2003. <div class="td-box-control-full">
  2004. <span>
  2005. <?php
  2006. echo td_panel_generator::checkbox(array(
  2007. 'ds' => 'td_ads',
  2008. 'item_id' => 'custom_ad_6',
  2009. 'option_id' => 'disable_p',
  2010. 'true_value' => 'yes',
  2011. 'false_value' => ''
  2012. ));
  2013. ?>
  2014. </span>
  2015. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2016. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2017. <span class="td-content-float-right">
  2018. <?php
  2019. echo td_panel_generator::dropdown(array(
  2020. 'ds' => 'td_ads',
  2021. 'item_id' => 'custom_ad_6',
  2022. 'option_id' => 'p_size',
  2023. 'values' => $td_google_ad_list_sizes
  2024. ));
  2025. ?>
  2026. </span>
  2027.  
  2028. </div>
  2029. </div>
  2030.  
  2031. <?php echo td_panel_generator::box_end();?>
  2032.  
  2033.  
  2034. <?php echo td_panel_generator::box_start('Custom ad 7', false);?>
  2035.  
  2036.  
  2037. <!-- ad box code -->
  2038. <div class="td-box-row">
  2039. <div class="td-box-description">
  2040. <span class="td-box-title">YOUR CUSTOM AD 7</span>
  2041. <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/">click here</a> (last paragraph)</p>
  2042. </div>
  2043. <div class="td-box-control-full">
  2044. <?php
  2045. echo td_panel_generator::textarea(array(
  2046. 'ds' => 'td_ads',
  2047. 'item_id' => 'custom_ad_7',
  2048. 'option_id' => 'ad_code',
  2049. ));
  2050. ?>
  2051. </div>
  2052. </div>
  2053.  
  2054.  
  2055. <div class="td-box-row">
  2056. <div class="td-box-description td-box-full">
  2057. <span class="td-box-title">Advance usage:</span>
  2058. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  2059. </div>
  2060. <div class="td-box-row-margin-bottom"></div>
  2061. </div>
  2062.  
  2063.  
  2064. <!-- disable ad on monitor -->
  2065. <div class="td-box-row">
  2066. <div class="td-box-description">
  2067. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  2068. <p></p>
  2069. </div>
  2070. <div class="td-box-control-full">
  2071. <span>
  2072. <?php
  2073. echo td_panel_generator::checkbox(array(
  2074. 'ds' => 'td_ads',
  2075. 'item_id' => 'custom_ad_7',
  2076. 'option_id' => 'disable_m',
  2077. 'true_value' => 'yes',
  2078. 'false_value' => ''
  2079. ));
  2080. ?>
  2081. </span>
  2082. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2083. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2084. <span class="td-content-float-right">
  2085. <?php
  2086. echo td_panel_generator::dropdown(array(
  2087. 'ds' => 'td_ads',
  2088. 'item_id' => 'custom_ad_7',
  2089. 'option_id' => 'm_size',
  2090. 'values' => $td_google_ad_list_sizes
  2091. ));
  2092. ?>
  2093. </span>
  2094.  
  2095. </div>
  2096. </div>
  2097.  
  2098.  
  2099. <!-- disable ad on table landscape -->
  2100. <div class="td-box-row">
  2101. <div class="td-box-description">
  2102. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  2103. <p></p>
  2104. </div>
  2105. <div class="td-box-control-full">
  2106. <span>
  2107. <?php
  2108. echo td_panel_generator::checkbox(array(
  2109. 'ds' => 'td_ads',
  2110. 'item_id' => 'custom_ad_7',
  2111. 'option_id' => 'disable_tl',
  2112. 'true_value' => 'yes',
  2113. 'false_value' => ''
  2114. ));
  2115. ?>
  2116. </span>
  2117. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2118. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2119. <span class="td-content-float-right">
  2120. <?php
  2121. echo td_panel_generator::dropdown(array(
  2122. 'ds' => 'td_ads',
  2123. 'item_id' => 'custom_ad_7',
  2124. 'option_id' => 'tl_size',
  2125. 'values' => $td_google_ad_list_sizes
  2126. ));
  2127. ?>
  2128. </span>
  2129.  
  2130.  
  2131. </div>
  2132. </div>
  2133.  
  2134.  
  2135. <!-- disable ad on tablet portrait -->
  2136. <div class="td-box-row">
  2137. <div class="td-box-description">
  2138. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  2139. <p></p>
  2140. </div>
  2141. <div class="td-box-control-full">
  2142. <span>
  2143. <?php
  2144. echo td_panel_generator::checkbox(array(
  2145. 'ds' => 'td_ads',
  2146. 'item_id' => 'custom_ad_7',
  2147. 'option_id' => 'disable_tp',
  2148. 'true_value' => 'yes',
  2149. 'false_value' => ''
  2150. ));
  2151. ?>
  2152. </span>
  2153. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2154. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2155. <span class="td-content-float-right">
  2156. <?php
  2157. echo td_panel_generator::dropdown(array(
  2158. 'ds' => 'td_ads',
  2159. 'item_id' => 'custom_ad_7',
  2160. 'option_id' => 'tp_size',
  2161. 'values' => $td_google_ad_list_sizes
  2162. ));
  2163. ?>
  2164. </span>
  2165.  
  2166. </div>
  2167. </div>
  2168.  
  2169.  
  2170. <!-- disable ad on phones -->
  2171. <div class="td-box-row">
  2172. <div class="td-box-description">
  2173. <span class="td-box-title">DISABLE ON PHONE</span>
  2174. <p></p>
  2175. </div>
  2176. <div class="td-box-control-full">
  2177. <span>
  2178. <?php
  2179. echo td_panel_generator::checkbox(array(
  2180. 'ds' => 'td_ads',
  2181. 'item_id' => 'custom_ad_7',
  2182. 'option_id' => 'disable_p',
  2183. 'true_value' => 'yes',
  2184. 'false_value' => ''
  2185. ));
  2186. ?>
  2187. </span>
  2188. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2189. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2190. <span class="td-content-float-right">
  2191. <?php
  2192. echo td_panel_generator::dropdown(array(
  2193. 'ds' => 'td_ads',
  2194. 'item_id' => 'custom_ad_7',
  2195. 'option_id' => 'p_size',
  2196. 'values' => $td_google_ad_list_sizes
  2197. ));
  2198. ?>
  2199. </span>
  2200.  
  2201. </div>
  2202. </div>
  2203.  
  2204. <?php echo td_panel_generator::box_end();?>
  2205.  
  2206.  
  2207. <?php echo td_panel_generator::box_start('Custom ad 8', false);?>
  2208.  
  2209.  
  2210. <!-- ad box code -->
  2211. <div class="td-box-row">
  2212. <div class="td-box-description">
  2213. <span class="td-box-title">YOUR CUSTOM AD 8</span>
  2214. <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/">click here</a> (last paragraph)</p>
  2215. </div>
  2216. <div class="td-box-control-full">
  2217. <?php
  2218. echo td_panel_generator::textarea(array(
  2219. 'ds' => 'td_ads',
  2220. 'item_id' => 'custom_ad_8',
  2221. 'option_id' => 'ad_code',
  2222. ));
  2223. ?>
  2224. </div>
  2225. </div>
  2226.  
  2227.  
  2228. <div class="td-box-row">
  2229. <div class="td-box-description td-box-full">
  2230. <span class="td-box-title">Advance usage:</span>
  2231. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  2232. </div>
  2233. <div class="td-box-row-margin-bottom"></div>
  2234. </div>
  2235.  
  2236.  
  2237. <!-- disable ad on monitor -->
  2238. <div class="td-box-row">
  2239. <div class="td-box-description">
  2240. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  2241. <p></p>
  2242. </div>
  2243. <div class="td-box-control-full">
  2244. <span>
  2245. <?php
  2246. echo td_panel_generator::checkbox(array(
  2247. 'ds' => 'td_ads',
  2248. 'item_id' => 'custom_ad_8',
  2249. 'option_id' => 'disable_m',
  2250. 'true_value' => 'yes',
  2251. 'false_value' => ''
  2252. ));
  2253. ?>
  2254. </span>
  2255. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2256. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2257. <span class="td-content-float-right">
  2258. <?php
  2259. echo td_panel_generator::dropdown(array(
  2260. 'ds' => 'td_ads',
  2261. 'item_id' => 'custom_ad_8',
  2262. 'option_id' => 'm_size',
  2263. 'values' => $td_google_ad_list_sizes
  2264. ));
  2265. ?>
  2266. </span>
  2267.  
  2268. </div>
  2269. </div>
  2270.  
  2271.  
  2272. <!-- disable ad on table landscape -->
  2273. <div class="td-box-row">
  2274. <div class="td-box-description">
  2275. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  2276. <p></p>
  2277. </div>
  2278. <div class="td-box-control-full">
  2279. <span>
  2280. <?php
  2281. echo td_panel_generator::checkbox(array(
  2282. 'ds' => 'td_ads',
  2283. 'item_id' => 'custom_ad_8',
  2284. 'option_id' => 'disable_tl',
  2285. 'true_value' => 'yes',
  2286. 'false_value' => ''
  2287. ));
  2288. ?>
  2289. </span>
  2290. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2291. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2292. <span class="td-content-float-right">
  2293. <?php
  2294. echo td_panel_generator::dropdown(array(
  2295. 'ds' => 'td_ads',
  2296. 'item_id' => 'custom_ad_8',
  2297. 'option_id' => 'tl_size',
  2298. 'values' => $td_google_ad_list_sizes
  2299. ));
  2300. ?>
  2301. </span>
  2302.  
  2303.  
  2304. </div>
  2305. </div>
  2306.  
  2307.  
  2308. <!-- disable ad on tablet portrait -->
  2309. <div class="td-box-row">
  2310. <div class="td-box-description">
  2311. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  2312. <p></p>
  2313. </div>
  2314. <div class="td-box-control-full">
  2315. <span>
  2316. <?php
  2317. echo td_panel_generator::checkbox(array(
  2318. 'ds' => 'td_ads',
  2319. 'item_id' => 'custom_ad_8',
  2320. 'option_id' => 'disable_tp',
  2321. 'true_value' => 'yes',
  2322. 'false_value' => ''
  2323. ));
  2324. ?>
  2325. </span>
  2326. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2327. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2328. <span class="td-content-float-right">
  2329. <?php
  2330. echo td_panel_generator::dropdown(array(
  2331. 'ds' => 'td_ads',
  2332. 'item_id' => 'custom_ad_8',
  2333. 'option_id' => 'tp_size',
  2334. 'values' => $td_google_ad_list_sizes
  2335. ));
  2336. ?>
  2337. </span>
  2338.  
  2339. </div>
  2340. </div>
  2341.  
  2342.  
  2343. <!-- disable ad on phones -->
  2344. <div class="td-box-row">
  2345. <div class="td-box-description">
  2346. <span class="td-box-title">DISABLE ON PHONE</span>
  2347. <p></p>
  2348. </div>
  2349. <div class="td-box-control-full">
  2350. <span>
  2351. <?php
  2352. echo td_panel_generator::checkbox(array(
  2353. 'ds' => 'td_ads',
  2354. 'item_id' => 'custom_ad_8',
  2355. 'option_id' => 'disable_p',
  2356. 'true_value' => 'yes',
  2357. 'false_value' => ''
  2358. ));
  2359. ?>
  2360. </span>
  2361. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2362. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2363. <span class="td-content-float-right">
  2364. <?php
  2365. echo td_panel_generator::dropdown(array(
  2366. 'ds' => 'td_ads',
  2367. 'item_id' => 'custom_ad_8',
  2368. 'option_id' => 'p_size',
  2369. 'values' => $td_google_ad_list_sizes
  2370. ));
  2371. ?>
  2372. </span>
  2373.  
  2374. </div>
  2375. </div>
  2376.  
  2377. <?php echo td_panel_generator::box_end();?>
  2378.  
  2379.  
  2380. <?php echo td_panel_generator::box_start('Custom ad 9', false);?>
  2381.  
  2382.  
  2383. <!-- ad box code -->
  2384. <div class="td-box-row">
  2385. <div class="td-box-description">
  2386. <span class="td-box-title">YOUR CUSTOM AD 9</span>
  2387. <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/">click here</a> (last paragraph)</p>
  2388. </div>
  2389. <div class="td-box-control-full">
  2390. <?php
  2391. echo td_panel_generator::textarea(array(
  2392. 'ds' => 'td_ads',
  2393. 'item_id' => 'custom_ad_9',
  2394. 'option_id' => 'ad_code',
  2395. ));
  2396. ?>
  2397. </div>
  2398. </div>
  2399.  
  2400.  
  2401. <div class="td-box-row">
  2402. <div class="td-box-description td-box-full">
  2403. <span class="td-box-title">Advance usage:</span>
  2404. <p>If you leave the AdSense size boxes empty, the theme will automatically resize the <strong>google ads</strong>. For more info follow this <a href="http://forum.tagdiv.com/ads/" target="_blank">link</a></p>
  2405. </div>
  2406. <div class="td-box-row-margin-bottom"></div>
  2407. </div>
  2408.  
  2409.  
  2410. <!-- disable ad on monitor -->
  2411. <div class="td-box-row">
  2412. <div class="td-box-description">
  2413. <span class="td-box-title td-title-on-row">DISABLE ON DESKTOP</span>
  2414. <p></p>
  2415. </div>
  2416. <div class="td-box-control-full">
  2417. <span>
  2418. <?php
  2419. echo td_panel_generator::checkbox(array(
  2420. 'ds' => 'td_ads',
  2421. 'item_id' => 'custom_ad_9',
  2422. 'option_id' => 'disable_m',
  2423. 'true_value' => 'yes',
  2424. 'false_value' => ''
  2425. ));
  2426. ?>
  2427. </span>
  2428. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2429. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2430. <span class="td-content-float-right">
  2431. <?php
  2432. echo td_panel_generator::dropdown(array(
  2433. 'ds' => 'td_ads',
  2434. 'item_id' => 'custom_ad_9',
  2435. 'option_id' => 'm_size',
  2436. 'values' => $td_google_ad_list_sizes
  2437. ));
  2438. ?>
  2439. </span>
  2440.  
  2441. </div>
  2442. </div>
  2443.  
  2444.  
  2445. <!-- disable ad on table landscape -->
  2446. <div class="td-box-row">
  2447. <div class="td-box-description">
  2448. <span class="td-box-title td-title-on-row">DISABLE ON TABLET LANDSCAPE</span>
  2449. <p></p>
  2450. </div>
  2451. <div class="td-box-control-full">
  2452. <span>
  2453. <?php
  2454. echo td_panel_generator::checkbox(array(
  2455. 'ds' => 'td_ads',
  2456. 'item_id' => 'custom_ad_9',
  2457. 'option_id' => 'disable_tl',
  2458. 'true_value' => 'yes',
  2459. 'false_value' => ''
  2460. ));
  2461. ?>
  2462. </span>
  2463. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2464. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2465. <span class="td-content-float-right">
  2466. <?php
  2467. echo td_panel_generator::dropdown(array(
  2468. 'ds' => 'td_ads',
  2469. 'item_id' => 'custom_ad_9',
  2470. 'option_id' => 'tl_size',
  2471. 'values' => $td_google_ad_list_sizes
  2472. ));
  2473. ?>
  2474. </span>
  2475.  
  2476.  
  2477. </div>
  2478. </div>
  2479.  
  2480.  
  2481. <!-- disable ad on tablet portrait -->
  2482. <div class="td-box-row">
  2483. <div class="td-box-description">
  2484. <span class="td-box-title td-title-on-row">DISABLE ON TABLET PORTRAIT</span>
  2485. <p></p>
  2486. </div>
  2487. <div class="td-box-control-full">
  2488. <span>
  2489. <?php
  2490. echo td_panel_generator::checkbox(array(
  2491. 'ds' => 'td_ads',
  2492. 'item_id' => 'custom_ad_9',
  2493. 'option_id' => 'disable_tp',
  2494. 'true_value' => 'yes',
  2495. 'false_value' => ''
  2496. ));
  2497. ?>
  2498. </span>
  2499. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2500. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2501. <span class="td-content-float-right">
  2502. <?php
  2503. echo td_panel_generator::dropdown(array(
  2504. 'ds' => 'td_ads',
  2505. 'item_id' => 'custom_ad_9',
  2506. 'option_id' => 'tp_size',
  2507. 'values' => $td_google_ad_list_sizes
  2508. ));
  2509. ?>
  2510. </span>
  2511.  
  2512. </div>
  2513. </div>
  2514.  
  2515.  
  2516. <!-- disable ad on phones -->
  2517. <div class="td-box-row">
  2518. <div class="td-box-description">
  2519. <span class="td-box-title">DISABLE ON PHONE</span>
  2520. <p></p>
  2521. </div>
  2522. <div class="td-box-control-full">
  2523. <span>
  2524. <?php
  2525. echo td_panel_generator::checkbox(array(
  2526. 'ds' => 'td_ads',
  2527. 'item_id' => 'custom_ad_9',
  2528. 'option_id' => 'disable_p',
  2529. 'true_value' => 'yes',
  2530. 'false_value' => ''
  2531. ));
  2532. ?>
  2533. </span>
  2534. <span class="td-content-float-right td_float_clear_both td-content-padding-right-40">
  2535. <span class="td-content-padding-right-40 td-adsense-size">AdSense size: </span>
  2536. <span class="td-content-float-right">
  2537. <?php
  2538. echo td_panel_generator::dropdown(array(
  2539. 'ds' => 'td_ads',
  2540. 'item_id' => 'custom_ad_9',
  2541. 'option_id' => 'p_size',
  2542. 'values' => $td_google_ad_list_sizes
  2543. ));
  2544. ?>
  2545. </span>
  2546.  
  2547. </div>
  2548. </div>
  2549.  
  2550. <?php echo td_panel_generator::box_end();?>
Advertisement
Add Comment
Please, Sign In to add comment