PluginProbe
Insert Html Snippet / 1.2.1
Insert Html Snippet v1.2.1
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
insert-html-snippet / admin / footer.php

footer.php in Insert Html Snippet 1.2.1, at admin/footer.php

166 lines 5.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) )
3 exit;
4 ?>
5 <div style="clear: both;"></div>
6
7
8 <p></p>
9
10 <div style="width: 100%">
11
12 <div class="xyz_feedback">
13
14
15 <a target="_blank" href="http://xyzscripts.com/support/" class="xyz_suggest">Suggestions</a> -
16 <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_fbook">Like us on Facebook</a> -
17 <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_twitt">Follow us on Twitter</a> -
18 <a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_gplus">+1 us on Google+</a> -
19 <a target="_blank" href="http://www.linkedin.com/company/xyzscripts" class="xyz_linkedin">Follow us on LinkedIn</a>
20
21
22 </div>
23
24 <p></p>
25
26 <div class="xyz_subscribe">
27
28 <script language="javascript">
29 function check_email(emailString)
30 {
31 var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
32 var matchArray = emailString.match(mailPattern);
33 if (emailString.length == 0)
34 return false;
35
36 if (matchArray == null) {
37 return false;
38 }else{
39 return true;
40 }
41 }
42
43
44 function verify_lists(form)
45 {
46
47 var total=0;
48 var checkBox=form['chk[]'];
49
50 if(checkBox.length){
51
52 for(var i=0;i<checkBox.length;i++){
53 checkBox[i].checked?total++:null;
54 }
55 }else{
56
57 checkBox.checked?total++:null;
58
59 }
60 if(total>0){
61 return true;
62 }else{
63 return false;
64 }
65
66 }
67
68 function verify_fields()
69 {
70
71 if(check_email(document.email_subscription.email.value) == false){
72 alert("Please check whether the email is correct.");
73 document.email_subscription.email.select();
74 return false;
75 }else if(verify_lists(document.email_subscription)==false){
76 alert("Select atleast one list.");
77 }
78 else{
79 document.email_subscription.submit();
80 }
81
82 }
83 </script>
84 <?php global $current_user; wp_get_current_user(); ?>
85 <form action="http://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" >
86 <input type="hidden" name="fieldNameIds" value="1,">
87 <input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIHSFRE">
88 <input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIHSFRE">
89 <input type="hidden" name="mode" value="1">
90
91 <b>Stay tuned to our updates :</b>
92 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
93
94 Name :
95 <input style="border: 1px solid #3fafe3; margin-right:10px;" type="text" name="field1" value="<?php
96 if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
97 {
98 echo $current_user->user_firstname . " " . $current_user->user_lastname;
99 }
100 else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
101 {
102 echo $current_user->display_name;
103 }
104 else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
105 {
106 echo $current_user->user_login;
107 }
108 ?>" >
109
110 Email Address :
111 <input style="border: 1px solid #3fafe3;" name="email"
112 type="text" value="<?php echo $current_user->user_email; ?>" /><span style="color:#FF0000">*</span>
113
114 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
115 <input id="submit_ihs" style="color:#FFFFFF;border-radius:4px;border:1px solid #1A87B9;" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
116
117 <input type="hidden" name="listName" value="6,1,"/>
118 </form>
119
120
121
122 </div>
123
124
125 <div style="clear: both;"></div>
126 <div style="width: 100%">
127
128 <div class="xyz_our_plugins">
129 Our Plugins :
130
131
132 <a target="_blank" href="http://wordpress.org/extend/plugins/insert-html-snippet/">Insert HTML Snippet</a> �
133
134 <a target="_blank" href="http://wordpress.org/extend/plugins/lightbox-pop/">Lightbox Pop</a> �
135
136 <a target="_blank" href="http://wordpress.org/extend/plugins/full-screen-popup/">Full Screen Popup</a> �
137
138 <a target="_blank" href="http://wordpress.org/extend/plugins/popup-dialog-box/">Popup Dialog Box</a> �
139
140 <a target="_blank" href="http://wordpress.org/extend/plugins/quick-bar/">Quick Bar</a> �
141
142 <a target="_blank" href="http://wordpress.org/extend/plugins/quick-box-popup/">Quick Box Popup</a> �
143
144 <a target="_blank" href="http://wordpress.org/extend/plugins/contact-form-manager/">Contact Form Manager</a> �
145
146 <a target="_blank" href="http://wordpress.org/extend/plugins/newsletter-manager/">Newsletter Manager</a> �
147
148 <a target="_blank" href="http://wordpress.org/extend/plugins/social-media-auto-publish/">Social Media Auto Publish</a>�
149
150 <a target="_blank" href="http://wordpress.org/extend/plugins/facebook-auto-publish/">Facebook Auto Publish</a> �
151
152 <a target="_blank" href="http://wordpress.org/extend/plugins/linkedin-auto-publish/">LinkedIn Auto Publish</a> �
153
154 <a target="_blank" href="http://wordpress.org/extend/plugins/twitter-auto-publish/">Twitter Auto Publish</a> �
155
156 <a target="_blank" href="http://wordpress.org/extend/plugins/insert-php-code-snippet/">Insert PHP Code Snippet</a>
157 </div>
158 </div>
159 <div class="poweredBy">
160 Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
161 </div>
162 <div style="clear: both;"></div>
163
164 </div>
165 <p style="clear: both;"></p>
166