| @@ -0,0 +1,319 @@ | ||
| <?php | ||
|
|
||
| class coming_soon_front_end{ | ||
| private $menu_name; | ||
| private $plugin_url; | ||
| private $databese_parametrs; | ||
| private $params; | ||
| private $list_of_animations; | ||
|
|
||
| function __construct($params){ | ||
|
|
||
| $this->menu_name=$params['menu_name']; | ||
| $this->databese_parametrs=$params['databese_parametrs']; | ||
| if(isset($params['plugin_url'])) | ||
| $this->plugin_url=$params['plugin_url']; | ||
| else | ||
| $this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__))); | ||
|
|
||
| add_action( 'wp_ajax_coming_soon_page_save_user_mail', array($this,'save_mailing_list') ); | ||
| add_action( 'wp_ajax_nopriv_coming_soon_page_save_user_mail', array($this,'save_mailing_list') ); | ||
| $this->params=$this->generete_params(); | ||
| } | ||
| private function generete_params(){ | ||
|
|
||
| foreach($this->databese_parametrs as $param_array_key => $param_value){ | ||
| foreach($this->databese_parametrs[$param_array_key] as $key => $value){ | ||
| $front_end_parametrs[$key]=get_option($key,$value); | ||
| } | ||
| } | ||
|
|
||
| return $front_end_parametrs; | ||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
| public function create_fornt_end(){ | ||
| if($this->params['coming_soon_page_mode']=='on'){ | ||
| //if user not login page is redirect on coming soon template page | ||
| if ( (!is_user_logged_in() && !$this->is_in_except()) || (isset($_GET['special_variable_for_live_previev']) && $_GET['special_variable_for_live_previev']=='sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd') ) | ||
| { | ||
| //get path of our coming soon display page and redirecting | ||
| $this->generete_front_end_html(); | ||
| exit(); | ||
| } | ||
|
|
||
| } | ||
| else | ||
| if((isset($_GET['special_variable_for_live_previev']) && $_GET['special_variable_for_live_previev']=='sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd')){ | ||
| $this->generete_front_end_html(); | ||
| exit(); | ||
| } | ||
|
|
||
| } | ||
|
|
||
| public function generete_front_end_html(){ | ||
| ?><!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <title><?php echo $this->params['coming_soon_page_page_seo_title']; ?></title> | ||
| <meta name="viewport" content="width=device-width" /> | ||
| <meta name="viewport" content="initial-scale=1.0" /> | ||
| <meta name="robots" content="<?php if((int)$this->params['coming_soon_page_enable_search_robots']) echo "index, follow"; else echo "noindex, nofollow"; ?>" /> | ||
| <meta name="description" content="<?php echo $this->params['coming_soon_page_meta_description']; ?>"> | ||
| <meta name="keywords" content="<?php echo $this->params['coming_soon_page_meta_keywords']; ?>"> | ||
| <?php | ||
| wp_print_scripts('jquery'); | ||
| wp_print_scripts('coming-soon-script'); | ||
| wp_print_styles('coming-soon-style'); | ||
| $this->generete_front_styles(); | ||
| $this->generete_front_javascript(); | ||
| ?> | ||
| </head> | ||
| <body> | ||
| <?php $this->content_html(); ?> | ||
| </body> | ||
| </html><?php | ||
| } | ||
| private function generete_front_javascript(){ | ||
| ?> | ||
| <script type="text/javascript"> | ||
| var loading_gif_url="<?php echo $this->plugin_url.'images/loading.gif' ?>"; | ||
| var coming_soon_ajax_mail_url="<?php echo admin_url( 'admin-ajax.php?action=coming_soon_page_save_user_mail' ); ?>"; | ||
| var curen_site_home_page="<?php echo site_url(); ?>"; | ||
| var animation_parametrs=[] | ||
|
|
||
| </script> | ||
| <?php | ||
|
|
||
| } | ||
| private function generete_front_styles(){ | ||
| ?> | ||
| <style> | ||
| <?php | ||
| $this->background_css(); | ||
| $this->content_css(); | ||
| $this->generete_logo_css(); | ||
| $this->generete_title_css(); | ||
| $this->generete_message_css(); | ||
| $this->generete_socialis_css(); | ||
|
|
||
| ?> | ||
| </style> | ||
| <?php | ||
| } | ||
|
|
||
|
|
||
| /*################################################################################### Except Page ###########################################################################*/ | ||
| private function is_in_except(){ | ||
| $ips=json_decode(stripslashes($this->params['coming_soon_page_showed_ips']), true); | ||
| if(!$ips) | ||
| $ips=array(); | ||
| $in_list = in_array($this->get_real_ip(), $ips) && 1; | ||
| if($in_list) | ||
| return true; | ||
| return false; | ||
| } | ||
| private function get_real_ip() { | ||
| if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet | ||
| { | ||
| $ip=$_SERVER['HTTP_CLIENT_IP']; | ||
| } | ||
| elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy | ||
| { | ||
| $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; | ||
| } | ||
| else | ||
| { | ||
| $ip=$_SERVER['REMOTE_ADDR']; | ||
| } | ||
| return $ip; | ||
| } | ||
| /*################################################################################### Background ###########################################################################*/ | ||
| private function background_css(){ | ||
| switch($this->params['coming_soon_page_radio_backroun']){ | ||
| case 'back_color' : | ||
| echo 'body{ background-color:'.$this->params['coming_soon_page_background_color'].'; }'; | ||
| break; | ||
| case 'back_imge' : | ||
| echo 'body{ background:url("'.$this->params['coming_soon_page_background_img'].'") no-repeat center center fixed; }'; | ||
| break; | ||
|
|
||
| } | ||
| } | ||
|
|
||
|
|
||
| /*################################################################################### Content ###########################################################################*/ | ||
| private function content_html(){ | ||
| // open content conteiner | ||
| echo '<div id="main_inform_div"><span class="aligment"><div class="information"><center>'; | ||
| $this->create_logo_html(); | ||
| $this->create_title_html(); | ||
| $this->create_message_html(); | ||
| $this->create_socialis_html(); | ||
| //close content conteiner | ||
| echo '</center></div></span></div> '; | ||
| } | ||
| private function content_css(){ | ||
| $aligment_position='text-align:center; vertical-align:middle;'; | ||
| echo ".information{ background: rgba(255,255,255,0.55); border-radius:8px; max-width:740px; padding-right:10px;padding-left:10px;padding-bottom:10px; }\r\n"; | ||
| echo ".aligment{".$aligment_position.";}\r\n"; | ||
| echo "#main_inform_div{padding:15px;}\r\n"; | ||
|
|
||
|
|
||
| } | ||
| private function content_javascript(){ | ||
| } | ||
| /*################################################################################### LOGO ###########################################################################*/ | ||
| private function create_logo_html(){ | ||
| if($this->params['coming_soon_page_logo_enable']){ | ||
| ?><div id="logo" > | ||
| <img id="logo_img" src="<?php echo stripslashes($this->params['coming_soon_page_page_logo']); ?>" /> | ||
| </div> | ||
| <?php } | ||
| } | ||
| private function generete_logo_css(){ | ||
| echo '#logo{margin-top:10px;text-align:center;}'; | ||
| echo '#logo img{max-height:210px;}'; | ||
|
|
||
| } | ||
| private function generete_logo_javascript(){ | ||
| } | ||
| /*################################################################################### Title ###########################################################################*/ | ||
| private function create_title_html(){ | ||
| if($this->params['coming_soon_page_title_enable']){ | ||
| ?> | ||
| <div id="title_style" > | ||
| <h1 id="title_h1"><?php echo stripslashes($this->params['coming_soon_page_page_title']) ?></h1> | ||
| </div> | ||
| <?php | ||
| } | ||
| } | ||
| private function generete_title_css(){ | ||
| echo '#title_style{margin-top:10px;text-align:center;}'; | ||
| echo '#title_h1{font-family:Times New Roman,Times,Georgia,serif;font-size:55px;color:#000000;}'; | ||
|
|
||
| } | ||
| private function generete_title_javascript(){ | ||
|
|
||
| } | ||
| /*################################################################################### Message ###########################################################################*/ | ||
| private function create_message_html(){ | ||
| if($this->params['coming_soon_page_message_enable']){ | ||
| ?> | ||
| <div id="descrip"> | ||
| <?php echo stripslashes($this->params['coming_soon_page_page_message']) ?> | ||
| </div> | ||
|
|
||
| <?php | ||
| } | ||
| } | ||
| private function generete_message_css(){ | ||
| echo '#descrip{margin-top:10px;text-align:center;}'; | ||
|
|
||
| } | ||
| private function generete_message_javascript(){ | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| /*################################################################################### Socialis ###########################################################################*/ | ||
| private function create_socialis_html(){ | ||
| if($this->params['coming_soon_page_socialis_enable']){ | ||
| ?> | ||
| <div id="soc_icons" class="soc_icon_coneiner"> | ||
| <?php if($this->params['coming_soon_page_facebook']){ ?> | ||
| <span class="soc_icon"> | ||
| <a href="<?php echo $this->params['coming_soon_page_facebook']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/facebook.png'; ?>" /></a> | ||
| </span> | ||
| <?php } ?> | ||
| <?php if($this->params['coming_soon_page_twitter']){ ?> | ||
| <span class="soc_icon"> | ||
| <a href="<?php echo $this->params['coming_soon_page_twitter']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/twiter.png'; ?>" /></a> | ||
| </span> | ||
| <?php } ?> | ||
| <?php if($this->params['coming_soon_page_google_plus']){ ?> | ||
| <span class="soc_icon"> | ||
| <a href="<?php echo $this->params['coming_soon_page_google_plus']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/gmail.png'; ?>" /></a> | ||
| </span> | ||
| <?php } ?> | ||
| <?php if($this->params['coming_soon_page_youtube']){ ?> | ||
| <span class="soc_icon"> | ||
| <a href="<?php echo $this->params['coming_soon_page_youtube']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/youtobe.png'; ?>" /></a> | ||
| </span> | ||
| <?php } ?> | ||
| <?php if($this->params['coming_soon_page_instagram']){ ?> | ||
| <span class="soc_icon"> | ||
| <a href="<?php echo $this->params['coming_soon_page_instagram']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/instagram.png'; ?>" /></a> | ||
| </span> | ||
| <?php } ?> | ||
| </div> | ||
| <?php | ||
| } | ||
| } | ||
| private function generete_socialis_css(){ | ||
| echo '#soc_icons{text-align:center;}'; | ||
| echo '#soc_icons img{margin-top:10px; }'; | ||
|
|
||
| } | ||
| private function generete_socialis_javascript(){ | ||
| } | ||
|
|
||
| private function darkest_brigths($color,$pracent){ | ||
| $new_color=$color; | ||
| if(!(strlen($new_color==6) || strlen($new_color)==7)) | ||
| { | ||
| return $color; | ||
| } | ||
| $color_vandakanishov=strpos($new_color,'#'); | ||
| if($color_vandakanishov == false) { | ||
| $new_color= str_replace('#','',$new_color); | ||
| } | ||
| $color_part_1=substr($new_color, 0, 2); | ||
| $color_part_2=substr($new_color, 2, 2); | ||
| $color_part_3=substr($new_color, 4, 2); | ||
| $color_part_1=dechex( (int) (hexdec( $color_part_1 ) - (hexdec( $color_part_1 )* $pracent / 100 ))); | ||
| $color_part_2=dechex( (int) (hexdec( $color_part_2) - (( ( hexdec( $color_part_2 ) ) ) * $pracent / 100 ))); | ||
| $color_part_3=dechex( (int) (hexdec( $color_part_3 ) - (( ( hexdec( $color_part_3 ) ) ) * $pracent / 100 ))); | ||
| if(strlen($color_part_1)<2) $color_part_1="0".$color_part_1; | ||
| if(strlen($color_part_2)<2) $color_part_2="0".$color_part_2; | ||
| if(strlen($color_part_3)<2) $color_part_3="0".$color_part_3; | ||
|
|
||
| $new_color=$color_part_1.$color_part_2.$color_part_3; | ||
| if($color_vandakanishov == false){ | ||
| return $new_color; | ||
| } | ||
| else{ | ||
| return '#'.$new_color; | ||
| } | ||
|
|
||
| } | ||
| /*################################################################################### OTHER FUNCTIONS ###########################################################################*/ | ||
| private function text_align($value){ | ||
| switch($value){ | ||
| case '0': | ||
| case 0 : | ||
| return 'left'; | ||
| break; | ||
| case '1': | ||
| case 1 : | ||
| return 'center'; | ||
| break; | ||
| case '2': | ||
| case 2 : | ||
| return 'right'; | ||
| break; | ||
| } | ||
| return $value; | ||
| } | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| ?> |
| @@ -0,0 +1,86 @@ | ||
| <?php | ||
|
|
||
| /// class for install databese | ||
|
|
||
| class install_database{ | ||
|
|
||
| public $installed_options; // all standart_options | ||
| private $plugin_url; | ||
|
|
||
| function __construct(){ | ||
|
|
||
| if(isset($params['plugin_url'])) | ||
| $this->plugin_url=$params['plugin_url']; | ||
| else | ||
| $this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__))); | ||
|
|
||
|
|
||
| $this->installed_options=array( | ||
| "general_save_parametr"=>array( | ||
| "coming_soon_page_mode" => "off", | ||
| ), | ||
| "search_engine_and_favicon"=>array( | ||
| "coming_soon_page_page_seo_title" => get_bloginfo('name' ), | ||
| "coming_soon_page_enable_search_robots" => "1", | ||
| "coming_soon_page_meta_keywords" => "", | ||
| "coming_soon_page_meta_description" => "", | ||
| ), | ||
| "except_page"=>array( | ||
| "coming_soon_page_showed_ips" => "", | ||
| ), | ||
| "coming_logo"=>array( | ||
| "coming_soon_page_page_logo" => $this->plugin_url.'images/template1/logo.png', | ||
| "coming_soon_page_logo_enable" => "1" | ||
| ), | ||
| "coming_title"=>array( | ||
| "coming_soon_page_title_enable" => "1", | ||
| "coming_soon_page_page_title" => "Coming Soon Page" | ||
| ), | ||
| "coming_message"=>array( | ||
| "coming_soon_page_message_enable" => "1", | ||
| "coming_soon_page_page_message" => "<h3>We will be back soon. View some useful information on our coming soon page, share it with friends</h3>" | ||
| ), | ||
| "coming_countdown"=>array( | ||
| ), | ||
| "coming_progressbar"=>array( | ||
| ), | ||
| "coming_subscribe"=>array( | ||
| ), | ||
| "coming_social_networks"=>array( | ||
| "coming_soon_page_socialis_enable" => "1", | ||
|
|
||
| "coming_soon_page_facebook" => "", | ||
| "social_facbook_bacground_image" => $this->plugin_url.'images/template1/facebook.png', | ||
| "coming_soon_page_twitter" => "", | ||
| "social_twiter_bacground_image" => $this->plugin_url.'images/template1/twiter.png', | ||
| "coming_soon_page_google_plus" => "", | ||
| "social_google_bacground_image" => $this->plugin_url.'images/template1/gmail.png', | ||
| "coming_soon_page_youtube" => "", | ||
| "social_youtobe_bacground_image" => $this->plugin_url.'images/template1/youtobe.png', | ||
| "coming_soon_page_instagram" => "", | ||
| "social_instagram_bacground_image" => $this->plugin_url.'images/template1/instagram.png', | ||
| ), | ||
| "coming_link_to_dashboard"=>array( | ||
| ), | ||
| "coming_background"=>array( | ||
| "coming_soon_page_radio_backroun" => "back_imge", | ||
| "coming_soon_page_background_color" => "#cacaca", | ||
| "coming_soon_page_background_img" => $this->plugin_url.'images/template1/background.jpg', | ||
| ), | ||
| "coming_content"=>array( | ||
| ), | ||
|
|
||
| "mailing_list"=>array( | ||
| ) | ||
| ); | ||
|
|
||
|
|
||
| } | ||
| public function install_databese(){ | ||
| foreach( $this->installed_options as $key => $option ){ | ||
| if( get_option($key,FALSE) === FALSE ){ | ||
| add_option($key,$option); | ||
| } | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,8 @@ | ||
| jQuery(window).resize(function(){ | ||
| jQuery('#main_inform_div').css('height',jQuery(window).height()); | ||
| jQuery('#main_inform_div').outerWidth(jQuery(window).width()); | ||
| }); | ||
| jQuery(document).ready(function(e) { | ||
| jQuery('#main_inform_div').css('height',jQuery(window).height()); | ||
| jQuery('#main_inform_div').outerWidth(jQuery(window).width()); | ||
| }); |
| @@ -0,0 +1,317 @@ | ||
| /*pro feature span*/ | ||
| .pro_feature{ | ||
| font-size:13px; | ||
| font-weight:bold; | ||
| color:rgba(10, 154, 62, 1); | ||
| } | ||
| .pro_feature_label{ | ||
| font-size:15px; | ||
| font-weight:bold; | ||
| color:rgba(10, 154, 62, 1); | ||
| } | ||
| /*Remove elements*/ | ||
| .remove_element{ | ||
| background-image:url(../../images/remove_element.png); | ||
| background-size:contain; | ||
| width: 21px; | ||
| height: 21px; | ||
| display: inline-block; | ||
| position: relative; | ||
| top: 4px; | ||
| margin-left: 7px; | ||
| cursor: pointer; | ||
| } | ||
| /*Coming Soon title*/ | ||
| .wp-picker-holder{ | ||
| position:absolute; | ||
| z-index: 9999; | ||
| } | ||
| .white{ | ||
| background-color: #fff !important; | ||
| } | ||
| .black{ | ||
| background-color:rgba(176, 176, 176, 0.07) !important; | ||
| } | ||
| .coming_title h1{ | ||
| font-family: serif; | ||
| /*color: #3AA3D4;*/ | ||
| } | ||
| .title_parametrs_image{ | ||
| height: 37px; | ||
| float: left; | ||
| } | ||
| .title_parametrs_image > img{ | ||
| height: 37px; | ||
|
|
||
| } | ||
| .coming_soon_main { | ||
| height: 45px; | ||
| background-color: #fff; | ||
| margin-right: 20px; | ||
| border: 1px solid #DADADA; | ||
| } | ||
| .wp-table.right_margin{ | ||
| margin-right:20px; | ||
| } | ||
|
|
||
| /*COMING SOON ENABLE RADIO*/ | ||
| .display_none{display:none;} | ||
| .cb-enable, .cb-disable, .cb-enable span, .cb-disable span { background: url(../../images/switch.gif) repeat-x; display: block; float: left; } | ||
| .cb-enable span, .cb-disable span { line-height: 30px; display: block; background-repeat: no-repeat; font-weight: bold; } | ||
| .cb-enable span { background-position: left -90px; padding: 0 10px; } | ||
| .cb-disable span { background-position: right -180px;padding: 0 10px; } | ||
| .cb-disable.selected { background-position: 0 -30px; } | ||
| .cb-disable.selected span { background-position: right -210px; color: #fff; } | ||
| .cb-enable.selected { background-position: 0 -60px; } | ||
| .cb-enable.selected span { background-position: left -150px; color: #fff; } | ||
| .switch label { cursor: pointer; } | ||
| .switch input { display: none; } | ||
| /*###################admin cuztomization grouped parametrs##############################*/ | ||
| /*coming soon header part styling*/ | ||
| #save_all_parametrs{ | ||
| margin-right:20px; | ||
| } | ||
| .save_all_paramss{ | ||
| width: 160px; | ||
| display: inline-block; | ||
| float: right; | ||
| } | ||
|
|
||
| .main_parametrs_group_div{ | ||
| float:left; | ||
| background-color:#fafafa; | ||
| display:inline-block; | ||
| width:100%; | ||
| box-sizing: border-box; | ||
| position: relative; | ||
| min-width: 430px; | ||
| border: 1px solid #e5e5e5; | ||
| -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); | ||
| box-shadow: 0 1px 1px rgba(0,0,0,.04); | ||
| margin-bottom: 20px; | ||
| padding: 0; | ||
| line-height: 1; | ||
| } | ||
| .left_sections{ | ||
| width:49%; | ||
| margin-right:1%; | ||
| float:left; | ||
| } | ||
| .right_sections{ | ||
| width:50%; | ||
| float:left; | ||
| } | ||
| @media screen and (max-width: 1156px){ | ||
| .left_sections{ | ||
| width:100%; | ||
| } | ||
| .right_sections{ | ||
| width:100%; | ||
| } | ||
| } | ||
| .main_parametrs_group_div:hover{ | ||
| border: 1px solid #D5D5D5; | ||
| } | ||
|
|
||
| .head_panel_div{ | ||
| cursor:pointer; | ||
| border-bottom:1px solid #e5e5e5; | ||
| } | ||
| .main_parametrs_group_div.closed_params .head_panel_div{ | ||
| border-bottom:0px; | ||
| } | ||
| .title_parametrs_group{ | ||
| display: inline-block; | ||
| -webkit-user-select: none; | ||
| -moz-user-select: none; | ||
| -ms-user-select: none; | ||
| user-select: none; | ||
| font-weight:bold; | ||
| font-size: 15px; | ||
| padding: 8px 12px; | ||
| margin: 0; | ||
| line-height: 1.4; | ||
| } | ||
| .open_or_closed{ | ||
| float:right; | ||
| height:20px; | ||
| right: 10px; | ||
| color: #aaa; | ||
| font: 400 20px/1 dashicons; | ||
| speak: none; | ||
| display: inline-block; | ||
| top: 8px; | ||
| position: relative; | ||
| -webkit-font-smoothing: antialiased; | ||
| -moz-osx-font-smoothing: grayscale; | ||
| text-decoration: none!important; | ||
| } | ||
| .head_panel_div:hover .open_or_closed{ | ||
| color:#777 | ||
| } | ||
| .open_or_closed:before{ | ||
| content: '\f142'; | ||
|
|
||
| } | ||
| .main_parametrs_group_div.closed_params .open_or_closed:before{ | ||
| content: '\f140'; | ||
| } | ||
| .main_parametrs_group_div.closed_params .inside_information_div{ | ||
| display:none; | ||
| } | ||
| .section_parametrs_table{ | ||
| border:0px !important; | ||
| } | ||
| .section_parametrs_table > tbody > tr:nth-child(odd){ | ||
| background-color:rgba(176, 176, 176, 0.07); | ||
| } | ||
| .section_parametrs_table > tbody > tr td{ | ||
| vertical-align:middle !important; | ||
| } | ||
| .section_parametrs_table > tbody > tr>td:nth-child(1){ | ||
| width:42%; | ||
| } | ||
| .desription_class{ | ||
| float: right; | ||
| cursor: default; | ||
| color: #0074a2; | ||
| font-size: 18px; | ||
| font-weight: bold; | ||
| border: 1px solid #000000; | ||
| border-radius: 200px; | ||
| height: 20px; | ||
| padding-left: 6px; | ||
| padding-right: 6px; | ||
| margin-left: 15px; | ||
| } | ||
|
|
||
| /*SAVING PARAMETRS*/ | ||
| button{ | ||
| webkit-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important; | ||
| -moz-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important; | ||
| -ms-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important; | ||
| -o-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important; | ||
| transition:0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important; | ||
| } | ||
| .save_section_parametrs{ | ||
| width: 100px; | ||
| text-align: left; | ||
| overflow:hidden; | ||
| } | ||
| .save_section_parametrs.padding_loading{ | ||
| width: 130px !important; | ||
| } | ||
| .save_all_section_parametrs{ | ||
| width: 130px; | ||
| text-align: left; | ||
| overflow:hidden; | ||
| } | ||
| .save_all_section_parametrs.padding_loading{ | ||
| width: 150px !important; | ||
| } | ||
| .save_section_parametrs{ | ||
| width: 100px; | ||
| text-align: left; | ||
| overflow:hidden; | ||
| } | ||
| .save_section_parametrs.padding_loading{ | ||
| width: 130px !important; | ||
| } | ||
| .saving_in_progress{ | ||
| position: relative; | ||
| display:none; | ||
| width: 20px; | ||
| height: 20px; | ||
| margin-left: 12px; | ||
| top: 4px; | ||
| background-image: url(../../images/loading.gif); | ||
| background-size:100% 100%; | ||
| } | ||
| .save_button_span{ | ||
| float:left; | ||
| } | ||
| .sucsses_save{ | ||
| position: relative; | ||
| display:none; | ||
| width: 20px; | ||
| height: 20px; | ||
| margin-left: 12px; | ||
| top: 4px; | ||
| background-image: url(../../images/success.png); | ||
| background-size:100% 100%; | ||
| } | ||
| .error_in_saving{ | ||
| position: relative; | ||
| display:none; | ||
| width: 20px; | ||
| height: 20px; | ||
| margin-left: 12px; | ||
| top: 4px; | ||
| background-image: url(../../images/remove_element.png); | ||
| background-size:100% 100%; | ||
| } | ||
| .error_massage{ | ||
| color: #BB1E1E; | ||
| font-size: 18px; | ||
| font-weight: bold; | ||
| padding-left: 21px; | ||
| } | ||
| /* remove upload image*/ | ||
| .remove_upload_image{ | ||
| width:27px; | ||
| line-height:27px; | ||
| cursor:pointer; | ||
| } | ||
| .upload_many_images{ | ||
| float:left; | ||
| margin-right:4px; | ||
| } | ||
| .slider_images_div .upload-button.button{ | ||
| float:left; | ||
| margin-right:4px; | ||
| } | ||
| /*select position */ | ||
| .coming_position_of_content *{ | ||
| padding:0px !important; | ||
| } | ||
| /*slider option*/ | ||
| .slider_div{ | ||
| width:195px !important; | ||
| } | ||
| #coming_soon_sortable{ | ||
| width:200px; | ||
| } | ||
| #coming_soon_sortable .ui-state-highlight{ | ||
| height:19px; | ||
| } | ||
| #coming_soon_sortable span{ | ||
| float:right | ||
| } | ||
| #coming_soon_sortable li{ | ||
| padding-left:3px; | ||
| cursor:move; | ||
| } | ||
| .live_previev{ | ||
| float:left; | ||
| padding:0px; | ||
| margin:0px; | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| /*************************************** SUBSCRIB PAGE ********************************************/ | ||
|
|
||
| .req_fields{ | ||
| color:#000; | ||
| margin-bottom:13px; | ||
| width:100%; | ||
| } | ||
| .user_information_inputs{ | ||
| float: left; | ||
| width: 25%; | ||
| margin-right: 20px; | ||
| } | ||
| #massage_description{ | ||
| height:110px !important; | ||
| } |
| @@ -0,0 +1,342 @@ | ||
| body{ | ||
| margin:0px; | ||
| -webkit-background-size: cover; | ||
| -moz-background-size: cover; | ||
| -o-background-size: cover; | ||
| background-size: cover !important; | ||
| } | ||
| .hided_element{ | ||
| visibility:hidden; | ||
| } | ||
| #title_style h1{ | ||
| padding: 0px; | ||
| margin:0px; | ||
| } | ||
| #descrip{ | ||
| margin: 5px 0px 5px 0px; | ||
| } | ||
| .soc_icon_coneiner{ | ||
| display:inline-block; | ||
| margin-top:2%; | ||
| width: 100%; | ||
| } | ||
| .soc_icon_coneiner .soc_icon{ | ||
| display: inline-block; | ||
| margin-right: 3%; | ||
| } | ||
|
|
||
| .soc_icon_coneiner .soc_icon img{ | ||
| width:100%; | ||
| max-height:82px; | ||
| } | ||
| .countdown > div{ | ||
| text-align:center; | ||
| margin-top:2%; | ||
| float:left; | ||
| color:#fff; | ||
| font-size:48px; | ||
| font-weight:bold; | ||
| } | ||
| .element_conteiner{ | ||
| text-align:center; | ||
| min-width:150px; | ||
| display: inline-block; | ||
| } | ||
| .time_left{ | ||
| border:none; | ||
|
|
||
| padding-bottom: 4%; | ||
| padding-top: 5%; | ||
| padding-left: 25%; | ||
| padding-right: 25%; | ||
| font-weight:bold; | ||
| } | ||
| .time_description{ | ||
| text-align:center; | ||
| margin-top:6px; | ||
| margin-bottom:6px; | ||
| font-weight:bold; | ||
| } | ||
| .information{ | ||
| box-sizing:border-box; | ||
| display:inline-block; | ||
| z-index:999999; | ||
| width:100%; | ||
| } | ||
| #main_inform_div{ | ||
| overflow:hidden; | ||
| box-sizing:border-box; | ||
| display:table; | ||
| position:absolute; | ||
| z-index:1000; | ||
| } | ||
| .aligment{ | ||
| display:table-cell; | ||
| width: 10%; | ||
| } | ||
|
|
||
| #slider{ | ||
| left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 680px; width: 1903px; z-index: -999999; position: fixed; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| /*Countedown*/ | ||
|
|
||
|
|
||
| .ClassyCountdown-wrapper > div { | ||
| display: inline-block; | ||
| position: relative; | ||
| margin-right:2%; | ||
|
|
||
| } | ||
| .ClassyCountdown-value > span{ | ||
| display:block; | ||
| } | ||
| .ClassyCountdown-wrapper .ClassyCountdown-value { | ||
| width: 100%; | ||
| position: absolute; | ||
| top: 50%; | ||
| text-align: center; | ||
| left: 0; | ||
| display: block; | ||
| } | ||
| #countdown{ | ||
| height: auto; | ||
| } | ||
| figure, figcaption { | ||
| display: block; | ||
| } | ||
| .transition { | ||
| -webkit-transition: top 400ms linear; | ||
| -moz-transition: top 400ms linear; | ||
| -ms-transition: top 400ms linear; | ||
| -o-transition: top 400ms linear; | ||
| transition: top 400ms linear; | ||
| } | ||
|
|
||
| .timeTo { | ||
| line-height: 108%; | ||
| font-weight: bold; | ||
| height: 32px; | ||
| } | ||
|
|
||
| .timeTo span { | ||
| vertical-align: top; | ||
| } | ||
| .timeTo figure { | ||
| display: inline-block; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
| .timeTo figcaption { | ||
| text-align: center; | ||
| /*font-size: 12px;*/ | ||
| line-height: 80%; | ||
| font-weight: normal; | ||
| color: #888; | ||
| } | ||
|
|
||
| .timeTo div { | ||
| position: relative; | ||
| display: inline-block; | ||
| /*width: 25px; | ||
| height: 30px;*/ | ||
| border-top: 1px solid silver; | ||
| border-right: 1px solid silver; | ||
| border-bottom: 1px solid silver; | ||
| overflow: hidden; | ||
| } | ||
| .timeTo div.first { | ||
| border-left: 1px solid silver; | ||
| } | ||
|
|
||
| .timeTo ul { | ||
| list-style-type: none; | ||
| margin: 0; | ||
| padding: 0; | ||
| position: absolute; | ||
| left: 3px; | ||
| } | ||
|
|
||
| .timeTo ul li { | ||
| margin: 0; | ||
| padding: 0; | ||
| list-style: none; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| /* PROGRES BARR */ | ||
|
|
||
|
|
||
|
|
||
| #progressbar { | ||
| height: 20px; /* Can be anything */ | ||
| position: relative; | ||
| padding: 3px; | ||
| border-style: solid; | ||
|
|
||
| } | ||
| #progressbar > span { | ||
| float:left; | ||
| display: block; | ||
| height: 100%; | ||
| border-top-right-radius: 8px; | ||
| border-bottom-right-radius: 8px; | ||
| border-top-left-radius: 8px; | ||
| border-bottom-left-radius: 8px; | ||
| background-color: #000000; | ||
|
|
||
|
|
||
| position: relative; | ||
| overflow: hidden; | ||
| } | ||
| #progressbar > span:after, .animate > span > span { | ||
| content: ""; | ||
| position: absolute; | ||
| top: 0; left: 0; bottom: 0; right: 0; | ||
| background-image: | ||
| -webkit-gradient(linear, 0 0, 100% 100%, | ||
| color-stop(.25, rgba(255, 255, 255, .2)), | ||
| color-stop(.25, transparent), color-stop(.5, transparent), | ||
| color-stop(.5, rgba(255, 255, 255, .2)), | ||
| color-stop(.75, rgba(255, 255, 255, .2)), | ||
| color-stop(.75, transparent), to(transparent) | ||
| ); | ||
| background-image: | ||
| -moz-linear-gradient( | ||
| -45deg, | ||
| rgba(255, 255, 255, .2) 25%, | ||
| transparent 25%, | ||
| transparent 50%, | ||
| rgba(255, 255, 255, .2) 50%, | ||
| rgba(255, 255, 255, .2) 75%, | ||
| transparent 75%, | ||
| transparent | ||
| ); | ||
| z-index: 1; | ||
| -webkit-background-size: 50px 50px; | ||
| -moz-background-size: 50px 50px; | ||
| -webkit-animation: move 2s linear infinite; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| .animate > span:after { | ||
| display: none; | ||
| } | ||
|
|
||
| @-webkit-keyframes move { | ||
| 0% { | ||
| background-position: 0 0; | ||
| } | ||
| 100% { | ||
| background-position: 50px 50px; | ||
| } | ||
| } | ||
|
|
||
|
|
||
|
|
||
| /* SUBSCRIBE*/ | ||
| .subscribe_input{ | ||
| display:inline-block; | ||
| box-sizing: border-box; | ||
| } | ||
| .subscribe_input > input{ | ||
| padding-left:8px; | ||
| padding-top: 6px; | ||
| width:100%; | ||
| padding-bottom: 3px; | ||
| border:1px solid; | ||
| font-size: 16px; | ||
| background: transparent; | ||
| font-style: italic; | ||
|
|
||
| } | ||
|
|
||
|
|
||
| .subscribe_input.firstname{ | ||
| margin-right:2%; | ||
| } | ||
| .subscribe_input.firstname,.subscribe_input.lastname{ | ||
| float:left; | ||
| margin-bottom:5px; | ||
| width:49%; | ||
| } | ||
| .subscribe_input.email{ | ||
| width:100%; | ||
| } | ||
| .subscribe_input > input:focus{ | ||
| outline:none; | ||
| } | ||
| #user_loading_and_saving img{ | ||
| height:25px; | ||
| } | ||
|
|
||
| #user_loading_and_saving{ | ||
| margin-top:6px; | ||
| font-weight:bold; | ||
| text-align:center; | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| .subscribe_input > input{ | ||
| box-sizing: border-box; | ||
| } | ||
| .bar { | ||
| position:relative; | ||
| display:block; | ||
| bottom:1px; | ||
| } | ||
| .bar:before, .bar:after{ | ||
| content:''; | ||
| height:3px; | ||
| width:0; | ||
| position:absolute; | ||
| transition:0.2s ease all; | ||
| -moz-transition:0.2s ease all; | ||
| -webkit-transition:0.2s ease all; | ||
| } | ||
| .bar:before { | ||
| left:50%; | ||
| } | ||
| .bar:after { | ||
| right:50%; | ||
| } | ||
|
|
||
| input:focus ~ .bar:before, input:focus ~ .bar:after{ | ||
| width:50%; | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| #Send_mail_button{ | ||
| cursor:pointer; | ||
| margin-top:8px; | ||
| border:none; | ||
| float:left; | ||
| padding-bottom: 5px; | ||
| padding-top: 7px; | ||
| padding-left: 12px; | ||
| padding-right: 12px; | ||
| font-weight:bold; | ||
| font-family: monospace; | ||
| } | ||
| .user_mail_options { | ||
| display:inline-block; | ||
| width: 100%; | ||
| } | ||
|
|
||
| /*Link to dashboard*/ | ||
|
|
||
|
|
||
| #link_style a{ | ||
| text-decoration:none; | ||
| } | ||
|
|
||
| #youtube_for_phone{ | ||
| display:none; | ||
| } |
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| * jQuery UI Progressbar 1.8.6 | ||
| * | ||
| * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) | ||
| * Dual licensed under the MIT or GPL Version 2 licenses. | ||
| * http://jquery.org/license | ||
| * | ||
| * http://docs.jquery.com/UI/Progressbar | ||
| * | ||
| * Depends: | ||
| * jquery.ui.core.js | ||
| * jquery.ui.widget.js | ||
| */ | ||
| (function(b,c){b.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); | ||
| this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(a,d){if(a==="value"){this.options.value=d;this._refreshValue();this._trigger("change");this._value()===this.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.max,Math.max(this.min,a))},_refreshValue:function(){var a= | ||
| this.value();this.valueDiv.toggleClass("ui-corner-right",a===this.max).width(a+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.6"})})(jQuery); |
| @@ -0,0 +1,118 @@ | ||
| === Regenerate Thumbnails === | ||
| Contributors: Viper007Bond | ||
| Donate link: http://www.viper007bond.com/donate/ | ||
| Tags: thumbnail, thumbnails | ||
| Requires at least: 2.8 | ||
| Tested up to: 3.9 | ||
| Stable tag: trunk | ||
|
|
||
| Allows you to regenerate your thumbnails after changing the thumbnail sizes. | ||
|
|
||
| == Description == | ||
|
|
||
| Regenerate Thumbnails allows you to regenerate the thumbnails for your image attachments. This is very handy if you've changed any of your thumbnail dimensions (via Settings -> Media) after previously uploading images or have changed to a theme with different featured post image dimensions. | ||
|
|
||
| You can either regenerate the thumbnails for all image uploads, individual image uploads, or specific multiple image uploads. | ||
|
|
||
| See the [screenshots tab](http://wordpress.org/extend/plugins/regenerate-thumbnails/screenshots/) for more details. | ||
|
|
||
| == Installation == | ||
|
|
||
| 1. Go to your admin area and select Plugins -> Add new from the menu. | ||
| 2. Search for "Regenerate Thumbnails". | ||
| 3. Click install. | ||
| 4. Click activate. | ||
|
|
||
| == Screenshots == | ||
|
|
||
| 1. The plugin at work regenerating thumbnails | ||
| 2. You can resize single images by hovering over their row in the Media Library | ||
| 2. You can resize specific multiples images using the checkboxes and the "Bulk Actions" dropdown | ||
|
|
||
| == ChangeLog == | ||
|
|
||
| = Version 2.2.4 = | ||
|
|
||
| * Better AJAX response error handling in the JavaScript. This should fix a long-standing bug in this plugin. Props Hew Sutton. | ||
|
|
||
| = Version 2.2.3 = | ||
|
|
||
| * Make the capability required to use this plugin filterable so themes and other plugins can change it. Props [Jackson Whelan](http://jacksonwhelan.com/). | ||
|
|
||
| = Version 2.2.2 = | ||
|
|
||
| * Don't check the nonce until we're sure that the action called was for this plugin. Fixes lots of "Are you sure you want to do this?" error messages. | ||
|
|
||
| = Version 2.2.1 = | ||
|
|
||
| * Fix the bottom bulk action dropdown. Thanks Stefan for pointing out the issue! | ||
|
|
||
| = Version 2.2.0 = | ||
|
|
||
| * Changes to the Bulk Action functionality were made shortly before the release of WordPress 3.1 which broke the way I implemented the specific multiple image regeneration feature. This version adds to the Bulk Action menu using Javascript as that's the only way to do it currently. | ||
|
|
||
| = Version 2.1.3 = | ||
|
|
||
| * Move the `error_reporting()` call in the AJAX handler to the beginning so that we're more sure that no PHP errors are outputted. Some hosts disable usage of `set_time_limit()` and calling it was causing a PHP warning to be outputted. | ||
|
|
||
| = Version 2.1.2 = | ||
|
|
||
| * When regenerating all images, newest images are done first rather than the oldest. | ||
| * Fixed a bug with regeneration error reporting in some browsers. Thanks to pete-sch for reporting the error. | ||
| * Supress PHP errors in the AJAX handler to avoid sending an invalid JSON response. Thanks to pete-sch for reporting the error. | ||
| * Better and more detailed error reporting for when `wp_generate_attachment_metadata()` fails. | ||
|
|
||
| = Version 2.1.1 = | ||
|
|
||
| * Clean up the wording a bit to better match the new features and just be easier to understand. | ||
| * Updated screenshots. | ||
|
|
||
| = Version 2.1.0 = | ||
|
|
||
| Lots of new features! | ||
|
|
||
| * Thanks to a lot of jQuery help from [Boris Schapira](http://borisschapira.com/), a failed image regeneration will no longer stop the whole process. | ||
| * The results of each image regeneration is now outputted. You can easily see which images were successfully regenerated and which failed. Was inspired by a concept by Boris. | ||
| * There is now a button on the regeneration page that will allow you to abort resizing images for any reason. Based on code by Boris. | ||
| * You can now regenerate single images from the Media page. The link to do so will show up in the actions list when you hover over the row. | ||
| * You can now bulk regenerate multiple from the Media page. Check the boxes and then select "Regenerate Thumbnails" form the "Bulk Actions" dropdown. WordPress 3.1+ only. | ||
| * The total time that the regeneration process took is now displayed in the final status message. | ||
| * jQuery UI Progressbar version upgraded. | ||
|
|
||
| = Version 2.0.3 = | ||
|
|
||
| * Switch out deprecated function call. | ||
|
|
||
| = Version 2.0.2 = | ||
|
|
||
| * Directly query the database to only fetch what the plugin needs (the attachment ID). This will reduce the memory required as it's not storing the whole row for each attachment. | ||
|
|
||
| = Version 2.0.1 = | ||
|
|
||
| * I accidentally left a `check_admin_referer()` (nonce check) commented out. | ||
|
|
||
| = Version 2.0.0 = | ||
|
|
||
| * Recoded from scratch. Now uses an AJAX request per attachment to do the resizing. No more PHP maximum execution time errors or anything like that. Also features a pretty progress bar to let the user know how it's going. | ||
|
|
||
| = Version 1.1.0 = | ||
|
|
||
| * WordPress 2.7 updates -- code + UI. Thanks to jdub and Patrick F. | ||
|
|
||
| = Version 1.0.0 = | ||
|
|
||
| * Initial release. | ||
|
|
||
| == Upgrade Notice == | ||
|
|
||
| = 2.2.4 = | ||
| Better AJAX response error handling in the JavaScript. This should fix a long-standing bug in this plugin. Props Hew Sutton. | ||
|
|
||
| = 2.2.3 = | ||
| Make the capability required to use this plugin filterable so themes and other plugins can change it. Props [Jackson Whelan](http://jacksonwhelan.com/). | ||
|
|
||
| = 2.2.2 = | ||
| Fixes lots of "Are you sure you want to do this?" error messages. | ||
|
|
||
| = 2.2.1 = | ||
| Fix the bottom bulk action dropdown. Thanks Stefan for pointing out the issue! |