Insert Html Snippet - Version 1.2.5

Version Description

  • Support for Bulk Actions(activate,deactivate,delete)
Download this release

Release Info

Developer f1logic
Plugin Icon 128x128 Insert Html Snippet
Version 1.2.5
Comparing to
See all releases

Code changes from version 1.2.4 to 1.2.5

admin/about.php CHANGED
@@ -151,6 +151,29 @@ can be used in your pages, posts and widgets. Insert HTML Snippet is developed
151
  <td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
152
  </td>
153
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
155
  <!-- Integration -->
156
 
151
  <td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
152
  </td>
153
  </tr>
154
+ <!-- Snippet Targeting -->
155
+ <tr>
156
+ <td rowspan="3"><h4>Snippet Targeting</h4></td>
157
+ <td><b>Geographic Targeting</b></td>
158
+ <td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
159
+ </td>
160
+ <td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
161
+ </td>
162
+ </tr>
163
+ <tr>
164
+ <td><b>Device Targeting</b></td>
165
+ <td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
166
+ </td>
167
+ <td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
168
+ </td>
169
+ </tr>
170
+ <tr>
171
+ <td><b>User Targeting</b></td>
172
+ <td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
173
+ </td>
174
+ <td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
175
+ </td>
176
+ </tr>
177
 
178
  <!-- Integration -->
179
 
