PluginProbe
Insert PHP Code Snippet / 1.4
Insert PHP Code Snippet v1.4
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
insert-php-code-snippet / admin / footer.php

footer.php in Insert PHP Code Snippet 1.4, at admin/footer.php

169 lines 8.3 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 if(get_option('xyz_ips_premium_version_ads')==1){ ?>
5 <div id="xyz-ips-premium">
6
7 <div class="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: 14px;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>
12 </div>
13 <div class="clear"></div>
14 <div class="ButtonWrap">
15 <div class="BuyNowButton">
16 <a target="_blank"
17 href="https://xyzscripts.com/members/product/purchase/XYZWPICSPRE">🛒 Buy Now
18 </a>
19 </div>
20 <div class="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
28 }
29 ?>
30 <div style="clear: both;">
31 </div>
32 <div class="xyz-ips-wrap">
33 <div class="xyz_ips_social_media">
34 <h3 class="xyz_ips_inner_head">
35 Follow Us
36 </h3>
37 <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
38 <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
39 <a target="_blank" href="https://www.instagram.com/xyz_scripts/" class="xyz_home_insta"></a>
40 <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
41 </div>
42 <div class="xyz_ips_sugession">
43 <h3 class="xyz_ips_inner_head"> Support</h3>
44
45 <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
46 <p ><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" >Please Rate Us
47 </a></p>
48 <a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" ><span class="xyz_new_star"></span></a>
49 <p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/" >Create a ticket at Wordpress forum</a>
50 </p>
51 </div>
52 <div class="xyz_ips_new_subscribe">
53 <h3 class="xyz_ips_inner_head">
54 Stay tuned for our updates
55 </h3>
56 <script language="javascript">
57 function check_email(emailString)
58 {
59 var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
60 var matchArray = emailString.match(mailPattern);
61 if (emailString.length == 0)
62 return false;
63 if (matchArray == null) {
64 return false;
65 }else{
66 return true;
67 }
68 }
69 function verify_lists(form)
70 {
71 var total=0;
72 var checkBox=form['chk[]'];
73 if(checkBox.length){
74 for(var i=0;i<checkBox.length;i++){
75 checkBox[i].checked?total++:null;
76 }
77 }
78 else{
79 checkBox.checked?total++:null;
80 }
81 if(total>0){
82 return true;
83 }
84 else{
85 return false;
86 }
87 }
88 function verify_fields()
89 {
90 if(check_email(document.email_subscription.email.value) == false){
91 alert("Please check whether the email is correct.");
92 document.email_subscription.email.select();
93 return false;
94 }
95 else if(verify_lists(document.email_subscription)==false){
96 alert("Select atleast one list.");
97 }
98 else{
99 document.email_subscription.submit();
100 }
101 }
102 </script>
103 <?php global $current_user; wp_get_current_user();?>
104 <form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
105 <input type="hidden" name="fieldNameIds" value="1,">
106 <input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIPSFRE">
107 <input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIPSFRE">
108 <input type="hidden" name="mode" value="1">
109
110 <input class="xyz_ips_name" type="text" placeholder="Name" name="field1" value="<?php
111 if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
112 {
113 echo esc_html($current_user->user_firstname . " " . $current_user->user_lastname);
114 }
115 else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
116 {
117 echo esc_html($current_user->display_name);
118 }
119 else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
120 {
121 echo esc_html($current_user->user_login);
122 }
123 ?>" >
124
125 <input class="xyz_ips_email" name="email"
126 type="text" placeholder="Email" value="<?php echo esc_html($current_user->user_email); ?>" />
127
128 <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; " />
129
130 <input type="hidden" name="listName" value="6,1,"/>
131 </form>
132 </div>
133 <?php /*?><div class="xyz_ips_inmotion" >
134 <a target="_blank" href="http://inmotion-hosting.evyy.net/c/1150074/260033/4222">
135 <img src="<?php echo plugins_url()?>/insert-php-code-snippet/images/xyz.png" class="xyz_inmotion_label"></a>
136 </div><?php */?>
137 </div>
138 <div style="clear: both;">
139 </div>
140 <div style="width: 100%">
141 <div class="xyz_our_plugins_new">
142 <p class="xyz_plugin_head">
143 Our Plugins :
144 </p>
145 <a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
146 <a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>Facebook Auto Publish</a>
147 <a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>Twitter Auto Publish</a>
148 <a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>LinkedIn Auto Publish</a>
149 <a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
150 <a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
151 <a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
152 <a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
153 <a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
154 <a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
155 <a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
156 <a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
157 <a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
158 <a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
159 <a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
160 <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
161 </div>
162 </div>
163 <div class="xyz_poweredBy">
164 Powered by
165 <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
166 </div>
167 <div style="clear: both;"></div>
168 <p style="clear: both;"></p>
169