Insert Html Snippet - Version 1.2.2

Version Description

  • Unwanted output removed.
  • Widget class updated.
Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

admin/admin-notices.php CHANGED
@@ -1,53 +1,49 @@
1
- <style>
2
- #TB_window { width:50% !important; height: 100px !important;
3
- margin-left: 25% !important;
4
- left: 0% !important;
5
- }
6
- </style>
7
- <?php add_thickbox();?>
8
- <script type="text/javascript">
9
- function share_html_code_snippet(){
10
- tb_show("Share on","#TB_inline?width=500&amp;height=75&amp;inlineId=show_share_icons_ihs&class=thickbox");
11
- }
12
- </script>
13
-
14
-
15
-
16
  <?php
17
- function wp_ihsap_admin_notice()
18
  {
19
-
20
  $sharelink_text_array_ihs = array
21
  (
22
- "I use Insert HTML Code Snippet wordpress plugin from @xyzscripts and you should too.",
23
- "Insert HTML Code Snippet wordpress plugin from @xyzscripts is awesome",
24
  "Thanks @xyzscripts for developing such a wonderful wordpress plugin for inserting html",
25
- "I was looking for a HTML Code Snippet insertion plugin and I found this. Thanks @xyzscripts",
26
- "Its very easy to use Insert HTML Code Snippet wordpress plugin from @xyzscripts",
27
- "I installed Insert HTML Code Snippet from @xyzscripts,it works flawlessly",
28
- "Insert HTML Code Snippet wordpress plugin that i use works terrific",
29
- "I am using Insert HTML Code Snippet wordpress plugin from @xyzscripts and I like it",
30
- "The Insert HTML Code Snippet plugin from @xyzscripts is simple and works fine",
31
  "I've been using this Snippet plugin for a while now and it is really good",
32
- "Insert HTML Code Snippet wordpress plugin is a fantastic plugin",
33
- "Insert HTML Code Snippet wordpress plugin is easy to use and works great. Thank you!",
34
- "Good and flexible Insert HTML Code Snippet plugin especially for beginners",
35
- "The best Insert HTML Code Snippet wordpress plugin I have used ! THANKS @xyzscripts",
36
  );
37
  $sharelink_text_ihs = array_rand($sharelink_text_array_ihs, 1);
38
  $sharelink_text_ihs = $sharelink_text_array_ihs[$sharelink_text_ihs];
39
 
40
 
41
- echo '<div id="ihs_notice_td" class="error" style="color: #666666;margin-left: 2px;background: none repeat scroll 0pt 0pt infobackground; border: 1px solid inactivecaption; padding: 5px;line-height:16px;">
42
- <p>It looks like you have been enjoying using <a href="https://wordpress.org/plugins/insert-html-snippet/" target="_blank"> Insert HTML Code Snippet </a> plugin from Xyzscripts for atleast 30 days.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/view/plugin-reviews/insert-html-snippet" class="button" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Rate it 5★\'s on wordpress</a>';
45
  if(get_option('xyz_credit_link')=="0")
46
  echo '<a class="button xyz_ihs_backlink" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Enable Backlink</a>';
47
 
48
- echo '<a class="button" onclick=share_html_code_snippet(); style="color:black;text-decoration:none;margin-right:4px;">Share on</a>
49
 
50
- <a href="admin.php?page=insert-html-snippet-settings&ihsap_notice=hide" class="button" style="color:black;text-decoration:none;margin-right:4px;">Don\'t Show This Again</a>
51
  </p>
52
 
53
  <div id="show_share_icons_ihs" style="display: none;">
@@ -66,9 +62,9 @@ if ($ihsap_installed_date=="") {
66
 
67
  if($ihsap_installed_date < ( time() - (30*24*60*60) ))
68
  {
69
- if (get_option('xyz_ihsap_dnt_shw_notice') != "hide")
70
  {
71
- add_action('admin_notices', 'wp_ihsap_admin_notice');
72
  }
73
  }
74
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
+ function wp_ihs_admin_notice()
3
  {
4
+ add_thickbox();
5
  $sharelink_text_array_ihs = array
6
  (
7
+ "I use Insert HTML Snippet wordpress plugin from @xyzscripts and you should too.",
8
+ "Insert HTML Snippet wordpress plugin from @xyzscripts is awesome",
9
  "Thanks @xyzscripts for developing such a wonderful wordpress plugin for inserting html",
10
+ "I was looking for a HTML Snippet insertion plugin and I found this. Thanks @xyzscripts",
11
+ "Its very easy to use Insert HTML Snippet wordpress plugin from @xyzscripts",
12
+ "I installed Insert HTML Snippet from @xyzscripts,it works flawlessly",
13
+ "Insert HTML Snippet wordpress plugin that i use works terrific",
14
+ "I am using Insert HTML Snippet wordpress plugin from @xyzscripts and I like it",
15
+ "The Insert HTML Snippet plugin from @xyzscripts is simple and works fine",
16
  "I've been using this Snippet plugin for a while now and it is really good",
17
+ "Insert HTML Snippet wordpress plugin is a fantastic plugin",
18
+ "Insert HTML Snippet wordpress plugin is easy to use and works great. Thank you!",
19
+ "Good and flexible Insert HTML Snippet plugin especially for beginners",
20
+ "The best Insert HTML Snippet wordpress plugin I have used ! THANKS @xyzscripts",
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>
27
+ #TB_window { width:50% !important; height: 100px !important;
28
+ margin-left: 25% !important;
29
+ left: 0% !important;
30
+ }
31
+ </style>
32
+ <script type="text/javascript">
33
+ function share_html_snippet(){
34
+ tb_show("Share on","#TB_inline?width=500&amp;height=75&amp;inlineId=show_share_icons_ihs&class=thickbox");
35
+ }
36
+ </script>
37
+ <div id="ihs_notice_td" class="error" style="color: #666666;margin-left: 2px;background: none repeat scroll 0pt 0pt infobackground; border: 1px solid inactivecaption; padding: 5px;line-height:16px;">
38
+ <p>It looks like you have been enjoying using <a href="https://wordpress.org/plugins/insert-html-snippet/" target="_blank"> Insert HTML Snippet </a> plugin from Xyzscripts for atleast 30 days.Would you consider supporting us with the continued development of the plugin using any of the below methods?</p>
39
  <p>
40
  <a href="https://wordpress.org/support/view/plugin-reviews/insert-html-snippet" class="button" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Rate it 5★\'s on wordpress</a>';
41
  if(get_option('xyz_credit_link')=="0")
42
  echo '<a class="button xyz_ihs_backlink" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Enable Backlink</a>';
43
 
44
+ echo '<a class="button" onclick=share_html_snippet(); style="color:black;text-decoration:none;margin-right:4px;">Share on</a>
45
 
46
+ <a href="admin.php?page=insert-html-snippet-settings&ihs_notice=hide" class="button" style="color:black;text-decoration:none;margin-right:4px;">Don\'t Show This Again</a>
47
  </p>
48
 
49
  <div id="show_share_icons_ihs" style="display: none;">
62
 
63
  if($ihsap_installed_date < ( time() - (30*24*60*60) ))
64
  {
65
+ if (get_option('xyz_ihs_dnt_shw_notice') != "hide")
66
  {
67
+ add_action('admin_notices', 'wp_ihs_admin_notice');
68
  }
69
  }
70
  ?>
admin/header.php CHANGED
@@ -59,10 +59,10 @@ if(get_option('xyz_credit_link')=="0"){
59
  <a onmouseover="tooltip.show('Please help us to keep this plugin free forever by donating a dollar');" onmouseout="tooltip.hide();" class="xyz_header_link" style="margin-left:8px;margin-right:12px;" target="_blank" href="http://xyzscripts.com/donate/1">Donate</a>
60
  </td>
61
  <td style="float:right;">
62
- <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://kb.xyzscripts.com/category/insert-html-snippet/">FAQ</a>
63
  </td>
64
  <td style="float:right;">
65
- <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://docs.xyzscripts.com/category/insert-html-snippet/">Docs</a>
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>
59
  <a onmouseover="tooltip.show('Please help us to keep this plugin free forever by donating a dollar');" onmouseout="tooltip.hide();" class="xyz_header_link" style="margin-left:8px;margin-right:12px;" target="_blank" href="http://xyzscripts.com/donate/1">Donate</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/">Docs</a>
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>
admin/settings.php CHANGED
@@ -5,9 +5,9 @@ global $wpdb;
5
  // Load the options
6
 
7
 
8
- if(isset($_GET['ihsap_notice'])&& $_GET['ihsap_notice'] == 'hide')
9
  {
10
- update_option('xyz_ihsap_dnt_shw_notice', "hide");
11
  ?>
12
  <style type='text/css'>
13
  #ihs_notice_td
5
  // Load the options
6
 
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
  #ihs_notice_td
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.1
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  Text Domain: insert-html-snippet
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.2
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  Text Domain: insert-html-snippet
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://xyzscripts.com/donate/
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: 2.8
7
  Tested up to: 4.6.1
8
- Stable tag: 1.2.1
9
  License: GPLv2 or later
10
 
11
  Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
@@ -33,13 +33,13 @@ 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://docs.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet User Guide")
37
- ★ [Insert HTML Snippet FAQ](http://kb.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet FAQ")
38
 
39
  == Installation ==
40
 
41
- ★ [Insert HTML Snippet User Guide](http://docs.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet User Guide")
42
- ★ [Insert HTML Snippet FAQ](http://kb.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet FAQ")
43
 
44
  1. Extract `insert-html-snippet.zip` to your `/wp-content/plugins/` directory.
45
  2. In the admin panel under plugins activate Insert Html Snippet.
@@ -48,8 +48,8 @@ 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://docs.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet User Guide")
52
- ★ [Insert HTML Snippet FAQ](http://kb.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet FAQ")
53
 
54
  = The Insert Html Snippet is not working properly. =
55
 
@@ -75,6 +75,10 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
75
 
76
  == Changelog ==
77
 
 
 
 
 
78
  = 1.2.1 =
79
  * A few bug fixes.
80
 
@@ -103,8 +107,8 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
103
 
104
  == More Information ==
105
 
106
- ★ [Insert HTML Snippet User Guide](http://docs.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet User Guide")
107
- ★ [Insert HTML Snippet FAQ](http://kb.xyzscripts.com/wordpress-plugins/insert-html-snippet/ "Insert HTML Snippet FAQ")
108
 
109
  = Troubleshooting =
110
 
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: 2.8
7
  Tested up to: 4.6.1
8
+ Stable tag: 1.2.2
9
  License: GPLv2 or later
10
 
11
  Add HTML, CSS and javascript code to your pages and posts easily using shortcodes.
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.
45
  2. In the admin panel under plugins activate Insert Html Snippet.
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. =
55
 
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
 
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 =
114
 
widget.php CHANGED
@@ -11,7 +11,7 @@ class Xyz_Insert_Html_Widget extends WP_Widget {
11
 
12
 
13
  /** constructor -- name this the same as the class above */
14
- function Xyz_Insert_Html_Widget() {
15
  parent::__construct(false, $name = 'Insert Html Snippet');
16
  }
17
 
11
 
12
 
13
  /** constructor -- name this the same as the class above */
14
+ function __construct() {
15
  parent::__construct(false, $name = 'Insert Html Snippet');
16
  }
17