plugin_url=$params['plugin_url']; else $this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__))); // set plugin path if(isset($params['plugin_path'])) $this->plugin_path=$params['plugin_path']; else $this->plugin_path=trailingslashit(dirname(plugin_dir_path('',__FILE__))); $this->databese_settings=$params['databese_settings']; /*ajax parametrs*/ add_action( 'wp_ajax_save_in_databese_lightbox2', array($this,'save_parametrs') ); } public function save_parametrs(){ $initial_values= $this->databese_settings; $kk=1; if(isset($_POST['wp_lightbox_2_general_settings_page']) && wp_verify_nonce( $_POST['wp_lightbox_2_general_settings_page'],'wp_lightbox_2_general_settings_page')){ foreach($initial_values as $key => $value){ if(isset($_POST[$key])){ update_option($key,stripslashes($_POST[$key])); } else{ $kk=0; printf('error saving %s
',$key); } } } else{ die('Authorization Problem '); } if($kk==0){ exit; } die('sax_normala'); } /*#################### CONTROLERRR ########################*/ /*#################### CONTROLERRR ########################*/ /*#################### CONTROLERRR ########################*/ public function controller_page(){ $this->display_table_list_answers(); } private function display_table_list_answers(){ $initial_values= $this->databese_settings; foreach($initial_values as $key => $value){ $$key=$value; } ?>

Lightbox General Settings

Lightbox General Settings  
Use Lightbox for all image links: ? value="1">
Enable lightbox in comments: ? value="1">
Show download link: ? value="1">
Overlay opacity: ? %
Show image info on top: ? value="1">
Reduce large images to fit smaller screens: ? value="1">
Minimum margin from top: ? (default: 0)
Lightbox Animation duration: ? (milliseconds)
Additional text below image info: ? (default: none)
  1. You can use WordPress image galleries and have them grouped and auto-lightboxed: [gallery link="file"]
  2. You can also add a rel="lightbox" attribute to any link tag to activate the lightbox. For example:
    	<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
    Optional: Use the title attribute if you want to show a caption.
  3. If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
    	<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
    	<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
    	<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
    No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
  4. To disable lightboxing of an image link, just set any other rel-attribute: rel="nobox"