Version Description
- Updated nonces and validations
- Premium version details and comparison added
Download this release
Release Info
Developer | f1logic |
Plugin | Insert Html Snippet |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- add_shortcode_tynimce.php +0 -1
- admin/about.php +190 -39
- admin/admin-notices.php +25 -16
- admin/ajax-backlink.php +0 -16
- admin/footer.php +160 -138
- admin/header.php +105 -23
- admin/install.php +22 -14
- admin/menu.php +20 -7
- admin/settings.php +32 -21
- admin/snippet-add.php +32 -35
- admin/snippet-delete.php +2 -2
- admin/snippet-edit.php +19 -27
- admin/snippet-status.php +2 -2
- admin/snippets.php +27 -39
- admin/uninstall.php +2 -3
- ajax-handler.php +20 -3
- css/xyz_ihs_styles.css +472 -95
- editor_plugin.js.php +1 -1
- images/cross.png +0 -0
- images/facebook.png +0 -0
- images/gplus.png +0 -0
- images/linkedin.png +0 -0
- images/new_star.png +0 -0
- images/orange_buynow.png +0 -0
- images/tick.png +0 -0
- images/twitter.png +0 -0
- insert-html-snippet.php +2 -3
- js/notice.js +3 -3
- readme.txt +19 -16
- shortcode-handler.php +1 -9
- widget.php +1 -1
- xyz-functions.php +3 -4
add_shortcode_tynimce.php
CHANGED
@@ -39,5 +39,4 @@ if(!isset($shortcodesXYZEH)){
|
|
39 |
$shortcodesXYZEH = new XYZ_Insert_Html_TinyMCESelector();
|
40 |
add_action('admin_head', array($shortcodesXYZEH, 'addSelector'));
|
41 |
}
|
42 |
-
|
43 |
?>
|
39 |
$shortcodesXYZEH = new XYZ_Insert_Html_TinyMCESelector();
|
40 |
add_action('admin_head', array($shortcodesXYZEH, 'addSelector'));
|
41 |
}
|
|
|
42 |
?>
|
admin/about.php
CHANGED
@@ -1,47 +1,198 @@
|
|
1 |
<?php
|
2 |
-
if
|
3 |
-
exit;
|
4 |
-
|
5 |
?>
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
<style>
|
10 |
-
</style>
|
11 |
-
|
12 |
<h1 style="visibility: visible;">Insert HTML Snippet (V <?php echo xyz_ihs_plugin_get_version(); ?>)</h1>
|
|
|
|
|
|
|
13 |
Integrate HTML code seamlessly to your wordpress. This plugin lets you generate a shortcode corresponding
|
14 |
to any random HTML code be is javascript, ad codes, vide embedding codes or any raw HTML. The shortcodes
|
15 |
can be used in your pages, posts and widgets. Insert HTML Snippet is developed and maintained by
|
16 |
-
<a href="http://xyzscripts.com">xyzscripts</a>
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
<
|
30 |
-
<
|
31 |
-
<
|
32 |
-
|
33 |
-
</
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
</
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
<div style="clear: both;"></div>
|
46 |
-
|
47 |
-
|
1 |
<?php
|
2 |
+
if( !defined('ABSPATH') ){ exit();}
|
|
|
|
|
3 |
?>
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
<h1 style="visibility: visible;">Insert HTML Snippet (V <?php echo xyz_ihs_plugin_get_version(); ?>)</h1>
|
6 |
+
|
7 |
+
<div style="width: 99%">
|
8 |
+
<p style="text-align: justify">
|
9 |
Integrate HTML code seamlessly to your wordpress. This plugin lets you generate a shortcode corresponding
|
10 |
to any random HTML code be is javascript, ad codes, vide embedding codes or any raw HTML. The shortcodes
|
11 |
can be used in your pages, posts and widgets. Insert HTML Snippet is developed and maintained by
|
12 |
+
<a target="_blank" href="http://xyzscripts.com">xyzscripts</a>.</p>
|
13 |
+
|
14 |
+
|
15 |
+
<p style="text-align: justify">
|
16 |
+
If you would like to have more features , please try <a
|
17 |
+
href="https://xyzscripts.com/wordpress-plugins/xyz-wp-insert-code-snippet/details"
|
18 |
+
target="_blank">XYZ WP Insert Code Snippet</a> which is a premium version of this
|
19 |
+
plugin. We have included a quick comparison of the free and premium
|
20 |
+
plugins for your reference.
|
21 |
+
</p>
|
22 |
+
</div>
|
23 |
+
<table class="xyz-premium-comparison" cellspacing=0 style="width: 99%;">
|
24 |
+
<tr style="background-color: #EDEDED">
|
25 |
+
<td><h2>Feature group</h2></td>
|
26 |
+
<td><h2>Feature</h2></td>
|
27 |
+
<td><h2>Free</h2>
|
28 |
+
</td>
|
29 |
+
<td><h2>Premium</h2></td>
|
30 |
+
</tr>
|
31 |
+
<!-- Supported Media -->
|
32 |
+
<tr>
|
33 |
+
<td rowspan="5"><h4>Shortcodes</h4></td>
|
34 |
+
<td>Convert HTML snippets to shortcodes</td>
|
35 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
36 |
+
</td>
|
37 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
38 |
+
</td>
|
39 |
+
</tr>
|
40 |
+
|
41 |
+
<tr>
|
42 |
+
<td>Convert Javascript codes to shortcodes</td>
|
43 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
44 |
+
</td>
|
45 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
46 |
+
</td>
|
47 |
+
</tr>
|
48 |
+
<tr>
|
49 |
+
<td>Convert CSS codes to shortcodes</td>
|
50 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
51 |
+
</td>
|
52 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
53 |
+
</td>
|
54 |
+
</tr>
|
55 |
+
<tr>
|
56 |
+
<td><b>Convert PHP snippets to shortcodes</b></td>
|
57 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
58 |
+
</td>
|
59 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
<tr>
|
63 |
+
<td><b>Passing custom parameters to shortcode</b></td>
|
64 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
65 |
+
</td>
|
66 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
67 |
+
</td>
|
68 |
+
</tr>
|
69 |
+
<!-- Posting Options -->
|
70 |
+
<tr>
|
71 |
+
<td rowspan="3"><h4>Third party code</h4></td>
|
72 |
+
<td>Insert adsense or any adcode</td>
|
73 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
74 |
+
</td>
|
75 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
76 |
+
</td>
|
77 |
+
</tr>
|
78 |
+
|
79 |
+
<tr>
|
80 |
+
<td>Insert addthis or any social bookmarking code</td>
|
81 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
82 |
+
</td>
|
83 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
84 |
+
</td>
|
85 |
+
</tr>
|
86 |
+
|
87 |
+
<tr>
|
88 |
+
<td>Insert flash, videos etc. to your posts,pages and widgets</td>
|
89 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
90 |
+
</td>
|
91 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
92 |
+
</td>
|
93 |
+
</tr>
|
94 |
+
|
95 |
+
<!-- Snippet Management -->
|
96 |
+
|
97 |
+
<tr>
|
98 |
+
<td rowspan="4"><h4>Snippet Management</h4></td>
|
99 |
+
<td><b>Syntax highlighter for snippet creation</b></td>
|
100 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
101 |
+
</td>
|
102 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
103 |
+
</td>
|
104 |
+
</tr>
|
105 |
+
|
106 |
+
|
107 |
+
<tr>
|
108 |
+
<td><b>Option to duplicate snippet</b></td>
|
109 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
110 |
+
</td>
|
111 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
112 |
+
</td>
|
113 |
+
</tr>
|
114 |
+
|
115 |
+
<tr>
|
116 |
+
<td><b>Export snippets</b></td>
|
117 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
118 |
+
</td>
|
119 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
120 |
+
</td>
|
121 |
+
</tr>
|
122 |
+
<tr>
|
123 |
+
<td><b>Import snippets</b></td>
|
124 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
125 |
+
</td>
|
126 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
127 |
+
</td>
|
128 |
+
</tr>
|
129 |
+
|
130 |
+
<!-- Privilege Management -->
|
131 |
+
<tr>
|
132 |
+
<td rowspan="3"><h4>Privilege Management</h4></td>
|
133 |
+
<td><b>Role/User based Snippet Management Privilege</b></td>
|
134 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
135 |
+
</td>
|
136 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
137 |
+
</td>
|
138 |
+
</tr>
|
139 |
+
|
140 |
+
<tr>
|
141 |
+
<td><b>Role/User based Snippet Usage Privilege</b></td>
|
142 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
143 |
+
</td>
|
144 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
145 |
+
</td>
|
146 |
+
</tr>
|
147 |
+
<tr>
|
148 |
+
<td><b>Master Password for super admin</b></td>
|
149 |
+
<td><img src="<?php echo plugins_url('images/cross.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
150 |
+
</td>
|
151 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
152 |
+
</td>
|
153 |
+
</tr>
|
154 |
+
|
155 |
+
<!-- Integration -->
|
156 |
+
|
157 |
+
<tr>
|
158 |
+
<td rowspan="3"><h4>Integration</h4></td>
|
159 |
+
<td>Integrate to posts/pages</td>
|
160 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
161 |
+
</td>
|
162 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
163 |
+
</td>
|
164 |
+
</tr>
|
165 |
+
|
166 |
+
<tr>
|
167 |
+
<td>Support for shortcodes in widgets</td>
|
168 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
169 |
+
</td>
|
170 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
171 |
+
</td>
|
172 |
+
</tr>
|
173 |
+
|
174 |
+
<tr>
|
175 |
+
<td>Dropdown menu in TinyMCE editor to pick snippets easily</td>
|
176 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
177 |
+
</td>
|
178 |
+
<td><img src="<?php echo plugins_url('images/tick.png',XYZ_INSERT_HTML_PLUGIN_FILE);?>">
|
179 |
+
</td>
|
180 |
+
</tr>
|
181 |
+
<tr>
|
182 |
+
<td rowspan="2"><h4>Other</h4></td>
|
183 |
+
<td>Price</td>
|
184 |
+
<td>FREE</td>
|
185 |
+
<td>Starts from 19 USD</td>
|
186 |
+
</tr>
|
187 |
+
<tr>
|
188 |
+
<td>Purchase</td>
|
189 |
+
<td></td>
|
190 |
+
<td style="padding: 2px" ><a target="_blank"href="https://xyzscripts.com/members/product/purchase/XYZWPICSPRE" class="xyz-buy-button">Buy Now</a>
|
191 |
+
</td>
|
192 |
+
</tr>
|
193 |
+
|
194 |
+
</table>
|
195 |
+
<br/>
|
196 |
<div style="clear: both;"></div>
|
197 |
+
<?php
|
198 |
+
?>
|
admin/admin-notices.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
function
|
3 |
{
|
4 |
add_thickbox();
|
5 |
$sharelink_text_array_ihs = array
|
@@ -21,6 +21,10 @@ function wp_ihs_admin_notice()
|
|
21 |
);
|
22 |
$sharelink_text_ihs = array_rand($sharelink_text_array_ihs, 1);
|
23 |
$sharelink_text_ihs = $sharelink_text_array_ihs[$sharelink_text_ihs];
|
|
|
|
|
|
|
|
|
24 |
|
25 |
|
26 |
echo '<style>
|
@@ -30,41 +34,46 @@ $sharelink_text_ihs = $sharelink_text_array_ihs[$sharelink_text_ihs];
|
|
30 |
}
|
31 |
</style>
|
32 |
<script type="text/javascript">
|
33 |
-
function
|
34 |
tb_show("Share on","#TB_inline?width=500&height=75&inlineId=show_share_icons_ihs&class=thickbox");
|
35 |
}
|
36 |
</script>
|
37 |
-
<div id="
|
38 |
-
<p>
|
39 |
<p>
|
40 |
-
<a href="https://wordpress.org/support/
|
|
|
41 |
if(get_option('xyz_credit_link')=="0")
|
42 |
-
echo '<a
|
43 |
|
44 |
-
echo '<a class="button" onclick=
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
</p>
|
48 |
|
49 |
<div id="show_share_icons_ihs" style="display: none;">
|
50 |
-
<a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="
|
51 |
-
<a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="
|
52 |
-
<a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="
|
53 |
<a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=https://wordpress.org/plugins/insert-html-snippet/" target="_blank">google+</a>
|
54 |
</div>
|
55 |
</div>';
|
56 |
|
57 |
}
|
58 |
-
$
|
59 |
-
if ($
|
60 |
-
$
|
61 |
}
|
62 |
|
63 |
-
if($
|
64 |
{
|
65 |
if (get_option('xyz_ihs_dnt_shw_notice') != "hide")
|
66 |
{
|
67 |
-
add_action('admin_notices', '
|
68 |
}
|
69 |
}
|
70 |
?>
|
1 |
<?php
|
2 |
+
function xyz_ihs_admin_notice()
|
3 |
{
|
4 |
add_thickbox();
|
5 |
$sharelink_text_array_ihs = array
|
21 |
);
|
22 |
$sharelink_text_ihs = array_rand($sharelink_text_array_ihs, 1);
|
23 |
$sharelink_text_ihs = $sharelink_text_array_ihs[$sharelink_text_ihs];
|
24 |
+
$xyz_ihs_link = admin_url('admin.php?page=insert-html-snippet-settings&ihs_blink=en');
|
25 |
+
$xyz_ihs_link = wp_nonce_url($xyz_ihs_link,'ihs-blk');
|
26 |
+
$xyz_ihs_notice = admin_url('admin.php?page=insert-html-snippet-settings&ihs_notice=hide');
|
27 |
+
$xyz_ihs_notice = wp_nonce_url($xyz_ihs_notice,'ihs-shw');
|
28 |
|
29 |
|
30 |
echo '<style>
|
34 |
}
|
35 |
</style>
|
36 |
<script type="text/javascript">
|
37 |
+
function xyz_ihs_share_snippet(){
|
38 |
tb_show("Share on","#TB_inline?width=500&height=75&inlineId=show_share_icons_ihs&class=thickbox");
|
39 |
}
|
40 |
</script>
|
41 |
+
<div id="xyz_ihs_notice_td" class="error" style="color: #666666;margin-left: 2px; padding: 5px;line-height:16px;">
|
42 |
+
<p>Thank you for using <a href="https://wordpress.org/plugins/insert-html-snippet/" target="_blank">Insert HTML Snippet</a> plugin from <a href="https://xyzscripts.com/" target="_blank">xyzscripts.com</a>. Would you consider supporting us with the continued development of the plugin using any of the below methods?</p>
|
43 |
<p>
|
44 |
+
<a href="https://wordpress.org/support/plugin/insert-html-snippet/reviews/" class="button xyz_rate_btn" target="_blank">Rate it 5★\'s on wordpress</a>';
|
45 |
+
|
46 |
if(get_option('xyz_credit_link')=="0")
|
47 |
+
echo '<a href="'.$xyz_ihs_link.'" class="button xyz_backlink_btn xyz_blink">Enable Backlink</a>';
|
48 |
|
49 |
+
echo '<a class="button xyz_share_btn" onclick=xyz_ihs_share_snippet();>Share on</a>
|
50 |
|
51 |
+
<a href="https://xyzscripts.com/donate/5" class="button xyz_donate_btn" target="_blank">Donate</a>
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
<a href="'.$xyz_ihs_notice.'" class="button xyz_show_btn">Don\'t Show This Again</a>
|
56 |
</p>
|
57 |
|
58 |
<div id="show_share_icons_ihs" style="display: none;">
|
59 |
+
<a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="https://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/insert-html-snippet/&text='.$sharelink_text_ihs.'" target="_blank">Facebook</a>
|
60 |
+
<a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://twitter.com/share?url=https://wordpress.org/plugins/insert-html-snippet/&text='.$sharelink_text_ihs.'" target="_blank">Twitter</a>
|
61 |
+
<a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://www.linkedin.com/shareArticle?mini=true&url=https://wordpress.org/plugins/insert-html-snippet/" target="_blank">LinkedIn</a>
|
62 |
<a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=https://wordpress.org/plugins/insert-html-snippet/" target="_blank">google+</a>
|
63 |
</div>
|
64 |
</div>';
|
65 |
|
66 |
}
|
67 |
+
$xyz_ihs_installed_date = get_option('xyz_ihs_installed_date');
|
68 |
+
if ($xyz_ihs_installed_date=="") {
|
69 |
+
$xyz_ihs_installed_date = time();
|
70 |
}
|
71 |
|
72 |
+
if($xyz_ihs_installed_date < ( time() - (30*24*60*60) ))
|
73 |
{
|
74 |
if (get_option('xyz_ihs_dnt_shw_notice') != "hide")
|
75 |
{
|
76 |
+
add_action('admin_notices', 'xyz_ihs_admin_notice');
|
77 |
}
|
78 |
}
|
79 |
?>
|
admin/ajax-backlink.php
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) )
|
3 |
-
exit;
|
4 |
-
add_action('wp_ajax_ajax_backlink', 'xyz_ihs_ajax_backlink');
|
5 |
-
function xyz_ihs_ajax_backlink() {
|
6 |
-
|
7 |
-
global $wpdb;
|
8 |
-
|
9 |
-
if($_POST){
|
10 |
-
update_option('xyz_credit_link','ihs');
|
11 |
-
|
12 |
-
}
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/footer.php
CHANGED
@@ -1,153 +1,175 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) )
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
-
<div style="clear: both;"
|
6 |
-
|
7 |
-
|
8 |
-
<p></p>
|
9 |
-
|
10 |
<div style="width: 100%">
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
<a target="_blank" href="http://www.linkedin.com/company/xyzscripts" class="xyz_linkedin">Follow us on LinkedIn</a>
|
20 |
-
|
21 |
-
|
22 |
</div>
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
<
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
{
|
31 |
-
|
32 |
-
var matchArray = emailString.match(mailPattern);
|
33 |
-
if (emailString.length == 0)
|
34 |
-
return false;
|
35 |
-
|
36 |
-
if (matchArray == null) {
|
37 |
-
return false;
|
38 |
-
}else{
|
39 |
-
return true;
|
40 |
-
}
|
41 |
}
|
42 |
-
|
43 |
-
|
44 |
-
function verify_lists(form)
|
45 |
{
|
46 |
-
|
47 |
-
var total=0;
|
48 |
-
var checkBox=form['chk[]'];
|
49 |
-
|
50 |
-
if(checkBox.length){
|
51 |
-
|
52 |
-
for(var i=0;i<checkBox.length;i++){
|
53 |
-
checkBox[i].checked?total++:null;
|
54 |
-
}
|
55 |
-
}else{
|
56 |
-
|
57 |
-
checkBox.checked?total++:null;
|
58 |
-
|
59 |
-
}
|
60 |
-
if(total>0){
|
61 |
-
return true;
|
62 |
-
}else{
|
63 |
-
return false;
|
64 |
-
}
|
65 |
-
|
66 |
}
|
67 |
-
|
68 |
-
function verify_fields()
|
69 |
{
|
70 |
-
|
71 |
-
if(check_email(document.email_subscription.email.value) == false){
|
72 |
-
alert("Please check whether the email is correct.");
|
73 |
-
document.email_subscription.email.select();
|
74 |
-
return false;
|
75 |
-
}else if(verify_lists(document.email_subscription)==false){
|
76 |
-
alert("Select atleast one list.");
|
77 |
-
}
|
78 |
-
else{
|
79 |
-
document.email_subscription.submit();
|
80 |
-
}
|
81 |
-
|
82 |
-
}
|
83 |
-
</script>
|
84 |
-
<?php global $current_user; wp_get_current_user(); ?>
|
85 |
-
<form action="http://xyzscripts.com/newsletter/index.php?page=list/subscribe" method="post" name="email_subscription" id="email_subscription" >
|
86 |
-
<input type="hidden" name="fieldNameIds" value="1,">
|
87 |
-
<input type="hidden" name="redirActive" value="http://xyzscripts.com/subscription/pending/XYZWPIHSFRE">
|
88 |
-
<input type="hidden" name="redirPending" value="http://xyzscripts.com/subscription/active/XYZWPIHSFRE">
|
89 |
-
<input type="hidden" name="mode" value="1">
|
90 |
-
|
91 |
-
<b>Stay tuned to our updates :</b>
|
92 |
-
|
93 |
-
|
94 |
-
Name :
|
95 |
-
<input style="border: 1px solid #3fafe3; margin-right:10px;" type="text" name="field1" value="<?php
|
96 |
-
if ($current_user->user_firstname != "" || $current_user->user_lastname != "")
|
97 |
-
{
|
98 |
-
echo $current_user->user_firstname . " " . $current_user->user_lastname;
|
99 |
-
}
|
100 |
-
else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
|
101 |
-
{
|
102 |
-
echo $current_user->display_name;
|
103 |
-
}
|
104 |
-
else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
|
105 |
-
{
|
106 |
-
echo $current_user->user_login;
|
107 |
}
|
108 |
?>" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
-
|
111 |
-
<
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
<
|
118 |
-
</
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
</
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
<
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/contact-form-manager/">Contact Form Manager</a> ★
|
139 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/newsletter-manager/">Newsletter Manager</a> ★
|
140 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/social-media-auto-publish/">Social Media Auto Publish</a>★
|
141 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/facebook-auto-publish/">Facebook Auto Publish</a> ★
|
142 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/linkedin-auto-publish/">LinkedIn Auto Publish</a> ★
|
143 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/twitter-auto-publish/">Twitter Auto Publish</a> ★
|
144 |
-
<a target="_blank" href="http://wordpress.org/extend/plugins/insert-php-code-snippet/">Insert PHP Code Snippet</a>
|
145 |
-
</div>
|
146 |
-
</div>
|
147 |
-
<div class="poweredBy">
|
148 |
-
Powered by <a href="http://xyzscripts.com" target="_blank">XYZScripts</a>
|
149 |
-
</div>
|
150 |
<div style="clear: both;"></div>
|
151 |
-
|
152 |
-
</div>
|
153 |
<p style="clear: both;"></p>
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) )
|
3 |
+
exit;
|
4 |
+
if(get_option('xyz_ihs_premium_version_ads')==1){?>
|
5 |
+
<div id="xyz-ihs-premium">
|
6 |
+
<div style="float: left; padding: 0 5px">
|
7 |
+
<h2 style="vertical-align: middle;">
|
8 |
+
<a target="_blank"
|
9 |
+
href="https://xyzscripts.com/wordpress-plugins/xyz-wp-insert-code-snippet/details
|
10 |
+
">Fully Featured XYZ WP Insert Code Snippet Premium Plugin</a> - Just 19 USD
|
11 |
+
</h2>
|
12 |
+
</div>
|
13 |
+
<div style="float: left; margin-top: 3px">
|
14 |
+
<a target="_blank" href="https://xyzscripts.com/members/product/purchase/XYZWPICSPRE"><img
|
15 |
+
src="<?php echo plugins_url("images/orange_buynow.png",XYZ_INSERT_HTML_PLUGIN_FILE); ?>">
|
16 |
+
</a>
|
17 |
+
</div>
|
18 |
+
<div style="float: left; padding: 0 5px">
|
19 |
+
<h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
|
20 |
+
(
|
21 |
+
<a href="<?php echo admin_url('admin.php?page=insert-html-snippet-about');?>">Compare Features</a>
|
22 |
+
)
|
23 |
+
</h2>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
<?php }
|
27 |
?>
|
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,})$/;
|
72 |
+
var matchArray = emailString.match(mailPattern);
|
73 |
+
if (emailString.length == 0)
|
74 |
+
return false;
|
75 |
+
if (matchArray == null) {
|
76 |
+
return false;
|
77 |
+
}
|
78 |
+
else{
|
79 |
+
return true;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
function verify_lists(form)
|
83 |
+
{
|
84 |
+
var total=0;
|
85 |
+
var checkBox=form['chk[]'];
|
86 |
+
if(checkBox.length){
|
87 |
+
for(var i=0;i<checkBox.length;i++){
|
88 |
+
checkBox[i].checked?total++:null;
|
89 |
+
}
|
90 |
+
}
|
91 |
+
else{
|
92 |
+
checkBox.checked?total++:null;
|
93 |
+
}
|
94 |
+
if(total>0){
|
95 |
+
return true;
|
96 |
+
}
|
97 |
+
else{
|
98 |
+
return false;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
function verify_fields()
|
102 |
+
{
|
103 |
+
if(check_email(document.email_subscription.email.value) == false){
|
104 |
+
alert("Please check whether the email is correct.");
|
105 |
+
document.email_subscription.email.select();
|
106 |
+
return false;
|
107 |
+
}
|
108 |
+
else if(verify_lists(document.email_subscription)==false){
|
109 |
+
alert("Select atleast one list.");
|
110 |
+
}
|
111 |
+
else{
|
112 |
+
document.email_subscription.submit();
|
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 |
{
|
126 |
+
echo $current_user->user_firstname . " " . $current_user->user_lastname;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
+
else if (strcasecmp($current_user->display_name, 'admin')!=0 && strcasecmp($current_user->display_name , "administrator")!=0 )
|
|
|
|
|
129 |
{
|
130 |
+
echo $current_user->display_name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
+
else if (strcasecmp($current_user->user_login ,"admin")!=0 && strcasecmp($current_user->user_login , "administrator")!=0 )
|
|
|
133 |
{
|
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>
|
admin/header.php
CHANGED
@@ -3,38 +3,120 @@
|
|
3 |
exit;
|
4 |
?>
|
5 |
<style>
|
6 |
-
a.xyz_header_link:hover{text-decoration:underline;}
|
7 |
-
.xyz_header_link{text-decoration:none;}
|
8 |
</style>
|
9 |
|
10 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
if(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
?>
|
14 |
-
<div style="float:left;background-color: #FFECB3;border-radius:5px;padding: 0px 5px;margin-top: 10px;border: 1px solid #E0AB1B" id="
|
15 |
-
|
16 |
-
Please do a favour by enabling backlink to our site. <a
|
17 |
<script type="text/javascript">
|
18 |
|
19 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
22 |
-
var dataString = {
|
23 |
-
action: 'ajax_backlink',
|
24 |
-
enable: 1
|
25 |
-
};
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
jQuery("#xyz_backlink_div").css('border', '1px solid #0F801C');
|
31 |
-
});
|
32 |
-
});
|
33 |
-
});
|
34 |
|
35 |
</script>
|
36 |
</div>
|
37 |
-
<?php
|
38 |
}
|
39 |
?>
|
40 |
|
@@ -56,13 +138,13 @@ if(get_option('xyz_credit_link')=="0"){
|
|
56 |
<table style="float:right; ">
|
57 |
<tr>
|
58 |
<td style="float:right;" >
|
59 |
-
<a
|
60 |
</td>
|
61 |
<td style="float:right;">
|
62 |
<a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-html-snippet/faq/">FAQ</a>
|
63 |
</td>
|
64 |
<td style="float:right;">
|
65 |
-
<a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-html-snippet/">
|
66 |
</td>
|
67 |
<td style="float:right;">
|
68 |
<a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://xyzscripts.com/wordpress-plugins/insert-html-snippet/details">About</a>
|
@@ -75,4 +157,4 @@ if(get_option('xyz_credit_link')=="0"){
|
|
75 |
</table>
|
76 |
</div>
|
77 |
|
78 |
-
<div style="clear: both"></div>
|
3 |
exit;
|
4 |
?>
|
5 |
<style>
|
6 |
+
a.xyz_header_link:hover{text-decoration:underline;}
|
7 |
+
.xyz_header_link{text-decoration:none;}
|
8 |
</style>
|
9 |
|
10 |
+
<?php
|
11 |
+
if(isset($_POST['xyz_ihs_pre_ads'])){
|
12 |
+
$xyz_ihs_pre_ads = intval($_POST['xyz_ihs_pre_ads']);
|
13 |
+
update_option('xyz_ihs_premium_version_ads',$xyz_ihs_pre_ads);
|
14 |
+
}
|
15 |
+
|
16 |
+
/*
|
17 |
+
if(get_option('xyz_ihs_premium_version_ads')==1){?>
|
18 |
+
<div id="xyz-ihs-premium">
|
19 |
+
|
20 |
+
<div style="float: left; padding: 0 5px">
|
21 |
+
<h2 style="vertical-align: middle;">
|
22 |
+
<a target="_blank" href="https://xyzscripts.com/wordpress-plugins/xyz-wp-insert-code-snippet/details">Fully Featured XYZ WP Insert Code Snippet Premium Plugin</a> - Just 19 USD
|
23 |
+
</h2>
|
24 |
+
</div>
|
25 |
+
<div style="float: left; margin-top: 3px">
|
26 |
+
<a target="_blank"
|
27 |
+
href="https://xyzscripts.com/members/product/purchase/XYZWPICSPRE"><img
|
28 |
+
src="<?php echo plugins_url("images/orange_buynow.png",XYZ_INSERT_HTML_PLUGIN_FILE); ?>">
|
29 |
+
</a>
|
30 |
+
</div>
|
31 |
+
<div style="float: left; padding: 0 5px">
|
32 |
+
<h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868">
|
33 |
+
( <a href="<?php echo admin_url('admin.php?page=insert-html-snippet-about');?>">Compare Features</a> )
|
34 |
+
</h2>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
<?php
|
38 |
+
}
|
39 |
+
*/
|
40 |
+
|
41 |
+
if(!$_POST && (isset($_GET['ihs_blink'])&&isset($_GET['ihs_blink'])=='en')){
|
42 |
+
|
43 |
+
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ihs-blk')){
|
44 |
+
wp_nonce_ays( 'ihs-blk');
|
45 |
+
exit;
|
46 |
+
}
|
47 |
+
update_option('xyz_credit_link',"ihs");
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
?>
|
52 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
53 |
+
Thank you for enabling backlink.
|
54 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
55 |
+
</div>
|
56 |
+
<style type="text/css">
|
57 |
+
.xyz_blink{
|
58 |
+
display:none !important;
|
59 |
+
}
|
60 |
+
</style>
|
61 |
+
<?php
|
62 |
+
}
|
63 |
|
64 |
+
if($_POST && isset($_POST['xyz_ihs_credit']))
|
65 |
+
{
|
66 |
+
if (! isset( $_REQUEST['_wpnonce'] )|| ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ihs-setting_')){
|
67 |
+
wp_nonce_ays( 'ihs-setting_' );
|
68 |
+
exit;
|
69 |
+
}
|
70 |
+
$xyz_ihs_credit_link=sanitize_text_field($_POST['xyz_ihs_credit']);
|
71 |
+
update_option('xyz_credit_link', $xyz_ihs_credit_link);
|
72 |
+
}
|
73 |
+
|
74 |
+
if((get_option('xyz_credit_link')=="0")&&(get_option('xyz_ihs_credit_dismiss')=="0")){
|
75 |
?>
|
76 |
+
<div style="float:left;background-color: #FFECB3;border-radius:5px;padding: 0px 5px;margin-top: 10px;border: 1px solid #E0AB1B" id="xyz_ihs_backlink_div">
|
77 |
+
|
78 |
+
Please do a favour by enabling backlink to our site. <a id="xyz_ihs_backlink" style="cursor: pointer;" >Okay, Enable</a>. <a id="xyz_ihs_dismiss" style="cursor: pointer;" >Dismiss</a>.
|
79 |
<script type="text/javascript">
|
80 |
|
81 |
jQuery(document).ready(function() {
|
82 |
+
jQuery('#xyz_ihs_backlink').click(function(){
|
83 |
+
xyz_ihs_filter_blink(1)
|
84 |
+
});
|
85 |
+
|
86 |
+
jQuery('#xyz_ihs_dismiss').click(function(){
|
87 |
+
xyz_ihs_filter_blink(-1)
|
88 |
+
});
|
89 |
+
|
90 |
+
function xyz_ihs_filter_blink(stat){
|
91 |
+
|
92 |
+
<?php $ajax_ihs_nonce = wp_create_nonce( "xyz-ihs-blink" );?>
|
93 |
+
var dataString = {
|
94 |
+
action: 'ihs_backlink',
|
95 |
+
security:'<?php echo $ajax_ihs_nonce; ?>',
|
96 |
+
enable: stat
|
97 |
+
};
|
98 |
+
|
99 |
+
jQuery.post(ajaxurl, dataString, function(response) {
|
100 |
+
|
101 |
+
if(response==1){
|
102 |
+
jQuery("#xyz_ihs_backlink_div").html('Thank you for enabling backlink!');
|
103 |
+
jQuery("#xyz_ihs_backlink_div").css('background-color', '#D8E8DA');
|
104 |
+
jQuery("#xyz_ihs_backlink_div").css('border', '1px solid #0F801C');
|
105 |
+
jQuery("select[id=xyz_ihs_credit] option[value=ihs]").attr("selected", true);
|
106 |
+
}
|
107 |
+
|
108 |
+
if(response==-1){
|
109 |
+
jQuery("#xyz_ihs_backlink_div").remove();
|
110 |
|
111 |
+
}
|
|
|
|
|
|
|
|
|
112 |
|
113 |
+
});
|
114 |
+
}
|
115 |
+
});
|
|
|
|
|
|
|
|
|
116 |
|
117 |
</script>
|
118 |
</div>
|
119 |
+
<?php
|
120 |
}
|
121 |
?>
|
122 |
|
138 |
<table style="float:right; ">
|
139 |
<tr>
|
140 |
<td style="float:right;" >
|
141 |
+
<a class="xyz_header_link" style="margin-left:8px;margin-right:12px;" target="_blank" href="https://xyzscripts.com/donate/5">Donate</a>
|
142 |
</td>
|
143 |
<td style="float:right;">
|
144 |
<a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-html-snippet/faq/">FAQ</a>
|
145 |
</td>
|
146 |
<td style="float:right;">
|
147 |
+
<a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-html-snippet/user-guide/introduction/">Readme</a>
|
148 |
</td>
|
149 |
<td style="float:right;">
|
150 |
<a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://xyzscripts.com/wordpress-plugins/insert-html-snippet/details">About</a>
|
157 |
</table>
|
158 |
</div>
|
159 |
|
160 |
+
<div style="clear: both"></div>
|
admin/install.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) )
|
3 |
exit;
|
4 |
function xyz_ihs_network_install($networkwide) {
|
5 |
global $wpdb;
|
@@ -23,9 +23,13 @@ function xyz_ihs_network_install($networkwide) {
|
|
23 |
|
24 |
|
25 |
function xyz_ihs_install(){
|
26 |
-
|
27 |
global $wpdb;
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
if(get_option('xyz_ihs_sort_order')=='')
|
30 |
{
|
31 |
add_option('xyz_ihs_sort_order','desc');
|
@@ -34,18 +38,27 @@ function xyz_ihs_install(){
|
|
34 |
{
|
35 |
add_option('xyz_ihs_sort_field_name','id');
|
36 |
}
|
37 |
-
|
38 |
-
$
|
39 |
-
if ($
|
40 |
-
$
|
41 |
-
update_option('
|
42 |
}
|
43 |
-
|
44 |
if(get_option('xyz_credit_link') == "")
|
45 |
{
|
46 |
add_option("xyz_credit_link",0);
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
add_option('xyz_ihs_limit',20);
|
50 |
$queryInsertHtml = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."xyz_ihs_short_code (
|
51 |
`id` int NOT NULL AUTO_INCREMENT,
|
@@ -59,8 +72,3 @@ function xyz_ihs_install(){
|
|
59 |
}
|
60 |
|
61 |
register_activation_hook( XYZ_INSERT_HTML_PLUGIN_FILE ,'xyz_ihs_network_install');
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) )
|
3 |
exit;
|
4 |
function xyz_ihs_network_install($networkwide) {
|
5 |
global $wpdb;
|
23 |
|
24 |
|
25 |
function xyz_ihs_install(){
|
26 |
+
|
27 |
global $wpdb;
|
28 |
+
|
29 |
+
$pluginName = 'xyz-wp-insert-code-snippet/xyz-wp-insert-code-snippet.php';
|
30 |
+
if (is_plugin_active($pluginName)) {
|
31 |
+
wp_die( "The plugin Insert HTML Snippet cannot be activated unless the premium version of this plugin is deactivated. Back to <a href='".admin_url()."plugins.php'>Plugin Installation</a>." );
|
32 |
+
}
|
33 |
if(get_option('xyz_ihs_sort_order')=='')
|
34 |
{
|
35 |
add_option('xyz_ihs_sort_order','desc');
|
38 |
{
|
39 |
add_option('xyz_ihs_sort_field_name','id');
|
40 |
}
|
41 |
+
|
42 |
+
$xyz_ihs_installed_date = get_option('xyz_ihs_installed_date');
|
43 |
+
if ($xyz_ihs_installed_date=="") {
|
44 |
+
$xyz_ihs_installed_date = time();
|
45 |
+
update_option('xyz_ihs_installed_date', $xyz_ihs_installed_date);
|
46 |
}
|
47 |
+
|
48 |
if(get_option('xyz_credit_link') == "")
|
49 |
{
|
50 |
add_option("xyz_credit_link",0);
|
51 |
}
|
52 |
|
53 |
+
if(get_option('xyz_ihs_dismiss')=='')
|
54 |
+
{
|
55 |
+
add_option('xyz_ihs_dismiss',0);
|
56 |
+
}
|
57 |
+
|
58 |
+
if(get_option('xyz_ihs_premium_version_ads')==""){
|
59 |
+
add_option('xyz_ihs_premium_version_ads',1);
|
60 |
+
}
|
61 |
+
|
62 |
add_option('xyz_ihs_limit',20);
|
63 |
$queryInsertHtml = "CREATE TABLE IF NOT EXISTS ".$wpdb->prefix."xyz_ihs_short_code (
|
64 |
`id` int NOT NULL AUTO_INCREMENT,
|
72 |
}
|
73 |
|
74 |
register_activation_hook( XYZ_INSERT_HTML_PLUGIN_FILE ,'xyz_ihs_network_install');
|
|
|
|
|
|
|
|
|
|
admin/menu.php
CHANGED
@@ -1,13 +1,28 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
add_action('admin_menu', 'xyz_ihs_menu');
|
6 |
|
7 |
|
8 |
function xyz_ihs_menu(){
|
9 |
|
10 |
-
add_menu_page('insert-html-snippet', 'XYZ Html', 'manage_options', 'insert-html-snippet-manage','xyz_ihs_snippets',plugins_url('
|
11 |
|
12 |
add_submenu_page('insert-html-snippet-manage', 'HTML Snippets', 'HTML Snippets', 'manage_options', 'insert-html-snippet-manage','xyz_ihs_snippets');
|
13 |
add_submenu_page('insert-html-snippet-manage', 'HTML Snippets - Manage settings', 'Settings', 'manage_options', 'insert-html-snippet-settings' ,'xyz_ihs_settings');
|
@@ -67,16 +82,14 @@ function xyz_ihs_add_style_script(){
|
|
67 |
|
68 |
wp_enqueue_script('jquery');
|
69 |
|
70 |
-
wp_register_script( 'xyz_notice_script', plugins_url('
|
71 |
wp_enqueue_script( 'xyz_notice_script' );
|
72 |
|
73 |
|
74 |
// Register stylesheets
|
75 |
-
wp_register_style('xyz_ihs_style',
|
76 |
wp_enqueue_style('xyz_ihs_style');
|
77 |
}
|
78 |
add_action('admin_enqueue_scripts', 'xyz_ihs_add_style_script');
|
79 |
|
80 |
-
|
81 |
-
|
82 |
?>
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) )
|
3 |
+
exit;
|
4 |
+
|
5 |
+
if(isset($_GET['action']) && $_GET['action']=='snippet-status' ){
|
6 |
+
ob_start();
|
7 |
+
}
|
8 |
|
9 |
+
if(isset($_GET['action']) && $_GET['action']=='snippet-add' ){
|
10 |
+
ob_start();
|
11 |
+
}
|
12 |
+
|
13 |
+
if(isset($_GET['action']) && $_GET['action']=='snippet-delete' ){
|
14 |
+
ob_start();
|
15 |
+
}
|
16 |
+
|
17 |
+
if(isset($_GET['action']) && $_GET['action']=='snippet-edit' ){
|
18 |
+
ob_start();
|
19 |
+
}
|
20 |
add_action('admin_menu', 'xyz_ihs_menu');
|
21 |
|
22 |
|
23 |
function xyz_ihs_menu(){
|
24 |
|
25 |
+
add_menu_page('insert-html-snippet', 'XYZ Html', 'manage_options', 'insert-html-snippet-manage','xyz_ihs_snippets',plugins_url('images/logo.png',XYZ_INSERT_HTML_PLUGIN_FILE));
|
26 |
|
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');
|
82 |
|
83 |
wp_enqueue_script('jquery');
|
84 |
|
85 |
+
wp_register_script( 'xyz_notice_script', plugins_url('js/notice.js', XYZ_INSERT_HTML_PLUGIN_FILE ));
|
86 |
wp_enqueue_script( 'xyz_notice_script' );
|
87 |
|
88 |
|
89 |
// Register stylesheets
|
90 |
+
wp_register_style('xyz_ihs_style',plugins_url('css/xyz_ihs_styles.css', XYZ_INSERT_HTML_PLUGIN_FILE ));
|
91 |
wp_enqueue_style('xyz_ihs_style');
|
92 |
}
|
93 |
add_action('admin_enqueue_scripts', 'xyz_ihs_add_style_script');
|
94 |
|
|
|
|
|
95 |
?>
|
admin/settings.php
CHANGED
@@ -7,47 +7,49 @@ global $wpdb;
|
|
7 |
|
8 |
if(isset($_GET['ihs_notice'])&& $_GET['ihs_notice'] == 'hide')
|
9 |
{
|
|
|
|
|
|
|
|
|
10 |
update_option('xyz_ihs_dnt_shw_notice', "hide");
|
11 |
?>
|
12 |
<style type='text/css'>
|
13 |
-
#
|
14 |
{
|
15 |
-
display:none;
|
16 |
}
|
17 |
</style>
|
18 |
-
<div class="
|
19 |
Thanks again for using the plugin. We will never show the message again.
|
20 |
-
<span
|
21 |
-
id="system_notice_area_dismiss">Dismiss</span>
|
22 |
</div>
|
23 |
<?php
|
24 |
}
|
25 |
|
26 |
-
|
27 |
-
|
28 |
if($_POST){
|
29 |
-
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], '
|
30 |
-
wp_nonce_ays( '
|
31 |
exit;
|
32 |
}
|
33 |
else {
|
34 |
$_POST=xyz_trim_deep($_POST);
|
35 |
$_POST = stripslashes_deep($_POST);
|
36 |
$xyz_ihs_limit = abs(intval($_POST['xyz_ihs_limit']));
|
|
|
37 |
if($xyz_ihs_limit==0)$xyz_ihs_limit=20;
|
38 |
-
$xyz_ihs_credit = $_POST['xyz_ihs_credit'];
|
39 |
if($xyz_ihs_credit=="ihs" || $xyz_ihs_credit==0)
|
40 |
{
|
41 |
update_option('xyz_credit_link',$xyz_ihs_credit);
|
42 |
}
|
43 |
|
44 |
-
$xyz_ihs_sortfield
|
45 |
if(($xyz_ihs_sortfield=="title")||($xyz_ihs_sortfield=="id"))
|
46 |
{
|
47 |
update_option('xyz_ihs_sort_field_name',$xyz_ihs_sortfield);
|
48 |
}
|
49 |
|
50 |
-
$xyz_ihs_sortorder
|
51 |
if(($xyz_ihs_sortorder=="asc")||($xyz_ihs_sortorder=="desc"))
|
52 |
{
|
53 |
update_option('xyz_ihs_sort_order',$xyz_ihs_sortorder);
|
@@ -56,12 +58,10 @@ Thanks again for using the plugin. We will never show the message again.
|
|
56 |
|
57 |
update_option('xyz_ihs_limit',$xyz_ihs_limit);
|
58 |
|
59 |
-
|
60 |
-
|
61 |
?>
|
62 |
-
<div class="
|
63 |
Settings updated successfully.
|
64 |
-
<span id="
|
65 |
</div>
|
66 |
<?php
|
67 |
}
|
@@ -69,7 +69,7 @@ Thanks again for using the plugin. We will never show the message again.
|
|
69 |
?>
|
70 |
<div>
|
71 |
<form method="post">
|
72 |
-
<?php wp_nonce_field('
|
73 |
<div style="float: left;width: 98%">
|
74 |
<fieldset style=" width:100%; border:1px solid #F7F7F7; padding:10px 0px 15px 10px;">
|
75 |
<legend ><h3>
|
@@ -106,7 +106,7 @@ Thanks again for using the plugin. We will never show the message again.
|
|
106 |
</td>
|
107 |
</tr>
|
108 |
<tr valign="top">
|
109 |
-
<td scope="row" class="
|
110 |
<label for="xyz_ihs_limit">Pagination limit</label>
|
111 |
</td>
|
112 |
<td id="">
|
@@ -116,10 +116,21 @@ Thanks again for using the plugin. We will never show the message again.
|
|
116 |
</td>
|
117 |
</tr>
|
118 |
<tr valign="top">
|
119 |
-
<td scope="row"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
</td>
|
121 |
-
<td id="
|
122 |
-
<input style="margin:10px 0 20px 0;" id="submit" class="button-primary
|
123 |
</td>
|
124 |
</tr>
|
125 |
</table>
|
7 |
|
8 |
if(isset($_GET['ihs_notice'])&& $_GET['ihs_notice'] == 'hide')
|
9 |
{
|
10 |
+
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ihs-shw')){
|
11 |
+
wp_nonce_ays( 'ihs-shw');
|
12 |
+
exit;
|
13 |
+
}
|
14 |
update_option('xyz_ihs_dnt_shw_notice', "hide");
|
15 |
?>
|
16 |
<style type='text/css'>
|
17 |
+
#xyz_ihs_notice_td
|
18 |
{
|
19 |
+
display:none !important;
|
20 |
}
|
21 |
</style>
|
22 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
23 |
Thanks again for using the plugin. We will never show the message again.
|
24 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
|
|
25 |
</div>
|
26 |
<?php
|
27 |
}
|
28 |
|
|
|
|
|
29 |
if($_POST){
|
30 |
+
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'ihs-setting_' )) {
|
31 |
+
wp_nonce_ays( 'ihs-setting_' );
|
32 |
exit;
|
33 |
}
|
34 |
else {
|
35 |
$_POST=xyz_trim_deep($_POST);
|
36 |
$_POST = stripslashes_deep($_POST);
|
37 |
$xyz_ihs_limit = abs(intval($_POST['xyz_ihs_limit']));
|
38 |
+
$xyz_ihs_pre_ads = intval($_POST['xyz_ihs_pre_ads']);
|
39 |
if($xyz_ihs_limit==0)$xyz_ihs_limit=20;
|
40 |
+
$xyz_ihs_credit = sanitize_text_field($_POST['xyz_ihs_credit']);
|
41 |
if($xyz_ihs_credit=="ihs" || $xyz_ihs_credit==0)
|
42 |
{
|
43 |
update_option('xyz_credit_link',$xyz_ihs_credit);
|
44 |
}
|
45 |
|
46 |
+
$xyz_ihs_sortfield=sanitize_text_field($_POST['xyz_ihs_sort_by_field']);
|
47 |
if(($xyz_ihs_sortfield=="title")||($xyz_ihs_sortfield=="id"))
|
48 |
{
|
49 |
update_option('xyz_ihs_sort_field_name',$xyz_ihs_sortfield);
|
50 |
}
|
51 |
|
52 |
+
$xyz_ihs_sortorder=sanitize_text_field($_POST['xyz_ihs_sort_by_order']);
|
53 |
if(($xyz_ihs_sortorder=="asc")||($xyz_ihs_sortorder=="desc"))
|
54 |
{
|
55 |
update_option('xyz_ihs_sort_order',$xyz_ihs_sortorder);
|
58 |
|
59 |
update_option('xyz_ihs_limit',$xyz_ihs_limit);
|
60 |
|
|
|
|
|
61 |
?>
|
62 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
63 |
Settings updated successfully.
|
64 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
65 |
</div>
|
66 |
<?php
|
67 |
}
|
69 |
?>
|
70 |
<div>
|
71 |
<form method="post">
|
72 |
+
<?php wp_nonce_field('ihs-setting_');?>
|
73 |
<div style="float: left;width: 98%">
|
74 |
<fieldset style=" width:100%; border:1px solid #F7F7F7; padding:10px 0px 15px 10px;">
|
75 |
<legend ><h3>
|
106 |
</td>
|
107 |
</tr>
|
108 |
<tr valign="top">
|
109 |
+
<td scope="row" class=" xyz_ihs_settingInput" id="">
|
110 |
<label for="xyz_ihs_limit">Pagination limit</label>
|
111 |
</td>
|
112 |
<td id="">
|
116 |
</td>
|
117 |
</tr>
|
118 |
<tr valign="top">
|
119 |
+
<td scope="row">
|
120 |
+
<label for="xyz_ihs_pre_ads">Premium Version Ads</label>
|
121 |
+
</td>
|
122 |
+
<td>
|
123 |
+
<select name="xyz_ihs_pre_ads" id="xyz_ihs_pre_ads">
|
124 |
+
<option value="0">Disable</option>
|
125 |
+
<option value="1" <?php selected(get_option('xyz_ihs_premium_version_ads'),1);?>>Enable</option>
|
126 |
+
</select>
|
127 |
+
</td>
|
128 |
+
</tr>
|
129 |
+
<tr valign="top">
|
130 |
+
<td scope="row" class=" xyz_ihs_settingInput" id="xyz_ihs_bottomBorderNone">
|
131 |
</td>
|
132 |
+
<td id="xyz_ihs_bottomBorderNone">
|
133 |
+
<input style="margin:10px 0 20px 0;" id="submit" class="button-primary xyz_bottonWidth" type="submit" value=" Update Settings " />
|
134 |
</td>
|
135 |
</tr>
|
136 |
</table>
|
admin/snippet-add.php
CHANGED
@@ -4,56 +4,53 @@ if ( ! defined( 'ABSPATH' ) )
|
|
4 |
global $wpdb;
|
5 |
$_POST = stripslashes_deep($_POST);
|
6 |
$_POST = xyz_trim_deep($_POST);
|
7 |
-
if(
|
8 |
-
if
|
9 |
-
|
10 |
-
|| ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'snipp-add_' )
|
11 |
-
) {
|
12 |
-
wp_nonce_ays( 'snipp-add_' );
|
13 |
exit;
|
14 |
-
}
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
if($
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
$wpdb->insert($wpdb->prefix.'xyz_ihs_short_code', array('title' =>$xyz_ihs_title,'content'=>$xyz_ihs_content,'short_code'=>$xyz_shortCode,'status'=>'1'),array('%s','%s','%s','%d'));
|
29 |
header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=1'));
|
30 |
-
|
|
|
31 |
?>
|
32 |
-
<div class="
|
33 |
HTML Snippet already exists.
|
34 |
-
<span id="
|
35 |
</div>
|
36 |
<?php
|
37 |
-
}
|
38 |
}
|
39 |
-
|
40 |
-
|
41 |
?>
|
42 |
-
<div class="
|
43 |
HTML Snippet title can have only alphabets,numbers or hyphen.
|
44 |
-
<span id="
|
45 |
</div>
|
46 |
<?php
|
47 |
-
|
48 |
-
|
|
|
49 |
?>
|
50 |
-
<div class="
|
51 |
Fill all mandatory fields.
|
52 |
-
<span id="
|
53 |
</div>
|
54 |
<?php
|
55 |
}
|
56 |
-
|
57 |
}
|
58 |
?>
|
59 |
<div >
|
@@ -66,7 +63,7 @@ if(isset($_POST) && isset($_POST['addSubmit'])){
|
|
66 |
</legend>
|
67 |
<form name="frmmainForm" id="frmmainForm" method="post">
|
68 |
<?php
|
69 |
-
wp_nonce_field('
|
70 |
?>
|
71 |
<div>
|
72 |
<table
|
4 |
global $wpdb;
|
5 |
$_POST = stripslashes_deep($_POST);
|
6 |
$_POST = xyz_trim_deep($_POST);
|
7 |
+
if($_POST){
|
8 |
+
if(!isset($_REQUEST['_wpnonce'])||!wp_verify_nonce($_REQUEST['_wpnonce'],'ihs-add_')){
|
9 |
+
wp_nonce_ays( 'ihs-add_' );
|
|
|
|
|
|
|
10 |
exit;
|
11 |
+
}
|
12 |
+
|
13 |
+
$temp_xyz_ihs_title = str_replace(' ', '', $_POST['snippetTitle']);
|
14 |
+
$temp_xyz_ihs_title = str_replace('-', '', $temp_xyz_ihs_title);
|
15 |
+
$xyz_ihs_title = str_replace(' ', '-', $_POST['snippetTitle']);
|
16 |
+
$xyz_ihs_content = $_POST['snippetContent'];
|
17 |
+
|
18 |
+
if($xyz_ihs_title != "" && $xyz_ihs_content != ""){
|
19 |
+
if(ctype_alnum($temp_xyz_ihs_title)){
|
20 |
+
$snippet_count = $wpdb->query($wpdb->prepare( 'SELECT * FROM '.$wpdb->prefix.'xyz_ihs_short_code WHERE title=%s' ,$xyz_ihs_title)) ;
|
21 |
+
|
22 |
+
if($snippet_count == 0){
|
23 |
+
$xyz_shortCode = '[xyz-ihs snippet="'.$xyz_ihs_title.'"]';
|
24 |
+
$wpdb->insert($wpdb->prefix.'xyz_ihs_short_code', array('title' =>$xyz_ihs_title,'content'=>$xyz_ihs_content,'short_code'=>$xyz_shortCode,'status'=>'1'),array('%s','%s','%s','%d'));
|
|
|
25 |
header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&xyz_ihs_msg=1'));
|
26 |
+
}
|
27 |
+
else{
|
28 |
?>
|
29 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
30 |
HTML Snippet already exists.
|
31 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
32 |
</div>
|
33 |
<?php
|
|
|
34 |
}
|
35 |
+
}
|
36 |
+
else{
|
37 |
?>
|
38 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
39 |
HTML Snippet title can have only alphabets,numbers or hyphen.
|
40 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
41 |
</div>
|
42 |
<?php
|
43 |
+
}
|
44 |
+
}
|
45 |
+
else{
|
46 |
?>
|
47 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
48 |
Fill all mandatory fields.
|
49 |
+
<span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
50 |
</div>
|
51 |
<?php
|
52 |
}
|
53 |
+
|
54 |
}
|
55 |
?>
|
56 |
<div >
|
63 |
</legend>
|
64 |
<form name="frmmainForm" id="frmmainForm" method="post">
|
65 |
<?php
|
66 |
+
wp_nonce_field('ihs-add_');
|
67 |
?>
|
68 |
<div>
|
69 |
<table
|
admin/snippet-delete.php
CHANGED
@@ -6,8 +6,8 @@ $_POST = stripslashes_deep($_POST);
|
|
6 |
$_GET = stripslashes_deep($_GET);
|
7 |
$xyz_ihs_snippetId = intval($_GET['snippetId']);
|
8 |
$xyz_ihs_pageno = intval($_GET['pageno']);
|
9 |
-
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], '
|
10 |
-
wp_nonce_ays( '
|
11 |
exit;
|
12 |
}
|
13 |
else {
|
6 |
$_GET = stripslashes_deep($_GET);
|
7 |
$xyz_ihs_snippetId = intval($_GET['snippetId']);
|
8 |
$xyz_ihs_pageno = intval($_GET['pageno']);
|
9 |
+
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'ihs-del_'.$xyz_ihs_snippetId )) {
|
10 |
+
wp_nonce_ays( 'ihs-del_'.$xyz_ihs_snippetId );
|
11 |
exit;
|
12 |
}
|
13 |
else {
|
admin/snippet-edit.php
CHANGED
@@ -3,40 +3,33 @@ if ( ! defined( 'ABSPATH' ) )
|
|
3 |
exit;
|
4 |
|
5 |
global $wpdb;
|
6 |
-
global $current_user;
|
7 |
-
wp_get_current_user();
|
8 |
|
9 |
-
$xyz_ihs_snippetId = $_GET['snippetId'];
|
10 |
|
11 |
$xyz_ihs_message = '';
|
12 |
if(isset($_GET['xyz_ihs_msg'])){
|
13 |
-
$xyz_ihs_message = $_GET['xyz_ihs_msg'];
|
14 |
}
|
15 |
if($xyz_ihs_message == 1){
|
16 |
|
17 |
?>
|
18 |
-
<div class="
|
19 |
HTML Snippet successfully updated. <span
|
20 |
-
id="
|
21 |
</div>
|
22 |
<?php
|
23 |
}
|
24 |
|
25 |
|
26 |
|
27 |
-
$xyz_ihs_snippetId = $_GET['snippetId'];
|
28 |
-
if(
|
29 |
-
|
30 |
-
|
31 |
-
// print_r($_POST);
|
32 |
-
// die("JJJ");
|
33 |
-
|
34 |
-
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'snipp-edit_'.$xyz_ihs_snippetId )) {
|
35 |
-
wp_nonce_ays( 'snipp-edit_'.$xyz_ihs_snippetId );
|
36 |
exit;
|
37 |
}
|
38 |
|
39 |
-
|
40 |
$_POST = stripslashes_deep($_POST);
|
41 |
$_POST = xyz_trim_deep($_POST);
|
42 |
|
@@ -59,13 +52,13 @@ if(isset($_POST) && isset($_POST['updateSubmit'])){
|
|
59 |
|
60 |
$wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('title'=>$xyz_ihs_title,'content'=>$xyz_ihs_content,'short_code'=>$xyz_shortCode,), array('id'=>$xyz_ihs_snippetId));
|
61 |
|
62 |
-
|
63 |
|
64 |
}
|
65 |
else{
|
66 |
?>
|
67 |
-
<div class="
|
68 |
-
HTML Snippet already exists. <span id="
|
69 |
</div>
|
70 |
<?php
|
71 |
|
@@ -74,8 +67,8 @@ if(isset($_POST) && isset($_POST['updateSubmit'])){
|
|
74 |
else
|
75 |
{
|
76 |
?>
|
77 |
-
<div class="
|
78 |
-
HTML Snippet title can have only alphabets,numbers or hyphen. <span id="
|
79 |
</div>
|
80 |
<?php
|
81 |
|
@@ -84,13 +77,13 @@ if(isset($_POST) && isset($_POST['updateSubmit'])){
|
|
84 |
|
85 |
}else{
|
86 |
?>
|
87 |
-
<div class="
|
88 |
-
Fill all mandatory fields. <span id="
|
89 |
</div>
|
90 |
<?php
|
91 |
}
|
92 |
|
93 |
-
|
94 |
}
|
95 |
|
96 |
global $wpdb;
|
@@ -108,7 +101,7 @@ $snippetDetails = $snippetDetails[0];
|
|
108 |
<b>Edit HTML Snippet</b>
|
109 |
</legend>
|
110 |
<form name="frmmainForm" id="frmmainForm" method="post">
|
111 |
-
<?php wp_nonce_field( '
|
112 |
<input type="hidden" id="snippetId" name="snippetId"
|
113 |
value="<?php if(isset($_POST['snippetId'])){ echo esc_attr($_POST['snippetId']);}else{ echo esc_attr($snippetDetails->id); }?>">
|
114 |
<div>
|
@@ -134,8 +127,7 @@ $snippetDetails = $snippetDetails[0];
|
|
134 |
|
135 |
<tr>
|
136 |
<td></td><td></td>
|
137 |
-
<td><input class="button-primary" style="cursor: pointer;"
|
138 |
-
type="submit" name="updateSubmit" value="Update"></td>
|
139 |
</tr>
|
140 |
<tr><td><br/></td></tr>
|
141 |
</table>
|
3 |
exit;
|
4 |
|
5 |
global $wpdb;
|
|
|
|
|
6 |
|
7 |
+
$xyz_ihs_snippetId = intval($_GET['snippetId']);
|
8 |
|
9 |
$xyz_ihs_message = '';
|
10 |
if(isset($_GET['xyz_ihs_msg'])){
|
11 |
+
$xyz_ihs_message = intval($_GET['xyz_ihs_msg']);
|
12 |
}
|
13 |
if($xyz_ihs_message == 1){
|
14 |
|
15 |
?>
|
16 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
17 |
HTML Snippet successfully updated. <span
|
18 |
+
id="xyz_system_notice_area_dismiss">Dismiss</span>
|
19 |
</div>
|
20 |
<?php
|
21 |
}
|
22 |
|
23 |
|
24 |
|
25 |
+
$xyz_ihs_snippetId = intval($_GET['snippetId']);
|
26 |
+
if($_POST){
|
27 |
+
if (!isset($_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'ihs-edit_'.$xyz_ihs_snippetId )) {
|
28 |
+
wp_nonce_ays( 'ihs-edit_'.$xyz_ihs_snippetId );
|
|
|
|
|
|
|
|
|
|
|
29 |
exit;
|
30 |
}
|
31 |
|
32 |
+
|
33 |
$_POST = stripslashes_deep($_POST);
|
34 |
$_POST = xyz_trim_deep($_POST);
|
35 |
|
52 |
|
53 |
$wpdb->update($wpdb->prefix.'xyz_ihs_short_code', array('title'=>$xyz_ihs_title,'content'=>$xyz_ihs_content,'short_code'=>$xyz_shortCode,), array('id'=>$xyz_ihs_snippetId));
|
54 |
|
55 |
+
header("Location:".admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-edit&snippetId='.$xyz_ihs_snippetId.'&xyz_ihs_msg=1'));
|
56 |
|
57 |
}
|
58 |
else{
|
59 |
?>
|
60 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
61 |
+
HTML Snippet already exists. <span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
62 |
</div>
|
63 |
<?php
|
64 |
|
67 |
else
|
68 |
{
|
69 |
?>
|
70 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
71 |
+
HTML Snippet title can have only alphabets,numbers or hyphen. <span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
72 |
</div>
|
73 |
<?php
|
74 |
|
77 |
|
78 |
}else{
|
79 |
?>
|
80 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
81 |
+
Fill all mandatory fields. <span id="xyz_system_notice_area_dismiss">Dismiss</span>
|
82 |
</div>
|
83 |
<?php
|
84 |
}
|
85 |
|
86 |
+
|
87 |
}
|
88 |
|
89 |
global $wpdb;
|
101 |
<b>Edit HTML Snippet</b>
|
102 |
</legend>
|
103 |
<form name="frmmainForm" id="frmmainForm" method="post">
|
104 |
+
<?php wp_nonce_field( 'ihs-edit_'.$xyz_ihs_snippetId ); ?>
|
105 |
<input type="hidden" id="snippetId" name="snippetId"
|
106 |
value="<?php if(isset($_POST['snippetId'])){ echo esc_attr($_POST['snippetId']);}else{ echo esc_attr($snippetDetails->id); }?>">
|
107 |
<div>
|
127 |
|
128 |
<tr>
|
129 |
<td></td><td></td>
|
130 |
+
<td><input class="button-primary" style="cursor: pointer;" type="submit" name="updateSubmit" value="Update"></td>
|
|
|
131 |
</tr>
|
132 |
<tr><td><br/></td></tr>
|
133 |
</table>
|
admin/snippet-status.php
CHANGED
@@ -9,8 +9,8 @@ $xyz_ihs_snippetStatus = intval($_GET['status']);
|
|
9 |
$xyz_ihs_pageno = intval($_GET['pageno']);
|
10 |
|
11 |
|
12 |
-
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], '
|
13 |
-
wp_nonce_ays( '
|
14 |
exit;
|
15 |
}
|
16 |
else {
|
9 |
$xyz_ihs_pageno = intval($_GET['pageno']);
|
10 |
|
11 |
|
12 |
+
if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'ihs-stat_'.$xyz_ihs_snippetId )) {
|
13 |
+
wp_nonce_ays( 'ihs-stat_'.$xyz_ihs_snippetId );
|
14 |
exit;
|
15 |
}
|
16 |
else {
|
admin/snippets.php
CHANGED
@@ -6,14 +6,14 @@ global $wpdb;
|
|
6 |
$_GET = stripslashes_deep($_GET);
|
7 |
$xyz_ihs_message = '';
|
8 |
if(isset($_GET['xyz_ihs_msg'])){
|
9 |
-
$xyz_ihs_message = $_GET['xyz_ihs_msg'];
|
10 |
}
|
11 |
if($xyz_ihs_message == 1){
|
12 |
|
13 |
?>
|
14 |
-
<div class="
|
15 |
HTML Snippet successfully added. <span
|
16 |
-
id="
|
17 |
</div>
|
18 |
<?php
|
19 |
|
@@ -21,9 +21,9 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
21 |
if($xyz_ihs_message == 2){
|
22 |
|
23 |
?>
|
24 |
-
<div class="
|
25 |
HTML Snippet not found. <span
|
26 |
-
id="
|
27 |
</div>
|
28 |
<?php
|
29 |
|
@@ -31,9 +31,9 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
31 |
if($xyz_ihs_message == 3){
|
32 |
|
33 |
?>
|
34 |
-
<div class="
|
35 |
HTML Snippet successfully deleted. <span
|
36 |
-
id="
|
37 |
</div>
|
38 |
<?php
|
39 |
|
@@ -41,9 +41,9 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
41 |
if($xyz_ihs_message == 4){
|
42 |
|
43 |
?>
|
44 |
-
<div class="
|
45 |
HTML Snippet status successfully changed. <span
|
46 |
-
id="
|
47 |
</div>
|
48 |
<?php
|
49 |
|
@@ -51,9 +51,9 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
51 |
if($xyz_ihs_message == 5){
|
52 |
|
53 |
?>
|
54 |
-
<div class="
|
55 |
HTML Snippet successfully updated. <span
|
56 |
-
id="
|
57 |
</div>
|
58 |
<?php
|
59 |
|
@@ -79,10 +79,7 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
79 |
$entries = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."xyz_ihs_short_code ORDER BY $field $order LIMIT $offset,$limit" );
|
80 |
|
81 |
?>
|
82 |
-
<input id="
|
83 |
-
style="cursor: pointer; margin-bottom:10px; margin-left:8px;" type="button"
|
84 |
-
name="textFieldButton2" value="Add New HTML Snippet"
|
85 |
-
onClick='document.location.href="<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-add');?>"'>
|
86 |
<table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
|
87 |
<thead>
|
88 |
<tr>
|
@@ -101,15 +98,15 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
101 |
$class = ( $count % 2 == 0 ) ? ' class="alternate"' : '';
|
102 |
?>
|
103 |
<tr <?php echo $class; ?>>
|
104 |
-
<td><?php
|
105 |
echo esc_html($entry->title);
|
106 |
?></td>
|
107 |
-
<td><?php
|
108 |
if($entry->status == 2){echo 'NA';}
|
109 |
else
|
110 |
echo '[xyz-ihs snippet="'.esc_html($entry->title).'"]';
|
111 |
?></td>
|
112 |
-
<td>
|
113 |
<?php
|
114 |
if($entry->status == 2){
|
115 |
echo "Inactive";
|
@@ -124,9 +121,9 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
124 |
$stat1 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$entry->id.'&status=1&pageno='.$pagenum);
|
125 |
?>
|
126 |
<td style="text-align: center;"><a
|
127 |
-
href='<?php echo wp_nonce_url($stat1,'
|
128 |
-
id="
|
129 |
-
src="<?php echo plugins_url('
|
130 |
</a>
|
131 |
</td>
|
132 |
<?php
|
@@ -134,9 +131,9 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
134 |
$stat2 = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-status&snippetId='.$entry->id.'&status=2&pageno='.$pagenum);
|
135 |
?>
|
136 |
<td style="text-align: center;"><a
|
137 |
-
href='<?php echo wp_nonce_url($stat2,'
|
138 |
-
id="
|
139 |
-
src="<?php echo plugins_url('
|
140 |
</a>
|
141 |
</td>
|
142 |
<?php
|
@@ -146,17 +143,17 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
146 |
|
147 |
<td style="text-align: center;"><a
|
148 |
href='<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-edit&snippetId='.$entry->id.'&pageno='.$pagenum); ?>'><img
|
149 |
-
id="
|
150 |
-
src="<?php echo plugins_url('
|
151 |
</a>
|
152 |
</td>
|
153 |
|
154 |
<?php $delurl = admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-delete&snippetId='.$entry->id.'&pageno='.$pagenum);?>
|
155 |
<td style="text-align: center;" ><a
|
156 |
-
href='<?php echo wp_nonce_url($delurl,'
|
157 |
onclick="javascript: return confirm('Please click \'OK\' to confirm ');"><img
|
158 |
-
id="
|
159 |
-
src="<?php echo plugins_url('
|
160 |
</a></td>
|
161 |
</tr>
|
162 |
<?php
|
@@ -170,10 +167,7 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
170 |
</tbody>
|
171 |
</table>
|
172 |
|
173 |
-
<input id="
|
174 |
-
style="cursor: pointer; margin-top:10px;margin-left:8px;" type="button"
|
175 |
-
name="textFieldButton2" value="Add New HTML Snippet"
|
176 |
-
onClick='document.location.href="<?php echo admin_url('admin.php?page=insert-html-snippet-manage&action=snippet-add');?>"'>
|
177 |
|
178 |
<?php
|
179 |
$total = $wpdb->get_var( "SELECT COUNT(`id`) FROM ".$wpdb->prefix."xyz_ihs_short_code" );
|
@@ -188,17 +182,11 @@ id="system_notice_area_dismiss">Dismiss</span>
|
|
188 |
'current' => $pagenum
|
189 |
) );
|
190 |
|
191 |
-
|
192 |
-
|
193 |
if ( $page_links ) {
|
194 |
echo '<div class="tablenav" style="width:99%"><div class="tablenav-pages" style="margin: 1em 0">' . $page_links . '</div></div>';
|
195 |
}
|
196 |
|
197 |
?>
|
198 |
-
|
199 |
</fieldset>
|
200 |
-
|
201 |
</form>
|
202 |
-
|
203 |
</div>
|
204 |
-
|
6 |
$_GET = stripslashes_deep($_GET);
|
7 |
$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. <span
|
16 |
+
id="xyz_system_notice_area_dismiss">Dismiss</span>
|
17 |
</div>
|
18 |
<?php
|
19 |
|
21 |
if($xyz_ihs_message == 2){
|
22 |
|
23 |
?>
|
24 |
+
<div class="xyz_system_notice_area_style0" id="xyz_system_notice_area">
|
25 |
HTML Snippet not found. <span
|
26 |
+
id="xyz_system_notice_area_dismiss">Dismiss</span>
|
27 |
</div>
|
28 |
<?php
|
29 |
|
31 |
if($xyz_ihs_message == 3){
|
32 |
|
33 |
?>
|
34 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
35 |
HTML Snippet successfully deleted. <span
|
36 |
+
id="xyz_system_notice_area_dismiss">Dismiss</span>
|
37 |
</div>
|
38 |
<?php
|
39 |
|
41 |
if($xyz_ihs_message == 4){
|
42 |
|
43 |
?>
|
44 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
45 |
HTML Snippet status successfully changed. <span
|
46 |
+
id="xyz_system_notice_area_dismiss">Dismiss</span>
|
47 |
</div>
|
48 |
<?php
|
49 |
|
51 |
if($xyz_ihs_message == 5){
|
52 |
|
53 |
?>
|
54 |
+
<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area">
|
55 |
HTML Snippet successfully updated. <span
|
56 |
+
id="xyz_system_notice_area_dismiss">Dismiss</span>
|
57 |
</div>
|
58 |
<?php
|
59 |
|
79 |
$entries = $wpdb->get_results( "SELECT * FROM ".$wpdb->prefix."xyz_ihs_short_code ORDER BY $field $order LIMIT $offset,$limit" );
|
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>
|
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>
|
104 |
+
<td id="xyz_ihs_vAlign"><?php
|
105 |
if($entry->status == 2){echo 'NA';}
|
106 |
else
|
107 |
echo '[xyz-ihs snippet="'.esc_html($entry->title).'"]';
|
108 |
?></td>
|
109 |
+
<td id="xyz_ihs_vAlign">
|
110 |
<?php
|
111 |
if($entry->status == 2){
|
112 |
echo "Inactive";
|
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
|
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>
|
138 |
</td>
|
139 |
<?php
|
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)?>">
|
157 |
</a></td>
|
158 |
</tr>
|
159 |
<?php
|
167 |
</tbody>
|
168 |
</table>
|
169 |
|
170 |
+
<input id="xyz_ihs_submit" style="cursor: pointer; margin-top: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');?>"'>
|
|
|
|
|
|
|
171 |
|
172 |
<?php
|
173 |
$total = $wpdb->get_var( "SELECT COUNT(`id`) FROM ".$wpdb->prefix."xyz_ihs_short_code" );
|
182 |
'current' => $pagenum
|
183 |
) );
|
184 |
|
|
|
|
|
185 |
if ( $page_links ) {
|
186 |
echo '<div class="tablenav" style="width:99%"><div class="tablenav-pages" style="margin: 1em 0">' . $page_links . '</div></div>';
|
187 |
}
|
188 |
|
189 |
?>
|
|
|
190 |
</fieldset>
|
|
|
191 |
</form>
|
|
|
192 |
</div>
|
|
admin/uninstall.php
CHANGED
@@ -28,12 +28,11 @@ global $wpdb;
|
|
28 |
delete_option("xyz_ihs_sort_order");
|
29 |
delete_option("xyz_ihs_sort_field_name");
|
30 |
delete_option("xyz_ihs_limit");
|
31 |
-
|
|
|
32 |
/* table delete*/
|
33 |
$wpdb->query("DROP TABLE ".$wpdb->prefix."xyz_ihs_short_code");
|
34 |
|
35 |
-
|
36 |
}
|
37 |
-
|
38 |
register_uninstall_hook( XYZ_INSERT_HTML_PLUGIN_FILE, 'xyz_ihs_network_uninstall' );
|
39 |
?>
|
28 |
delete_option("xyz_ihs_sort_order");
|
29 |
delete_option("xyz_ihs_sort_field_name");
|
30 |
delete_option("xyz_ihs_limit");
|
31 |
+
delete_option("xyz_ihs_installed_date");
|
32 |
+
delete_option('xyz_ihs_credit_dismiss');
|
33 |
/* table delete*/
|
34 |
$wpdb->query("DROP TABLE ".$wpdb->prefix."xyz_ihs_short_code");
|
35 |
|
|
|
36 |
}
|
|
|
37 |
register_uninstall_hook( XYZ_INSERT_HTML_PLUGIN_FILE, 'xyz_ihs_network_uninstall' );
|
38 |
?>
|
ajax-handler.php
CHANGED
@@ -1,7 +1,24 @@
|
|
1 |
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) )
|
3 |
exit;
|
4 |
|
5 |
-
require_once( dirname( __FILE__ ) . '/admin/ajax-backlink.php' );
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) )
|
3 |
exit;
|
4 |
|
|
|
5 |
|
6 |
+
add_action('wp_ajax_ihs_backlink', 'xyz_ihs_ajax_backlink');
|
7 |
+
function xyz_ihs_ajax_backlink() {
|
8 |
+
check_ajax_referer('xyz-ihs-blink','security');
|
9 |
+
if(current_user_can('administrator')){
|
10 |
+
global $wpdb;
|
11 |
+
if(isset($_POST)){
|
12 |
+
if(intval($_POST['enable'])==1){
|
13 |
+
update_option('xyz_credit_link','ihs');
|
14 |
+
echo 1;
|
15 |
+
}
|
16 |
+
if(intval($_POST['enable'])==-1){
|
17 |
+
update_option('xyz_ihs_credit_dismiss','dis');
|
18 |
+
echo -1;
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}die;
|
22 |
+
}
|
23 |
+
|
24 |
+
?>
|
css/xyz_ihs_styles.css
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
|
2 |
-
#
|
3 |
color: #FFFFFF;
|
4 |
cursor: pointer;
|
5 |
}
|
6 |
-
.
|
7 |
background: #00C348;
|
8 |
border: 1px solid green;
|
9 |
}
|
10 |
|
11 |
-
.
|
12 |
background: #FA5A6A;
|
13 |
border: 1px solid brown;
|
14 |
}
|
@@ -27,43 +27,55 @@ cursor: pointer;
|
|
27 |
border: 1px solid #797979;
|
28 |
}
|
29 |
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
-
label{
|
35 |
-
cursor:default;
|
36 |
-
}
|
37 |
|
38 |
-
|
|
|
39 |
width:20px;
|
40 |
height: 20px;
|
41 |
}
|
42 |
|
43 |
-
#
|
|
|
|
|
|
|
|
|
44 |
text-align: center;
|
45 |
}
|
46 |
-
.
|
47 |
width:120px;
|
48 |
}
|
49 |
#buttonDesign{
|
50 |
width:120px;
|
51 |
}
|
52 |
|
53 |
-
#
|
54 |
border-bottom:none;
|
55 |
}
|
56 |
|
57 |
-
|
58 |
-
font-size: 14px;
|
59 |
-
}
|
60 |
#content_xyz_ihs_snippet_selecterList_text{
|
61 |
width:90px;
|
62 |
}
|
63 |
|
64 |
/*admin style*/
|
65 |
|
66 |
-
#
|
67 |
position: fixed;
|
68 |
margin-bottom:40px;
|
69 |
left:25%;
|
@@ -85,55 +97,71 @@ z-index:100000;
|
|
85 |
.xyz_suggest,.xyz_star,.xyz_donate,.xyz_fbook,.xyz_support,.xyz_twitt,.xyz_gplus,.xyz_linkedin{
|
86 |
height:16px;
|
87 |
background-repeat: no-repeat;
|
88 |
-
background-
|
89 |
padding-left: 20px;
|
90 |
text-decoration: none;
|
91 |
-
|
92 |
vertical-align: middle;
|
93 |
display: inline-block;
|
94 |
-
|
95 |
}
|
96 |
-
|
97 |
.xyz_suggest{
|
98 |
-
|
99 |
background-image: url('../images/suggest.png');
|
100 |
}
|
101 |
-
|
102 |
-
.xyz_star{
|
103 |
-
background-image: url('../images/star.png');
|
104 |
-
}
|
105 |
|
106 |
.xyz_donate{
|
107 |
-
|
108 |
background-image: url('../images/donate.png');
|
109 |
}
|
110 |
|
111 |
-
|
112 |
.xyz_fbook{
|
113 |
-
|
114 |
background-image: url('../images/facebook.png');
|
115 |
}
|
116 |
.xyz_support{
|
117 |
-
|
118 |
background-image: url('../images/support.png');
|
119 |
}
|
120 |
.xyz_twitt{
|
121 |
-
|
122 |
background-image: url('../images/twitter.png');
|
123 |
}
|
124 |
.xyz_gplus{
|
125 |
-
|
126 |
background-image: url('../images/gplus.png');
|
127 |
}
|
128 |
.xyz_linkedin{
|
129 |
-
|
130 |
background-image: url('../images/linkedin.png');
|
131 |
}
|
132 |
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
#insert-html-snippet .plugin-version-author-uri {
|
136 |
-
|
137 |
background-color: #F4F4F4;
|
138 |
min-height:16px;
|
139 |
border-radius:5px;
|
@@ -145,7 +173,7 @@ z-index:100000;
|
|
145 |
-webkit-box-shadow: 0 8px 6px -6px black;
|
146 |
-moz-box-shadow: 0 8px 6px -6px black;
|
147 |
box-shadow: 0 8px 6px -6px black;
|
148 |
-
|
149 |
}
|
150 |
#insert-html-snippet{
|
151 |
background: #a9e8f5; /* Old browsers */
|
@@ -161,7 +189,7 @@ background: linear-gradient(top, #ffffff 0%,#a9e8f5 100%); /* W3C */
|
|
161 |
}
|
162 |
|
163 |
#insert-html-snippet .plugin-version-author-uri {
|
164 |
-
|
165 |
background-color: #F4F4F4;
|
166 |
min-height:16px;
|
167 |
border-radius:5px;
|
@@ -173,7 +201,7 @@ background: linear-gradient(top, #ffffff 0%,#a9e8f5 100%); /* W3C */
|
|
173 |
-webkit-box-shadow: 0 8px 6px -6px black;
|
174 |
-moz-box-shadow: 0 8px 6px -6px black;
|
175 |
box-shadow: 0 8px 6px -6px black;
|
176 |
-
|
177 |
}
|
178 |
#insert-html-snippet th,#insert-html-snippet td{
|
179 |
background: #a9e8f5; /* Old browsers */
|
@@ -209,11 +237,11 @@ text-decoration: blink;
|
|
209 |
#insert-html-snippet .plugin-version-author-uri a:hover,
|
210 |
#insert-html-snippet .plugin-version-author-uri a:active,
|
211 |
#insert-html-snippet .plugin-version-author-uri a:visited{
|
212 |
-
|
213 |
-
|
214 |
color: #111111;
|
215 |
text-decoration: none;
|
216 |
-
|
217 |
}
|
218 |
#insert-html-snippet .plugin-version-author-uri a:hover{
|
219 |
|
@@ -221,88 +249,437 @@ color:#cc811a;
|
|
221 |
}
|
222 |
#insert-html-snippet .plugin-title{
|
223 |
|
224 |
-
background
|
225 |
background-repeat: no-repeat;
|
226 |
background-position: left bottom;
|
227 |
|
228 |
}
|
229 |
|
230 |
|
231 |
-
#
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
|
239 |
-
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#25A6E1",endColorstr="#188BC0",GradientType=0);
|
240 |
-
padding:1px 13px;
|
241 |
-
color:#ffffff;
|
242 |
-
font-family:"Helvetica Neue",sans-serif;
|
243 |
-
font-size:15px;
|
244 |
-
cursor:pointer;
|
245 |
-
border: 1px solid #1A87B9;
|
246 |
-
border-radius: 4px 4px 4px 4px;
|
247 |
-
font-weight: normal;
|
248 |
-
font-size: 13px;
|
249 |
}
|
250 |
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
border-radius:3px;
|
255 |
-
width: 98%;
|
256 |
-
padding-left: 10px;
|
257 |
-
padding-top:10px;
|
258 |
-
height:auto;
|
259 |
-
min-height: 40px;
|
260 |
-
margin-top:13px;
|
261 |
-
}
|
262 |
-
|
263 |
-
.xyz_our_plugins a{
|
264 |
-
text-decoration: none;
|
265 |
-
}
|
266 |
-
|
267 |
-
.poweredBy{
|
268 |
padding-top: 10px;float:left; text-align: center; width: 100%;
|
269 |
}
|
270 |
-
|
271 |
-
.
|
272 |
text-decoration: none;
|
273 |
}
|
274 |
-
|
275 |
.xyz_feedback{
|
276 |
background: #CEEAF7; /* Old browsers */
|
277 |
border: 1px solid #64cfe8;
|
278 |
border-radius:3px;
|
279 |
-
width: 98%;
|
280 |
height:30px;
|
281 |
padding-top:10px;
|
282 |
padding-left: 10px;
|
283 |
font-weight: bold;
|
284 |
line-height: 20px;
|
285 |
}
|
286 |
-
|
287 |
-
|
288 |
.xyz_feedback a{
|
289 |
text-decoration: none
|
290 |
}
|
291 |
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
border-radius:3px;
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
padding:0;
|
304 |
}
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
+
#xyz_system_notice_area_dismiss{
|
3 |
color: #FFFFFF;
|
4 |
cursor: pointer;
|
5 |
}
|
6 |
+
.xyz_system_notice_area_style1 {
|
7 |
background: #00C348;
|
8 |
border: 1px solid green;
|
9 |
}
|
10 |
|
11 |
+
.xyz_system_notice_area_style0 {
|
12 |
background: #FA5A6A;
|
13 |
border: 1px solid brown;
|
14 |
}
|
27 |
border: 1px solid #797979;
|
28 |
}
|
29 |
|
30 |
+
.xyz-buy-button {
|
31 |
+
color:white;
|
32 |
+
padding:5px 21px;
|
33 |
+
background: #545454;
|
34 |
+
border: 0;
|
35 |
+
width: 60px;
|
36 |
+
border-bottom: 2px solid #545454;
|
37 |
+
cursor: pointer;
|
38 |
+
-webkit-box-shadow: inset 0 -2px #545454;
|
39 |
+
box-shadow: inset 0 -2px #545454;
|
40 |
+
text-decoration: none;
|
41 |
+
font-size: 14px;
|
42 |
+
font-weight: bold;
|
43 |
+
border-radius:3px;
|
44 |
}
|
45 |
|
|
|
|
|
|
|
46 |
|
47 |
+
|
48 |
+
#xyz_ihs_img{
|
49 |
width:20px;
|
50 |
height: 20px;
|
51 |
}
|
52 |
|
53 |
+
#xyz_ihs_vAlign{
|
54 |
+
vertical-align: middle;
|
55 |
+
}
|
56 |
+
|
57 |
+
#xyz_tdCenter{
|
58 |
text-align: center;
|
59 |
}
|
60 |
+
.xyz_bottonWidth{
|
61 |
width:120px;
|
62 |
}
|
63 |
#buttonDesign{
|
64 |
width:120px;
|
65 |
}
|
66 |
|
67 |
+
#xyz_ihs_bottomBorderNone {
|
68 |
border-bottom:none;
|
69 |
}
|
70 |
|
71 |
+
|
|
|
|
|
72 |
#content_xyz_ihs_snippet_selecterList_text{
|
73 |
width:90px;
|
74 |
}
|
75 |
|
76 |
/*admin style*/
|
77 |
|
78 |
+
#xyz_system_notice_area {
|
79 |
position: fixed;
|
80 |
margin-bottom:40px;
|
81 |
left:25%;
|
97 |
.xyz_suggest,.xyz_star,.xyz_donate,.xyz_fbook,.xyz_support,.xyz_twitt,.xyz_gplus,.xyz_linkedin{
|
98 |
height:16px;
|
99 |
background-repeat: no-repeat;
|
100 |
+
background-size: contain;
|
101 |
padding-left: 20px;
|
102 |
text-decoration: none;
|
103 |
+
|
104 |
vertical-align: middle;
|
105 |
display: inline-block;
|
106 |
+
|
107 |
}
|
108 |
+
|
109 |
.xyz_suggest{
|
110 |
+
|
111 |
background-image: url('../images/suggest.png');
|
112 |
}
|
113 |
+
|
|
|
|
|
|
|
114 |
|
115 |
.xyz_donate{
|
116 |
+
|
117 |
background-image: url('../images/donate.png');
|
118 |
}
|
119 |
|
120 |
+
|
121 |
.xyz_fbook{
|
122 |
+
|
123 |
background-image: url('../images/facebook.png');
|
124 |
}
|
125 |
.xyz_support{
|
126 |
+
|
127 |
background-image: url('../images/support.png');
|
128 |
}
|
129 |
.xyz_twitt{
|
130 |
+
|
131 |
background-image: url('../images/twitter.png');
|
132 |
}
|
133 |
.xyz_gplus{
|
134 |
+
|
135 |
background-image: url('../images/gplus.png');
|
136 |
}
|
137 |
.xyz_linkedin{
|
138 |
+
|
139 |
background-image: url('../images/linkedin.png');
|
140 |
}
|
141 |
|
142 |
|
143 |
+
.xyz_home_fbook{
|
144 |
+
|
145 |
+
background-image: url('../images/facebook.png');
|
146 |
+
}
|
147 |
+
|
148 |
+
|
149 |
+
.xyz_home_twitt{
|
150 |
+
|
151 |
+
background-image: url('../images/twitter.png');
|
152 |
+
}
|
153 |
+
.xyz_home_gplus{
|
154 |
+
|
155 |
+
background-image: url('../images/gplus.png');
|
156 |
+
}
|
157 |
+
.xyz_home_linkedin{
|
158 |
+
|
159 |
+
background-image: url('../images/linkedin.png');
|
160 |
+
}
|
161 |
+
|
162 |
|
163 |
#insert-html-snippet .plugin-version-author-uri {
|
164 |
+
|
165 |
background-color: #F4F4F4;
|
166 |
min-height:16px;
|
167 |
border-radius:5px;
|
173 |
-webkit-box-shadow: 0 8px 6px -6px black;
|
174 |
-moz-box-shadow: 0 8px 6px -6px black;
|
175 |
box-shadow: 0 8px 6px -6px black;
|
176 |
+
|
177 |
}
|
178 |
#insert-html-snippet{
|
179 |
background: #a9e8f5; /* Old browsers */
|
189 |
}
|
190 |
|
191 |
#insert-html-snippet .plugin-version-author-uri {
|
192 |
+
|
193 |
background-color: #F4F4F4;
|
194 |
min-height:16px;
|
195 |
border-radius:5px;
|
201 |
-webkit-box-shadow: 0 8px 6px -6px black;
|
202 |
-moz-box-shadow: 0 8px 6px -6px black;
|
203 |
box-shadow: 0 8px 6px -6px black;
|
204 |
+
|
205 |
}
|
206 |
#insert-html-snippet th,#insert-html-snippet td{
|
207 |
background: #a9e8f5; /* Old browsers */
|
237 |
#insert-html-snippet .plugin-version-author-uri a:hover,
|
238 |
#insert-html-snippet .plugin-version-author-uri a:active,
|
239 |
#insert-html-snippet .plugin-version-author-uri a:visited{
|
240 |
+
|
241 |
+
|
242 |
color: #111111;
|
243 |
text-decoration: none;
|
244 |
+
|
245 |
}
|
246 |
#insert-html-snippet .plugin-version-author-uri a:hover{
|
247 |
|
249 |
}
|
250 |
#insert-html-snippet .plugin-title{
|
251 |
|
252 |
+
background: url('../images/xyz_logo.png'),linear-gradient( #ffffff,#a9e8f5 );
|
253 |
background-repeat: no-repeat;
|
254 |
background-position: left bottom;
|
255 |
|
256 |
}
|
257 |
|
258 |
|
259 |
+
#xyz_ihs_submit{
|
260 |
+
color: #FFFFFF;
|
261 |
+
background-color: #094969;
|
262 |
+
border: 1px solid #eee;
|
263 |
+
border-radius: 3px;
|
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 |
+
|
274 |
+
.xyz_poweredBy a{
|
275 |
text-decoration: none;
|
276 |
}
|
277 |
+
|
278 |
.xyz_feedback{
|
279 |
background: #CEEAF7; /* Old browsers */
|
280 |
border: 1px solid #64cfe8;
|
281 |
border-radius:3px;
|
282 |
+
width: 98%;
|
283 |
height:30px;
|
284 |
padding-top:10px;
|
285 |
padding-left: 10px;
|
286 |
font-weight: bold;
|
287 |
line-height: 20px;
|
288 |
}
|
289 |
+
|
290 |
+
|
291 |
.xyz_feedback a{
|
292 |
text-decoration: none
|
293 |
}
|
294 |
|
295 |
+
i.xyz-ihs-own-icon {
|
296 |
+
background-image: url('../images/logo.png');
|
297 |
+
}
|
298 |
+
|
299 |
+
#xyz-ihs-premium {
|
300 |
+
border: 1px solid #FCC328;
|
301 |
+
margin-bottom: 20px;
|
302 |
+
margin-top: 20px;
|
303 |
+
background-color: #FFF6D6;
|
304 |
+
min-height: 50px;
|
305 |
+
padding: 5px;
|
306 |
+
width: 98%;
|
307 |
border-radius:3px;
|
308 |
+
float: left;
|
309 |
+
}
|
310 |
+
|
311 |
+
.xyz-premium-comparison {
|
312 |
+
width: 99%;
|
313 |
+
padding: 0px;
|
314 |
+
border: 1px solid #CCCCCC;
|
315 |
+
border-radius: 3px;
|
316 |
+
}
|
317 |
+
|
318 |
+
.xyz-premium-comparison td {
|
319 |
+
padding: 1px;
|
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;
|
426 |
+
padding-left: 0px;
|
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;
|
456 |
+
border-radius: 3px;
|
457 |
+
width: 98%;
|
458 |
+
height: auto;
|
459 |
+
margin-top: 13px;
|
460 |
+
line-height: 33px;
|
461 |
+
padding: 10px 0 10px 10px ;
|
462 |
+
float:left;
|
463 |
+
}
|
464 |
+
|
465 |
+
.xyz_our_plugins_new a{
|
466 |
+
text-decoration: none;
|
467 |
+
display: block;
|
468 |
+
background-color: #ddd;
|
469 |
+
float: left;
|
470 |
+
width: 23%;
|
471 |
+
margin: 1px;
|
472 |
+
padding: 0px 10px 0px 0px;
|
473 |
+
color: #094969;
|
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;
|
488 |
+
display: block;
|
489 |
+
float: left;
|
490 |
+
text-align: center;
|
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;
|
533 |
+
border: 1px solid #F15E77 !important;
|
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*/
|
editor_plugin.js.php
CHANGED
@@ -46,7 +46,7 @@ if(floatval(get_bloginfo('version'))>=3.9)
|
|
46 |
|
47 |
$xyz_snippets = array(
|
48 |
'title' =>'Insert HTML Snippet',
|
49 |
-
'url' => plugins_url('
|
50 |
'xyz_ihs_snippets' => $xyz_snippets_arr
|
51 |
);
|
52 |
?>
|
46 |
|
47 |
$xyz_snippets = array(
|
48 |
'title' =>'Insert HTML Snippet',
|
49 |
+
'url' => plugins_url('images/logo.png',XYZ_INSERT_HTML_PLUGIN_FILE),
|
50 |
'xyz_ihs_snippets' => $xyz_snippets_arr
|
51 |
);
|
52 |
?>
|
images/cross.png
ADDED
Binary file
|
images/facebook.png
CHANGED
Binary file
|
images/gplus.png
CHANGED
Binary file
|
images/linkedin.png
CHANGED
Binary file
|
images/new_star.png
ADDED
Binary file
|
images/orange_buynow.png
ADDED
Binary file
|
images/tick.png
ADDED
Binary file
|
images/twitter.png
CHANGED
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.
|
7 |
Author: xyzscripts.com
|
8 |
Author URI: http://xyzscripts.com/
|
9 |
Text Domain: insert-html-snippet
|
@@ -29,7 +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 |
|
@@ -65,5 +65,4 @@ function xyz_ihs_credit() {
|
|
65 |
echo $content;
|
66 |
}
|
67 |
|
68 |
-
|
69 |
?>
|
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.3
|
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 |
|
34 |
// error_reporting(E_ALL);
|
35 |
|
65 |
echo $content;
|
66 |
}
|
67 |
|
|
|
68 |
?>
|
js/notice.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
jQuery(document).ready(function() {
|
2 |
-
jQuery('#
|
3 |
opacity : 'show',
|
4 |
height : 'show'
|
5 |
}, 500);
|
6 |
|
7 |
-
jQuery('#
|
8 |
-
jQuery('#
|
9 |
opacity : 'hide',
|
10 |
height : 'hide'
|
11 |
}, 500);
|
1 |
jQuery(document).ready(function() {
|
2 |
+
jQuery('#xyz_system_notice_area').animate({
|
3 |
opacity : 'show',
|
4 |
height : 'show'
|
5 |
}, 500);
|
6 |
|
7 |
+
jQuery('#xyz_system_notice_area_dismiss').click(function() {
|
8 |
+
jQuery('#xyz_system_notice_area').animate({
|
9 |
opacity : 'hide',
|
10 |
height : 'hide'
|
11 |
}, 500);
|
readme.txt
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
-
|
2 |
Contributors: f1logic
|
3 |
Donate link: http://xyzscripts.com/donate/
|
4 |
-
|
5 |
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
|
6 |
-
Requires at least:
|
7 |
-
Tested up to: 4.
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
|
@@ -25,7 +24,7 @@ A quicklook into Insert Html Snippet
|
|
25 |
|
26 |
= Features in Detail =
|
27 |
|
28 |
-
Insert Html Snippet allows you to create shortcodes corresponding to html snippets. You can create a shortcode corresponding to any random HTML code such as ad codes (adsense or any adserver), javascript codes (addthis), video embedding codes, css codes etc. and use the same in your posts, pages or widgets.
|
29 |
|
30 |
The shortcodes generated using the plugin are easily available as a dropdown in the standard wordpress content editor as well as in widget settings, thereby giving you ease of integrating your HTML snippets with your posts and pages.
|
31 |
|
@@ -33,12 +32,12 @@ The shortcodes generated using the plugin are easily available as a dropdown in
|
|
33 |
|
34 |
Insert Html Snippet is developed and maintained by [XYZScripts](http://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](http://xyzscripts.com/support/ "XYZScripts Support").
|
35 |
|
36 |
-
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/)
|
37 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
38 |
|
39 |
== Installation ==
|
40 |
|
41 |
-
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/)
|
42 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
43 |
|
44 |
1. Extract `insert-html-snippet.zip` to your `/wp-content/plugins/` directory.
|
@@ -48,7 +47,7 @@ If you need any further help, you may contact our [support desk](http://xyzscrip
|
|
48 |
|
49 |
== Frequently Asked Questions ==
|
50 |
|
51 |
-
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/)
|
52 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
53 |
|
54 |
= The Insert Html Snippet is not working properly. =
|
@@ -75,12 +74,16 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
78 |
= 1.2.2 =
|
79 |
-
* Unwanted output removed
|
80 |
-
* Widget class updated
|
81 |
|
82 |
= 1.2.1 =
|
83 |
-
* A few bug fixes
|
84 |
|
85 |
= 1.2 =
|
86 |
* Compatibility with wordpress 4.3
|
@@ -103,11 +106,11 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
|
|
103 |
* First official launch.
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
-
|
107 |
-
|
108 |
== More Information ==
|
109 |
|
110 |
-
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/)
|
111 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
112 |
|
113 |
= Troubleshooting =
|
@@ -117,7 +120,7 @@ Please read the FAQ first if you are having problems.
|
|
117 |
= Requirements =
|
118 |
|
119 |
WordPress 3.0+
|
120 |
-
PHP 5+
|
121 |
|
122 |
= Feedback =
|
123 |
|
1 |
+
=== Insert Html Snippet ===
|
2 |
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.2
|
7 |
+
Stable tag: 1.2.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
|
24 |
|
25 |
= Features in Detail =
|
26 |
|
27 |
+
Insert Html Snippet allows you to create shortcodes corresponding to html snippets. You can create a shortcode corresponding to any random HTML code such as ad codes (adsense or any adserver), javascript codes (addthis), video embedding codes, css codes etc. and use the same in your posts, pages or widgets.
|
28 |
|
29 |
The shortcodes generated using the plugin are easily available as a dropdown in the standard wordpress content editor as well as in widget settings, thereby giving you ease of integrating your HTML snippets with your posts and pages.
|
30 |
|
32 |
|
33 |
Insert Html Snippet is developed and maintained by [XYZScripts](http://xyzscripts.com/ "xyzscripts.com"). For any support, you may [contact us](http://xyzscripts.com/support/ "XYZScripts Support").
|
34 |
|
35 |
+
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/user-guide)
|
36 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
37 |
|
38 |
== Installation ==
|
39 |
|
40 |
+
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/user-guide)
|
41 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
42 |
|
43 |
1. Extract `insert-html-snippet.zip` to your `/wp-content/plugins/` directory.
|
47 |
|
48 |
== Frequently Asked Questions ==
|
49 |
|
50 |
+
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/user-guide)
|
51 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
52 |
|
53 |
= The Insert Html Snippet is not working properly. =
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.2.3 =
|
78 |
+
* Updated nonces and validations
|
79 |
+
* Premium version details and comparison added
|
80 |
+
|
81 |
= 1.2.2 =
|
82 |
+
* Unwanted output removed
|
83 |
+
* Widget class updated
|
84 |
|
85 |
= 1.2.1 =
|
86 |
+
* A few bug fixes
|
87 |
|
88 |
= 1.2 =
|
89 |
* Compatibility with wordpress 4.3
|
106 |
* First official launch.
|
107 |
|
108 |
== Upgrade Notice ==
|
109 |
+
|
110 |
+
|
111 |
== More Information ==
|
112 |
|
113 |
+
★ [Insert HTML Snippet User Guide](http://help.xyzscripts.com/docs/insert-html-snippet/user-guide)
|
114 |
★ [Insert HTML Snippet FAQ](http://help.xyzscripts.com/docs/insert-html-snippet/faq/)
|
115 |
|
116 |
= Troubleshooting =
|
120 |
= Requirements =
|
121 |
|
122 |
WordPress 3.0+
|
123 |
+
PHP 5+
|
124 |
|
125 |
= Feedback =
|
126 |
|
shortcode-handler.php
CHANGED
@@ -17,7 +17,6 @@ function xyz_ihs_display_content($xyz_snippet_name){
|
|
17 |
if(count($query)>0){
|
18 |
|
19 |
foreach ($query as $sippetdetails){
|
20 |
-
// return stripslashes($sippetdetails->content);
|
21 |
if($sippetdetails->status==1)
|
22 |
return do_shortcode($sippetdetails->content) ;
|
23 |
else
|
@@ -27,14 +26,7 @@ function xyz_ihs_display_content($xyz_snippet_name){
|
|
27 |
|
28 |
}else{
|
29 |
|
30 |
-
return '';
|
31 |
-
/* return "<div style='padding:20px; font-size:16px; color:#FA5A6A; width:93%;text-align:center;background:lightyellow;border:1px solid #3FAFE3; margin:20px 0 20px 0'>
|
32 |
-
|
33 |
-
Please use a valid short code to call snippet.
|
34 |
-
|
35 |
-
|
36 |
-
</div>";
|
37 |
-
*/
|
38 |
}
|
39 |
|
40 |
}
|
17 |
if(count($query)>0){
|
18 |
|
19 |
foreach ($query as $sippetdetails){
|
|
|
20 |
if($sippetdetails->status==1)
|
21 |
return do_shortcode($sippetdetails->content) ;
|
22 |
else
|
26 |
|
27 |
}else{
|
28 |
|
29 |
+
return '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
}
|
widget.php
CHANGED
@@ -21,7 +21,7 @@ class Xyz_Insert_Html_Widget extends WP_Widget {
|
|
21 |
global $wpdb;
|
22 |
$title = apply_filters('widget_title', $instance['title']);
|
23 |
$xyz_ihs_id = $instance['message'];
|
24 |
-
|
25 |
$entries = $wpdb->get_results($wpdb->prepare( "SELECT content FROM ".$wpdb->prefix."xyz_ihs_short_code WHERE id=%d",$xyz_ihs_id ));
|
26 |
|
27 |
$entry = $entries[0];
|
21 |
global $wpdb;
|
22 |
$title = apply_filters('widget_title', $instance['title']);
|
23 |
$xyz_ihs_id = $instance['message'];
|
24 |
+
|
25 |
$entries = $wpdb->get_results($wpdb->prepare( "SELECT content FROM ".$wpdb->prefix."xyz_ihs_short_code WHERE id=%d",$xyz_ihs_id ));
|
26 |
|
27 |
$entry = $entries[0];
|
xyz-functions.php
CHANGED
@@ -9,7 +9,6 @@ if(!function_exists('xyz_ihs_plugin_get_version'))
|
|
9 |
if ( ! function_exists( 'get_plugins' ) )
|
10 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
11 |
$plugin_folder = get_plugins( '/' . plugin_basename( dirname( XYZ_INSERT_HTML_PLUGIN_FILE ) ) );
|
12 |
-
// print_r($plugin_folder);
|
13 |
return $plugin_folder['insert-html-snippet.php']['Version'];
|
14 |
}
|
15 |
}
|
@@ -40,11 +39,11 @@ function xyz_ihs_links($links, $file) {
|
|
40 |
$base = plugin_basename(XYZ_INSERT_HTML_PLUGIN_FILE);
|
41 |
if ($file == $base) {
|
42 |
|
43 |
-
$links[] = '<a href="
|
44 |
-
$links[] = '<a href="
|
45 |
$links[] = '<a href="https://www.facebook.com/xyzscripts" class="xyz_fbook" title="Like us on Facebook"></a>';
|
46 |
$links[] = '<a href="https://plus.google.com/+Xyzscripts/" class="xyz_gplus" title="+1 us on Google+"></a>';
|
47 |
-
$links[] = '<a href="
|
48 |
}
|
49 |
return $links;
|
50 |
}
|
9 |
if ( ! function_exists( 'get_plugins' ) )
|
10 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
11 |
$plugin_folder = get_plugins( '/' . plugin_basename( dirname( XYZ_INSERT_HTML_PLUGIN_FILE ) ) );
|
|
|
12 |
return $plugin_folder['insert-html-snippet.php']['Version'];
|
13 |
}
|
14 |
}
|
39 |
$base = plugin_basename(XYZ_INSERT_HTML_PLUGIN_FILE);
|
40 |
if ($file == $base) {
|
41 |
|
42 |
+
$links[] = '<a href="https://xyzscripts.com/support/" class="xyz_support" title="Support"></a>';
|
43 |
+
$links[] = '<a href="https://twitter.com/xyzscripts" class="xyz_twitt" title="Follow us on Twitter"></a>';
|
44 |
$links[] = '<a href="https://www.facebook.com/xyzscripts" class="xyz_fbook" title="Like us on Facebook"></a>';
|
45 |
$links[] = '<a href="https://plus.google.com/+Xyzscripts/" class="xyz_gplus" title="+1 us on Google+"></a>';
|
46 |
+
$links[] = '<a href="https://www.linkedin.com/company/xyzscripts" class="xyz_linkedin" title="Follow us on LinkedIn"></a>';
|
47 |
}
|
48 |
return $links;
|
49 |
}
|