Changeset 710830
- Timestamp:
- 05/10/2013 10:31:41 AM (13 years ago)
- File:
-
- 1 edited
-
wp-smart-cookie-allow/trunk/index.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-smart-cookie-allow/trunk/index.php
r710339 r710830 2 2 /* 3 3 Plugin Name: Cookies-allow 4 Plugin URI: http:// catalystwebexperts.com/4 Plugin URI: http://wordpress.org/extend/plugins/wp-smart-cookie-allow 5 5 Description: A simple Permission for Cookies wordpress plugin 6 Version: 1. 07 Author: Jitesh Dhamaniya8 Author URI: http:// catalystwebexperts.com6 Version: 1.1 7 Author: Wuptii 8 Author URI: http://wordpress.org/extend/plugins/wp-smart-cookie-allow 9 9 License: GPL 10 10 */ … … 38 38 39 39 // Style 40 wp_enqueue_style( 'colorboxstylesheet', plugins_url('/assets/colorbox.css', __FILE__) );40 //wp_enqueue_style( 'colorboxstylesheet', plugins_url('/assets/colorbox.css', __FILE__) ); 41 41 42 42 // Script 43 wp_enqueue_script( 'colorbox', plugins_url('/assets/jquery.colorbox.js', __FILE__) );43 //wp_enqueue_script( 'colorbox', plugins_url('/assets/jquery.colorbox.js', __FILE__) ); 44 44 //wp_enqueue_script( 'noty', plugins_url('/assets/noty-js.php', __FILE__) ); 45 45 ?> … … 49 49 50 50 <script> 51 jQuery(window).load(function(){ 52 53 /* jQuery.colorbox({inline:true, href:"#noty",width:"100%", opacity:0,overlayClose:false, escKey:false,onLoad: function() { 54 jQuery('#cboxClose').remove(); */ 55 }// on load 56 }); 51 52 jQuery(document).ready(function() { 57 53 58 54 jQuery("#noty_form").submit(function(event){ … … 104 100 jQuery(this).find("input, checkbox").removeAttr("disabled"); 105 101 //jQuery.fn.colorbox.close(); 106 jQuery("#upper_noty").hide();102 jQuery("#upper_noty").hide(); 107 103 108 104 } … … 135 131 </style> 136 132 137 <div id="upper_noty" style="background:#<?php echo get_option('cookie_text_bg'); ?>; border:#<?php echo get_option('cookie_text_brd'); ?> 1px solid;"> 138 139 <div id="noty" style="padding:5px; width:300px; margin:auto;"> 140 <form method="post" id="noty_form"> 141 142 <div style="font-size:12px;"><?php echo get_option('cookie_text_data'); ?></div> 143 <br /> 144 <input type="hidden" name="noty_time" id="noty_time" value="<?php echo get_option('cookie_text_time'); ?>" /><input type="submit" value="Allow" /> 145 146 <script> 133 134 <script> 147 135 function redir() { 148 136 149 if()150 137 if(history.length==1) 151 138 { … … 161 148 } 162 149 </script> 163 150 <div id="upper_noty" style="background:#<?php echo get_option('cookie_text_bg'); ?>; border:#<?php echo get_option('cookie_text_brd'); ?> 1px solid;"> 151 152 <div id="noty" style="padding:5px; width:300px; margin:auto;"> 153 <form method="post" id="noty_form"> 154 155 <div style="font-size:12px;"><?php echo get_option('cookie_text_data'); ?></div> 156 <br /> 157 <input type="hidden" name="noty_time" id="noty_time" value="<?php echo get_option('cookie_text_time'); ?>" /><input type="submit" value="Allow" /> 158 164 159 <input type="button" onClick="redir();" style="float:right;" value="Don't Allow" /> 165 160 … … 236 231 237 232 <input type="hidden" name="action" value="update" /> 238 <input type="hidden" name="page_options" value="cookie_text_data" /> 239 <input type="hidden" name="page_options" value="cookie_text_url" /> 240 <input type="hidden" name="page_options" value="cookie_text_time" /> 241 <input type="hidden" name="page_options" value="cookie_text_brd" /> 242 <input type="hidden" name="page_options" value="cookie_text_bg" /> 243 233 <input type="hidden" name="page_options" value="cookie_text_data,cookie_text_url,cookie_text_time,cookie_text_brd,cookie_text_bg" /> 244 234 <p> 245 235 <input type="submit" value="<?php _e('Save Changes') ?>" class="button" />
Note: See TracChangeset
for help on using the changeset viewer.