admin/footer.php CHANGED
@@ -28,44 +28,30 @@ if(get_option('xyz_ihs_premium_version_ads')==1){?>
28
  <div style="clear: both;">
29
  </div>
30
  <div style="width: 100%">
31
- <div class="xyz_social_media">
32
- <h3 class="xyz_inner_head">
33
- Follow Us
34
  </h3>
35
  <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
36
  <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
37
  <a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_home_gplus"></a>
38
  <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
39
  </div>
40
- <div class="xyz_rate_us">
41
- <h3 class="xyz_inner_head">
42
- Rate Us & Donate
43
- </h3>
44
- <p>
45
- <a target="_blank" href="https://wordpress.org/support/plugin/insert-html-snippet/reviews/" >Please Rate Us
46
- </a>
47
- </p>
48
- <a target="_blank" href="https://wordpress.org/support/plugin/insert-html-snippet/reviews/" ><span class="xyz_new_star"></span></a>
49
- <p>
50
- <a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a>
51
- </p>
52
- </div>
53
- <div class="xyz_sugession">
54
- <h3 class="xyz_inner_head">
55
- Support
56
- </h3>
57
- <p>
58
- <a target="_blank" href="https://wordpress.org/support/plugin/insert-html-snippet/" >Create a ticket at Wordpress forum</a>
59
- </p>
60
- <p>
61
- <a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a>
62
- </p>
63
- </div>
64
- <div class="xyz_new_subscribe">
65
- <h3 class="xyz_inner_head">
66
  Stay tuned for our updates
67
  </h3>
68
- <script language="javascript">
69
  function check_email(emailString)
70
  {
71
  var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
@@ -113,13 +99,13 @@ if(get_option('xyz_ihs_premium_version_ads')==1){?>
113
  }
114
  }
115
  </script>
116
- <?php global $current_user; wp_get_current_user(); ?>
117
- <form action="https://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" target="_blank">
118
  <input type="hidden" name="fieldNameIds" value="1,">
119
  <input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIHSFRE">
120
  <input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIHSFRE">
121
  <input type="hidden" name="mode" value="1">
122
- <input class="xyz_name" type="text" placeholder="Name" name="field1" value="
123
  <?php
124
  if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
125
  {
@@ -134,42 +120,47 @@ else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($curren
134
  echo $current_user->user_login;
135
  }
136
  ?>" >
137
- <input class="xyz_email" name="email"
138
  type="text" placeholder="Email" value="
139
  <?php echo $current_user->user_email; ?>" />
140
- <input id="xyz_ihs_submit" type="submit" value="Subscribe" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
141
  <input type="hidden" name="listName" value="6,1,"/>
142
- </form>
143
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  </div>
145
-
 
 
 
 
146
  <div style="clear: both;"></div>
147
- <div style="width: 100%">
148
- <div class="xyz_our_plugins_new">
149
- <p class="xyz_plugin_head">
150
- Our Plugins :
151
- </p>
152
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
153
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/facebook-auto-publish/"><span>2</span>Facebook Auto Publish</a>
154
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/twitter-auto-publish/"><span>3</span>Twitter Auto Publish</a>
155
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/linkedin-auto-publish/"><span>4</span>LinkedIn Auto Publish</a>
156
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
157
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
158
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
159
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
160
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
161
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
162
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
163
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/quick-bar/"><span>12</span>Quick Bar</a>
164
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
165
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
166
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
167
- <a target="_blank" href="https://xyzscripts.com/wordpress-plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
168
- </div>
169
- </div>
170
- <div class="xyz_poweredBy">
171
- Powered by
172
- <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
173
- </div>
174
- <div style="clear: both;"></div>
175
- <p style="clear: both;"></p>
28
  <div style="clear: both;">
29
  </div>
30
  <div style="width: 100%">
31
+ <div class="xyz_ihs_social_media">
32
+ <h3 class="xyz_ihs_inner_head">
33
+ Follow Us
34
  </h3>
35
  <a target="_blank" href="http://facebook.com/xyzscripts" class="xyz_home_fbook"></a>
36
  <a target="_blank" href="http://twitter.com/xyzscripts" class="xyz_home_twitt"></a>
37
  <a target="_blank" href="https://plus.google.com/+Xyzscripts/" class="xyz_home_gplus"></a>
38
  <a style="margin-right:0px;" target="_blank" href="https://www.linkedin.com/company/xyzscripts" class="xyz_home_linkedin"></a>
39
  </div>
40
+ <div class="xyz_ihs_sugession">
41
+ <h3 class="xyz_ihs_inner_head"> Support</h3>
42
+ <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/donate/5" >Donate</a></p>
43
+ <p style="width:100%;"><a target="_blank" href="https://xyzscripts.com/support/" >Contact Us</a></p>
44
+ <p ><a target="_blank" href="https://wordpress.org/support/plugin/insert-html-snippet/reviews/" >Please Rate Us
45
+ </a></p>
46
+ <a target="_blank" href="https://wordpress.org/support/plugin/insert-html-snippet/reviews/" ><span class="xyz_new_star"></span></a>
47
+ <p style="width:100%;"><a target="_blank" href="https://wordpress.org/support/plugin/insert-html-snippet/" >Create a ticket at Wordpress forum</a>
48
+ </p>
49
+ </div>
50
+ <div class="xyz_ihs_new_subscribe">
51
+ <h3 class="xyz_ihs_inner_head">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  Stay tuned for our updates
53
  </h3>
54
+ <script language="javascript">
55
  function check_email(emailString)
56
  {
57
  var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,})$/;
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/XYZWPIHSFRE">
106
  <input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIHSFRE">
107
  <input type="hidden" name="mode" value="1">
108
+ <input class="xyz_ihs_name" type="text" placeholder="Name" name="field1" value="
109
  <?php
110
  if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
111
  {
120
  echo $current_user->user_login;
121
  }
122
  ?>" >
123
+ <input class="xyz_ihs_email" name="email"
124
  type="text" placeholder="Email" value="
125
  <?php echo $current_user->user_email; ?>" />
126
+ <input id="xyz_ihs_submit_btn" type="submit" value="Subscribe" class="xyz_ihs_sbmt_btn" name="Submit" onclick="javascript: if(!verify_fields()) return false; " />
127
  <input type="hidden" name="listName" value="6,1,"/>
128
+ </form>
129
  </div>
130
+ <div class="xyz_ihs_inmotion" >
131
+ <a target="_blank" href="http://inmotion-hosting.evyy.net/c/1150074/260033/4222">
132
+ <img src="<?php echo plugins_url()?>/insert-html-snippet/images/xyz.png" class="xyz_ihs_inmotion_label"></a>
133
+ </div>
134
+ </div>
135
+ <div style="clear: both;">
136
+ </div>
137
+ <div style="width: 100%">
138
+ <div class="xyz_our_plugins_new">
139
+ <p class="xyz_plugin_head">
140
+ Our Plugins :
141
+ </p>
142
+ <a target="_blank" href="https://wordpress.org/plugins/social-media-auto-publish/"><span>1</span>Social Media Auto Publish</a>
143
+ <a target="_blank" href="https://wordpress.org/plugins/facebook-auto-publish/"><span>2</span>Facebook Auto Publish</a>
144
+ <a target="_blank" href="https://wordpress.org/plugins/twitter-auto-publish/"><span>3</span>Twitter Auto Publish</a>
145
+ <a target="_blank" href="https://wordpress.org/plugins/linkedin-auto-publish/"><span>4</span>LinkedIn Auto Publish</a>
146
+ <a target="_blank" href="https://wordpress.org/plugins/insert-html-snippet/"><span>5</span>Insert HTML Snippet</a>
147
+ <a target="_blank" href="https://wordpress.org/plugins/insert-php-code-snippet/"><span>6</span>Insert PHP Code Snippet</a>
148
+ <a target="_blank" href="https://wordpress.org/plugins/contact-form-manager/"><span>7</span>Contact Form Manager</a>
149
+ <a target="_blank" href="https://wordpress.org/plugins/newsletter-manager/"><span>8</span>Newsletter Manager</a>
150
+ <a target="_blank" href="https://wordpress.org/plugins/lightbox-pop/"><span>9</span>Lightbox Pop</a>
151
+ <a target="_blank" href="https://wordpress.org/plugins/full-screen-popup/"><span>10</span>Full Screen Popup</a>
152
+ <a target="_blank" href="https://wordpress.org/plugins/popup-dialog-box/"><span>11</span>Popup Dialog Box</a>
153
+ <a target="_blank" href="https://wordpress.org/plugins/quick-bar/"><span>12</span>Quick Bar</a>
154
+ <a target="_blank" href="https://wordpress.org/plugins/quick-box-popup/"><span>13</span>Quick Box Popup</a>
155
+ <a target="_blank" href="https://wordpress.org/plugins/custom-field-manager/"><span>14</span> Custom Field Manager</a>
156
+ <a target="_blank" href="https://wordpress.org/plugins/wp-filter-posts/"><span>15</span> WP Filter Posts</a>
157
+ <a target="_blank" href="https://wordpress.org/plugins/wp-gallery-manager/"><span>16</span> WP Gallery Manager</a>
158
  </div>
159
+ </div>
160
+ <div class="xyz_poweredBy">
161
+ Powered by
162
+ <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
163
+ </div>
164
  <div style="clear: both;"></div>
165
+ <p style="clear: both;"></p>
166
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/menu.php CHANGED
@@ -16,6 +16,12 @@ if(isset($_GET['action']) && $_GET['action']=='snippet-delete' ){
16
 
17
  if(isset($_GET['action']) && $_GET['action']=='snippet-edit' ){
18
  ob_start();
 
 
 
 
 
 
19
  }
20
  add_action('admin_menu', 'xyz_ihs_menu');
21
 
@@ -27,7 +33,7 @@ function xyz_ihs_menu(){
27
  add_submenu_page('insert-html-snippet-manage', 'HTML Snippets', 'HTML Snippets', 'manage_options', 'insert-html-snippet-manage','xyz_ihs_snippets');
28
  add_submenu_page('insert-html-snippet-manage', 'HTML Snippets - Manage settings', 'Settings', 'manage_options', 'insert-html-snippet-settings' ,'xyz_ihs_settings');
29
  add_submenu_page('insert-html-snippet-manage', 'HTML Snippets - About', 'About', 'manage_options', 'insert-html-snippet-about' ,'xyz_ihs_about');
30
-
31
  }
32
 
33
  function xyz_ihs_snippets(){
@@ -77,6 +83,11 @@ function xyz_ihs_about(){
77
  require( dirname( __FILE__ ) . '/footer.php' );
78
  }
79
 
 
 
 
 
 
80
 
81
  function xyz_ihs_add_style_script(){
82
 
16
 
17
  if(isset($_GET['action']) && $_GET['action']=='snippet-edit' ){
18
  ob_start();
19
+ }
20
+ if(isset($_GET['page']) && $_GET['page']=='insert-html-snippet-suggest-features' ){
21
+ ob_start();
22
+ }
23
+ if(isset($_GET['page']) && $_GET['page']=='insert-html-snippet-manage' ){
24
+ ob_start();
25
  }
26
  add_action('admin_menu', 'xyz_ihs_menu');
27
 
33
  add_submenu_page('insert-html-snippet-manage', 'HTML Snippets', 'HTML Snippets', 'manage_options', 'insert-html-snippet-manage','xyz_ihs_snippets');
34
  add_submenu_page('insert-html-snippet-manage', 'HTML Snippets - Manage settings', 'Settings', 'manage_options', 'insert-html-snippet-settings' ,'xyz_ihs_settings');
35
  add_submenu_page('insert-html-snippet-manage', 'HTML Snippets - About', 'About', 'manage_options', 'insert-html-snippet-about' ,'xyz_ihs_about');
36
+ add_submenu_page('insert-html-snippet-manage', 'HTML Snippets - Suggest Feature', 'Suggest a Feature', 'manage_options', 'insert-html-snippet-suggest-features' ,'xyz_ihs_suggest_feature');
37
  }
38
 
39
  function xyz_ihs_snippets(){
83
  require( dirname( __FILE__ ) . '/footer.php' );
84
  }
85
 
86
+ function xyz_ihs_suggest_feature(){
87
+ require( dirname( __FILE__ ) . '/header.php' );
88
+ require( dirname( __FILE__ ) . '/suggest_feature.php' );
89
+ require( dirname( __FILE__ ) . '/footer.php' );
90
+ }
91
 
92
  function xyz_ihs_add_style_script(){
93
 
admin/snippets.php CHANGED
@@ -8,9 +8,59 @@ $xyz_ihs_message = '';
8
  if(isset($_GET['xyz_ihs_msg'])){
9
  $xyz_ihs_message = intval($_GET['xyz_ihs_msg']);
10
  }
11
- if($xyz_ihs_message == 1){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- ?>
 
 
14
  <div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
15
  HTML Snippet successfully added.&nbsp;&nbsp;&nbsp;<span
16
  id="xyz_system_notice_area_dismiss">Dismiss</span>
@@ -56,16 +106,32 @@ HTML Snippet successfully updated.&nbsp;&nbsp;&nbsp;<span
56
  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>HTML Snippets</h3></legend>
71
  <?php
@@ -80,9 +146,20 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
80
 
81
  ?>
82
  <input id="xyz_ihs_submit" style="cursor: pointer; margin-bottom:10px; margin-left:8px;" type="button" name="textFieldButton2" value="Add New HTML Snippet" onClick='document.location.href="<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-add');?>"'>
 
 
 
 
 
 
 
 
 
 
83
  <table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
84
  <thead>
85
  <tr>
 
86
  <th scope="col" >Tracking Name</th>
87
  <th scope="col" >Snippet Short Code</th>
88
  <th scope="col" >Status</th>
@@ -96,8 +173,12 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
96
  $class = '';
97
  foreach( $entries as $entry ) {
98
  $class = ( $count % 2 == 0 ) ? ' class="alternate"' : '';
 
99
  ?>
100
  <tr <?php echo $class; ?>>
 
 
 
101
  <td id="xyz_ihs_vAlign"><?php
102
  echo esc_html($entry->title);
103
  ?></td>
@@ -118,20 +199,20 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
118
  </td>
119
  <?php
120
  if($entry->status == 2){
121
- $stat1 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$entry->id.'&status=1&pageno='.$pagenum);
122
  ?>
123
  <td style="text-align: center;"><a
124
- href='<?php echo wp_nonce_url($stat1,'ihs-stat_'.$entry->id); ?>'><img
125
  id="xyz_ihs_img" title="Activate"
126
  src="<?php echo plugins_url('images/activate.png', XYZ_INSERT_HTML_PLUGIN_FILE )?>">
127
  </a>
128
  </td>
129
  <?php
130
  }elseif ($entry->status == 1){
131
- $stat2 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$entry->id.'&status=2&pageno='.$pagenum);
132
  ?>
133
  <td style="text-align: center;"><a
134
- href='<?php echo wp_nonce_url($stat2,'ihs-stat_'.$entry->id); ?>'><img
135
  id="xyz_ihs_img" title="Deactivate"
136
  src="<?php echo plugins_url('images/pause.png',XYZ_INSERT_HTML_PLUGIN_FILE)?>">
137
  </a>
@@ -142,15 +223,15 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
142
  ?>
143
 
144
  <td style="text-align: center;"><a
145
- href='<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-edit&snippetId='.$entry->id.'&pageno='.$pagenum); ?>'><img
146
  id="xyz_ihs_img" title="Edit Snippet"
147
  src="<?php echo plugins_url('images/edit.png',XYZ_INSERT_HTML_PLUGIN_FILE)?>">
148
  </a>
149
  </td>
150
 
151
- <?php $delurl = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-delete&snippetId='.$entry->id.'&pageno='.$pagenum);?>
152
  <td style="text-align: center;" ><a
153
- href='<?php echo wp_nonce_url($delurl,'ihs-del_'.$entry->id); ?>'
154
  onclick="javascript: return confirm('Please click \'OK\' to confirm ');"><img
155
  id="xyz_ihs_img" title="Delete Snippet"
156
  src="<?php echo plugins_url('images/delete.png',XYZ_INSERT_HTML_PLUGIN_FILE)?>">
@@ -190,3 +271,10 @@ id="xyz_system_notice_area_dismiss">Dismiss</span>
190
  </fieldset>
191
  </form>
192
  </div>
 
 
 
 
 
 
 
8
  if(isset($_GET['xyz_ihs_msg'])){
9
  $xyz_ihs_message = intval($_GET['xyz_ihs_msg']);
10
  }
11
+ if($_POST)
12
+ {
13
+ if(!isset($_REQUEST['_wpnonce'])||!wp_verify_nonce($_REQUEST['_wpnonce'],'bulk_actions_ihs')){
14
+ wp_nonce_ays( 'bulk_actions_ihs' );
15
+ exit;
16
+ }
17
+ if (isset($_POST['apply_ihs_bulk_actions'])){
18
+ if (isset($_POST['ihs_bulk_actions_snippet'])){
19
+ $ihs_bulk_actions_snippet=$_POST['ihs_bulk_actions_snippet'];
20
+ if (isset($_POST['xyz_ihs_snippet_ids']))
21
+ $xyz_ihs_snippet_ids = $_POST['xyz_ihs_snippet_ids'];
22
+ $xyz_ihs_pageno = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1;
23
+
24
+ if (empty($xyz_ihs_snippet_ids))
25
+ {
26
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=8&pagenum='.$xyz_ihs_pageno));
27
+ exit();
28
+ }
29
+ if ($ihs_bulk_actions_snippet==2)//bulk-delete
30
+ {
31
+ foreach ($xyz_ihs_snippet_ids as $snippet_id)
32
+ {
33
+ $wpdb->query($wpdb->prepare( 'DELETE FROM '.$wpdb->prefix.'xyz_ihs_short_code WHERE id=%d',$snippet_id)) ;
34
+ }
35
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=3&pagenum='.$xyz_ihs_pageno));
36
+ exit();
37
+ }
38
+ elseif ($ihs_bulk_actions_snippet==0)//bulk-Deactivate
39
+ {
40
+ foreach ($xyz_ihs_snippet_ids as $xyz_ihs_snippetId)
41
+ $wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('status'=>2), array('id'=>$xyz_ihs_snippetId));
42
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=4&pagenum='.$xyz_ihs_pageno));
43
+ exit();
44
+ }
45
+ elseif ($ihs_bulk_actions_snippet==1)//bulk-activate
46
+ {
47
+ foreach ($xyz_ihs_snippet_ids as $xyz_ihs_snippetId)
48
+ $wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('status'=>1), array('id'=>$xyz_ihs_snippetId));
49
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=4&pagenum='.$xyz_ihs_pageno));
50
+ exit();
51
+ }
52
+ elseif ($ihs_bulk_actions_snippet==-1)//no action selected
53
+ {
54
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=7&pagenum='.$xyz_ihs_pageno));
55
+ exit();
56
+ }
57
+ }
58
+
59
+ }
60
 
61
+ }
62
+ if($xyz_ihs_message == 1){
63
+ ?>
64
  <div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
65
  HTML Snippet successfully added.&nbsp;&nbsp;&nbsp;<span
66
  id="xyz_system_notice_area_dismiss">Dismiss</span>
106
  id="xyz_system_notice_area_dismiss">Dismiss</span>
107
  </div>
108
  <?php
109
+ }
110
+ if($xyz_ihs_message == 7)
111
+ {
112
+ ?>
113
+ <div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
114
+ Please select an action to apply.&nbsp;&nbsp;&nbsp;
115
+ <span id="xyz_system_notice_area_dismiss">Dismiss</span>
116
+ </div>
117
+ <?php
118
+ }
119
+ if($xyz_ihs_message == 8)
120
+ {
121
+ ?>
122
+ <div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
123
+ Please select at least one snippet to perform this action.&nbsp;&nbsp;&nbsp;
124
+ <span id="xyz_system_notice_area_dismiss">Dismiss</span>
125
+ </div>
126
+ <?php
127
  }
128
  ?>
 
 
129
  <div >
130
 
131
 
132
  <form method="post">
133
+ <?php wp_nonce_field( 'bulk_actions_ihs');?>
134
+ <fieldset
135
  style="width: 99%; border: 1px solid #F7F7F7; padding: 10px 0px;">
136
  <legend><h3>HTML Snippets</h3></legend>
137
  <?php
146
 
147
  ?>
148
  <input id="xyz_ihs_submit" style="cursor: pointer; margin-bottom:10px; margin-left:8px;" type="button" name="textFieldButton2" value="Add New HTML Snippet" onClick='document.location.href="<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-add');?>"'>
