Source Code Documentation


s2member\includes\classes\menu-pages-rs.inc.php


  1. <?php
  2. /**
  3. * Right-side for Menu Pages.
  4. *
  5. * Copyright: © 2009-2011
  6. * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
  7. * (coded in the USA)
  8. *
  9. * Released under the terms of the GNU General Public License.
  10. * You should have received a copy of the GNU General Public License,
  11. * along with this software. In the main directory, see: /licensing/
  12. * If not, see: {@link http://www.gnu.org/licenses/}.
  13. *
  14. * @package s2Member\Menu_Pages
  15. * @since 110531
  16. */
  17. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  18. exit("Do not access this file directly.");
  19.  
  20. if (!class_exists ("c_ws_plugin__s2member_menu_pages_rs"))
  21. {
  22. /**
  23. * Right-side for Menu Pages.
  24. *
  25. * @package s2Member\Menu_Pages
  26. * @since 110531
  27. */
  28. class c_ws_plugin__s2member_menu_pages_rs
  29. {
  30. /**
  31. * Right-side for Menu Pages.
  32. *
  33. * @package s2Member\Menu_Pages
  34. * @since 110531
  35. *
  36. * @return null
  37. */
  38. public static function display ()
  39. {
  40. do_action ("ws_plugin__s2member_during_menu_pages_before_right_sections", get_defined_vars ());
  41.  
  42. echo '<div id="ws-menu-page-js-c-w" class="ws-menu-page-js-c-w">' . "\n";
  43. include_once dirname (dirname (__FILE__)) . "/menu-pages/js-c-warning.inc.php";
  44. echo '</div>' . "\n";
  45.  
  46. echo '<script type="text/javascript">' . "\n";
  47. echo "jQuery('div#ws-menu-page-js-c-w').hide();" . "\n";
  48. echo '</script>' . "\n";
  49.  
  50. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["updates"])
  51. {
  52. echo '<div class="ws-menu-page-updates">' . "\n";
  53. include_once dirname (dirname (__FILE__)) . "/menu-pages/updates.inc.php";
  54. echo '</div>' . "\n";
  55. }
  56.  
  57. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["upsell-pro"])
  58. {
  59. echo '<div class="ws-menu-page-others">' . "\n";
  60. echo '<a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Pro Module / Prices")) . '" target="_blank"><img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-upsell-pro.png" alt="." /></a>' . "\n";
  61. echo '</div>' . "\n";
  62. }
  63.  
  64. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["installation"])
  65. {
  66. echo '<div class="ws-menu-page-installation">' . "\n";
  67. echo '<a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Professional Installation URI")) . '" target="_blank"><img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-installation.png" alt="." /></a>' . "\n";
  68. echo '</div>' . "\n";
  69. }
  70.  
  71. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["tools"])
  72. {
  73. echo '<div class="ws-menu-page-tools">' . "\n";
  74. echo '<img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-tools.png" alt="." />' . "\n";
  75. echo '</div>' . "\n";
  76. }
  77.  
  78. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["kb"])
  79. {
  80. echo '<div class="ws-menu-page-kb">' . "\n";
  81. echo '<a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Knowledge Base")) . '" target="_blank"><img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-kb.png" alt="." /></a>' . "\n";
  82. echo '</div>' . "\n";
  83. }
  84.  
  85. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["videos"])
  86. {
  87. echo '<div class="ws-menu-page-videos">' . "\n";
  88. echo '<a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Video Tutorials")) . '" target="_blank"><img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-videos.png" alt="." /></a>' . "\n";
  89. echo '</div>' . "\n";
  90. }
  91.  
  92. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["support"])
  93. {
  94. echo '<div class="ws-menu-page-support">' . "\n";
  95. echo '<a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Forum URI")) . '" target="_blank"><img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-support.png" alt="." /></a>' . "\n";
  96. echo '</div>' . "\n";
  97. }
  98.  
  99. if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["donations"])
  100. {
  101. echo '<div class="ws-menu-page-donations">' . "\n";
  102. echo '<a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Donate link")) . '" target="_blank"><img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-donations.png" alt="." /></a>' . "\n";
  103. echo '</div>' . "\n";
  104. }
  105.  
  106. do_action ("ws_plugin__s2member_during_menu_pages_after_right_sections", get_defined_vars ());
  107.  
  108. return /* Return for uniformity. */;
  109. }
  110. }
  111. }
  112. ?>

s2member\includes\classes\menu-pages-rs.inc.php

Source Code Documentation