Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.48 KB | None | 0 0
  1. <!-- general post settings -->
  2. <?php echo td_panel_generator::box_start('General post settings', false); ?>
  3.  
  4. <!-- set general modal image -->
  5. <div class="td-box-row">
  6. <div class="td-box-description">
  7. <span class="td-box-title">GENERAL MODAL IMAGE</span>
  8. <p>Enable or disable general modal image viewer over all post images, so you won't have to go on each post
  9. to set them individually.</p>
  10. <p>Consider that disabling this feature, the individual settings of an image post are applied.</p>
  11. </div>
  12. <div class="td-box-control-full">
  13. <?php
  14. echo td_panel_generator::checkbox(array(
  15. 'ds' => 'td_option',
  16. 'option_id' => 'tds_general_modal_image',
  17. 'true_value' => 'yes',
  18. 'false_value' => ''
  19. ));
  20. ?>
  21. </div>
  22. </div>
  23.  
  24. <!-- set general modal image -->
  25. <div class="td-box-row">
  26. <div class="td-box-description">
  27. <span class="td-box-title">Disable article schema</span>
  28. <p>Activating the option will disable the schema.org/Article markups in the theme. Use this when you use an SEO plugin that comes with its own markups.</p>
  29. </div>
  30. <div class="td-box-control-full">
  31. <?php
  32. echo td_panel_generator::checkbox(array(
  33. 'ds' => 'td_option',
  34. 'option_id' => 'tds_disable_article_schema',
  35. 'true_value' => 'yes',
  36. 'false_value' => ''
  37. ));
  38. ?>
  39. </div>
  40. </div>
  41.  
  42. <?php echo td_panel_generator::box_end(); ?>
  43. <!-- post settings -->
  44. <?php echo td_panel_generator::box_start('Default post template (site wide)', false); ?>
  45.  
  46. <!-- Default post template -->
  47. <div class="td-box-row">
  48. <div class="td-box-description">
  49. <span class="td-box-title">DEFAULT SITE POST TEMPLATE</span>
  50. <p>Setting this option will make all post pages, that don't have a post template set, to be displayed using this template. You can overwrite this setting on a per post basis.</p>
  51. </div>
  52. <div class="td-box-control-full">
  53. <?php
  54. echo td_panel_generator::visual_select_o(array(
  55. 'ds' => 'td_option',
  56. 'option_id' => 'td_default_site_post_template',
  57. 'values' => td_api_single_template::_helper_td_global_list_to_panel_values()
  58. ));
  59. ?>
  60. </div>
  61. </div>
  62.  
  63. <?php echo td_panel_generator::box_end(); ?>
  64.  
  65.  
  66.  
  67. <!-- Post and custom pst types -->
  68. <?php if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) {
  69. echo td_panel_generator::box_start('Post and Custom Post Types', false); ?>
  70.  
  71. <!-- Show categories -->
  72. <div class="td-box-row">
  73. <div class="td-box-description">
  74. <span class="td-box-title">SHOW CATEGORIES TAGS</span>
  75. <p>Enable or disable the categories tags (on single posts and custom post types)</p>
  76. </div>
  77. <div class="td-box-control-full">
  78. <?php
  79. echo td_panel_generator::checkbox(array(
  80. 'ds' => 'td_option',
  81. 'option_id' => 'tds_p_categories_tags',
  82. 'true_value' => '',
  83. 'false_value' => 'hide'
  84. ));
  85. ?>
  86. </div>
  87. </div>
  88.  
  89. <!-- Show categories -->
  90. <div class="td-box-row">
  91. <div class="td-box-description">
  92. <span class="td-box-title">CATEGORY TAGS DISPLAY ORDER</span>
  93. <p>
  94. Set the post category tags display order.
  95. <?php td_util::tooltip_html('
  96. <h3>Post category tags display order</h3>
  97. <ul>
  98. <li>Disable - display the parent category tag first</li>
  99. <li>Enable - display the category tags alphabetically</li>
  100. </ul>
  101. ', 'right') ?>
  102. </p>
  103. </div>
  104. <div class="td-box-control-full">
  105. <?php
  106. echo td_panel_generator::checkbox(array(
  107. 'ds' => 'td_option',
  108. 'option_id' => 'tds_default_category_display',
  109. 'true_value' => 'true',
  110. 'false_value' => ''
  111. ));
  112. ?>
  113. </div>
  114. </div>
  115.  
  116. <!-- Show author name -->
  117. <div class="td-box-row">
  118. <div class="td-box-description">
  119. <span class="td-box-title">SHOW AUTHOR NAME</span>
  120. <p>Enable or disable the author name (on single post page)</p>
  121. </div>
  122. <div class="td-box-control-full">
  123. <?php
  124. echo td_panel_generator::checkbox(array(
  125. 'ds' => 'td_option',
  126. 'option_id' => 'tds_p_show_author_name',
  127. 'true_value' => '',
  128. 'false_value' => 'hide'
  129. ));
  130. ?>
  131. </div>
  132. </div>
  133.  
  134. <!-- Show date -->
  135. <div class="td-box-row">
  136. <div class="td-box-description">
  137. <span class="td-box-title">SHOW DATE</span>
  138. <p>Enable or disable the post date (on single post page)</p>
  139. </div>
  140. <div class="td-box-control-full">
  141. <?php
  142. echo td_panel_generator::checkbox(array(
  143. 'ds' => 'td_option',
  144. 'option_id' => 'tds_p_show_date',
  145. 'true_value' => '',
  146. 'false_value' => 'hide'
  147. ));
  148. ?>
  149. </div>
  150. </div>
  151.  
  152. <!-- Show modified date -->
  153. <?php if ('Newsmag' == TD_THEME_NAME) { ?>
  154. <div class="td-box-row">
  155. <div class="td-box-description">
  156. <span class="td-box-title">SHOW MODIFIED DATE</span>
  157. <p>Enable or disable the post modified date (on single post page)</p>
  158. </div>
  159. <div class="td-box-control-full">
  160. <?php
  161. echo td_panel_generator::checkbox(array(
  162. 'ds' => 'td_option',
  163. 'option_id' => 'tds_p_show_modified_date',
  164. 'true_value' => 'yes',
  165. 'false_value' => ''
  166. ));
  167. ?>
  168. </div>
  169. </div>
  170. <?php } ?>
  171.  
  172. <!-- Show post views -->
  173. <div class="td-box-row">
  174. <div class="td-box-description">
  175. <span class="td-box-title">SHOW POST VIEWS</span>
  176. <p>Enable or disable the post views (on single post page)</p>
  177. </div>
  178. <div class="td-box-control-full">
  179. <?php
  180. echo td_panel_generator::checkbox(array(
  181. 'ds' => 'td_option',
  182. 'option_id' => 'tds_p_show_views',
  183. 'true_value' => '',
  184. 'false_value' => 'hide'
  185. ));
  186. ?>
  187. </div>
  188. </div>
  189.  
  190.  
  191. <!-- SHow comment count -->
  192. <div class="td-box-row">
  193. <div class="td-box-description">
  194. <span class="td-box-title">SHOW COMMENT COUNT</span>
  195. <p>Enable or disable comment number (on single post page)</p>
  196. </div>
  197. <div class="td-box-control-full">
  198. <?php
  199. echo td_panel_generator::checkbox(array(
  200. 'ds' => 'td_option',
  201. 'option_id' => 'tds_p_show_comments',
  202. 'true_value' => '',
  203. 'false_value' => 'hide'
  204. ));
  205. ?>
  206. </div>
  207. </div>
  208.  
  209.  
  210. <!-- Show tags -->
  211. <div class="td-box-row">
  212. <div class="td-box-description">
  213. <span class="td-box-title">SHOW TAGS</span>
  214. <p>Enable or disable the post tags (bottom of single post pages and CPT)</p>
  215. </div>
  216. <div class="td-box-control-full">
  217. <?php
  218. echo td_panel_generator::checkbox(array(
  219. 'ds' => 'td_option',
  220. 'option_id' => 'tds_show_tags',
  221. 'true_value' => '',
  222. 'false_value' => 'hide'
  223. ));
  224. ?>
  225. </div>
  226. </div>
  227.  
  228.  
  229. <!-- Show author box -->
  230. <div class="td-box-row">
  231. <div class="td-box-description">
  232. <span class="td-box-title">SHOW AUTHOR BOX</span>
  233. <p>Enable or disable the author box (bottom of single post pages)</p>
  234. </div>
  235. <div class="td-box-control-full">
  236. <?php
  237. echo td_panel_generator::checkbox(array(
  238. 'ds' => 'td_option',
  239. 'option_id' => 'tds_show_author_box',
  240. 'true_value' => '',
  241. 'false_value' => 'hide'
  242. ));
  243. ?>
  244. </div>
  245. </div>
  246.  
  247.  
  248. <!-- Show next and previous posts -->
  249. <div class="td-box-row">
  250. <div class="td-box-description">
  251. <span class="td-box-title">SHOW NEXT AND PREVIOUS POSTS</span>
  252. <p>Show or hide `next` and `previous` posts (bottom of single post pages)</p>
  253. </div>
  254. <div class="td-box-control-full">
  255. <?php
  256. echo td_panel_generator::checkbox(array(
  257. 'ds' => 'td_option',
  258. 'option_id' => 'tds_show_next_prev',
  259. 'true_value' => '',
  260. 'false_value' => 'hide'
  261. ));
  262. ?>
  263. </div>
  264. </div>
  265.  
  266.  
  267. <!-- Disable comments on post pages -->
  268. <div class="td-box-row">
  269. <div class="td-box-description">
  270. <span class="td-box-title">ENABLE COMMENTS ON POSTS</span>
  271. <p>Enable or disable the posts' comments, for the entire site.</p>
  272. </div>
  273. <div class="td-box-control-full">
  274. <?php
  275. echo td_panel_generator::checkbox(array(
  276. 'ds' => 'td_option',
  277. 'option_id' => 'tds_disable_comments_sidewide',
  278. 'true_value' => '',
  279. 'false_value' => 'disable'
  280. ));
  281. ?>
  282. </div>
  283. </div>
  284.  
  285. <?php echo td_panel_generator::box_end();
  286. }?>
  287.  
  288. <!-- jwplayer controls -->
  289. <?php if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME ) ) {
  290. echo td_panel_generator::box_start('JWPlayer Controls', false); ?>
  291.  
  292.  
  293.  
  294.  
  295. <div class="td-box-row">
  296. <div class="td-box-description">
  297. <span class="td-box-title">Player ID</span>
  298. <p>Add your preferred player id here.</p>
  299. </div>
  300. <div class="td-box-control-full">
  301. <?php
  302. echo td_panel_generator::input(array(
  303. 'ds' => 'td_option',
  304. 'option_id' => 'jw_player_id',
  305. 'placeholder' => 'TADMMlT9'
  306. ));
  307. ?>
  308. </div>
  309. </div>
  310.  
  311. <?php echo td_panel_generator::box_end();
  312. }?>
  313.  
  314.  
  315. <!-- featured images -->
  316. <?php if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) {
  317. echo td_panel_generator::box_start('Featured images', false); ?>
  318.  
  319. <!-- SHOW FEATURED IMAGE -->
  320. <div class="td-box-row">
  321. <div class="td-box-description">
  322. <span class="td-box-title">SHOW FEATURED IMAGE</span>
  323. <p>Show or hide featured image</p>
  324. </div>
  325. <div class="td-box-control-full">
  326. <?php
  327. echo td_panel_generator::checkbox(array(
  328. 'ds' => 'td_option',
  329. 'option_id' => 'tds_show_featured_image',
  330. 'true_value' => '',
  331. 'false_value' => 'hide'
  332. ));
  333. ?>
  334. </div>
  335. </div>
  336.  
  337.  
  338. <!-- Featured image placeholder -->
  339. <div class="td-box-row">
  340. <div class="td-box-description">
  341. <span class="td-box-title">FEATURED IMAGE PLACEHOLDER</span>
  342. <p>When a post doesn't have a featured image set, the theme will load a placeholder image.</p>
  343. </div>
  344. <div class="td-box-control-full">
  345. <?php
  346. echo td_panel_generator::checkbox(array(
  347. 'ds' => 'td_option',
  348. 'option_id' => 'tds_hide_featured_image_placeholder',
  349. 'true_value' => '',
  350. 'false_value' => 'hide_placeholder'
  351. ));
  352. ?>
  353. </div>
  354. </div>
  355.  
  356.  
  357. <!-- Featured image lightbox -->
  358. <div class="td-box-row">
  359. <div class="td-box-description">
  360. <span class="td-box-title">FEATURED IMAGE LIGHTBOX</span>
  361. <p>What to do when the featured image is clicked inside a post. (on single post page)</p>
  362. </div>
  363. <div class="td-box-control-full">
  364. <?php
  365. echo td_panel_generator::radio_button_control(array(
  366. 'ds' => 'td_option',
  367. 'option_id' => 'tds_featured_image_view_setting',
  368. 'values' => array(
  369. array('text' => 'Use lightbox', 'val' => ''),
  370. array('text' => 'No lightbox', 'val' => 'no_modal')
  371. )
  372. ));
  373. ?>
  374. </div>
  375. </div>
  376.  
  377. <?php echo td_panel_generator::box_end(); ?>
  378.  
  379.  
  380. <!-- related article -->
  381. <?php echo td_panel_generator::box_start('Related article', false); ?>
  382.  
  383. <!-- text -->
  384. <div class="td-box-row">
  385. <div class="td-box-description td-box-full">
  386. <p>On each single post at the bottom, the theme shows three or five similar posts in the related articles
  387. section.</p>
  388. <ul>
  389. <li>Three articles are shown on the layout with sidebar</li>
  390. <li>Five articles are shown on the full width layout</li>
  391. </ul>
  392. </div>
  393. <div class="td-box-row-margin-bottom"></div>
  394. </div>
  395.  
  396. <!-- Show similar article -->
  397. <div class="td-box-row">
  398. <div class="td-box-description">
  399. <span class="td-box-title">SHOW RELATED ARTICLE</span>
  400. <p>Enable or disable the related article section</p>
  401. </div>
  402. <div class="td-box-control-full">
  403. <?php
  404. echo td_panel_generator::checkbox(array(
  405. 'ds' => 'td_option',
  406. 'option_id' => 'tds_similar_articles',
  407. 'true_value' => '',
  408. 'false_value' => 'hide'
  409. ));
  410. ?>
  411. </div>
  412. </div>
  413.  
  414.  
  415. <!-- Related article - Type -->
  416. <div class="td-box-row">
  417. <div class="td-box-description">
  418. <span class="td-box-title">RELATED ARTICLE - TYPE</span>
  419. <p>How to pick the related articles:</p>
  420. <ul>
  421. <li>by category - pick posts that have at least one category in common with the current post</li>
  422. <li>by tags - pick posts that have at least one tag in common with the current post</li>
  423. </ul>
  424. </div>
  425. <div class="td-box-control-full">
  426. <?php
  427. echo td_panel_generator::radio_button_control(array(
  428. 'ds' => 'td_option',
  429. 'option_id' => 'tds_similar_articles_type',
  430. 'values' => array(
  431. array('text' => 'by category', 'val' => ''),
  432. array('text' => 'by tag', 'val' => 'by_tag')
  433. )
  434. ));
  435. ?>
  436. </div>
  437. </div>
  438.  
  439.  
  440. <!-- Related articles count -->
  441. <div class="td-box-row">
  442. <div class="td-box-description">
  443. <span class="td-box-title">RELATED ARTICLE - COUNT</span>
  444. <p>How many related articles to show:</p>
  445. <ul>
  446. <li>one row has 3 articles when the layout is with sidebar</li>
  447. <li>one row has 5 articles when the layout is without sidebar</li>
  448. </ul>
  449. </div>
  450. <div class="td-box-control-full">
  451. <?php
  452. echo td_panel_generator::radio_button_control(array(
  453. 'ds' => 'td_option',
  454. 'option_id' => 'tds_similar_articles_rows',
  455. 'values' => array(
  456. array('text' => '1 row of related posts (3/5)', 'val' => ''),
  457. array('text' => '2 rows of related posts (6/10)', 'val' => '2'),
  458. array('text' => '3 rows of related posts (9/15)', 'val' => '3'),
  459. array('text' => '4 rows of related posts (12/20)', 'val' => '4')
  460. )
  461. ));
  462. ?>
  463. </div>
  464. </div>
  465.  
  466. <?php echo td_panel_generator::box_end();
  467. }?>
  468.  
  469.  
  470.  
  471. <!-- sharing -->
  472. <?php echo td_panel_generator::box_start('Sharing', false);
  473. if ( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) { ?>
  474.  
  475. <!-- text -->
  476. <div class="td-box-row">
  477. <div class="td-box-description td-box-full">
  478. <p>All the articles of <?php echo TD_THEME_NAME ?> have sharing buttons at the start of the article
  479. (usually under the title) and at the end of the article (after tags). You can sort the social
  480. networks with drag and drop.</p>
  481. </div>
  482. <div class="td-box-row-margin-bottom"></div>
  483. </div>
  484.  
  485.  
  486. <div class="td-box-section-separator"></div>
  487.  
  488.  
  489. <!-- ARTICLE sharing top -->
  490. <div class="td-box-row">
  491. <div class="td-box-description">
  492. <span class="td-box-title">TOP ARTICLE SHARING</span>
  493. <p>Show or hide the top article sharing on single post</p>
  494. </div>
  495. <div class="td-box-control-full">
  496. <?php
  497. echo td_panel_generator::checkbox(array(
  498. 'ds' => 'td_option',
  499. 'option_id' => 'tds_top_social_show',
  500. 'true_value' => '',
  501. 'false_value' => 'hide'
  502. ));
  503. ?>
  504. </div>
  505. </div>
  506.  
  507. <!-- ARTICLE top like -->
  508. <div class="td-box-row">
  509. <div class="td-box-description">
  510. <span class="td-box-title">TOP ARTICLE LIKE</span>
  511. <p>Show or hide the top article like on single post</p>
  512. </div>
  513. <div class="td-box-control-full">
  514. <?php
  515. echo td_panel_generator::checkbox(array(
  516. 'ds' => 'td_option',
  517. 'option_id' => 'tds_top_like_show',
  518. 'true_value' => 'show',
  519. 'false_value' => ''
  520. ));
  521. ?>
  522. </div>
  523. </div>
  524.  
  525. <!-- ARTICLE top share text -->
  526. <div class="td-box-row">
  527. <div class="td-box-description">
  528. <span class="td-box-title">TOP ARTICLE SHARE TEXT</span>
  529. <p>Show or hide the top article share text on single post</p>
  530. </div>
  531. <div class="td-box-control-full">
  532. <?php
  533. echo td_panel_generator::checkbox(array(
  534. 'ds' => 'td_option',
  535. 'option_id' => 'tds_top_like_share_text_show',
  536. 'true_value' => 'show',
  537. 'false_value' => ''
  538. ));
  539. ?>
  540. </div>
  541. </div>
  542.  
  543. <!-- TOP sharing style -->
  544. <div class="td-box-row">
  545. <div class="td-box-description">
  546. <span class="td-box-title">TOP SHARE BUTTONS STYLE</span>
  547. <p>Change the appearance of the top sharing buttons.</p>
  548. </div>
  549. <div class="td-box-control-full">
  550. <?php
  551. echo td_panel_generator::visual_select_o(array(
  552. 'ds' => 'td_option',
  553. 'option_id' => 'tds_social_sharing_top_style',
  554. 'values' => td_api_social_sharing_styles::_helper_social_sharing_to_panel_values()
  555. ));
  556. ?>
  557. </div>
  558. </div>
  559.  
  560.  
  561. <div class="td-box-section-separator"></div>
  562.  
  563.  
  564. <!-- ARTICLE sharing bottom -->
  565. <div class="td-box-row">
  566. <div class="td-box-description">
  567. <span class="td-box-title">BOTTOM ARTICLE SHARING</span>
  568. <p>Show or hide the bottom article sharing on post</p>
  569. </div>
  570. <div class="td-box-control-full">
  571. <?php
  572. echo td_panel_generator::checkbox(array(
  573. 'ds' => 'td_option',
  574. 'option_id' => 'tds_bottom_social_show',
  575. 'true_value' => '',
  576. 'false_value' => 'hide'
  577. ));
  578. ?>
  579. </div>
  580. </div>
  581.  
  582.  
  583. <!-- ARTICLE bottom like -->
  584. <div class="td-box-row">
  585. <div class="td-box-description">
  586. <span class="td-box-title">BOTTOM ARTICLE LIKE</span>
  587. <p>Show or hide the bottom article like on post</p>
  588. </div>
  589. <div class="td-box-control-full">
  590. <?php
  591. echo td_panel_generator::checkbox(array(
  592. 'ds' => 'td_option',
  593. 'option_id' => 'tds_bottom_like_show',
  594. 'true_value' => '',
  595. 'false_value' => 'hide'
  596. ));
  597. ?>
  598. </div>
  599. </div>
  600.  
  601. <!-- ARTICLE bottom share text -->
  602. <div class="td-box-row">
  603. <div class="td-box-description">
  604. <span class="td-box-title">BOTTOM ARTICLE SHARE TEXT</span>
  605. <p>Show or hide the bottom article share text on single post</p>
  606. </div>
  607. <div class="td-box-control-full">
  608. <?php
  609. echo td_panel_generator::checkbox(array(
  610. 'ds' => 'td_option',
  611. 'option_id' => 'tds_bottom_like_share_text_show',
  612. 'true_value' => 'show',
  613. 'false_value' => ''
  614. ));
  615. ?>
  616. </div>
  617. </div>
  618.  
  619. <!-- BOTTOM sharing style -->
  620. <div class="td-box-row">
  621. <div class="td-box-description">
  622. <span class="td-box-title">BOTTOM SHARE BUTTONS STYLE</span>
  623. <p>Change the appearance of the bottom sharing buttons.</p>
  624. </div>
  625. <div class="td-box-control-full">
  626. <?php
  627. echo td_panel_generator::visual_select_o(array(
  628. 'ds' => 'td_option',
  629. 'option_id' => 'tds_social_sharing_bottom_style',
  630. 'values' => td_api_social_sharing_styles::_helper_social_sharing_to_panel_values()
  631. ));
  632. ?>
  633. </div>
  634. </div>
  635.  
  636.  
  637. <div class="td-box-section-separator"></div>
  638. <?php } ?>
  639.  
  640.  
  641. <!-- Twitter name -->
  642. <div class="td-box-row">
  643. <div class="td-box-description">
  644. <span class="td-box-title">TWITTER USERNAME</span>
  645. <p>This will be used in the tweet for the via parameter. The site name will be used if no twitter username
  646. is provided. <br> Do not include the @</p>
  647. </div>
  648. <div class="td-box-control-full">
  649. <?php
  650. echo td_panel_generator::input(array(
  651. 'ds' => 'td_option',
  652. 'option_id' => 'tds_tweeter_username'
  653. ));
  654. ?>
  655. </div>
  656. </div>
  657.  
  658.  
  659. <div class="td-box-section-separator"></div>
  660.  
  661.  
  662. <!-- Twitter name -->
  663. <div class="td-box-row">
  664. <div class="td-box-description">
  665. <span class="td-box-title">SOCIAL NETWORKS</span>
  666. <p>Select active social share links and sort them with drag and drop:</p>
  667. </div>
  668. <div class="td-box-control-full">
  669. <?php
  670. echo td_panel_generator::social_drag_and_drop(array(
  671. 'ds' => 'td_social_drag_and_drop'
  672. ));
  673. ?>
  674. </div>
  675. </div>
  676.  
  677. <?php echo td_panel_generator::box_end(); ?>
  678.  
  679.  
  680.  
  681. <?php if( 'Newsmag' == TD_THEME_NAME || ( 'Newspaper' == TD_THEME_NAME && defined('TD_STANDARD_PACK') ) ) {
  682. echo td_panel_generator::box_start('More Article Box', false); ?>
  683.  
  684. <!-- text -->
  685. <div class="td-box-row">
  686. <div class="td-box-description td-box-full">
  687. <p>This is a box that appears when a user scrolls on a single post at least 400px. The box appears in the
  688. right bottom corner and it can show one or more posts related with the current one.</p>
  689. </div>
  690. <div class="td-box-row-margin-bottom"></div>
  691. </div>
  692.  
  693.  
  694. <div class="td-box-row">
  695. <div class="td-box-description">
  696. <span class="td-box-title">MORE ARTICLES</span>
  697. <p>Enable / Disable - More Articles option</p>
  698. </div>
  699. <div class="td-box-control-full">
  700. <?php
  701. echo td_panel_generator::checkbox(array(
  702. 'ds' => 'td_option',
  703. 'option_id' => 'tds_more_articles_on_post_pages_enable',
  704. 'true_value' => 'show',
  705. 'false_value' => ''
  706. ));
  707. ?>
  708. </div>
  709. </div>
  710.  
  711.  
  712. <div class="td-box-row">
  713. <div class="td-box-description">
  714. <span class="td-box-title">DISTANCE FROM THE TOP</span>
  715. <p>This is the distance from the top, that user have to scroll, before the window will appear, default
  716. 400</p>
  717. </div>
  718. <div class="td-box-control-full">
  719. <?php
  720. echo td_panel_generator::input(array(
  721. 'ds' => 'td_option',
  722. 'option_id' => 'tds_more_articles_on_post_pages_distance_from_top'
  723. ));
  724. ?>
  725. </div>
  726. </div>
  727.  
  728.  
  729. <div class="td-box-row">
  730. <div class="td-box-description">
  731. <span class="td-box-title">DISPLAY ARTICLES</span>
  732. <p>What articles should be displayed</p>
  733. </div>
  734. <div class="td-box-control-full">
  735. <?php
  736. echo td_panel_generator::dropdown(array(
  737. 'ds' => 'td_option',
  738. 'option_id' => 'tds_more_articles_on_post_pages_display',
  739. 'values' => array(
  740. array('text' => 'Latest Article', 'val' => ''),
  741. array('text' => 'From Same Category', 'val' => 'same_category'),
  742. array('text' => 'From Post Tags', 'val' => 'same_tag'),
  743. array('text' => 'From Same Author', 'val' => 'same_author'),
  744. array('text' => 'Random', 'val' => 'random')
  745. )
  746. ));
  747. ?>
  748. </div>
  749. </div>
  750.  
  751.  
  752. <!-- DISPLAY VIEW -->
  753. <div class="td-box-row">
  754. <div class="td-box-description">
  755. <span class="td-box-title">ARTICLE DISPLAY VIEW</span>
  756. <p>Select a module type, this is how your article list will be displayed</p>
  757. </div>
  758. <div class="td-box-control-full td-panel-module">
  759. <?php
  760. echo td_panel_generator::visual_select_o(array(
  761. 'ds' => 'td_option',
  762. 'option_id' => 'tds_more_articles_on_post_pages_display_module',
  763. 'values' => td_panel_generator::helper_display_modules('enabled_on_more_articles_box')
  764. ));
  765. ?>
  766. </div>
  767. </div>
  768.  
  769.  
  770. <div class="td-box-row">
  771. <div class="td-box-description">
  772. <span class="td-box-title">NUMBER OF POSTS</span>
  773. <p>Number of post to display</p>
  774. </div>
  775. <div class="td-box-control-full">
  776. <?php
  777. echo td_panel_generator::dropdown(array(
  778. 'ds' => 'td_option',
  779. 'option_id' => 'tds_more_articles_on_post_pages_number',
  780. 'values' => array(
  781. array('text' => '1', 'val' => ''),
  782. array('text' => '2', 'val' => 2),
  783. array('text' => '3', 'val' => 3),
  784. array('text' => '4', 'val' => 4),
  785. array('text' => '5', 'val' => 5),
  786. array('text' => '6', 'val' => 6)
  787. )
  788. ));
  789. ?>
  790. </div>
  791. </div>
  792.  
  793.  
  794. <div class="td-box-row">
  795. <div class="td-box-description">
  796. <span class="td-box-title">DISABLE TIME</span>
  797. <p>If the user closes the More Articles box, this is the time (in days) to wait before seeing the box
  798. again</p>
  799. </div>
  800. <div class="td-box-control-full">
  801. <?php
  802. echo td_panel_generator::dropdown(array(
  803. 'ds' => 'td_option',
  804. 'option_id' => 'tds_more_articles_on_post_pages_time_to_wait',
  805. 'values' => array(
  806. array('text' => 'never', 'val' => ''),
  807. array('text' => 'for 1 day', 'val' => 1),
  808. array('text' => 'for 2 days', 'val' => 2),
  809. array('text' => 'for 3 days', 'val' => 3)
  810. )
  811. ));
  812. ?>
  813. </div>
  814. </div>
  815.  
  816. <?php echo td_panel_generator::box_end(); ?>
  817.  
  818.  
  819. <!-- Advanced options -->
  820. <?php echo td_panel_generator::box_start('Ajax view count (keep counting with cache plugins)', false); ?>
  821.  
  822.  
  823. <!-- text -->
  824. <div class="td-box-row">
  825. <div class="td-box-description td-box-full">
  826. <p>Enabling this feature will update the post view count, on single post page, using ajax.</p>
  827. <ul>
  828. <li>This feature is best used if you have a caching plugin active.</li>
  829. <li>When enabled, on single post pages, this feature will also increment the post view counter.</li>
  830. <li>When this feature is enabled, the default(classic) post counter incrementation is disabled.</li>
  831. <li>After enabling or disabling this feature make sure to empty all caches.</li>
  832. </ul>
  833. </div>
  834. <div class="td-box-row-margin-bottom"></div>
  835. </div>
  836.  
  837.  
  838. <!-- Enable / Disabled Ajax post count -->
  839. <div class="td-box-row">
  840. <div class="td-box-description td-no-short-description">
  841. <span class="td-box-title">ENABLE / DISABLE AJAX POST VIEW COUNT</span>
  842. <p>Useful if you are using a caching plugin</p>
  843. </div>
  844. <div class="td-box-control-full">
  845. <?php
  846. echo td_panel_generator::checkbox(array(
  847. 'ds' => 'td_option',
  848. 'option_id' => 'tds_ajax_post_view_count',
  849. 'true_value' => 'enabled',
  850. 'false_value' => ''
  851. ));
  852. ?>
  853. </div>
  854.  
  855. </div>
  856.  
  857. <?php echo td_panel_generator::box_end();
  858. }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement