PluginProbe
Insert PHP Code Snippet / trunk
Insert PHP Code Snippet vtrunk
1.4.7 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 1.4.4 1.4.5 1.4.6 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 All 27 releases
← All changes | admin/footer.php +151 -128 1.2trunk View file →
@@ -1,149 +1,172 @@
1 -<div style="clear: both;"></div>
1 +<?php
2 +if ( ! defined( 'ABSPATH' ) )
3 + exit;
4 +if(get_option('xyz_ips_premium_version_ads')==1){ ?>
5 +<div id="xyz-ips-premium">
2 6
3 -
4 -<p></p>
5 -
6 -<div style="width: 100%">
7 -
8 - <div class="xyz_feedback">
9 -
10 -
11 - <a target="_blank" href="http://xyzscripts.com/support/" class="xyz_suggest">Suggestions</a> -
12 - <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_fbook">Like us on Facebook</a> -
13 - <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_twitt">Follow us on Twitter</a> -
14 - <a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_gplus">+1 us on Google+</a> -
15 - <a target="_blank" href="http://www.linkedin.com/company/xyzscripts" class="xyz_linkedin">Follow us on LinkedIn</a>
16 -
17 -
7 + <div class="xyz_ips_ContentCenter">
8 + <a target="_blank"
9 + href="https://xyzscripts.com/wordpress-plugins/xyz-wp-insert-code-snippet/details">🚀 Upgrade to the Fully Featured XYZ WP Insert Code Snippet Premium Plugin for </a>
10 + <span style="font-size: 28px; color:#fbff00;"> Just 19 USD</span>
11 + <br/><span style="font-size: 13px;color:#fff;">Access exclusive features like advanced targeting, automatic snippet placements across your site, syntax highlighting for better code management, and easy snippet export/import!</span>
18 12 </div>
19 -
20 - <p></p>
21 -
22 -<div class="xyz_subscribe">
23 -
24 -<script language="javascript">
25 -function check_email(emailString)
26 -{
27 - var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
28 - var matchArray = emailString.match(mailPattern);
29 - if (emailString.length == 0)
30 - return false;
31 -
32 - if (matchArray == null) {
33 - return false;
34 - }else{
35 - return true;
13 + <div class="clear"></div>
14 + <div class="xyz_ips_ButtonWrap">
15 + <div class="xyz_ips_BuyNowButton">
16 + <a target="_blank"
17 + href="https://xyzscripts.com/members/product/purchase/XYZWPICSPRE">🛒 Buy Now
18 + </a>
19 + </div>
20 + <div class="xyz_ips_CompareButton">
21 + <h2>
22 + <a href="<?php echo admin_url('admin.php?page=insert-php-code-snippet-about');?>">🔗 Compare Specs</a>
23 + </h2>
24 + </div>
25 + </div>
26 +</div>
27 +<?php
36 28 }
37 -}
38 -
39 -
40 -function verify_lists(form)
41 -{
42 -
43 - var total=0;
44 - var checkBox=form['chk[]'];
45 -
46 - if(checkBox.length){
47 -
48 - for(var i=0;i<checkBox.length;i++){
49 - checkBox[i].checked?total++:null;
50 - }
51 - }else{
52 -
53 - checkBox.checked?total++:null;
54 -
55 - }
56 - if(total>0){
57 - return true;
58 - }else{
59 - return false;
60 - }
61 -
62 -}
63 -
64 -function verify_fields()
65 -{
66 -
67 - if(check_email(document.email_subscription.email.value) == false){
68 - alert("Please check whether the email is correct.");
69 - document.email_subscription.email.select();
70 - return false;
71 - }else if(verify_lists(document.email_subscription)==false){
72 - alert("Select atleast one list.");
73 - }
74 - else{
75 - document.email_subscription.submit();
76 - }
77 -
78 -}
79 -</script>
80 -<?php global $current_user; get_currentuserinfo(); ?>
81 -<form action="http://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" >
29 +?>
30 +<div style="clear: both;">
31 +</div>
32 +<div class="xyz-ips-wrap">
33 +<div class="xyz-ips-footer-contact">
34 + 🚀 <span style="font-style: italic;font-size:larger;">We are available for custom development</span> —
35 + <a href="https://xyzscripts.com/support/" target="_blank">
36 + Get a quote
37 + </a>
38 +</div></div>
39 +<div class="xyz-ips-wrap">
40 + <div class="xyz_ips_social_media">
41 + <h3 class="xyz_ips_inner_head">
42 + Follow Us
43 + </h3>
44 + <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_ips_home_fbook"></a>
45 + <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_ips_home_twitt"></a>
46 + <a target="_blank" href="https://www.instagram.com/xyz_scripts/" class="xyz_ips_home_insta"></a>
47 + <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_ips_home_linkedin"></a>
48 + </div>
49 + <div class="xyz_ips_sugession">
50 + <h3 class="xyz_ips_inner_head"> Support</h3>
51 +
52 + <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
53 + <p ><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" >Please Rate Us
54 + </a></p>
55 + <a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" ><span class="xyz_ips_new_star"></span></a>
56 + <p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/" >Create a ticket at Wordpress forum</a>
57 + </p>
58 + </div>
59 + <div class="xyz_ips_new_subscribe">
60 + <h3 class="xyz_ips_inner_head">
61 + Stay tuned for our updates
62 + </h3>
63 + <script language="javascript">
64 + function check_email(emailString)
65 + {
66 + var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
67 + var matchArray = emailString.match(mailPattern);
68 + if (emailString.length == 0)
69 + return false;
70 + if (matchArray == null) {
71 + return false;
72 + }else{
73 + return true;
74 + }
75 + }
76 + function verify_lists(form)
77 + {
78 + var total=0;
79 + var checkBox=form['chk[]'];
80 + if(checkBox.length){
81 + for(var i=0;i<checkBox.length;i++){
82 + checkBox[i].checked?total++:null;
83 + }
84 + }
85 + else{
86 + checkBox.checked?total++:null;
87 + }
88 + if(total>0){
89 + return true;
90 + }
91 + else{
92 + return false;
93 + }
94 + }
95 + function verify_fields()
96 + {
97 + if(check_email(document.email_subscription.email.value) == false){
98 + alert("Please check whether the email is correct.");
99 + document.email_subscription.email.select();
100 + return false;
101 + }
102 + else if(verify_lists(document.email_subscription)==false){
103 + alert("Select atleast one list.");
104 + }
105 + else{
106 + document.email_subscription.submit();
107 + }
108 + }
109 + </script>
110 + <?php global $current_user; wp_get_current_user();?>
111 +<form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
82 112 <input type="hidden" name="fieldNameIds" value="1,">
83 113 <input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIPSFRE">
84 114 <input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIPSFRE">
85 115 <input type="hidden" name="mode" value="1">
86 -
87 -<b>Stay tuned to our updates :</b>
88 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
89 116
90 -Name :
91 -<input style="border: 1px solid #3fafe3; margin-right:10px;" type="text" name="field1" value="<?php
92 -if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
117 +<input class="xyz_ips_name" type="text" placeholder="Name" name="field1" value="<?php
118 +if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
93 119 {
94 - echo $current_user->user_firstname . " " . $current_user->user_lastname;
95 -}
96 -else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
120 + echo esc_html($current_user->user_firstname . " " . $current_user->user_lastname);
121 +}
122 +else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
97 123 {
98 - echo $current_user->display_name;
99 -}
100 -else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
124 + echo esc_html($current_user->display_name);
125 +}
126 +else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
101 127 {
102 - echo $current_user->user_login;
128 + echo esc_html($current_user->user_login);
103 129 }
104 130 ?>" >
105 131
106 -Email Address :
107 -<input style="border: 1px solid #3fafe3;" name="email"
108 -type="text" value="<?php echo $current_user->user_email; ?>" /><span style="color:#FF0000">*</span>
132 +<input class="xyz_ips_email" name="email"
133 +type="text" placeholder="Email" value="<?php echo esc_html($current_user->user_email); ?>" />
109 134
110 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
111 -<input id="submit_ips" style="color:#FFFFFF;border-radius:4px;border:1px solid #1A87B9;" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
135 +<input id="xyz_ips_submit_ips_btn" type="submit" class="xyz_ips_sbmt_btn" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
112 136
113 137 <input type="hidden" name="listName" value="6,1,"/>
114 138 </form>
115 -
139 + </div>
116 140
117 -
118 -</div>
119 -
120 -
121 - <div style="clear: both;"></div>
122 - <div style="width: 100%">
123 -
124 -<div class="xyz_our_plugins">
125 -Our Plugins :
126 -
127 -
128 - <a target="_blank" href="http://wordpress.org/extend/plugins/insert-html-snippet/">Insert HTML Snippet</a> ★
129 - <a target="_blank" href="http://wordpress.org/extend/plugins/lightbox-pop/">Lightbox Pop</a> ★
130 - <a target="_blank" href="http://wordpress.org/extend/plugins/full-screen-popup/">Full Screen Popup</a> ★
131 - <a target="_blank" href="http://wordpress.org/extend/plugins/popup-dialog-box/">Popup Dialog Box</a> ★
132 - <a target="_blank" href="http://wordpress.org/extend/plugins/quick-bar/">Quick Bar</a> ★
133 - <a target="_blank" href="http://wordpress.org/extend/plugins/quick-box-popup/">Quick Box Popup</a> ★
134 - <a target="_blank" href="http://wordpress.org/extend/plugins/contact-form-manager/">Contact Form Manager</a> ★
135 - <a target="_blank" href="http://wordpress.org/extend/plugins/newsletter-manager/">Newsletter Manager</a> ★
136 - <a target="_blank" href="http://wordpress.org/extend/plugins/social-media-auto-publish/">Social Media Auto Publish</a>★
137 - <a target="_blank" href="http://wordpress.org/extend/plugins/facebook-auto-publish/">Facebook Auto Publish</a> ★
138 - <a target="_blank" href="http://wordpress.org/extend/plugins/linkedin-auto-publish/">LinkedIn Auto Publish</a> ★
139 - <a target="_blank" href="http://wordpress.org/extend/plugins/twitter-auto-publish/">Twitter Auto Publish</a> ★
140 - <a target="_blank" href="http://wordpress.org/extend/plugins/insert-php-code-snippet/">Insert PHP Code Snippet</a>
141 141 </div>
142 - </div>
143 -<div class="poweredBy">
144 -Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
145 -</div>
146 - <div style="clear: both;"></div>
147 -
142 +<div style="clear: both;">
148 143 </div>
149 - <p style="clear: both;"></p>
144 +<div style="width: 100%">
145 + <div class="xyz_ips_our_plugins_new">
146 + <p class="xyz_ips_plugin_head">
147 + Our Plugins :
148 + </p>
149 + <a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
150 + <a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>Facebook Auto Publish</a>
151 + <a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>Twitter Auto Publish</a>
152 + <a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>LinkedIn Auto Publish</a>
153 + <a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
154 + <a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
155 + <a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
156 + <a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
157 + <a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
158 + <a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
159 + <a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
160 + <a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
161 + <a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
162 + <a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
163 + <a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
164 + <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
165 + </div>
166 +</div>
167 +<div class="xyz_ips_poweredBy">
168 + Powered by
169 + <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
170 +</div>
171 +<div style="clear: both;"></div>
172 +<p style="clear: both;"></p>