149
+ <br>
150
+ <span style="padding-left: 6px;color:#21759B;">With Selected : </span>
151
+ <select name="ihs_bulk_actions_snippet" id="ihs_bulk_actions_snippet" style="width:130px;height:29px;">
152
+ <option value="-1">Bulk Actions</option>
153
+ <option value="0">Deactivate</option>
154
+ <option value="1">Activate</option>
155
+ <option value="2">Delete</option>
156
+ </select>
157
+ <input type="submit" title="Apply" name="apply_ihs_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;">
158
+
159
  <table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
160
  <thead>
161
  <tr>
162
+ <th scope="col" width="3%"><input type="checkbox" id="chkAllSnippets" /></th>
163
  <th scope="col" >Tracking Name</th>
164
  <th scope="col" >Snippet Short Code</th>
165
  <th scope="col" >Status</th>
173
  $class = '';
174
  foreach( $entries as $entry ) {
175
  $class = ( $count % 2 == 0 ) ? ' class="alternate"' : '';
176
+ $snippetId=intval($entry->id);
177
  ?>
178
  <tr <?php echo $class; ?>>
179
+ <td style="vertical-align: middle !important;padding-left: 18px;">
180
+ <input type="checkbox" class="chk" value="<?php echo $snippetId; ?>" name="xyz_ihs_snippet_ids[]" id="xyz_ihs_snippet_ids" />
181
+ </td>
182
  <td id="xyz_ihs_vAlign"><?php
183
  echo esc_html($entry->title);
184
  ?></td>
199
  </td>
200
  <?php
201
  if($entry->status == 2){
202
+ $stat1 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=1&pageno='.$pagenum);
203
  ?>
204
  <td style="text-align: center;"><a
205
+ href='<?php echo wp_nonce_url($stat1,'ihs-stat_'.$snippetId); ?>'><img
206
  id="xyz_ihs_img" title="Activate"
207
  src="<?php echo plugins_url('images/activate.png', XYZ_INSERT_HTML_PLUGIN_FILE )?>">
208
  </a>
209
  </td>
210
  <?php
211
  }elseif ($entry->status == 1){
212
+ $stat2 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$snippetId.'&status=2&pageno='.$pagenum);
213
  ?>
214
  <td style="text-align: center;"><a
215
+ href='<?php echo wp_nonce_url($stat2,'ihs-stat_'.$snippetId); ?>'><img
216
  id="xyz_ihs_img" title="Deactivate"
217
  src="<?php echo plugins_url('images/pause.png',XYZ_INSERT_HTML_PLUGIN_FILE)?>">
218
  </a>
223
  ?>
224
 
225
  <td style="text-align: center;"><a
226
+ href='<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-edit&snippetId='.$snippetId.'&pageno='.$pagenum); ?>'><img
227
  id="xyz_ihs_img" title="Edit Snippet"
