WP Lightbox 2
The documentation files are missing! Try
downloading and
re-installing this lightbox plugin.';
}
echo $text;
?>
1)
$opacity = 1.0;
$output = 'rgba('.implode(",",$rgb).','.$opacity.')';
} else {
$output = 'rgb('.implode(",",$rgb).')';
}
return $output;
}
class wp_lightbox_2{
// required variables
private $plugin_url;
private $plugin_path;
private $version;
public $options;
public $parametrs;
function __construct(){
$this->plugin_url = trailingslashit( plugins_url('', __FILE__ ) );
$this->plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) );
$this->version = 1.0;
require_once($this->plugin_path.'includes/install_database.php');
$this->parametrs = new wp_lightbox2_database_params();
$this->call_base_filters();
$this->create_admin_menu();
}
private function create_admin_menu(){
require_once($this->plugin_path.'admin/admin_menu.php');
$admin_menu = new wp_lightbox_admin_menu(array('plugin_url' => $this->plugin_url,'plugin_path' => $this->plugin_path,'databese_parametrs' =>$this->parametrs));
add_action('admin_menu', array($admin_menu,'create_menu'));
}
public function registr_requeried_scripts(){
wp_register_script('angularejs',$this->plugin_url.'admin/scripts/angular.min.js');
//wp_register_script('youtube_front_end_api_js',$this->plugin_url.'fornt_end/scripts/youtube_plus_front_end.js',array('jquery'));
//wp_register_script('youtube_api_js',"https://www.youtube.com/iframe_api",array('youtube_front_end_api_js'));
wp_register_style('admin_style_wp_lightbox',$this->plugin_url.'admin/styles/admin_themplate.css');
wp_register_style('jquery-ui-style',$this->plugin_url.'admin/styles/jquery-ui.css');
}
public function enqueue_requeried_scripts(){
wp_enqueue_style("jquery-ui-style");
wp_enqueue_script("jquery-ui-slider");
}
public function call_base_filters(){
add_action( 'init', array($this,'registr_requeried_scripts') );
add_action( 'admin_head', array($this,'enqueue_requeried_scripts') );
}
}
$wp_lightbox_2 = new wp_lightbox_2();