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 / header.php

header.php in Insert Html Snippet trunk, at admin/header.php

161 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) )
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_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")){
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
123 <style>
124 #text {margin:50px auto; width:500px}
125 .hotspot {color:#900; padding-bottom:1px; border-bottom:1px dotted #900; cursor:pointer}
126
127 #tt {position:absolute; display:block; }
128 #tttop {display:block; height:5px; margin-left:5px;}
129 #ttcont {display:block; padding:2px 10px 3px 7px; margin-left:-400px; background:#666; color:#FFF}
130 #ttbot {display:block; height:5px; margin-left:5px; }
131 </style>
132
133
134
135
136
137 <div style="margin-top: 10px">
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>
151 </td>
152 <td style="float:right;">
153 <a class="xyz_header_link" target="_blank" href="http://xyzscripts.com">XYZScripts</a>
154 </td>
155
156 </tr>
157 </table>
158 </div>
159
160 <div style="clear: both"></div>
161