ID, WDWT_META, true); } else { $meta = array(); } $default_layout = esc_html($this->get_param('default_layout', $meta)); $full_width = trim(esc_html($this->get_param('full_width', $meta))); $content_area_percent = esc_html($this->get_param('content_area_percent', $meta)); $content_area_percent = (intval($content_area_percent) < 100 && intval($content_area_percent) >= 75) ? intval($content_area_percent) : 75; if ($full_width) { $content_area_percent = 99; } $main_column = $this->get_param('main_column', $meta); $pwa_width = $this->get_param('pwa_width', $meta); switch ($default_layout) : case 1: ?> get_param('header_img_type'); $hide_slider = $this->get_param('hide_slider'); $imgs_url = $this->get_param('slider_head'); $image_textarea = $this->get_param('slider_head_desc'); $image_title = $this->get_param('slider_head_title'); $image_height_pages = $this->get_param('image_height_pages'); $image_height = $this->get_param('image_height'); $title_position = $this->get_param('title_position'); $description_position = $this->get_param('description_position'); $imgs_href = $this->get_param('slider_head_href'); $imgs_url = explode('||wd||', $imgs_url); $imgs_href = explode('||wd||', $imgs_href); $image_title = explode('||wd||', $image_title); $image_textarea = explode('||wd||', $image_textarea); $imgs_number = count($imgs_url); for ($i = 0; $i < count($imgs_number); $i++) { $imgs_href[$i] = isset($imgs_href[$i]) ? trim($imgs_href[$i]) : ''; $image_title[$i] = isset($image_title[$i]) ? trim($image_title[$i]) : ''; $image_textarea[$i] = isset($image_textarea[$i]) ? trim($image_textarea[$i]) : ''; } if (($hide_slider[0] != "Hide Slider" && ((is_home() && $hide_slider[0] == "Only on Homepage") || (is_front_page() && $hide_slider[0] == "Only on Front Page") || $hide_slider[0] == "On all the pages and posts")) && count($imgs_url) && is_array($imgs_url)) { if ($header_img_type == "slider") { ?>
$image_row) { if ($i == $current_image_id) { $current_key = $key; ?>
parallax_image(); } } } public function parallax_image() { $parallax_img = $this->get_param('parallax_img'); $parallax_desc = $this->get_param('parallax_desc'); $parallax_img_padding = $this->get_param('parallax_img_padding'); $parallax_effect_intensity = $this->get_param('parallax_effect_intensity', array(), 0.8); if ((float)$parallax_effect_intensity < 0) { $parallax_effect_intensity = 0; } if ((float)$parallax_effect_intensity > 1) { $parallax_effect_intensity = 1; } $parallax_effect_intensity = 1 - (float)$parallax_effect_intensity; // 0 - static, 1 - fixed ?>
get_param('[colors_active][active]', $meta_array = array(), $default = 0)); $menu_elem_back_color = esc_html($this->get_param('[colors_active][colors][menu_elem_back_color][value]', $meta_array = array(), $default = '#FFFFFF')); $slider_text_color = esc_html($this->get_param('[colors_active][colors][slider_text_color][value]', $meta_array = array(), $default = '#FFFFFF')); $borders_color = esc_html($this->get_param('[colors_active][colors][borders_color][value]', $meta_array = array(), $default = '#007087')); $sideb_background_color = esc_html($this->get_param('[colors_active][colors][sideb_background_color][value]', $meta_array = array(), $default = '#FFFFFF')); $content_post_bg_color = esc_html($this->get_param('[colors_active][colors][content_post_bg_color][value]', $meta_array = array(), $default = '#FAFAFA')); $footer_sideb_background_color = esc_html($this->get_param('[colors_active][colors][footer_sideb_background_color][value]', $meta_array = array(), $default = '#FFFFFF')); $footer_back_color = esc_html($this->get_param('[colors_active][colors][footer_back_color][value]', $meta_array = array(), $default = '#FFFFFF')); $featured_posts_color = esc_html($this->get_param('[colors_active][colors][featured_posts_color][value]', $meta_array = array(), $default = '#F9F9F9')); $text_headers_color = esc_html($this->get_param('[colors_active][colors][text_headers_color][value]', $meta_array = array(), $default = '#000000')); $primary_text_color = esc_html($this->get_param('[colors_active][colors][primary_text_color][value]', $meta_array = array(), $default = '#000000')); $footer_text_color = esc_html($this->get_param('[colors_active][colors][footer_text_color][value]', $meta_array = array(), $default = '#2C2C2C')); $primary_links_color = esc_html($this->get_param('[colors_active][colors][primary_links_color][value]', $meta_array = array(), $default = '#545454')); $primary_links_hover_color = esc_html($this->get_param('[colors_active][colors][primary_links_hover_color][value]', $meta_array = array(), $default = '#007087')); $menu_links_color = esc_html($this->get_param('[colors_active][colors][menu_links_color][value]', $meta_array = array(), $default = '#373737')); $menu_links_hover_color = esc_html($this->get_param('[colors_active][colors][menu_links_hover_color][value]', $meta_array = array(), $default = '#000000')); $hover_menu_item = esc_html($this->get_param('[colors_active][colors][hover_menu_item][value]', $meta_array = array(), $default = '#FFFFFF')); $selected_menu_color = esc_html($this->get_param('[colors_active][colors][selected_menu_color][value]', $meta_array = array(), $default = '#FFFFFF')); $logo_text_color = esc_html($this->get_param('[colors_active][colors][logo_text_color][value]', $meta_array = array(), $default = '#007087')); $button_background_color = esc_html($this->get_param('[colors_active][colors][button_background_color][value]', $meta_array = array(), $default = '#007087')); $button_text_color = esc_html($this->get_param('[colors_active][colors][button_text_color][value]', $meta_array = array(), $default = '#FFFFFF')); $meta_info_color = esc_html($this->get_param('[colors_active][colors][meta_info_color][value]', $meta_array = array(), $default = '#8F8F8F')); $pinned_post_text_color = esc_html($this->get_param('[colors_active][colors][pinned_post_text_color][value]', $meta_array = array(), $default = '#FFFFFF')); $lightbox_bg_color = esc_html($this->get_param('[colors_active][colors][lightbox_bg_color][value]', $meta_array = array(), $default = '#000000')); $lightbox_ctrl_cont_bg_color = esc_html($this->get_param('[colors_active][colors][lightbox_ctrl_cont_bg_color][value]', $meta_array = array(), $default = '#000000')); $lightbox_title_color = esc_html($this->get_param('[colors_active][colors][lightbox_title_color][value]', $meta_array = array(), $default = '#FFFFFF')); $lightbox_ctrl_btn_color = esc_html($this->get_param('[colors_active][colors][lightbox_ctrl_btn_color][value]', $meta_array = array(), $default = '#FFFFFF')); $lightbox_close_rl_btn_hover_color = esc_html($this->get_param('[colors_active][colors][lightbox_close_rl_btn_hover_color][value]', $meta_array = array(), $default = '#FFFFFF')); $background_color = get_background_color(); $background_image = get_background_image(); ?> get_param('logo_type'); $logo_img = esc_url(trim($this->get_param('logo_img'))); $display_tagline = $this->get_param('display_tagline'); if ($logo_type == 'image' || $logo_type == 'text' || $display_tagline) { ?>

get_param('facebook_icon_show', false); $facebook_url = $this->get_param('facebook_url', false); $show_google_icon = $this->get_param('google_icon_show', false); $google_url = $this->get_param('google_url', false); $show_rss_icon = $this->get_param('show_rss_icon', false); $rss_url = $this->get_param('rss_url', false); $show_twitter_icon = $this->get_param('twitter_icon_show', false); $twitter_url = $this->get_param('twitter_url', false); $show_linkedin_icon = $this->get_param('linkedin_icon_show', false); $linkedin_url = $this->get_param('linkedin_url', false); $show_youtube_icon = $this->get_param('youtube_icon_show', false); $youtube_url = $this->get_param('youtube_url', false); $show_instagram_icon = $this->get_param('instagram_icon_show', false); $instagram_url = $this->get_param('instagram_url', false); if (($show_facebook_icon == true && $facebook_url != "") || ($show_google_icon == true && $google_url != "") || ($show_rss_icon == true && $rss_url != "") || ($show_twitter_icon == true && $twitter_url != "") || ($show_linkedin_icon == true && $linkedin_url != "") || ($show_youtube_icon == true && $youtube_url != "") || ($show_instagram_icon == true && $instagram_url != "")) { ?>
> " target="_blank" title="Facebook">
> " target="_blank" title="Google Plus">
> " target="_blank" title="Rss">
> " target="_blank" title="Twitter">
> " target="_blank" title="LinkedIn">
> " target="_blank" title="Youtube">
> " target="_blank" title="Instagram">
grab_image())) { ?>
grab_image()); ?>