Version Description
- Support for Bulk Actions(activate,deactivate,delete)
Download this release
Release Info
Developer | f1logic |
Plugin | Insert PHP Code Snippet |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- admin/about.php +23 -1
- admin/footer.php +110 -132
- admin/snippets.php +100 -13
- css/xyz_ips_styles.css +204 -200
- images/xyz.png +0 -0
- insert-php-code-snippet.php +1 -1
- readme.txt +5 -2
- shortcode-handler.php +3 -3
admin/about.php
CHANGED
@@ -149,7 +149,29 @@ Integrate PHP code seamlessly to your wordpress. This plugin lets you generate a
|
|
149 |
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
150 |
</td>
|
151 |
</tr>
|
152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
<!-- Integration -->
|
154 |
|
155 |
<tr>
|
149 |
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
150 |
</td>
|
151 |
</tr>
|
152 |
+
<!-- Snippet Targeting -->
|
153 |
+
<tr>
|
154 |
+
<td rowspan="3"><h4>Snippet Targeting</h4></td>
|
155 |
+
<td><b>Geographic Targeting</b></td>
|
156 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
157 |
+
</td>
|
158 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
159 |
+
</td>
|
160 |
+
</tr>
|
161 |
+
<tr>
|
162 |
+
<td><b>Device Targeting</b></td>
|
163 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
164 |
+
</td>
|
165 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
166 |
+
</td>
|
167 |
+
</tr>
|
168 |
+
<tr>
|
169 |
+
<td><b>User Targeting</b></td>
|
170 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
171 |
+
</td>
|
172 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_PHP_PLUGIN_FILE);?>">
|
173 |
+
</td>
|
174 |
+
</tr>
|
175 |
<!-- Integration -->
|
176 |
|
177 |
<tr>
|
admin/footer.php
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) )
|
3 |
exit;
|
4 |
-
|
5 |
-
if(get_option('xyz_ips_premium_version_ads')==1){?>
|
6 |
<div id="xyz-ips-premium">
|
7 |
|
8 |
<div style="float: left; padding: 0 5px">
|
@@ -27,114 +26,87 @@ if(get_option('xyz_ips_premium_version_ads')==1){?>
|
|
27 |
<?php
|
28 |
}
|
29 |
?>
|
30 |
-
<div style="clear: both;"
|
31 |
-
|
32 |
-
|
33 |
-
<div style="width: 100%">
|
34 |
-
|
35 |
-
|
36 |
-
<div class="xyz_ips_social_media">
|
37 |
-
|
38 |
-
|
39 |
-
<h3 class="xyz_ips_inner_head">Follow Us </h3>
|
40 |
-
|
41 |
-
|
42 |
-
<a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
|
43 |
-
<a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
|
44 |
-
<a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_home_gplus"></a>
|
45 |
-
<a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
|
46 |
-
|
47 |
-
|
48 |
-
</div>
|
49 |
-
|
50 |
-
<div class="xyz_rate_us">
|
51 |
-
|
52 |
-
|
53 |
-
<h3 class="xyz_ips_inner_head">Rate Us & Donate</h3>
|
54 |
-
|
55 |
-
<p><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" >Please Rate Us
|
56 |
-
|
57 |
-
</a></p>
|
58 |
-
|
59 |
-
|
60 |
-
<a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" ><span class="xyz_new_star"></span></a>
|
61 |
-
|
62 |
-
<p><a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a></p>
|
63 |
-
|
64 |
</div>
|
65 |
-
|
66 |
-
<div class="
|
67 |
-
<h3 class="xyz_ips_inner_head">
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
<
|
72 |
-
<
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
function
|
91 |
-
{
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
<form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
|
132 |
<input type="hidden" name="fieldNameIds" value="1,">
|
133 |
<input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIPSFRE">
|
134 |
<input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIPSFRE">
|
135 |
<input type="hidden" name="mode" value="1">
|
136 |
|
137 |
-
<input class="
|
138 |
if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
|
139 |
{
|
140 |
echo $current_user->user_firstname . " " . $current_user->user_lastname;
|
@@ -149,41 +121,47 @@ else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($curren
|
|
149 |
}
|
150 |
?>" >
|
151 |
|
152 |
-
<input class="
|
153 |
type="text" placeholder="Email" value="<?php echo $current_user->user_email; ?>" />
|
154 |
|
155 |
-
<input id="
|
156 |
|
157 |
<input type="hidden" name="listName" value="6,1,"/>
|
158 |
</form>
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
|
|
160 |
</div>
|
161 |
-
<div style="
|
162 |
-
|
163 |
-
<
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
181 |
</div>
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
</div>
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
<p style="clear: both;"></p>
|
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 style="float: left; padding: 0 5px">
|
26 |
<?php
|
27 |
}
|
28 |
?>
|
29 |
+
<div style="clear: both;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
</div>
|
31 |
+
<div style="width: 100%">
|
32 |
+
<div class="xyz_ips_social_media">
|
33 |
+
<h3 class="xyz_ips_inner_head">
|
34 |
+
Follow Us
|
35 |
+
</h3>
|
36 |
+
<a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
|
37 |
+
<a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
|
38 |
+
<a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_home_gplus"></a>
|
39 |
+
<a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
|
40 |
+
</div>
|
41 |
+
<div class="xyz_ips_sugession">
|
42 |
+
<h3 class="xyz_ips_inner_head"> Support</h3>
|
43 |
+
<p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a></p>
|
44 |
+
<p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
|
45 |
+
<p ><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" >Please Rate Us
|
46 |
+
</a></p>
|
47 |
+
<a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/" ><span class="xyz_new_star"></span></a>
|
48 |
+
<p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/insert-php-code-snippet/" >Create a ticket at Wordpress forum</a>
|
49 |
+
</p>
|
50 |
+
</div>
|
51 |
+
<div class="xyz_ips_new_subscribe">
|
52 |
+
<h3 class="xyz_ips_inner_head">
|
53 |
+
Stay tuned for our updates
|
54 |
+
</h3>
|
55 |
+
<script language="javascript">
|
56 |
+
function check_email(emailString)
|
57 |
+
{
|
58 |
+
var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
|
59 |
+
var matchArray = emailString.match(mailPattern);
|
60 |
+
if (emailString.length == 0)
|
61 |
+
return false;
|
62 |
+
if (matchArray == null) {
|
63 |
+
return false;
|
64 |
+
}else{
|
65 |
+
return true;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
function verify_lists(form)
|
69 |
+
{
|
70 |
+
var total=0;
|
71 |
+
var checkBox=form['chk[]'];
|
72 |
+
if(checkBox.length){
|
73 |
+
for(var i=0;i<checkBox.length;i++){
|
74 |
+
checkBox[i].checked?total++:null;
|
75 |
+
}
|
76 |
+
}
|
77 |
+
else{
|
78 |
+
checkBox.checked?total++:null;
|
79 |
+
}
|
80 |
+
if(total>0){
|
81 |
+
return true;
|
82 |
+
}
|
83 |
+
else{
|
84 |
+
return false;
|
85 |
+
}
|
86 |
+
}
|
87 |
+
function verify_fields()
|
88 |
+
{
|
89 |
+
if(check_email(document.email_subscription.email.value) == false){
|
90 |
+
alert("Please check whether the email is correct.");
|
91 |
+
document.email_subscription.email.select();
|
92 |
+
return false;
|
93 |
+
}
|
94 |
+
else if(verify_lists(document.email_subscription)==false){
|
95 |
+
alert("Select atleast one list.");
|
96 |
+
}
|
97 |
+
else{
|
98 |
+
document.email_subscription.submit();
|
99 |
+
}
|
100 |
+
}
|
101 |
+
</script>
|
102 |
+
<?php global $current_user; wp_get_current_user();?>
|
103 |
<form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
|
104 |
<input type="hidden" name="fieldNameIds" value="1,">
|
105 |
<input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIPSFRE">
|
106 |
<input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIPSFRE">
|
107 |
<input type="hidden" name="mode" value="1">
|
108 |
|
109 |
+
<input class="xyz_ips_name" type="text" placeholder="Name" name="field1" value="<?php
|
110 |
if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
|
111 |
{
|
112 |
echo $current_user->user_firstname . " " . $current_user->user_lastname;
|
121 |
}
|
122 |
?>" >
|
123 |
|
124 |
+
<input class="xyz_ips_email" name="email"
|
125 |
type="text" placeholder="Email" value="<?php echo $current_user->user_email; ?>" />
|
126 |
|
127 |
+
<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; " />
|
128 |
|
129 |
<input type="hidden" name="listName" value="6,1,"/>
|
130 |
</form>
|
131 |
+
</div>
|
132 |
+
<div class="xyz_ips_inmotion" >
|
133 |
+
<a target="_blank" href="http://inmotion-hosting.evyy.net/c/1150074/260033/4222">
|
134 |
+
<img src="<?php echo plugins_url()?>/insert-php-code-snippet/images/xyz.png" class="xyz_inmotion_label"></a>
|
135 |
+
</div>
|
136 |
</div>
|
137 |
+
<div style="clear: both;">
|
138 |
</div>
|
139 |
+
<div style="width: 100%">
|
140 |
+
<div class="xyz_our_plugins_new">
|
141 |
+
<p class="xyz_plugin_head">
|
142 |
+
Our Plugins :
|
143 |
+
</p>
|
144 |
+
<a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
|
145 |
+
<a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>Facebook Auto Publish</a>
|
146 |
+
<a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>Twitter Auto Publish</a>
|
147 |
+
<a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>LinkedIn Auto Publish</a>
|
148 |
+
<a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
|
149 |
+
<a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
|
150 |
+
<a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
|
151 |
+
<a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
|
152 |
+
<a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
|
153 |
+
<a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
|
154 |
+
<a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
|
155 |
+
<a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
|
156 |
+
<a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
|
157 |
+
<a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
|
158 |
+
<a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
|
159 |
+
<a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
|
160 |
+
</div>
|
161 |
</div>
|
162 |
+
<div class="xyz_poweredBy">
|
163 |
+
Powered by
|
164 |
+
<a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
|
165 |
</div>
|
166 |
+
<div style="clear: both;"></div>
|
167 |
+
<p style="clear: both;"></p>
|
|
|
|
admin/snippets.php
CHANGED
@@ -8,6 +8,56 @@ $xyz_ips_message = '';
|
|
8 |
if(isset($_GET['xyz_ips_msg'])){
|
9 |
$xyz_ips_message = intval($_GET['xyz_ips_msg']);
|
10 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
if($xyz_ips_message == 1){
|
12 |
|
13 |
?>
|
@@ -57,20 +107,37 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
57 |
</div>
|
58 |
<?php
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
?>
|
62 |
-
|
63 |
-
|
64 |
<div >
|
65 |
|
66 |
|
67 |
<form method="post">
|
|
|
68 |
<fieldset
|
69 |
style="width: 99%; border: 1px solid #F7F7F7; padding: 10px 0px;">
|
70 |
<legend><h3>PHP Code Snippets</h3></legend>
|
71 |
<?php
|
72 |
global $wpdb;
|
73 |
-
|
74 |
$limit = get_option('xyz_ips_limit');
|
75 |
$offset = ( $pagenum - 1 ) * $limit;
|
76 |
|
@@ -80,16 +147,26 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
80 |
|
81 |
$entries = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."xyz_ips_short_code ORDER BY $field $order LIMIT $offset,$limit" );
|
82 |
|
83 |
-
|
84 |
-
|
85 |
?>
|
86 |
<input id="xyz_ips_submit_ips"
|
87 |
style="cursor: pointer; margin-bottom:10px; margin-left:8px;" type="button"
|
88 |
name="textFieldButton2" value="Add New PHP Code Snippet"
|
89 |
onClick='document.location.href="<?php echo admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-add');?>"'>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
<table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
|
91 |
<thead>
|
92 |
<tr>
|
|
|
93 |
<th scope="col" >Tracking Name</th>
|
94 |
<th scope="col" >Snippet Short Code</th>
|
95 |
<th scope="col" >Status</th>
|
@@ -103,8 +180,12 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
103 |
$class = '';
|
104 |
foreach( $entries as $entry ) {
|
105 |
$class = ( $count % 2 == 0 ) ? ' class="alternate"' : '';
|
|
|
106 |
?>
|
107 |
<tr <?php echo $class; ?>>
|
|
|
|
|
|
|
108 |
<td id="xyz_ips_vAlign"><?php
|
109 |
echo esc_html($entry->title);
|
110 |
?></td>
|
@@ -125,20 +206,20 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
125 |
</td>
|
126 |
<?php
|
127 |
if($entry->status == 2){
|
128 |
-
$stat1 = admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-status&snippetId='.$
|
129 |
?>
|
130 |
<td style="text-align: center;"><a
|
131 |
-
href='<?php echo wp_nonce_url($stat1,'ips-pstat_'.$
|
132 |
id="xyz_ips_img" title="Activate"
|
133 |
src="<?php echo plugins_url('images/activate.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
134 |
</a>
|
135 |
</td>
|
136 |
<?php
|
137 |
}elseif ($entry->status == 1){
|
138 |
-
$stat2 = admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-status&snippetId='.$
|
139 |
?>
|
140 |
<td style="text-align: center;"><a
|
141 |
-
href='<?php echo wp_nonce_url($stat2,'ips-pstat_'.$
|
142 |
id="xyz_ips_img" title="Deactivate"
|
143 |
src="<?php echo plugins_url('images/pause.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
144 |
</a>
|
@@ -149,15 +230,15 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
149 |
?>
|
150 |
|
151 |
<td style="text-align: center;"><a
|
152 |
-
href='<?php echo admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-edit&snippetId='.$
|
153 |
id="xyz_ips_img" title="Edit Snippet"
|
154 |
src="<?php echo plugins_url('images/edit.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
155 |
</a>
|
156 |
</td>
|
157 |
|
158 |
-
<?php $delurl = admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-delete&snippetId='.$
|
159 |
<td style="text-align: center;" ><a
|
160 |
-
href='<?php echo wp_nonce_url($delurl,'ips-pdel_'.$
|
161 |
onclick="javascript: return confirm('Please click \'OK\' to confirm ');"><img
|
162 |
id="xyz_ips_img" title="Delete Snippet"
|
163 |
src="<?php echo plugins_url('images/delete.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
@@ -205,4 +286,10 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
205 |
</form>
|
206 |
|
207 |
</div>
|
208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
8 |
if(isset($_GET['xyz_ips_msg'])){
|
9 |
$xyz_ips_message = intval($_GET['xyz_ips_msg']);
|
10 |
}
|
11 |
+
if($_POST)
|
12 |
+
{
|
13 |
+
if(!isset($_REQUEST['_wpnonce'])||!wp_verify_nonce($_REQUEST['_wpnonce'],'bulk_actions_ips')){
|
14 |
+
wp_nonce_ays( 'bulk_actions_ips' );
|
15 |
+
exit;
|
16 |
+
}
|
17 |
+
if (isset($_POST['apply_ips_bulk_actions'])){
|
18 |
+
if (isset($_POST['ips_bulk_actions_snippet'])){
|
19 |
+
$ips_bulk_actions_snippet=$_POST['ips_bulk_actions_snippet'];
|
20 |
+
if (isset($_POST['xyz_ips_snippet_ids']))
|
21 |
+
$xyz_ips_snippet_ids = $_POST['xyz_ips_snippet_ids'];
|
22 |
+
$xyz_ips_pageno = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
|
23 |
+
if (empty($xyz_ips_snippet_ids))
|
24 |
+
{
|
25 |
+
header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=8&pagenum='.$xyz_ips_pageno));
|
26 |
+
exit();
|
27 |
+
}
|
28 |
+
if ($ips_bulk_actions_snippet==2)//bulk-delete
|
29 |
+
{
|
30 |
+
foreach ($xyz_ips_snippet_ids as $snippet_id)
|
31 |
+
{
|
32 |
+
$wpdb->query($wpdb->prepare( 'DELETE FROM '.$wpdb->prefix.'xyz_ips_short_code WHERE id=%d',$snippet_id)) ;
|
33 |
+
}
|
34 |
+
header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=3&pagenum='.$xyz_ips_pageno));
|
35 |
+
exit();
|
36 |
+
}
|
37 |
+
elseif ($ips_bulk_actions_snippet==0)//bulk-Deactivate
|
38 |
+
{
|
39 |
+
foreach ($xyz_ips_snippet_ids as $xyz_ips_snippetId)
|
40 |
+
$wpdb->update($wpdb->prefix.'xyz_ips_short_code', array('status'=>2), array('id'=>$xyz_ips_snippetId));
|
41 |
+
header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=4&pagenum='.$xyz_ips_pageno));
|
42 |
+
exit();
|
43 |
+
}
|
44 |
+
elseif ($ips_bulk_actions_snippet==1)//bulk-activate
|
45 |
+
{
|
46 |
+
foreach ($xyz_ips_snippet_ids as $xyz_ips_snippetId)
|
47 |
+
$wpdb->update($wpdb->prefix.'xyz_ips_short_code', array('status'=>1), array('id'=>$xyz_ips_snippetId));
|
48 |
+
header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=4&pagenum='.$xyz_ips_pageno));
|
49 |
+
exit();
|
50 |
+
}
|
51 |
+
elseif ($ips_bulk_actions_snippet==-1)//no action selected
|
52 |
+
{
|
53 |
+
header("Location:".admin_url('admin.php?page=insert-php-code-snippet-manage&xyz_ips_msg=7&pagenum='.$xyz_ips_pageno));
|
54 |
+
exit();
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
61 |
if($xyz_ips_message == 1){
|
62 |
|
63 |
?>
|
107 |
</div>
|
108 |
<?php
|
109 |
|
110 |
+
}
|
111 |
+
if($xyz_ips_message == 7)
|
112 |
+
{
|
113 |
+
?>
|
114 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
115 |
+
Please select an action to apply.
|
116 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
117 |
+
</div>
|
118 |
+
<?php
|
119 |
+
}
|
120 |
+
if($xyz_ips_message == 8)
|
121 |
+
{
|
122 |
+
?>
|
123 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
124 |
+
Please select at least one snippet to perform this action.
|
125 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
126 |
+
</div>
|
127 |
+
<?php
|
128 |
}
|
129 |
?>
|
|
|
|
|
130 |
<div >
|
131 |
|
132 |
|
133 |
<form method="post">
|
134 |
+
<?php wp_nonce_field( 'bulk_actions_ips');?>
|
135 |
<fieldset
|
136 |
style="width: 99%; border: 1px solid #F7F7F7; padding: 10px 0px;">
|
137 |
<legend><h3>PHP Code Snippets</h3></legend>
|
138 |
<?php
|
139 |
global $wpdb;
|
140 |
+
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
|
141 |
$limit = get_option('xyz_ips_limit');
|
142 |
$offset = ( $pagenum - 1 ) * $limit;
|
143 |
|
147 |
|
148 |
$entries = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."xyz_ips_short_code ORDER BY $field $order LIMIT $offset,$limit" );
|
149 |
|
150 |
+
|
|
|
151 |
?>
|
152 |
<input id="xyz_ips_submit_ips"
|
153 |
style="cursor: pointer; margin-bottom:10px; margin-left:8px;" type="button"
|
154 |
name="textFieldButton2" value="Add New PHP Code Snippet"
|
155 |
onClick='document.location.href="<?php echo admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-add');?>"'>
|
156 |
+
<br>
|
157 |
+
<span style="padding-left: 6px;color:#21759B;">With Selected : </span>
|
158 |
+
<select name="ips_bulk_actions_snippet" id="ips_bulk_actions_snippet" style="width:130px;height:29px;">
|
159 |
+
<option value="-1">Bulk Actions</option>
|
160 |
+
<option value="0">Deactivate</option>
|
161 |
+
<option value="1">Activate</option>
|
162 |
+
<option value="2">Delete</option>
|
163 |
+
</select>
|
164 |
+
<input type="submit" title="Apply" name="apply_ips_bulk_actions" value="Apply" style="color:#21759B;cursor:pointer;padding: 5px;background:linear-gradient(to top, #ECECEC, #F9F9F9) repeat scroll 0 0 #F1F1F1;border: 2px solid #DFDFDF;">
|
165 |
+
|
166 |
<table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
|
167 |
<thead>
|
168 |
<tr>
|
169 |
+
<th scope="col" width="3%"><input type="checkbox" id="chkAllSnippets" /></th>
|
170 |
<th scope="col" >Tracking Name</th>
|
171 |
<th scope="col" >Snippet Short Code</th>
|
172 |
<th scope="col" >Status</th>
|
180 |
$class = '';
|
181 |
foreach( $entries as $entry ) {
|
182 |
$class = ( $count % 2 == 0 ) ? ' class="alternate"' : '';
|
183 |
+
$snippetId=intval($entry->id);
|
184 |
?>
|
185 |
<tr <?php echo $class; ?>>
|
186 |
+
<td style="vertical-align: middle !important;padding-left: 18px;">
|
187 |
+
<input type="checkbox" class="chk" value="<?php echo $snippetId; ?>" name="xyz_ips_snippet_ids[]" id="xyz_ips_snippet_ids" />
|
188 |
+
</td>
|
189 |
<td id="xyz_ips_vAlign"><?php
|
190 |
echo esc_html($entry->title);
|
191 |
?></td>
|
206 |
</td>
|
207 |
<?php
|
208 |
if($entry->status == 2){
|
209 |
+
$stat1 = admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=1&pageno='.$pagenum);
|
210 |
?>
|
211 |
<td style="text-align: center;"><a
|
212 |
+
href='<?php echo wp_nonce_url($stat1,'ips-pstat_'.$snippetId); ?>'><img
|
213 |
id="xyz_ips_img" title="Activate"
|
214 |
src="<?php echo plugins_url('images/activate.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
215 |
</a>
|
216 |
</td>
|
217 |
<?php
|
218 |
}elseif ($entry->status == 1){
|
219 |
+
$stat2 = admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=2&pageno='.$pagenum);
|
220 |
?>
|
221 |
<td style="text-align: center;"><a
|
222 |
+
href='<?php echo wp_nonce_url($stat2,'ips-pstat_'.$snippetId); ?>'><img
|
223 |
id="xyz_ips_img" title="Deactivate"
|
224 |
src="<?php echo plugins_url('images/pause.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
225 |
</a>
|
230 |
?>
|
231 |
|
232 |
<td style="text-align: center;"><a
|
233 |
+
href='<?php echo admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-edit&snippetId='.$snippetId.'&pageno='.$pagenum); ?>'><img
|
234 |
id="xyz_ips_img" title="Edit Snippet"
|
235 |
src="<?php echo plugins_url('images/edit.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
236 |
</a>
|
237 |
</td>
|
238 |
|
239 |
+
<?php $delurl = admin_url('admin.php?page=insert-php-code-snippet-manage&action=snippet-delete&snippetId='.$snippetId.'&pageno='.$pagenum);?>
|
240 |
<td style="text-align: center;" ><a
|
241 |
+
href='<?php echo wp_nonce_url($delurl,'ips-pdel_'.$snippetId); ?>'
|
242 |
onclick="javascript: return confirm('Please click \'OK\' to confirm ');"><img
|
243 |
id="xyz_ips_img" title="Delete Snippet"
|
244 |
src="<?php echo plugins_url('images/delete.png',XYZ_INSERT_PHP_PLUGIN_FILE)?>">
|
286 |
</form>
|
287 |
|
288 |
</div>
|
289 |
+
<script type="text/javascript">
|
290 |
+
jQuery(document).ready(function(){
|
291 |
+
jQuery("#chkAllSnippets").click(function(){
|
292 |
+
jQuery(".chk").prop("checked",jQuery("#chkAllSnippets").prop("checked"));
|
293 |
+
});
|
294 |
+
});
|
295 |
+
</script>
|
css/xyz_ips_styles.css
CHANGED
@@ -104,7 +104,7 @@ z-index:100000;
|
|
104 |
|
105 |
}
|
106 |
|
107 |
-
|
108 |
|
109 |
background-image: url('../images/suggest.png');
|
110 |
}
|
@@ -290,102 +290,128 @@ i.xyz-ips-own-icon {
|
|
290 |
border: 1px solid #CCCCCC;
|
291 |
height: 25px;
|
292 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
|
|
|
|
|
|
|
|
|
294 |
|
|
|
|
|
|
|
295 |
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
.xyz_ips_social_media{
|
303 |
-
background-color: #80766D;
|
304 |
-
width: 21% ;
|
305 |
-
float: left;
|
306 |
-
min-height: 80px;
|
307 |
-
margin: 10px 10px 10px 0px;
|
308 |
-
padding: 10px;
|
309 |
-
border: 1px solid #312a23;
|
310 |
-
border-radius: 5px;}
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
.xyz_ips_sugession{
|
315 |
-
background-color: #A2A240;
|
316 |
-
width: 20%;
|
317 |
-
float: left;
|
318 |
-
min-height: 80px;
|
319 |
-
margin: 10px 10px 10px 0px;
|
320 |
-
padding: 10px;
|
321 |
-
border: 1px solid #797900;
|
322 |
-
border-radius: 5px;}
|
323 |
-
|
324 |
-
.xyz_ips_sugession a{color:#fafa66; text-decoration:underline; }
|
325 |
-
|
326 |
-
.xyz_ips_sugession a:hover{color:#fafa66; text-decoration:underline;}
|
327 |
-
|
328 |
|
329 |
-
|
330 |
-
|
331 |
-
color: #ffffff;}
|
332 |
|
|
|
333 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
|
335 |
-
.
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
|
|
|
|
|
|
|
|
|
345 |
|
346 |
-
|
347 |
-
|
|
|
348 |
float: left;
|
349 |
line-height: 20px;
|
350 |
width: 100%;
|
351 |
margin: 0px; width:50%;}
|
352 |
-
|
353 |
-
|
354 |
-
.xyz_new_star{background-image: url(../images/new_star.png);
|
355 |
width: 80px;
|
356 |
height: 20px;
|
357 |
display: block;
|
358 |
background-repeat: no-repeat;
|
359 |
float: left;
|
|
|
360 |
|
|
|
|
|
361 |
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
.xyz_rate_us a{color:#94dbff; text-decoration:underline; float:left;}
|
368 |
-
|
369 |
-
.xyz_rate_us a:hover{color:#94dbff; text-decoration:underline;}
|
370 |
-
|
371 |
-
|
372 |
-
.xyz_new_subscribe{
|
373 |
-
background-color: #E39124;
|
374 |
-
width: 27%;
|
375 |
-
float: left;
|
376 |
-
min-height: 80px;
|
377 |
-
margin: 10px 10px 10px 0px;
|
378 |
-
padding: 10px;
|
379 |
-
border: 1px solid #b86a02;
|
380 |
-
border-radius: 5px;}
|
381 |
-
|
382 |
|
383 |
-
|
|
|
|
|
|
|
|
|
|
|
384 |
|
|
|
|
|
|
|
|
|
385 |
|
|
|
386 |
|
387 |
-
|
388 |
-
|
389 |
border: 1px solid #ddd;
|
390 |
width: 30px;
|
391 |
height: 30px;
|
@@ -393,27 +419,19 @@ i.xyz-ips-own-icon {
|
|
393 |
display: block;
|
394 |
float: left;}
|
395 |
|
396 |
-
|
397 |
-
.xyz_ips_inner_head{ color: #ffffff;
|
398 |
font-weight: 300;
|
399 |
border-bottom: 1px solid #eee;
|
400 |
margin: 0px 0px 10px;
|
401 |
padding-bottom: 10px;}
|
402 |
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
.xyz_plugin_head{margin: 0px;
|
407 |
font-size: 22px;
|
408 |
font-weight: 300;
|
409 |
padding: 0px 10px 5px;}
|
410 |
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
.xyz_email{border:none; width:39.5%;}
|
415 |
-
|
416 |
-
|
417 |
.xyz_our_plugins_new{
|
418 |
background: #ffffff;
|
419 |
border: 1px solid #eeeeee;
|
@@ -438,14 +456,12 @@ i.xyz-ips-own-icon {
|
|
438 |
outline: 0 !important;
|
439 |
line-height: 27px;
|
440 |
}
|
|
|
441 |
|
|
|
442 |
|
443 |
-
|
444 |
-
|
445 |
-
..xyz_our_plugins_new a:active{box-shadow:none !important;}
|
446 |
-
|
447 |
-
.xyz_our_plugins_new a span{
|
448 |
-
background-color: #ef4a44;
|
449 |
color: #FFFFFF;
|
450 |
width: 30px;
|
451 |
min-height: 28px;
|
@@ -455,42 +471,39 @@ i.xyz-ips-own-icon {
|
|
455 |
margin-right: 10px;
|
456 |
border-right: 2px solid #fff;}
|
457 |
|
458 |
-
|
459 |
-
.xyz_rate_btn{color: #E77E22 !important;
|
460 |
text-decoration: none !important;
|
461 |
margin-right: 4px !important;
|
462 |
font-weight: bold;
|
463 |
background-color: #fff1d6 !important;
|
464 |
border: 1px solid #E77E22 !important;
|
465 |
-
|
466 |
|
467 |
-
|
468 |
text-decoration: none !important;
|
469 |
margin-right: 4px !important;
|
470 |
font-weight: bold;
|
471 |
background-color: #f0fff2 !important;
|
472 |
border: 1px solid #00a016 !important;
|
473 |
-
|
474 |
-
|
475 |
|
476 |
-
|
477 |
text-decoration: none !important;
|
478 |
margin-right: 4px !important;
|
479 |
font-weight: bold;
|
480 |
border: 1px solid #177ABD !important;
|
481 |
background-color: #edf8ff !important;
|
482 |
-
|
483 |
|
484 |
-
|
485 |
text-decoration: none !important;
|
486 |
margin-right: 4px !important;
|
487 |
font-weight: bold;
|
488 |
border: 1px solid #C12AA2 !important;
|
489 |
background-color: #feeafa !important;
|
490 |
-
|
491 |
|
492 |
-
|
493 |
-
.xyz_show_btn{color: #F15E77 !important;
|
494 |
text-decoration: none !important;
|
495 |
margin-right: 4px !important;
|
496 |
font-weight: bold;
|
@@ -498,149 +511,140 @@ i.xyz-ips-own-icon {
|
|
498 |
background-color: #ffeddf !important;
|
499 |
box-shadow: none !important;}
|
500 |
|
|
|
501 |
|
|
|
502 |
|
|
|
503 |
|
|
|
504 |
|
|
|
505 |
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
.xyz_ips_social_media{width:21%;}
|
510 |
-
|
511 |
-
.xyz_new_subscribe{width:24%;}
|
512 |
|
513 |
-
|
514 |
-
|
515 |
-
.xyz_ips_sugession{width:20%;}
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
.xyz_name{border:none; width:25%;}
|
520 |
-
|
521 |
-
.xyz_email{border:none; width:37.5%;}
|
522 |
-
|
523 |
-
.xyz_ips_sugession p{
|
524 |
-
font-size: 11px;
|
525 |
-
|
526 |
-
|
527 |
-
}
|
528 |
|
529 |
.xyz_our_plugins_new a{width:23%;}
|
530 |
-
|
531 |
-
|
532 |
|
533 |
@media screen and (max-width: 1251px) {
|
534 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
|
|
|
536 |
|
537 |
-
|
538 |
-
|
539 |
-
.xyz_new_subscribe{width:24%;}
|
540 |
-
|
541 |
-
.xyz_rate_us{width:21%;}
|
542 |
-
|
543 |
-
.xyz_ips_sugession{width:20%;}
|
544 |
-
|
545 |
-
.xyz_name{border:none; width:25%;}
|
546 |
-
|
547 |
-
.xyz_email{border:none; width:37.5%;}
|
548 |
|
549 |
#xyz_ips_submit_ips{line-height:20px;}
|
550 |
|
551 |
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
@media screen and (max-width:1155px)
|
558 |
-
{
|
559 |
-
|
560 |
-
|
561 |
-
.xyz_ips_social_media{width:45%;}
|
562 |
-
|
563 |
-
.xyz_new_subscribe{width:45%;}
|
564 |
-
|
565 |
-
.xyz_rate_us{width:45%;}
|
566 |
-
|
567 |
-
.xyz_ips_sugession{width:45%;}
|
568 |
-
.xyz_our_plugins_new a{width:31%;}
|
569 |
-
|
570 |
-
}
|
571 |
-
|
572 |
-
|
573 |
-
@media screen and (max-width: 782px)
|
574 |
-
{
|
575 |
-
.xyz_ips_social_media{width:43%;}
|
576 |
-
|
577 |
-
.xyz_new_subscribe{width:43%;}
|
578 |
|
579 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
|
581 |
-
|
|
|
|
|
582 |
|
|
|
583 |
|
584 |
-
|
585 |
|
586 |
-
|
587 |
|
588 |
-
|
589 |
|
|
|
590 |
|
|
|
591 |
}
|
592 |
-
|
593 |
-
|
594 |
@media screen and (max-width: 768px)
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
#xyz_ips_submit_ips{line-height:20px;}
|
600 |
-
.xyz_our_plugins_new a{width:30%; font-size:11px;}
|
601 |
-
|
602 |
}
|
603 |
|
604 |
-
|
605 |
@media screen and (max-width: 675px)
|
606 |
-
|
607 |
-
|
608 |
.xyz_our_plugins_new a{width:45%; font-size:11px;}
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
}
|
614 |
-
|
615 |
-
|
616 |
@media screen and (max-width: 562px)
|
617 |
-
|
618 |
-
.
|
619 |
|
|
|
620 |
|
621 |
-
.
|
622 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
}
|
624 |
-
|
625 |
|
626 |
@media screen and (max-width: 532px){
|
627 |
-
|
628 |
-
|
629 |
.xyz_ips_social_media{width:92.5%;}
|
630 |
|
631 |
-
|
632 |
|
633 |
-
|
634 |
|
635 |
-
|
636 |
|
|
|
637 |
|
638 |
-
|
639 |
|
640 |
-
|
641 |
-
|
642 |
-
.xyz_email{border:none; width:37.5%;}
|
643 |
}
|
644 |
-
|
645 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
/*new design end*/
|
104 |
|
105 |
}
|
106 |
|
107 |
+
.xyz_suggest{
|
108 |
|
109 |
background-image: url('../images/suggest.png');
|
110 |
}
|
290 |
border: 1px solid #CCCCCC;
|
291 |
height: 25px;
|
292 |
}
|
293 |
+
|
294 |
+
.xyz_star{
|
295 |
+
background-image: url('../images/star.png');
|
296 |
+
}
|
297 |
+
|
298 |
+
.xyz_home_fbook{
|
299 |
|
300 |
+
background-image: url('../images/facebook.png');
|
301 |
+
}
|
302 |
+
|
303 |
+
.xyz_home_twitt{
|
304 |
|
305 |
+
background-image: url('../images/twitter.png');
|
306 |
+
}
|
307 |
+
.xyz_home_gplus{
|
308 |
|
309 |
+
background-image: url('../images/gplus.png');
|
310 |
+
}
|
311 |
+
.xyz_home_linkedin{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
|
313 |
+
background-image: url('../images/linkedin.png');
|
314 |
+
}
|
|
|
315 |
|
316 |
+
/*new design start*/
|
317 |
|
318 |
+
.xyz_ips_social_media {
|
319 |
+
background-color: #456a72;
|
320 |
+
width: 22%;
|
321 |
+
float: left;
|
322 |
+
min-height: 130px;
|
323 |
+
margin: 10px 10px 10px 0px;
|
324 |
+
padding: 10px;
|
325 |
+
border: 1px solid #456a72;
|
326 |
+
border-radius: 3px;
|
327 |
+
}
|
328 |
+
.xyz_ips_sugession {
|
329 |
+
background-color: #571B35;
|
330 |
+
width: 20%;
|
331 |
+
float: left;
|
332 |
+
min-height: 130px;
|
333 |
+
margin: 10px 10px 10px 0px;
|
334 |
+
padding: 10px;
|
335 |
+
border: 1px solid #731C47;
|
336 |
+
border-radius: 3px;
|
337 |
+
font-size: 13px;
|
338 |
+
color: #ffffff;
|
339 |
+
}
|
340 |
+
.xyz-buy-button {
|
341 |
+
color:white;
|
342 |
+
padding:5px 21px;
|
343 |
+
background: #545454;
|
344 |
+
border: 0;
|
345 |
+
border-bottom: 2px solid #545454;
|
346 |
+
cursor: pointer;
|
347 |
+
-webkit-box-shadow: inset 0 -2px #545454;
|
348 |
+
box-shadow: inset 0 -2px #545454;
|
349 |
+
text-decoration: none;
|
350 |
+
font-size: 14px;
|
351 |
+
width:60px;
|
352 |
+
font-weight: bold;
|
353 |
+
border-radius:3px;
|
354 |
+
}
|
355 |
|
356 |
+
.xyz-buy-button:focus {
|
357 |
+
color: #ffffff;
|
358 |
+
}
|
359 |
+
.xyz_ips_tab td{
|
360 |
+
width:500px;
|
361 |
+
}
|
362 |
+
.xyz_ips_new_subscribe {
|
363 |
+
background-color: #c82e53;
|
364 |
+
width: 27%;
|
365 |
+
float: left;
|
366 |
+
min-height: 130px;
|
367 |
+
margin: 10px 10px 10px 0px;
|
368 |
+
padding: 10px;
|
369 |
+
border: 1px solid #BE2963;
|
370 |
+
border-radius: 3px;
|
371 |
+
}
|
372 |
|
373 |
+
.xyz_ips_sugession a {
|
374 |
+
color: #D7B740;
|
375 |
+
text-decoration: underline;
|
376 |
+
}
|
377 |
|
378 |
+
.xyz_ips_sugession a:hover{color:#fafa66; text-decoration:underline;}
|
379 |
+
.xyz_ips_sugession p{
|
380 |
+
display: block;
|
381 |
float: left;
|
382 |
line-height: 20px;
|
383 |
width: 100%;
|
384 |
margin: 0px; width:50%;}
|
385 |
+
|
386 |
+
.xyz_new_star{background-image: url(../images/new_star.png);
|
|
|
387 |
width: 80px;
|
388 |
height: 20px;
|
389 |
display: block;
|
390 |
background-repeat: no-repeat;
|
391 |
float: left;
|
392 |
+
}
|
393 |
|
394 |
+
|
395 |
+
.xyz_ips_inmotion a:hover{color:#94dbff; text-decoration:underline;}
|
396 |
|
397 |
+
.xyz_ips_inmotion {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
|
399 |
+
width: 21%;
|
400 |
+
float: left;
|
401 |
+
min-height: 130px;
|
402 |
+
margin: 0px 0px 0px 0px;
|
403 |
+
}
|
404 |
+
|
405 |
|
406 |
+
.xyz_inmotion_label{
|
407 |
+
height: 169px;
|
408 |
+
display: block;
|
409 |
+
margin: auto;}
|
410 |
|
411 |
+
.xyz_ips_new_subscribe input{font-size:11px;margin: 5px;}
|
412 |
|
413 |
+
.xyz_ips_social_media a{
|
414 |
+
margin: 0px 13px 5px 0px;
|
415 |
border: 1px solid #ddd;
|
416 |
width: 30px;
|
417 |
height: 30px;
|
419 |
display: block;
|
420 |
float: left;}
|
421 |
|
422 |
+
.xyz_ips_inner_head{ color: #ffffff;
|
|
|
423 |
font-weight: 300;
|
424 |
border-bottom: 1px solid #eee;
|
425 |
margin: 0px 0px 10px;
|
426 |
padding-bottom: 10px;}
|
427 |
|
|
|
|
|
|
|
428 |
.xyz_plugin_head{margin: 0px;
|
429 |
font-size: 22px;
|
430 |
font-weight: 300;
|
431 |
padding: 0px 10px 5px;}
|
432 |
|
433 |
+
.xyz_ips_name{border:none; width:46%;}
|
434 |
+
.xyz_ips_email{border:none; width:46%;}
|
|
|
|
|
|
|
|
|
435 |
.xyz_our_plugins_new{
|
436 |
background: #ffffff;
|
437 |
border: 1px solid #eeeeee;
|
456 |
outline: 0 !important;
|
457 |
line-height: 27px;
|
458 |
}
|
459 |
+
.xyz_our_plugins_new a:hover{text-decoration:underline;}
|
460 |
|
461 |
+
..xyz_our_plugins_new a:active{box-shadow:none !important;}
|
462 |
|
463 |
+
.xyz_our_plugins_new a span{
|
464 |
+
background-color: #00a0d2;
|
|
|
|
|
|
|
|
|
465 |
color: #FFFFFF;
|
466 |
width: 30px;
|
467 |
min-height: 28px;
|
471 |
margin-right: 10px;
|
472 |
border-right: 2px solid #fff;}
|
473 |
|
474 |
+
.xyz_rate_btn{color: #E77E22 !important;
|
|
|
475 |
text-decoration: none !important;
|
476 |
margin-right: 4px !important;
|
477 |
font-weight: bold;
|
478 |
background-color: #fff1d6 !important;
|
479 |
border: 1px solid #E77E22 !important;
|
480 |
+
box-shadow:none !important;}
|
481 |
|
482 |
+
.xyz_backlink_btn{color: #00a016 !important;
|
483 |
text-decoration: none !important;
|
484 |
margin-right: 4px !important;
|
485 |
font-weight: bold;
|
486 |
background-color: #f0fff2 !important;
|
487 |
border: 1px solid #00a016 !important;
|
488 |
+
box-shadow:none !important;}
|
|
|
489 |
|
490 |
+
.xyz_share_btn{color: #177ABD !important;
|
491 |
text-decoration: none !important;
|
492 |
margin-right: 4px !important;
|
493 |
font-weight: bold;
|
494 |
border: 1px solid #177ABD !important;
|
495 |
background-color: #edf8ff !important;
|
496 |
+
box-shadow:none !important;}
|
497 |
|
498 |
+
.xyz_donate_btn{color: #C12AA2 !important;
|
499 |
text-decoration: none !important;
|
500 |
margin-right: 4px !important;
|
501 |
font-weight: bold;
|
502 |
border: 1px solid #C12AA2 !important;
|
503 |
background-color: #feeafa !important;
|
504 |
+
box-shadow:none !important;}
|
505 |
|
506 |
+
.xyz_show_btn{color: #F15E77 !important;
|
|
|
507 |
text-decoration: none !important;
|
508 |
margin-right: 4px !important;
|
509 |
font-weight: bold;
|
511 |
background-color: #ffeddf !important;
|
512 |
box-shadow: none !important;}
|
513 |
|
514 |
+
@media screen and (max-width: 1351px) {
|
515 |
|
516 |
+
.xyz_ips_social_media{width:21%;}
|
517 |
|
518 |
+
.xyz_ips_new_subscribe{width:24%;}
|
519 |
|
520 |
+
.xyz_ips_inmotion{width:21%;}
|
521 |
|
522 |
+
.xyz_ips_sugession{width:20%;}
|
523 |
|
524 |
+
.xyz_ips_name{border:none; width:45%;}
|
|
|
|
|
|
|
|
|
|
|
525 |
|
526 |
+
.xyz_ips_email{border:none; width:45%;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
527 |
|
528 |
.xyz_our_plugins_new a{width:23%;}
|
529 |
+
|
530 |
+
}
|
531 |
|
532 |
@media screen and (max-width: 1251px) {
|
533 |
|
534 |
+
.xyz_ips_social_media{width:21%;}
|
535 |
+
|
536 |
+
.xyz_ips_new_subscribe{width:24%;}
|
537 |
+
|
538 |
+
.xyz_ips_inmotion{width:21%;}
|
539 |
+
|
540 |
+
.xyz_ips_sugession{width:22%;}
|
541 |
|
542 |
+
.xyz_ips_name{border:none; width:45%;}
|
543 |
|
544 |
+
.xyz_ips_email{border:none; width:45%;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
|
546 |
#xyz_ips_submit_ips{line-height:20px;}
|
547 |
|
548 |
|
549 |
+
.xyz_our_plugins_new a{width:23.6%;}
|
550 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
551 |
|
552 |
+
@media screen and (max-width:1155px)
|
553 |
+
{
|
554 |
+
.xyz_ips_social_media{width:45%;}
|
555 |
+
.xyz_ips_new_subscribe{width:45%;}
|
556 |
+
.xyz_ips_inmotion{width:45%;}
|
557 |
+
.xyz_ips_sugession{width:45%;}
|
558 |
+
.xyz_our_plugins_new a{width:31%;}
|
559 |
+
}
|
560 |
|
561 |
+
@media screen and (max-width: 782px)
|
562 |
+
{
|
563 |
+
.xyz_ips_social_media{width:44%;}
|
564 |
|
565 |
+
.xyz_ips_new_subscribe{width:44%;}
|
566 |
|
567 |
+
.xyz_ips_inmotion{width:44%;}
|
568 |
|
569 |
+
.xyz_ips_sugession{width:44%;}
|
570 |
|
571 |
+
.xyz_our_plugins_new a{width:30%;}
|
572 |
|
573 |
+
.xyz_ips_name{border:none; width:46%;}
|
574 |
|
575 |
+
.xyz_ips_email{border:none; width:46%;}
|
576 |
}
|
|
|
|
|
577 |
@media screen and (max-width: 768px)
|
578 |
+
{
|
579 |
+
|
580 |
+
#xyz_ips_submit_ips{line-height:20px;}
|
581 |
+
.xyz_our_plugins_new a{width:30%; font-size:11px;}
|
|
|
|
|
|
|
582 |
}
|
583 |
|
|
|
584 |
@media screen and (max-width: 675px)
|
585 |
+
{
|
|
|
586 |
.xyz_our_plugins_new a{width:45%; font-size:11px;}
|
587 |
+
.xyz_ips_name{border:none; width:95%;}
|
588 |
+
.xyz_ips_email {
|
589 |
+
border: none;
|
590 |
+
width: 95%;
|
591 |
+
}
|
592 |
+
.xyz_inmotion_label {
|
593 |
+
height: 185px;
|
594 |
+
display: block;
|
595 |
+
margin: auto;
|
596 |
+
}
|
597 |
}
|
|
|
|
|
598 |
@media screen and (max-width: 562px)
|
599 |
+
{
|
600 |
+
.xyz_ips_social_media{width:92.5%;}
|
601 |
|
602 |
+
.xyz_ips_sugession{width:92.5%;}
|
603 |
|
604 |
+
.xyz_ips_new_subscribe{width:92.5%;}
|
605 |
|
606 |
+
.xyz_ips_inmotion{width:92.5%;}
|
607 |
+
.xyz_ips_name {
|
608 |
+
border: none; width: 95%;}
|
609 |
+
.xyz_ips_email {
|
610 |
+
border: none;
|
611 |
+
width: 95%;
|
612 |
+
}
|
613 |
}
|
|
|
614 |
|
615 |
@media screen and (max-width: 532px){
|
616 |
+
|
|
|
617 |
.xyz_ips_social_media{width:92.5%;}
|
618 |
|
619 |
+
.xyz_ips_new_subscribe{width:92.5%;}
|
620 |
|
621 |
+
.xyz_ips_inmotion{width:92.5%;}
|
622 |
|
623 |
+
.xyz_ips_sugession{width:92.5%;}
|
624 |
|
625 |
+
.xyz_our_plugins_new a{width:92.5%;}
|
626 |
|
627 |
+
.xyz_ips_name{border:none; width:95%;}
|
628 |
|
629 |
+
.xyz_ips_email{border:none; width:95%;}
|
630 |
+
|
|
|
631 |
}
|
632 |
+
.xyz_poweredBy {
|
633 |
+
padding-top: 10px;
|
634 |
+
float:left;
|
635 |
+
text-align: center;
|
636 |
+
width: 100%;
|
637 |
+
}
|
638 |
+
.xyz_poweredBy a {
|
639 |
+
text-decoration: none;
|
640 |
+
}
|
641 |
+
.xyz_ips_sbmt_btn{
|
642 |
+
border: none;
|
643 |
+
color: #ffffff;
|
644 |
+
background-color: #4e0013;
|
645 |
+
padding: 5px 10px;
|
646 |
+
border-radius: 3px;
|
647 |
+
cursor: pointer;
|
648 |
+
}
|
649 |
+
|
650 |
/*new design end*/
|
images/xyz.png
ADDED
Binary file
|
insert-php-code-snippet.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Insert PHP Code Snippet
|
4 |
Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-php-code-snippet/
|
5 |
Description: Insert and run PHP code in your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random PHP code and use the same in your posts, pages or widgets.
|
6 |
-
Version: 1.2.
|
7 |
Author: xyzscripts.com
|
8 |
Author URI: http://xyzscripts.com/
|
9 |
Text Domain: insert-php-code-snippet
|
3 |
Plugin Name: Insert PHP Code Snippet
|
4 |
Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-php-code-snippet/
|
5 |
Description: Insert and run PHP code in your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random PHP code and use the same in your posts, pages or widgets.
|
6 |
+
Version: 1.2.6
|
7 |
Author: xyzscripts.com
|
8 |
Author URI: http://xyzscripts.com/
|
9 |
Text Domain: insert-php-code-snippet
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: f1logic
|
|
3 |
Donate link: http://xyzscripts.com/donate/
|
4 |
Tags: insert PHP, add PHP, insert PHP code, insert PHP tag, insert PHP snippet, insert PHP code snippet , insert PHP snippet, add PHP code, insert PHP tag, add PHP snippet, add PHP code snippet, integrate PHP codes, raw PHP, embed PHP, PHP inserter, PHP code inserter, PHP snippet inserter
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Add PHP code to your pages and posts easily using shortcodes.
|
@@ -66,6 +66,9 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
69 |
= 1.2.5 =
|
70 |
* Added fix for output buffering issue
|
71 |
|
3 |
Donate link: http://xyzscripts.com/donate/
|
4 |
Tags: insert PHP, add PHP, insert PHP code, insert PHP tag, insert PHP snippet, insert PHP code snippet , insert PHP snippet, add PHP code, insert PHP tag, add PHP snippet, add PHP code snippet, integrate PHP codes, raw PHP, embed PHP, PHP inserter, PHP code inserter, PHP snippet inserter
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.9.7
|
7 |
+
Stable tag: 1.2.6
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Add PHP code to your pages and posts easily using shortcodes.
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.2.6 =
|
70 |
+
* Support for Bulk Actions(activate,deactivate,delete)
|
71 |
+
|
72 |
= 1.2.5 =
|
73 |
* Added fix for output buffering issue
|
74 |
|
shortcode-handler.php
CHANGED
@@ -64,9 +64,9 @@ else{
|
|
64 |
|
65 |
eval($content_to_eval);
|
66 |
$xyz_em_content = ob_get_contents();
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
/* }
|
71 |
else{
|
72 |
eval($sippetdetails->content);
|
64 |
|
65 |
eval($content_to_eval);
|
66 |
$xyz_em_content = ob_get_contents();
|
67 |
+
// ob_clean();
|
68 |
+
ob_end_clean();
|
69 |
+
return $xyz_em_content;
|
70 |
/* }
|
71 |
else{
|
72 |
eval($sippetdetails->content);
|