/includes/pro_banners.php

  1. <?php 
  2. /** 
  3. * Banners on plugin settings page 
  4. * @package Google Sitemap by BestWebSoft 
  5. * @since 3.0.3 
  6. */ 
  7.  
  8. /** 
  9. * Wrapper. Show ads for PRO on plugin settings page 
  10. * @param string $func function to call 
  11. * @param boolean $show_cross when it is 'false' ad will be displayed regardless of if other blocks are closed 
  12. * @return void 
  13. */ 
  14. if ( ! function_exists( 'gglstmp_pro_block' ) ) { 
  15. function gglstmp_pro_block( $func, $show_cross = true ) { 
  16. global $gglstmp_plugin_info, $wp_version, $gglstmp_settings; 
  17. if ( ! bws_hide_premium_options_check( $gglstmp_settings ) || ! $show_cross ) { ?> 
  18. <div class="bws_pro_version_bloc gglstmp_pro_block <?php echo $func;?>" title="<?php _e( 'This options is available in Pro version of plugin', 'google-sitemap-plugin' ); ?>"> 
  19. <div class="bws_pro_version_table_bloc"> 
  20. <?php if ( $show_cross ) { ?> 
  21. <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'google-sitemap-plugin' ); ?>"></button> 
  22. <?php } ?> 
  23. <div class="bws_table_bg"></div> 
  24. <?php call_user_func( $func ); ?> 
  25. </div> 
  26. <div class="bws_pro_version_tooltip"> 
  27. <div class="bws_info"><?php _e( 'Unlock premium options by upgrading to Pro version', 'google-sitemap-plugin' ); ?></div> 
  28. <a class="bws_button" href="http://bestwebsoft.com/products/google-sitemap/?k=28d4cf0b4ab6f56e703f46f60d34d039&pn=83&v=<?php echo $gglstmp_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="Google Sitemap Pro"><?php _e( 'Learn More', 'google-sitemap-plugin' ); ?></a> 
  29. </div> 
  30. </div> 
  31. <?php } 
  32.  
  33. /** 
  34. * The content of ad block on the "Settings" tab 
  35. * @param void 
  36. * @return void 
  37. */ 
  38. if ( ! function_exists( 'gglstmp_frequency_block' ) ) { 
  39. function gglstmp_frequency_block() { ?> 
  40. <table class="form-table bws_pro_version"> 
  41. <tr valign="top"> 
  42. <th><?php _e( 'XML Sitemap "Change Frequency" parameter', 'google-sitemap-plugin' ); ?></th> 
  43. <td> 
  44. <select disabled="disabled"> 
  45. <option><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></option> 
  46. </select><br /> 
  47. <span class="bws_info"><?php _e( 'This value is used in the sitemap file and provides general information to search engines. The sitemap itself is generated once and will be re-generated when you create or update any post or page. For more info see', 'google-sitemap-plugin' ); ?> <a href="http://www.sitemaps.org/protocol.html#changefreqdef" style="display: inline-block; position: relative; z-index: 100;" target="_blank"><?php _e( 'here', 'google-sitemap-plugin' ); ?></a>.</span> 
  48. </td> 
  49. </tr> 
  50. </table> 
  51. <?php } 
  52.  
  53. /** 
  54. * The content of ad block on the "Extra settings" tab 
  55. * @param void 
  56. * @return void 
  57. */ 
  58. if ( ! function_exists( 'gglstmp_extra_block' ) ) { 
  59. function gglstmp_extra_block() { ?> 
  60. <table class="form-table bws_pro_version"> 
  61. <tr valign="top"> 
  62. <td colspan="2"> 
  63. <?php _e( 'Add post types and taxonomies links to the sitemap', 'google-sitemap-plugin' ); ?>: 
  64. </td> 
  65. </tr> 
  66. <tr valign="top"> 
  67. <td colspan="2"> 
  68. <label> 
  69. <input disabled="disabled" checked="checked" id="gglstmp_jstree_url" type="checkbox" name="gglstmp_jstree_url" value="1" /> 
  70. <?php _e( "Show URL for pages", 'google-sitemap-plugin' );?> 
  71. </label> 
  72. </td> 
  73. </tr> 
  74. <tr valign="top"> 
  75. <td colspan="2"> 
  76. <img src="<?php echo plugins_url( 'images/pro_screen_1.png', dirname( __FILE__ ) ); ?>" alt="<?php _e( "Example of site pages' tree", 'google-sitemap-plugin' ); ?>" title="<?php _e( "Example of site pages' tree", 'google-sitemap-plugin' ); ?>" /> 
  77. </td> 
  78. </tr> 
  79. <tr valign="top"> 
  80. <td colspan="2"> 
  81. <input disabled="disabled" type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'google-sitemap-plugin' ); ?>" /> 
  82. </td> 
  83. </tr> 
  84. </table> 
  85. <?php } 
  86.  
  87. /** 
  88. * The content of ad block on the "Custom links" tab 
  89. * @param void 
  90. * @return void 
  91. */ 
  92. if ( ! function_exists( 'gglstmp_custom_links_block' ) ) { 
  93. function gglstmp_custom_links_block() { 
  94. $date = date_i18n( get_option( 'date_format' ), 1458086400 ); ?> 
  95.  
  96. <p class="search-box"> 
  97. <input type="search" disabled="disabled"/> 
  98. <input class="button" value="<?php _e( 'Search' ); ?>" type="submit" disabled="disabled" /> 
  99. </p> 
  100. <div class="alignleft actions bulkactions"> 
  101. <select disabled="disabled"> 
  102. <option value="-1"><?php _e( 'Bulk Actions' ); ?></option> 
  103. </select> 
  104. <input disabled="disabled" class="button action" value="<?php _e( 'Apply' ); ?>" type="submit"> 
  105. </div> 
  106.  
  107. <table class="wp-list-table widefat fixed striped links"> 
  108. <thead> 
  109. <tr> 
  110. <th id="cb" class="manage-column column-cb check-column"><input id="cb-select-all" type="checkbox" disabled="disabled" /></th> 
  111. <th scope="col" id="url" class="manage-column column-url column-primary sortable asc">URL</th> 
  112. <th scope="col" id="priority" class="manage-column column-priority sortable desc"><?php _e( 'Priority', 'google-sitemap-plugin' ); ?></th> 
  113. <th scope="col" id="frequency" class="manage-column column-frequency"><?php _e( 'Change Frequency', 'google-sitemap-plugin' ); ?></th> 
  114. <th scope="col" id="date" class="manage-column column-date sortable desc"><?php _e( 'Last Changed', 'google-sitemap-plugin' ); ?></th> 
  115. </tr> 
  116. </thead> 
  117.  
  118. <tbody id="the-list" data-wp-lists="list:link"> 
  119. <tr style="overflow: visible;"> 
  120. <th scope="row" class="check-column"> 
  121. <div class="bws_help_box bws_help_box_left dashicons dashicons-editor-help" style="vertical-align: middle;margin-left: 6px;position:relative;z-index: 2;"> 
  122. <div class="bws_hidden_help_text" style="min-width: 200px;"> 
  123. <strong><?php _e( "Please note", "google-sitemap-plugin" ); ?>:</strong> 
  124. <?php _e( "All URLs listed in the sitemap.xml must use the same protocol ( HTTP or HTTPS ) and reside on the same host as the sitemap.xml. For more info see", "google-sitemap-plugin" ); ?> <a href="http://www.sitemaps.org/protocol.html#location" target="_blank"><?php _e( "here", "google-sitemap-plugin" ); ?></a>. 
  125. </div> 
  126. </div> 
  127. </th> 
  128. <td class="url column-url has-row-actions column-primary" data-colname="URL"><input type="url" style="width: 100%; box-sizing: border-box;" disabled="disabled" /></td> 
  129. <td class="priority column-priority" data-colname="Priority"><input class="small-text" value="100" type="number" disabled="disabled" /> %</td> 
  130. <td class="frequency column-frequency" data-colname="Change Frequency"> 
  131. <select disabled="disabled" > 
  132. <option value="always"><?php _e( "Always", "google-sitemap-plugin" ); ?></option> 
  133. </select> 
  134. </td> 
  135. <td class="date column-date" data-colname="Last Changed"> 
  136. <input class="button button-primary" value="<?php _e( "Save link", "google-sitemap-plugin" ); ?>" type="submit" disabled="disabled" /> 
  137. </td> 
  138. </tr> 
  139.  
  140. <tr> 
  141. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  142. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/lorem/ipsum/dolor/sit/amet</td> 
  143. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  144. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  145. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  146. </tr> 
  147.  
  148. <tr> 
  149. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  150. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/donec-fringilla</td> 
  151. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  152. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  153. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  154. </tr> 
  155.  
  156. <tr> 
  157. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  158. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/lorem-ipsum</td> 
  159. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  160. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  161. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  162. </tr> 
  163.  
  164. <tr> 
  165. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  166. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/?s_id=123&p_id=2</td> 
  167. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  168. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  169. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  170. </tr> 
  171. </tbody> 
  172.  
  173. <tfoot> 
  174. <tr> 
  175. <th class="manage-column column-cb check-column"><input id="cb-select-all-2" type="checkbox" disabled="disabled" /></th> 
  176. <th scope="col" class="manage-column column-url column-primary sortable asc">URL</th> 
  177. <th scope="col" class="manage-column column-priority sortable desc"><?php _e( 'Priority', 'google-sitemap-plugin' ); ?></th> 
  178. <th scope="col" class="manage-column column-frequency"><?php _e( 'Change Frequency', 'google-sitemap-plugin' ); ?></th> 
  179. <th scope="col" class="manage-column column-date sortable desc"><?php _e( 'Last Changed', 'google-sitemap-plugin' ); ?></th> 
  180. </tr> 
  181. </tfoot> 
  182.  
  183. </table> 
  184. <?php } 
.