| 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 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["mlist"]) |
| 43 |
{ |
| 44 |
echo '<div class="ws-menu-page-mlist">' . "\n"; |
| 45 |
include_once dirname (dirname (__FILE__)) . "/menu-pages/ws-mlist.inc.php"; |
| 46 |
echo '</div>' . "\n"; |
| 47 |
} |
| 48 |
/**/ |
| 49 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["upsell-pro"]) |
| 50 |
{ |
| 51 |
echo '<div class="ws-menu-page-others">' . "\n"; |
| 52 |
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"; |
| 53 |
echo '</div>' . "\n"; |
| 54 |
} |
| 55 |
/**/ |
| 56 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["installation"]) |
| 57 |
{ |
| 58 |
echo '<div class="ws-menu-page-installation">' . "\n"; |
| 59 |
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"; |
| 60 |
echo '</div>' . "\n"; |
| 61 |
} |
| 62 |
/**/ |
| 63 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["tools"]) |
| 64 |
{ |
| 65 |
echo '<div class="ws-menu-page-tools">' . "\n"; |
| 66 |
echo '<img src="' . esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-tools.png" alt="." />' . "\n"; |
| 67 |
echo '</div>' . "\n"; |
| 68 |
} |
| 69 |
/**/ |
| 70 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["videos"]) |
| 71 |
{ |
| 72 |
echo '<div class="ws-menu-page-videos">' . "\n"; |
| 73 |
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"; |
| 74 |
echo '</div>' . "\n"; |
| 75 |
} |
| 76 |
/**/ |
| 77 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["support"]) |
| 78 |
{ |
| 79 |
echo '<div class="ws-menu-page-support">' . "\n"; |
| 80 |
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"; |
| 81 |
echo '</div>' . "\n"; |
| 82 |
} |
| 83 |
/**/ |
| 84 |
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["menu_pages"]["donations"]) |
| 85 |
{ |
| 86 |
echo '<div class="ws-menu-page-donations">' . "\n"; |
| 87 |
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"; |
| 88 |
echo '</div>' . "\n"; |
| 89 |
} |
| 90 |
/**/ |
| 91 |
do_action ("ws_plugin__s2member_during_menu_pages_after_right_sections", get_defined_vars ()); |
| 92 |
/**/ |
| 93 |
return; /* Return for uniformity. */ |
| 94 |
} |
| 95 |
} |
| 96 |
} |
| 97 |
?> |