/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_options; 
  17. if ( ! bws_hide_premium_options_check( $gglstmp_options ) || ! $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. <a class="bws_button" href="https://bestwebsoft.com/products/wordpress/plugins/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( 'Upgrade to Pro', 'google-sitemap-plugin' ); ?></a> 
  28. </div> 
  29. </div> 
  30. <?php } 
  31.  
  32. /** 
  33. * The content of ad block on the "Settings" tab 
  34. * @param void 
  35. * @return void 
  36. */ 
  37. if ( ! function_exists( 'gglstmp_frequency_block' ) ) { 
  38. function gglstmp_frequency_block() { ?> 
  39. <tr valign="top"> 
  40. <th><?php _e( 'Change Frequency', 'google-sitemap-plugin' ); ?></th> 
  41. <td> 
  42. <select disabled="disabled"> 
  43. <option><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></option> 
  44. </select> 
  45. <div class="bws_info"><?php _e( 'This value provides general information to search engines and tell them how frequently the page is likely to change. It may not correlate exactly to how often they crawl the website.', 'google-sitemap-plugin' ); ?> <a href="http://www.sitemaps.org/protocol.html#changefreqdef" target="_blank"><?php _e( 'Learn More', 'google-sitemap-plugin' ); ?></a></div> 
  46. </td> 
  47. </tr> 
  48. <?php } 
  49.  
  50. /** 
  51. * The content of ad block on the "Extra settings" tab 
  52. * @param void 
  53. * @return void 
  54. */ 
  55. if ( ! function_exists( 'gglstmp_extra_block' ) ) { 
  56. function gglstmp_extra_block() { ?> 
  57. <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' ); ?>" /> 
  58. <?php } 
  59.  
  60. /** 
  61. * The content of ad block on the "Custom links" tab 
  62. * @param void 
  63. * @return void 
  64. */ 
  65. if ( ! function_exists( 'gglstmp_custom_links_block' ) ) { 
  66. function gglstmp_custom_links_block() { 
  67. $date = date_i18n( get_option( 'date_format' ), 1458086400 ); ?> 
  68.  
  69. <p class="search-box"> 
  70. <input type="search" disabled="disabled"/> 
  71. <input class="button" value="<?php _e( 'Search' ); ?>" type="submit" disabled="disabled" /> 
  72. </p> 
  73. <div class="alignleft actions bulkactions"> 
  74. <select disabled="disabled"> 
  75. <option value="-1"><?php _e( 'Bulk Actions' ); ?></option> 
  76. </select> 
  77. <input disabled="disabled" class="button action" value="<?php _e( 'Apply' ); ?>" type="submit"> 
  78. </div> 
  79. <table class="wp-list-table widefat fixed striped links"> 
  80. <thead> 
  81. <tr> 
  82. <th id="cb" class="manage-column column-cb check-column"><input id="cb-select-all" type="checkbox" disabled="disabled" /></th> 
  83. <th scope="col" id="url" class="manage-column column-url column-primary sortable asc">URL</th> 
  84. <th scope="col" id="priority" class="manage-column column-priority sortable desc"><?php _e( 'Priority', 'google-sitemap-plugin' ); ?></th> 
  85. <th scope="col" id="frequency" class="manage-column column-frequency"><?php _e( 'Change Frequency', 'google-sitemap-plugin' ); ?></th> 
  86. <th scope="col" id="date" class="manage-column column-date sortable desc"><?php _e( 'Last Changed', 'google-sitemap-plugin' ); ?></th> 
  87. </tr> 
  88. </thead> 
  89. <tbody data-wp-lists="list:link"> 
  90. <tr style="overflow: visible;"> 
  91. <th scope="row" class="check-column"></th> 
  92. <td class="url column-url has-row-actions column-primary" data-colname="URL"> 
  93. <input type="url" style="width: 100%; box-sizing: border-box;" disabled="disabled" /> 
  94. <div class="bws_info"> 
  95. <strong><?php _e( "Please note", "google-sitemap-plugin" ); ?>:</strong> 
  96. <?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>. 
  97. </div> 
  98. </td> 
  99. <td class="priority column-priority" data-colname="Priority"><input class="small-text" value="100" type="number" disabled="disabled" /> %</td> 
  100. <td class="frequency column-frequency" data-colname="Change Frequency"> 
  101. <select disabled="disabled" > 
  102. <option value="always"><?php _e( "Always", "google-sitemap-plugin" ); ?></option> 
  103. </select> 
  104. </td> 
  105. <td class="date column-date" data-colname="Last Changed"> 
  106. <input class="button button-primary" value="<?php _e( "Save", "google-sitemap-plugin" ); ?>" type="submit" disabled="disabled" /> 
  107. </td> 
  108. </tr> 
  109. <tr> 
  110. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  111. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/lorem/ipsum/dolor/sit/amet</td> 
  112. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  113. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  114. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  115. </tr> 
  116. <tr> 
  117. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  118. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/donec-fringilla</td> 
  119. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  120. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  121. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  122. </tr> 
  123. <tr> 
  124. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  125. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/lorem-ipsum</td> 
  126. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  127. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  128. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  129. </tr> 
  130.  
  131. <tr> 
  132. <th scope="row" class="check-column"><input type="checkbox" disabled="disabled" /></th> 
  133. <td class="url column-url has-row-actions column-primary" data-colname="URL">http://example.com/?s_id=123&p_id=2</td> 
  134. <td class="priority column-priority" data-colname="Priority">100 %</td> 
  135. <td class="frequency column-frequency" data-colname="Change Frequency"><?php _e( 'Monthly', 'google-sitemap-plugin' ); ?></td> 
  136. <td class="date column-date" data-colname="Last Changed"><?php echo $date; ?></td> 
  137. </tr> 
  138. </tbody> 
  139. <tfoot> 
  140. <tr> 
  141. <th class="manage-column column-cb check-column"><input id="cb-select-all-2" type="checkbox" disabled="disabled" /></th> 
  142. <th scope="col" class="manage-column column-url column-primary sortable asc">URL</th> 
  143. <th scope="col" class="manage-column column-priority sortable desc"><?php _e( 'Priority', 'google-sitemap-plugin' ); ?></th> 
  144. <th scope="col" class="manage-column column-frequency"><?php _e( 'Change Frequency', 'google-sitemap-plugin' ); ?></th> 
  145. <th scope="col" class="manage-column column-date sortable desc"><?php _e( 'Last Changed', 'google-sitemap-plugin' ); ?></th> 
  146. </tr> 
  147. </tfoot> 
  148. </table> 
  149. <?php } 
.