PluginProbe
Insert Html Snippet / trunk
Insert Html Snippet vtrunk
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
insert-html-snippet / admin / admin-notices.php

admin-notices.php in Insert Html Snippet trunk, at admin/admin-notices.php

79 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 function xyz_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 $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>
31 #TB_window { width:50% !important; height: 100px !important;
32 margin-left: 25% !important;
33 left: 0% !important;
34 }
35 </style>
36 <script type="text/javascript">
37 function xyz_ihs_share_snippet(){
38 tb_show("Share on","#TB_inline?width=500&amp;height=75&amp;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_ihs_rate_btn" target="_blank">Rate it 5�
45 \'s on wordpress</a>';
46
47 if(get_option('xyz_credit_link')=="0")
48 echo '<a href="'.$xyz_ihs_link.'" class="button xyz_ihs_backlink_btn xyz_blink">Enable Backlink</a>';
49
50 echo '<a class="button xyz_ihs_share_btn" onclick=xyz_ihs_share_snippet();>Share on</a>
51
52 <a href="https://xyzscripts.com/donate/5" class="button xyz_ihs_donate_btn" target="_blank">Donate</a>
53
54
55
56 <a href="'.$xyz_ihs_notice.'" class="button xyz_ihs_show_btn">Don\'t Show This Again</a>
57 </p>
58
59 <div id="show_share_icons_ihs" style="display: none;">
60 <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>
61 <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>
62 <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>
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 ?>