228
  src="<?php echo plugins_url('images/edit.png',XYZ_INSERT_HTML_PLUGIN_FILE)?>">
229
  </a>
230
  </td>
231
 
232
+ <?php $delurl = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-delete&snippetId='.$snippetId.'&pageno='.$pagenum);?>
233
  <td style="text-align: center;" ><a
234
+ href='<?php echo wp_nonce_url($delurl,'ihs-del_'.$snippetId); ?>'
235
  onclick="javascript: return confirm('Please click \'OK\' to confirm ');"><img
236
  id="xyz_ihs_img" title="Delete Snippet"
237
  src="<?php echo plugins_url('images/delete.png',XYZ_INSERT_HTML_PLUGIN_FILE)?>">
271
  </fieldset>
272
  </form>
273
  </div>
274
+ <script type="text/javascript">
275
+ jQuery(document).ready(function(){
276
+ jQuery("#chkAllSnippets").click(function(){
277
+ jQuery(".chk").prop("checked",jQuery("#chkAllSnippets").prop("checked"));
278
+ });
279
+ });
280
+ </script>
admin/suggest_feature.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( !defined('ABSPATH') ){ exit();}
3
+ global $wpdb;$xyz_ihs_message='';
4
+ if(isset($_GET['xyz_ihs_msg']))
5
+ $xyz_ihs_message = $_GET['xyz_ihs_msg'];
6
+ if($xyz_ihs_message == 1){
7
+ ?>
8
+ <div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
9
+ Thank you for the suggestion.&nbsp;&nbsp;&nbsp;<span
10
+ id="xyz_system_notice_area_dismiss">Dismiss</span>
11
+ </div>
12
+ <?php
13
+ }
14
+ else if($xyz_ihs_message == 2){
15
+ ?>
16
+ <div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
17
+ wp_mail not able to process the request.&nbsp;&nbsp;&nbsp;<span
18
+ id="xyz_system_notice_area_dismiss">Dismiss</span>
19
+ </div>
20
+ <?php
21
+ }
22
+ else if($xyz_ihs_message == 3){
23
+ ?>
24
+ <div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
25
+ Please suggest a feature.&nbsp;&nbsp;&nbsp;<span
26
+ id="xyz_system_notice_area_dismiss">Dismiss</span>
27
+ </div>
28
+ <?php
29
+ }
30
+ if (isset($_POST) && isset($_POST['xyz_ihs_send_mail']))
31
+ {
32
+
33
+ if (! isset( $_REQUEST['_wpnonce'] )|| ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_ihs_suggest_feature_form_nonce' ))
34
+ {
35
+ wp_nonce_ays( 'xyz_ihs_suggest_feature_form_nonce' );
36
+ exit();
37
+ }
38
+ if (isset($_POST['xyz_ihs_suggested_feature']) && $_POST['xyz_ihs_suggested_feature']!='')
39
+ {
40
+
41
+ $xyz_ihs_feature_content=$_POST['xyz_ihs_suggested_feature'];
42
+ $xyz_ihs_sender_email = get_option('admin_email');
43
+ $entries0 = $wpdb->get_results( $wpdb->prepare( 'SELECT display_name FROM '.$wpdb->base_prefix.'users WHERE user_email=%s',array($xyz_ihs_sender_email)));
44
+ foreach( $entries0 as $entry ) {
45
+ $xyz_ihs_admin_username=$entry->display_name;
46
+ }
47
+ $xyz_ihs_recv_email='support@xyzscripts.com';
48
+ $xyz_ihs_mail_subject="INSERT HTML SNIPPET - FEATURE SUGGESTION";
49
+ $xyz_ihs_headers = array('From: '.$xyz_ihs_admin_username.' <'. $xyz_ihs_sender_email .'>' ,'Content-Type: text/html; charset=UTF-8');
50
+ $wp_mail_processed=wp_mail( $xyz_ihs_recv_email, $xyz_ihs_mail_subject, $xyz_ihs_feature_content, $xyz_ihs_headers );
51
+ if ($wp_mail_processed==true){
52
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=1'));
53
+ exit();
54
+ }
55
+ else
56
+ {
57
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=2'));exit();
58
+ }
59
+ }
60
+ else {
61
+ header("Location:".admin_url('admin.php?page=insert-html-snippet-suggest-features&xyz_ihs_msg=3'));exit();
62
+ }
63
+ }?>
64
+ <form method="post" >
65
+ <?php wp_nonce_field( 'xyz_ihs_suggest_feature_form_nonce' );?>
66
+ <h3>Contribute And Get Rewarded</h3>
67
+ <span style="color: #1A87B9;font-size:13px;padding-left: 10px;" >* Suggest a feature for this plugin and stand a chance to get a free copy of premium version of this plugin.</span>
68
+ <table class="widefat" style="width:98%;padding-top: 10px;">
69
+ <tr><td>
70
+ <textarea name="xyz_ihs_suggested_feature" id="xyz_ihs_suggested_feature" style="width:750px;height:250px !important;"></textarea>
71
+ </td></tr>
72
+ <tr>
73
+ <td><input name="xyz_ihs_send_mail" class="button-primary" style="color:#FFFFFF;border-radius:4px;margin-bottom:10px;" type="submit" value="Send Mail To Us">
74
+ </td></tr>
75
+ </table>
76
+ </form>
css/xyz_ihs_styles.css CHANGED
@@ -264,10 +264,7 @@ background-position: left bottom;
264
  cursor: pointer;
265
  line-height: 23px;
266
  }
