Plugin Directory

Changeset 710830


Ignore:
Timestamp:
05/10/2013 10:31:41 AM (13 years ago)
Author:
Wuptii
Message:

Update in index.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-smart-cookie-allow/trunk/index.php

    r710339 r710830  
    22/*
    33Plugin Name: Cookies-allow
    4 Plugin URI: http://catalystwebexperts.com/
     4Plugin URI: http://wordpress.org/extend/plugins/wp-smart-cookie-allow
    55Description: A simple Permission for Cookies wordpress plugin
    6 Version: 1.0
    7 Author: Jitesh Dhamaniya
    8 Author URI: http://catalystwebexperts.com
     6Version: 1.1
     7Author: Wuptii
     8Author URI: http://wordpress.org/extend/plugins/wp-smart-cookie-allow
    99License: GPL
    1010*/
     
    3838
    3939// Style
    40 wp_enqueue_style( 'colorboxstylesheet', plugins_url('/assets/colorbox.css', __FILE__) );
     40//wp_enqueue_style( 'colorboxstylesheet', plugins_url('/assets/colorbox.css', __FILE__) );
    4141
    4242// 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__) );
    4444//wp_enqueue_script( 'noty', plugins_url('/assets/noty-js.php', __FILE__) );
    4545?>
     
    4949
    5050<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() {
    5753       
    5854    jQuery("#noty_form").submit(function(event){
     
    104100            jQuery(this).find("input, checkbox").removeAttr("disabled");
    105101            //jQuery.fn.colorbox.close();
    106 jQuery("#upper_noty").hide();
     102    jQuery("#upper_noty").hide();
    107103
    108104        }
     
    135131</style>
    136132
    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>
    147135  function redir() {
    148136   
    149     if()
    150137    if(history.length==1)   
    151138    {
     
    161148}
    162149  </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 
    164159  <input type="button" onClick="redir();" style="float:right;" value="Don't Allow" />
    165160 
     
    236231
    237232<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" />
    244234<p>
    245235<input type="submit" value="<?php _e('Save Changes') ?>" class="button" />
Note: See TracChangeset for help on using the changeset viewer.