| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) | |
| 3 | - exit; | |
| 2 | + if ( ! defined( 'ABSPATH' ) ) | |
| 3 | + exit; | |
| 4 | 4 | ?> |
| 5 | 5 | <style> |
| 6 | 6 | a.xyz_header_link:hover{text-decoration:underline;} |
| 7 | 7 | .xyz_header_link{text-decoration:none;} |
| @@ -7,19 +7,17 @@ | ||
| 7 | 7 | .xyz_header_link{text-decoration:none;} |
| 8 | 8 | </style> |
| 9 | 9 | |
| 10 | 10 | <?php |
| 11 | -if(isset($_POST['xyz_ips_pre_ads'])){ | |
| 12 | - $xyz_ips_pre_ads = intval($_POST['xyz_ips_pre_ads']); | |
| 13 | - update_option('xyz_ips_premium_version_ads',$xyz_ips_pre_ads); | |
| 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 | 14 | } |
| 15 | 15 | |
| 16 | 16 | /* |
| 17 | -if(get_option('xyz_ips_premium_version_ads')==1){ | |
| 17 | +if(get_option('xyz_ihs_premium_version_ads')==1){?> | |
| 18 | +<div id="xyz-ihs-premium"> | |
| 18 | 19 | |
| 19 | - ?> | |
| 20 | -<div id="xyz-ips-premium"> | |
| 21 | - | |
| 22 | 20 | <div style="float: left; padding: 0 5px"> |
| 23 | 21 | <h2 style="vertical-align: middle;"> |
| 24 | 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 |
| 25 | 23 | </h2> |
| @@ -26,14 +24,14 @@ | ||
| 26 | 24 | </div> |
| 27 | 25 | <div style="float: left; margin-top: 3px"> |
| 28 | 26 | <a target="_blank" |
| 29 | 27 | href="https://xyzscripts.com/members/product/purchase/XYZWPICSPRE"><img |
| 30 | - src="<?php echo plugins_url("images/orange_buynow.png",XYZ_INSERT_PHP_PLUGIN_FILE); ?>"> | |
| 28 | + src="<?php echo plugins_url("images/orange_buynow.png",XYZ_INSERT_HTML_PLUGIN_FILE); ?>"> | |
| 31 | 29 | </a> |
| 32 | 30 | </div> |
| 33 | 31 | <div style="float: left; padding: 0 5px"> |
| 34 | 32 | <h2 style="vertical-align: middle;text-shadow: 1px 1px 1px #686868"> |
| 35 | - ( <a href="<?php echo admin_url('admin.php?page=insert-php-code-snippet-about');?>">Compare Features</a> ) | |
| 33 | + ( <a href="<?php echo admin_url('admin.php?page=insert-html-snippet-about');?>">Compare Features</a> ) | |
| 36 | 34 | </h2> |
| 37 | 35 | </div> |
| 38 | 36 | </div> |
| 39 | 37 | <?php |
| @@ -39,31 +37,23 @@ | ||
| 39 | 37 | <?php |
| 40 | 38 | } |
| 41 | 39 | */ |
| 42 | 40 | |
| 43 | -if($_POST && isset($_POST['xyz_ips_credit'])) | |
| 44 | -{ | |
| 45 | - if (! isset( $_REQUEST['_wpnonce'] )|| ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ips-psetting_')){ | |
| 46 | - wp_nonce_ays( 'ips-psetting_' ); | |
| 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'); | |
| 47 | 45 | exit; |
| 48 | 46 | } |
| 49 | - $xyz_ips_credit_link=sanitize_text_field($_POST['xyz_ips_credit']); | |
| 50 | - update_option('xyz_credit_link', $xyz_ips_credit_link); | |
| 51 | -} | |
| 47 | + update_option('xyz_credit_link',"ihs"); | |
| 52 | 48 | |
| 53 | 49 | |
| 54 | -if(!$_POST && isset($_GET['ips_blink'])&&isset($_GET['ips_blink'])=='en'){ | |
| 55 | - if (! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'],'ips-blk')){ | |
| 56 | - wp_nonce_ays( 'ips-blk'); | |
| 57 | - exit; | |
| 58 | - } | |
| 59 | - update_option('xyz_credit_link',"ips"); | |
| 50 | + | |
| 60 | 51 | ?> |
| 61 | -<div class="xyz_system_notice_area_style1" id="xyz_system_notice_area"> | |
| 52 | +<div class="xyz_ihs_system_notice_area_style1" id="xyz_ihs_system_notice_area"> | |
| 62 | 53 | Thank you for enabling backlink. |
| 63 | - <span id="xyz_system_notice_area_dismiss">Dismiss</span> | |
| 54 | + <span id="xyz_ihs_system_notice_area_dismiss">Dismiss</span> | |
| 64 | 55 | </div> |
| 65 | - | |
| 66 | 56 | <style type="text/css"> |
| 67 | 57 | .xyz_blink{ |
| 68 | 58 | display:none !important; |
| 69 | 59 | } |
| @@ -70,29 +60,40 @@ | ||
| 70 | 60 | </style> |
| 71 | 61 | <?php |
| 72 | 62 | } |
| 73 | 63 | |
| 74 | -if((get_option('xyz_credit_link')=="0")&&(get_option('xyz_ips_credit_dismiss')=="0")){ | |
| 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 | 75 | ?> |
| 76 | -<div style="float:left;background-color: #FFECB3;border-radius:5px;padding: 0px 5px;margin-top: 10px;border: 1px solid #E0AB1B" id="xyz_ips_backlink_div"> | |
| 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 | 77 | |
| 78 | - Please do a favour by enabling backlink to our site. <a id="xyz_ips_backlink" style="cursor: pointer;" >Okay, Enable</a>. <a id="xyz_ips_dismiss" style="cursor: pointer;" >Dismiss</a>. | |
| 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 | 79 | <script type="text/javascript"> |
| 80 | - jQuery(document).ready(function() { | |
| 81 | - jQuery('#xyz_ips_backlink').click(function(){ | |
| 82 | - xyz_filter_blink(1) | |
| 80 | + | |
| 81 | + jQuery(document).ready(function() { | |
| 82 | + jQuery('#xyz_ihs_backlink').click(function(){ | |
| 83 | + xyz_ihs_filter_blink(1) | |
| 83 | 84 | }); |
| 84 | 85 | |
| 85 | - jQuery('#xyz_ips_dismiss').click(function(){ | |
| 86 | - xyz_filter_blink(-1) | |
| 86 | + jQuery('#xyz_ihs_dismiss').click(function(){ | |
| 87 | + xyz_ihs_filter_blink(-1) | |
| 87 | 88 | }); |
| 88 | 89 | |
| 89 | - function xyz_filter_blink(stat){ | |
| 90 | + function xyz_ihs_filter_blink(stat){ | |
| 90 | 91 | |
| 91 | - <?php $ajax_fltr_nonce = wp_create_nonce( "xyz-ips-blink" );?> | |
| 92 | + <?php $ajax_ihs_nonce = wp_create_nonce( "xyz-ihs-blink" );?> | |
| 92 | 93 | var dataString = { |
| 93 | - action: 'ips_backlink', | |
| 94 | - security:'<?php echo $ajax_fltr_nonce; ?>', | |
| 94 | + action: 'ihs_backlink', | |
| 95 | + security:'<?php echo $ajax_ihs_nonce; ?>', | |
| 95 | 96 | enable: stat |
| 96 | 97 | }; |
| 97 | 98 | |
| 98 | 99 | jQuery.post(ajaxurl, dataString, function(response) { |
| @@ -97,16 +98,16 @@ | ||
| 97 | 98 | |
| 98 | 99 | jQuery.post(ajaxurl, dataString, function(response) { |
| 99 | 100 | |
| 100 | 101 | if(response==1){ |
| 101 | - jQuery("#xyz_ips_backlink_div").html('Thank you for enabling backlink!'); | |
| 102 | - jQuery("#xyz_ips_backlink_div").css('background-color', '#D8E8DA'); | |
| 103 | - jQuery("#xyz_ips_backlink_div").css('border', '1px solid #0F801C'); | |
| 104 | - jQuery("select[id=xyz_ips_credit] option[value=ips]").attr("selected", true); | |
| 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); | |
| 105 | 106 | } |
| 106 | 107 | |
| 107 | 108 | if(response==-1){ |
| 108 | - jQuery("#xyz_ips_backlink_div").remove(); | |
| 109 | + jQuery("#xyz_ihs_backlink_div").remove(); | |
| 109 | 110 | |
| 110 | 111 | } |
| 111 | 112 | |
| 112 | 113 | }); |
| @@ -136,21 +137,21 @@ | ||
| 136 | 137 | <div style="margin-top: 10px"> |
| 137 | 138 | <table style="float:right; "> |
| 138 | 139 | <tr> |
| 139 | 140 | <td style="float:right;" > |
| 140 | - <a class="xyz_header_link" style="margin-left:8px;margin-right:12px;" target="_blank" href="http://xyzscripts.com/donate/5">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> | |
| 141 | 142 | </td> |
| 142 | 143 | <td style="float:right;"> |
| 143 | - <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-php-code-snippet/faq/">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> | |
| 144 | 145 | </td> |
| 145 | 146 | <td style="float:right;"> |
| 146 | - <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://help.xyzscripts.com/docs/insert-php-code-snippet/">Readme</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> | |
| 147 | 148 | </td> |
| 148 | 149 | <td style="float:right;"> |
| 149 | - <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="https://xyzscripts.com/wordpress-plugins/insert-php-code-snippet/details">About</a> | |
| 150 | + <a class="xyz_header_link" style="margin-left:8px;" target="_blank" href="http://xyzscripts.com/wordpress-plugins/insert-html-snippet/details">About</a> | |
| 150 | 151 | </td> |
| 151 | 152 | <td style="float:right;"> |
| 152 | - <a class="xyz_header_link" target="_blank" href="https://xyzscripts.com">XYZScripts</a> | |
| 153 | + <a class="xyz_header_link" target="_blank" href="http://xyzscripts.com">XYZScripts</a> | |
| 153 | 154 | </td> |
| 154 | 155 | |
| 155 | 156 | </tr> |
| 156 | 157 | </table> |