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
← All changes | admin/header.php +110 -24 1.2trunk View file →
@@ -1,37 +1,123 @@
1 +<?php
2 + if ( ! defined( 'ABSPATH' ) )
3 + exit;
4 +?>
1 5 <style>
2 - a.xyz_header_link:hover{text-decoration:underline;}
3 - .xyz_header_link{text-decoration:none;}
6 + a.xyz_header_link:hover{text-decoration:underline;}
7 + .xyz_header_link{text-decoration:none;}
4 8 </style>
5 9
6 -<?php
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 +}
7 15
8 -if(get_option('xyz_credit_link')=="0"){
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_ihs_system_notice_area_style1" id="xyz_ihs_system_notice_area">
53 +Thank you for enabling backlink.
54 + &nbsp;&nbsp;&nbsp;<span id="xyz_ihs_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")){
9 75 ?>
10 -<div style="float:left;background-color: #FFECB3;border-radius:5px;padding: 0px 5px;margin-top: 10px;border: 1px solid #E0AB1B" id="xyz_backlink_div">
11 -
12 - Please do a favour by enabling backlink to our site. <a id="xyz_ihs_backlink" style="cursor: pointer;" >Okay, Enable</a>.
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>.
13 79 <script type="text/javascript">
14 80
15 81 jQuery(document).ready(function() {
82 + jQuery('#xyz_ihs_backlink').click(function(){
83 + xyz_ihs_filter_blink(1)
84 + });
16 85
17 - jQuery('#xyz_ihs_backlink').click(function() {
18 - var dataString = {
19 - action: 'ajax_backlink',
20 - enable: 1
21 - };
86 + jQuery('#xyz_ihs_dismiss').click(function(){
87 + xyz_ihs_filter_blink(-1)
88 + });
22 89
23 - jQuery.post(ajaxurl, dataString, function(response) {
24 - jQuery("#xyz_backlink_div").html('Thank you for enabling backlink !');
25 - jQuery("#xyz_backlink_div").css('background-color', '#D8E8DA');
26 - jQuery("#xyz_backlink_div").css('border', '1px solid #0F801C');
27 - });
28 - });
29 -});
90 + function xyz_ihs_filter_blink(stat){
30 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 +
31 117 </script>
32 118 </div>
33 - <?php
119 + <?php
34 120 }
35 121 ?>
36 122
37 123 <style>
@@ -51,15 +137,15 @@
51 137 <div style="margin-top: 10px">
52 138 <table style="float:right; ">
53 139 <tr>
54 140 <td style="float:right;" >
55 - <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>
141 + <a class="xyz_header_link" style="margin-left:8px;margin-right:12px;" target="_blank" href="https://xyzscripts.com/donate/5">Donate</a>
56 142 </td>
57 143 <td style="float:right;">
58 - <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://kb.xyzscripts.com/category/insert-html-snippet/">FAQ</a>
144 + <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-html-snippet/faq/">FAQ</a>
59 145 </td>
60 146 <td style="float:right;">
61 - <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://docs.xyzscripts.com/category/insert-html-snippet/">Docs</a>
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>
62 148 </td>
63 149 <td style="float:right;">
64 150 <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://xyzscripts.com/wordpress-plugins/insert-html-snippet/details">About</a>
65 151 </td>
@@ -70,5 +156,5 @@
70 156 </tr>
71 157 </table>
72 158 </div>
73 159
74 -<div style="clear: both"></div>
160 +<div style="clear: both"></div>