267
-
268
-
269
-
270
- .xyz_poweredBy{
271
  padding-top: 10px;float:left; text-align: center; width: 100%;
272
  }
273
 
@@ -320,106 +317,104 @@ i.xyz-ihs-own-icon {
320
  border: 1px solid #CCCCCC;
321
  height: 25px;
322
  }
323
-
324
-
325
-
326
-
327
-
328
  /*new design start*/
329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
330
 
331
- .xyz_social_media{
332
- background-color: #80766D;
333
- width: 21% ;
334
- float: left;
335
- min-height: 80px;
336
- margin: 10px 10px 10px 0px;
337
- padding: 10px;
338
- border: 1px solid #312a23;
339
- border-radius: 5px;}
340
-
341
-
342
-
343
- .xyz_sugession{
344
- background-color: #A2A240;
345
- width: 20%;
346
- float: left;
347
- min-height: 80px;
348
- margin: 10px 10px 10px 0px;
349
- padding: 10px;
350
- border: 1px solid #797900;
351
- border-radius: 5px;}
352
-
353
- .xyz_sugession a{color:#fafa66; text-decoration:underline; }
354
-
355
- .xyz_sugession a:hover{color:#fafa66; text-decoration:underline;}
356
-
357
-
358
- .xyz_sugession p{margin: 0px !important;
359
- font-size: 12px;
360
- color: #ffffff;}
361
-
362
-
363
-
364
- .xyz_rate_us{
365
- background-color: #094969;
366
- width: 21% ;
367
- float: left;
368
- min-height: 80px;
369
- margin: 10px 10px 10px 0px;
370
- padding: 10px;
371
- border: 1px solid #fff;
372
- border-radius: 5px;}
373
 
 
 
 
 
374
 
375
- .xyz_rate_us p{
376
- display: block;
 
377
  float: left;
378
  line-height: 20px;
379
  width: 100%;
380
  margin: 0px; width:50%;}
381
-
382
-
383
- .xyz_new_star{background-image: url(../images/new_star.png);
384
- width: 80px;
385
- height: 20px;
386
- display: block;
387
- background-repeat: no-repeat;
388
- float: left;
389
-
390
-
391
- }
392
-
393
-
394
-
395
-
396
- .xyz_rate_us a{color:#94dbff; text-decoration:underline; float:left;}
397
-
398
- .xyz_rate_us a:hover{color:#94dbff; text-decoration:underline;}
399
-
400
-
401
- .xyz_new_subscribe{
402
- background-color: #E39124;
403
- width: 27%;
404
  float: left;
405
- min-height: 80px;
406
- margin: 10px 10px 10px 0px;
407
- padding: 10px;
408
- border: 1px solid #b86a02;
409
- border-radius: 5px;}
410
-
411
 
 
412
 
 
413
 
414
- .xyz_new_subscribe input{font-size:11px;}
 
 
 
 
 
415
 
416
- .xyz_new_subscribe td{
417
- padding:0;
418
- }
 
419
 
 
420
 
421
- .xyz_social_media a{
422
- margin: 0px 13px 5px 0px;
423
  border: 1px solid #ddd;
424
  width: 30px;
425
  height: 30px;
@@ -427,29 +422,19 @@ i.xyz-ihs-own-icon {
427
  display: block;
428
  float: left;}
429
 
430
-
431
- .xyz_inner_head{ color: #ffffff;
432
  font-weight: 300;
433
  border-bottom: 1px solid #eee;
434
  margin: 0px 0px 10px;
435
  padding-bottom: 10px;}
436
 
437
-
438
-
439
-
440
-
441
-
442
  .xyz_plugin_head{margin: 0px;
443
  font-size: 22px;
444
  font-weight: 300;
445
  padding: 0px 10px 5px;}
446
 
447
-
448
- .xyz_name{border:none; width:32%;}
449
-
450
- .xyz_email{border:none; width:39.5%;}
451
-
452
-
453
  .xyz_our_plugins_new{
454
  background: #ffffff;
455
  border: 1px solid #eeeeee;
@@ -474,14 +459,12 @@ i.xyz-ihs-own-icon {
474
  outline: 0 !important;
475
  line-height: 27px;
476
  }
 
477
 
 
478
 
479
- .xyz_our_plugins_new a:hover{text-decoration:underline;}
480
-
481
- ..xyz_our_plugins_new a:active{box-shadow:none !important;}
482
-
483
- .xyz_our_plugins_new a span{
484
- background-color: #ef4a44;
485
  color: #FFFFFF;
486
  width: 30px;
487
  min-height: 28px;
@@ -491,42 +474,39 @@ i.xyz-ihs-own-icon {
491
  margin-right: 10px;
492
  border-right: 2px solid #fff;}
493
 
494
-
495
- .xyz_rate_btn{color: #E77E22 !important;
496
  text-decoration: none !important;
497
  margin-right: 4px !important;
498
  font-weight: bold;
499
  background-color: #fff1d6 !important;
500
  border: 1px solid #E77E22 !important;
501
- box-shadow:none !important;}
502
 
503
- .xyz_backlink_btn{color: #00a016 !important;
504
  text-decoration: none !important;
505
  margin-right: 4px !important;
506
  font-weight: bold;
507
  background-color: #f0fff2 !important;
508
  border: 1px solid #00a016 !important;
509
- box-shadow:none !important;}
510
 
511
-
512
- .xyz_share_btn{color: #177ABD !important;
513
  text-decoration: none !important;
514
  margin-right: 4px !important;
515
  font-weight: bold;
516
  border: 1px solid #177ABD !important;
517
  background-color: #edf8ff !important;
518
- box-shadow:none !important;}
519
 
520
- .xyz_donate_btn{color: #C12AA2 !important;
521
  text-decoration: none !important;
522
  margin-right: 4px !important;
523
  font-weight: bold;
524
  border: 1px solid #C12AA2 !important;
525
  background-color: #feeafa !important;
526
- box-shadow:none !important;}
527
-
528
 
529
- .xyz_show_btn{color: #F15E77 !important;
530
  text-decoration: none !important;
531
  margin-right: 4px !important;
532
  font-weight: bold;
@@ -534,152 +514,131 @@ i.xyz-ihs-own-icon {
534
  background-color: #ffeddf !important;
535
  box-shadow: none !important;}
536
 
 
537
 
 
538
 
 
539
 
 
540
 
 
541
 
542
- @media screen and (max-width: 1351px) {
543
-
544
-
545
- .xyz_social_media{width:21%;}
546
-
547
- .xyz_new_subscribe{width:24%;}
548
 
549
- .xyz_rate_us{width:21%;}
550
-
551
- .xyz_sugession{width:20%;}
552
-
553
-
554
-
555
- .xyz_name{border:none; width:25%;}
556
-
557
- .xyz_email{border:none; width:37.5%;}
558
-
559
- .xyz_sugession p{
560
- font-size: 11px;
561
-
562
-
563
- }
564
 
565
  .xyz_our_plugins_new a{width:23%;}
566
-
567
- }
568
 
569
  @media screen and (max-width: 1251px) {
570
 
 
 
 
 
 
 
 
571
 
 
572
 
573
- .xyz_social_media{width:21%;}
574
-
575
- .xyz_new_subscribe{width:24%;}
576
-
577
- .xyz_rate_us{width:21%;}
578
-
579
- .xyz_sugession{width:20%;}
580
-
581
- .xyz_name{border:none; width:25%;}
582
-
583
- .xyz_email{border:none; width:37.5%;}
584
-
585
-
586
- #xyz_ihs_submit{line-height:20px;}
587
-
588
-
589
- .xyz_our_plugins_new a{width:23.6%;}
590
- }
591
-
592
-
593
-
594
- @media screen and (max-width:1155px)
595
- {
596
-
597
-
598
- .xyz_social_media{width:45%;}
599
-
600
- .xyz_new_subscribe{width:45%;}
601
-
602
- .xyz_rate_us{width:45%;}
603
-
604
- .xyz_sugession{width:45%;}
605
- .xyz_our_plugins_new a{width:31%;}
606
-
607
- }
608
 
 
609
 
610
- @media screen and (max-width: 782px)
611
- {
612
- .xyz_social_media{width:43%;}
613
 
614
- .xyz_new_subscribe{width:43%;}
 
615
 
616
- .xyz_rate_us{width:43%;}
 
 
 
 
 
 
 
617
 
618
- .xyz_sugession{width:43%;}
 
 
619
 
 
620
 
621
- .xyz_our_plugins_new a{width:30%;}
622
 
623
- .xyz_name{border:none; width:32%;}
624
 
625
- .xyz_email{border:none; width:37.5%;}
626
 
 
627
 
 
628
  }
629
-
630
-
631
  @media screen and (max-width: 768px)
632
- {
633
-
634
-
635
-
636
- #xyz_ihs_submit{line-height:20px;}
637
- .xyz_our_plugins_new a{width:30%; font-size:11px;}
638
-
639
-
640
  }
641
 
642
-
643
-
644
  @media screen and (max-width: 675px)
645
- {
646
-
647
  .xyz_our_plugins_new a{width:45%; font-size:11px;}
648
-
649
-
650
- .xyz_name{border:none; width:28%;}
651
-
 
 
 
 
 
 
652
  }
653
-
654
-
655
  @media screen and (max-width: 562px)
656
- {
657
- .xyz_sugession{width:92.5%;}
658
 
 
659
 
660
- .xyz_new_subscribe{width:92.5%;}
661
 
 
 
 
 
 
 
 
662
  }
663
-
664
 
665
  @media screen and (max-width: 532px){
 
 
 
 
666
 
 
667
 
668
- .xyz_social_media{width:92.5%;}
669
-
670
- .xyz_new_subscribe{width:92.5%;}
671
-
672
- .xyz_rate_us{width:92.5%;}
673
 
674
- .xyz_sugession{width:92.5%;}
675
 
 
676
 
677
- .xyz_our_plugins_new a{width:92.5%;}
678
-
679
- .xyz_name{border:none; width:32%;}
680
-
681
- .xyz_email{border:none; width:37.5%;}
682
  }
683
-
684
-
685
- /*new design end*/
 
 
 
 
 
 
 
264
  cursor: pointer;
265
  line-height: 23px;
266
  }
267
+ .xyz_poweredBy{
 
 
 
268
  padding-top: 10px;float:left; text-align: center; width: 100%;
269
  }
270
 
317
  border: 1px solid #CCCCCC;
318
  height: 25px;
319
  }
 
 
 
 
 
320
  /*new design start*/
321
 
322
+ .xyz_ihs_social_media {
323
+ background-color: #456a72;
324
+ width: 22%;
325
+ float: left;
326
+ min-height: 130px;
327
+ margin: 10px 10px 10px 0px;
328
+ padding: 10px;
329
+ border: 1px solid #456a72;
330
+ border-radius: 3px;
331
+ }
332
+ .xyz_ihs_sugession {
333
+ background-color: #571B35;
334
+ width: 20%;
335
+ float: left;
336
+ min-height: 130px;
337
+ margin: 10px 10px 10px 0px;
338
+ padding: 10px;
339
+ border: 1px solid #731C47;
340
+ border-radius: 3px;
341
+ font-size: 13px;
342
+ color: #ffffff;
343
+ }
344
+ .xyz-buy-button {
345
+ color:white;
346
+ padding:5px 21px;
347
+ background: #545454;
348
+ border: 0;
349
+ border-bottom: 2px solid #545454;
350
+ cursor: pointer;
351
+ -webkit-box-shadow: inset 0 -2px #545454;
352
+ box-shadow: inset 0 -2px #545454;
353
+ text-decoration: none;
354
+ font-size: 14px;
355
+ width:60px;
356
+ font-weight: bold;
357
+ border-radius:3px;
358
+ }
359
 
360
+ .xyz-buy-button:focus {
361
+ color: #ffffff;
362
+ }
363
+ .xyz_ihs_tab td{
364
+ width:500px;
365
+ }
366
+ .xyz_ihs_new_subscribe {
367
+ background-color: #c82e53;
368
+ width: 27%;
369
+ float: left;
370
+ min-height: 130px;
371
+ margin: 10px 10px 10px 0px;
372
+ padding: 10px;
373
+ border: 1px solid #BE2963;
374
+ border-radius: 3px;
375
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
 
377
+ .xyz_ihs_sugession a {
378
+ color: #D7B740;
379
+ text-decoration: underline;
380
+ }
381
 
382
+ .xyz_ihs_sugession a:hover{color:#fafa66; text-decoration:underline;}
383
+ .xyz_ihs_sugession p{
384
+ display: block;
385
  float: left;
386
  line-height: 20px;
387
  width: 100%;
388
  margin: 0px; width:50%;}
389
+
390
+ .xyz_new_star{background-image: url(../images/new_star.png);
391
+ width: 80px;
392
+ height: 20px;
393
+ display: block;
394
+ background-repeat: no-repeat;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
  float: left;
396
+ }
 
 
 
 
 
397
 
398
+ .xyz_ihs_inmotion a:hover{color:#94dbff; text-decoration:underline;}
399
 
400
+ .xyz_ihs_inmotion {
401
 
402
+ width: 21%;
403
+ float: left;
404
+ min-height: 130px;
405
+ margin: 0px 0px 0px 0px;
406
+ }
407
+
408
 
409
+ .xyz_ihs_inmotion_label{
410
+ height: 169px;
411
+ display: block;
412
+ margin: auto;}
413
 
414
+ .xyz_ihs_new_subscribe input{font-size:11px;margin: 5px;}
415
 
416
+ .xyz_ihs_social_media a{
417
+ margin: 0px 13px 5px 0px;
418
  border: 1px solid #ddd;
419
  width: 30px;
420
  height: 30px;
422
  display: block;
423
  float: left;}
424
 
425
+ .xyz_ihs_inner_head{ color: #ffffff;
 
426
  font-weight: 300;
427
  border-bottom: 1px solid #eee;
428
  margin: 0px 0px 10px;
429
  padding-bottom: 10px;}
430
 
 
 
 
 
 
431
  .xyz_plugin_head{margin: 0px;
432
  font-size: 22px;
433
  font-weight: 300;
434
  padding: 0px 10px 5px;}
435
 
436
+ .xyz_ihs_name{border:none; width:46%;}
437
+ .xyz_ihs_email{border:none; width:46%;}
 
 
 
 
438
  .xyz_our_plugins_new{
439
  background: #ffffff;
440
  border: 1px solid #eeeeee;
459
  outline: 0 !important;
460
  line-height: 27px;
461
  }
462
+ .xyz_our_plugins_new a:hover{text-decoration:underline;}
463
 
464
+ ..xyz_our_plugins_new a:active{box-shadow:none !important;}
465
 
466
+ .xyz_our_plugins_new a span{
467
+ background-color: #00a0d2;
 
 
 
 
468
  color: #FFFFFF;
469
  width: 30px;
470
  min-height: 28px;
474
  margin-right: 10px;
475
  border-right: 2px solid #fff;}
476
 
477
+ .xyz_rate_btn{color: #E77E22 !important;
 
478
  text-decoration: none !important;
479
  margin-right: 4px !important;
480
  font-weight: bold;
481
  background-color: #fff1d6 !important;
482
  border: 1px solid #E77E22 !important;
483
+ box-shadow:none !important;}
484
 
485
+ .xyz_backlink_btn{color: #00a016 !important;
486
  text-decoration: none !important;
487
  margin-right: 4px !important;
488
  font-weight: bold;
489
  background-color: #f0fff2 !important;
490
  border: 1px solid #00a016 !important;
491
+ box-shadow:none !important;}
492
 
493
+ .xyz_share_btn{color: #177ABD !important;
 
494
  text-decoration: none !important;
495
  margin-right: 4px !important;
496
  font-weight: bold;
497
  border: 1px solid #177ABD !important;
498
  background-color: #edf8ff !important;
499
+ box-shadow:none !important;}
500
 
501
+ .xyz_donate_btn{color: #C12AA2 !important;
502
  text-decoration: none !important;
503
  margin-right: 4px !important;
504
  font-weight: bold;
505
  border: 1px solid #C12AA2 !important;
506
  background-color: #feeafa !important;
507
+ box-shadow:none !important;}
 
508
 
509
+ .xyz_show_btn{color: #F15E77 !important;
510
  text-decoration: none !important;
511
  margin-right: 4px !important;
512
  font-weight: bold;
514
  background-color: #ffeddf !important;
515
  box-shadow: none !important;}
516
 
517
+ @media screen and (max-width: 1351px) {
518
 
519
+ .xyz_ihs_social_media{width:21%;}
520
 
521
+ .xyz_ihs_new_subscribe{width:24%;}
522
 
523
+ .xyz_ihs_inmotion{width:21%;}
524
 
525
+ .xyz_ihs_sugession{width:20%;}
526
 
527
+ .xyz_ihs_name{border:none; width:45%;}
 
 
 
 
 
528
 
529
+ .xyz_ihs_email{border:none; width:45%;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
 
531
  .xyz_our_plugins_new a{width:23%;}
532
+
533
+ }
534
 
535
  @media screen and (max-width: 1251px) {
536
 
537
+ .xyz_ihs_social_media{width:21%;}
538
+
539
+ .xyz_ihs_new_subscribe{width:24%;}
540
+
541
+ .xyz_ihs_inmotion{width:21%;}
542
+
543
+ .xyz_ihs_sugession{width:22%;}
544
 
545
+ .xyz_ihs_name{border:none; width:45%;}
546
 
547
+ .xyz_ihs_email{border:none; width:45%;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
 
549
+ #xyz_ihs_submit_ihs{line-height:20px;}
550
 
 
 
 
551
 
552
+ .xyz_our_plugins_new a{width:23.6%;}
553
+ }
554
 
555
+ @media screen and (max-width:1155px)
556
+ {
557
+ .xyz_ihs_social_media{width:45%;}
558
+ .xyz_ihs_new_subscribe{width:45%;}
559
+ .xyz_ihs_inmotion{width:45%;}
560
+ .xyz_ihs_sugession{width:45%;}
561
+ .xyz_our_plugins_new a{width:31%;}
562
+ }
563
 
564
+ @media screen and (max-width: 782px)
565
+ {
566
+ .xyz_ihs_social_media{width:44%;}
567
 
568
+ .xyz_ihs_new_subscribe{width:44%;}
569
 
570
+ .xyz_ihs_inmotion{width:44%;}
571
 
572
+ .xyz_ihs_sugession{width:44%;}
573
 
574
+ .xyz_our_plugins_new a{width:30%;}
575
 
576
+ .xyz_ihs_name{border:none; width:46%;}
577
 
578
+ .xyz_ihs_email{border:none; width:46%;}
579
  }
 
 
580
  @media screen and (max-width: 768px)
581
+ {
582
+
583
+ #xyz_ihs_submit_ihs{line-height:20px;}
584
+ .xyz_our_plugins_new a{width:30%; font-size:11px;}
 
 
 
 
585
  }
586
 
 
 
587
  @media screen and (max-width: 675px)
588
+ {
 
589
  .xyz_our_plugins_new a{width:45%; font-size:11px;}
590
+ .xyz_ihs_name{border:none; width:95%;}
591
+ .xyz_ihs_email {
592
+ border: none;
593
+ width: 95%;
594
+ }
595
+ .xyz_ihs_inmotion_label {
596
+ height: 185px;
597
+ display: block;
598
+ margin: auto;
599
+ }
600
  }
 
 
601
  @media screen and (max-width: 562px)
602
+ {
603
+ .xyz_ihs_social_media{width:92.5%;}
604
 
605
+ .xyz_ihs_sugession{width:92.5%;}
606
 
607
+ .xyz_ihs_new_subscribe{width:92.5%;}
608
 
609
+ .xyz_ihs_inmotion{width:92.5%;}
610
+ .xyz_ihs_name {
611
+ border: none; width: 95%;}
612
+ .xyz_ihs_email {
613
+ border: none;
614
+ width: 95%;
615
+ }
616
  }
 
617
 
618
  @media screen and (max-width: 532px){
619
+
620
+ .xyz_ihs_social_media{width:92.5%;}
621
+
622
+ .xyz_ihs_new_subscribe{width:92.5%;}
623
 
624
+ .xyz_ihs_inmotion{width:92.5%;}
625
 
626
+ .xyz_ihs_sugession{width:92.5%;}
 
 
 
 
627
 
628
+ .xyz_our_plugins_new a{width:92.5%;}
629
 
630
+ .xyz_ihs_name{border:none; width:95%;}
631
 
632
+ .xyz_ihs_email{border:none; width:95%;}
633
+
 
 
 
634
  }
635
+ .xyz_ihs_sbmt_btn{
636
+ border: none;
637
+ color: #ffffff;
638
+ background-color: #4e0013;
639
+ padding: 5px 10px;
640
+ border-radius: 3px;
641
+ cursor: pointer;
642
+ }
643
+
644
+ /*new design end*/
images/xyz.png ADDED
Binary file
insert-html-snippet.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Insert HTML Snippet
4
  Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-html-snippet/
5
  Description: Add HTML code to your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random HTML code such as ad codes, javascript, video embedding, etc. and use the same in your posts, pages or widgets.
6
- Version: 1.2.4
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  Text Domain: insert-html-snippet
@@ -29,8 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
  if ( ! defined( 'ABSPATH' ) )
30
  exit;
31
 
32
-
33
-
34
  // error_reporting(E_ALL);
35
 
36
  define('XYZ_INSERT_HTML_PLUGIN_FILE',__FILE__);
3
  Plugin Name: Insert HTML Snippet
4
  Plugin URI: http://xyzscripts.com/wordpress-plugins/insert-html-snippet/
5
  Description: Add HTML code to your pages and posts easily using shortcodes. This plugin lets you create a shortcode corresponding to any random HTML code such as ad codes, javascript, video embedding, etc. and use the same in your posts, pages or widgets.
6
+ Version: 1.2.5
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  Text Domain: insert-html-snippet
29
  if ( ! defined( 'ABSPATH' ) )
30
  exit;
31
 
32
+
 
33
  // error_reporting(E_ALL);
34
 
35
  define('XYZ_INSERT_HTML_PLUGIN_FILE',__FILE__);
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: f1logic
3
  Donate link: http://xyzscripts.com/donate/
4
  Tags: insert HTML, add HTML, insert adsense, insert ads, insert addthis code, insert flash , insert javascript, add javascript, insert css, add css, HTML to shortcode, integrate ad codes, raw html, embed html, html inserter, ad inserter, css inserter
5
  Requires at least: 3.0
6
- Tested up to: 4.9.4
7
- Stable tag: 1.2.4
8
  License: GPLv2 or later
9
 
10
  Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
@@ -74,6 +74,9 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 1.2.4 =
78
  * Removed deprecated widget initializing function
79
 
3
  Donate link: http://xyzscripts.com/donate/
4
  Tags: insert HTML, add HTML, insert adsense, insert ads, insert addthis code, insert flash , insert javascript, add javascript, insert css, add css, HTML to shortcode, integrate ad codes, raw html, embed html, html inserter, ad inserter, css inserter
5
  Requires at least: 3.0
6
+ Tested up to: 4.9.7
7
+ Stable tag: 1.2.5
8
  License: GPLv2 or later
9
 
10
  Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
74
 
75
  == Changelog ==
76
 
77
+ = 1.2.5 =
78
+ * Support for Bulk Actions(activate,deactivate,delete)
79
+
80
  = 1.2.4 =
81
  * Removed deprecated widget initializing function
82