PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 111003
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v111003
260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 All 189 releases
s2member / includes / menu-pages / ws-mlist.inc.php

ws-mlist.inc.php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 111003, at includes/menu-pages/ws-mlist.inc.php

101 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Newsletter/Feed Boxes 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 110524RC
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_ws_mlist"))
21 {
22 /**
23 * Newsletter/Feed Boxes for Menu Pages.
24 *
25 * @package s2Member\Menu_Pages
26 * @since 110531
27 */
28 class c_ws_plugin__s2member_menu_pages_ws_mlist
29 {
30 public function __construct ()
31 {
32 if (is_object ($user = wp_get_current_user ()) && ($user_id = $user->ID))
33 {
34 echo '<form id="ws-mlist-form" action="http://websharks-inc.us1.list-manage1.com/subscribe/post?u=8f347da54d66b5298d13237d9&amp;id=19e9d213bc" method="post" target="_blank">' . "\n";
35 /**/
36 if (!is_ssl ()) /* Feed panel. */
37 {
38 echo '<div class="ws-menu-page-r-group-header">' . "\n";
39 echo '<ins class="open">-</ins>Latest News<em>!</em>' . "\n";
40 echo '</div>' . "\n";
41 /**/
42 echo '<div class="ws-menu-page-r-group" style="display:block;">' . "\n";
43 echo '<script type="text/javascript" src="http://feeds.feedburner.com/s2member-updates?format=sigpro&amp;nItems=3&amp;openLinks=new&amp;displayTitle=false&amp;displayFeedIcon=false&amp;displayExcerpts=false&amp;displayAuthor=false&amp;displayDate=false&amp;displayEnclosures=false&amp;displayLinkToFeed=false"></script>' . "\n";
44 echo '</div>' . "\n";
45 }
46 /**/
47 echo '<div class="ws-menu-page-r-group-header">' . "\n";
48 echo '<ins>+</ins>Email Updates<em>!</em>' . "\n";
49 echo '</div>' . "\n";
50 /**/
51 echo '<div class="ws-menu-page-r-group">' . "\n";
52 /**/
53 echo '<div id="ws-mlist-div-fname">' . "\n";
54 echo '<label for="ws-mlist-fname">First Name:</label><br />' . "\n";
55 echo '<input type="text" name="FNAME" id="ws-mlist-fname" value="' . esc_attr ($user->first_name) . '" />' . "\n";
56 echo '</div>' . "\n";
57 /**/
58 echo '<div id="ws-mlist-div-lname">' . "\n";
59 echo '<label for="ws-mlist-lname">Last Name:</label><br />' . "\n";
60 echo '<input type="text" name="LNAME" id="ws-mlist-lname" value="' . esc_attr ($user->last_name) . '" />' . "\n";
61 echo '</div>' . "\n";
62 /**/
63 echo '<div id="ws-mlist-div-email">' . "\n";
64 echo '<label for="ws-mlist-email">Email Address: *</label><br />' . "\n";
65 echo '<input type="text" name="EMAIL" id="ws-mlist-email" value="' . format_to_edit ($user->user_email) . '" />' . "\n";
66 echo '</div>' . "\n";
67 /**/
68 echo '<div id="ws-mlist-div-groups">' . "\n";
69 echo '<label>Interest Group(s):</label>' . "\n";
70 echo '<ul>' . "\n";
71 echo '<li><input type="checkbox" value="1" name="group[1][1]" id="ws-mlist-group-1-1"><label for="ws-mlist-group-1-1">WordPress® Themes</label></li>' . "\n";
72 echo '<li><input type="checkbox" value="2" name="group[1][2]" id="ws-mlist-group-1-2"><label for="ws-mlist-group-1-2">All WordPress® Plugins</label></li>' . "\n";
73 echo '<li><input type="checkbox" value="4" name="group[1][4]" id="ws-mlist-group-1-4" checked="checked"><label for="ws-mlist-group-1-4">s2Member®/s2Member Pro</label></li>' . "\n";
74 echo '</ul>' . "\n";
75 echo '</div>' . "\n";
76 /**/
77 if (!is_ssl ()) /* Only display this whenever we are NOT inside an SSL-enabled administrative panel. */
78 {
79 echo '<div id="ws-mlist-div-subs">' . "\n";
80 echo '<script type="text/javascript" src="http://websharks-inc.us1.list-manage.com/subscriber-count?b=31&u=8c67d547-edf6-41c5-807d-2d2d0e6cffd1&id=19e9d213bc"></script>' . "\n";
81 echo '</div>' . "\n";
82 }
83 /**/
84 echo '<div id="ws-mlist-div-priv">' . "\n";
85 echo '( <a href="' . esc_attr (c_ws_plugin__s2member_readmes::parse_readme_value ("Privacy URI")) . '" target="_blank">we DO respect your privacy</a> )' . "\n";
86 echo '</div>' . "\n";
87 /**/
88 echo '<div id="ws-mlist-div-submit">' . "\n";
89 echo '<input type="submit" value="Subscribe" name="subscribe" />' . "\n";
90 echo '</div>' . "\n";
91 /**/
92 echo '</div>' . "\n";
93 /**/
94 echo '</form>' . "\n";
95 }
96 }
97 }
98 }
99 /**/
100 new c_ws_plugin__s2member_menu_pages_ws_mlist ();
101 ?>