first commit

This commit is contained in:
2023-11-23 22:14:40 +01:00
commit 6c5e83d1b2
2779 changed files with 640726 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
foreach ( glob( ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/*/admin/custom-styles/*.php' ) as $options_load ) {
include_once $options_load;
}
if ( ! function_exists( 'calla_elated_title_area_typography_style' ) ) {
function calla_elated_title_area_typography_style() {
// title default/small style
$item_styles = calla_elated_get_typography_styles( 'page_title' );
$item_selector = array(
'.eltdf-title-holder .eltdf-title-wrapper .eltdf-page-title'
);
echo calla_elated_dynamic_css( $item_selector, $item_styles );
// subtitle style
$item_styles = calla_elated_get_typography_styles( 'page_subtitle' );
$item_selector = array(
'.eltdf-title-holder .eltdf-title-wrapper .eltdf-page-subtitle'
);
echo calla_elated_dynamic_css( $item_selector, $item_styles );
}
add_action( 'calla_elated_style_dynamic', 'calla_elated_title_area_typography_style' );
}

View File

@@ -0,0 +1,267 @@
<?php
if ( ! function_exists( 'calla_elated_get_title_types_meta_boxes' ) ) {
function calla_elated_get_title_types_meta_boxes() {
$title_type_options = apply_filters( 'calla_elated_title_type_meta_boxes', $title_type_options = array( '' => esc_html__( 'Default', 'calla' ) ) );
return $title_type_options;
}
}
foreach ( glob( ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/*/admin/meta-boxes/*.php' ) as $meta_box_load ) {
include_once $meta_box_load;
}
if ( ! function_exists( 'calla_elated_map_title_meta' ) ) {
function calla_elated_map_title_meta() {
$title_type_meta_boxes = calla_elated_get_title_types_meta_boxes();
$title_meta_box = calla_elated_create_meta_box(
array(
'scope' => apply_filters( 'calla_elated_set_scope_for_meta_boxes', array( 'page', 'post' ), 'title_meta' ),
'title' => esc_html__( 'Title', 'calla' ),
'name' => 'title_meta'
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_show_title_area_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Show Title Area', 'calla' ),
'description' => esc_html__( 'Disabling this option will turn off page title area', 'calla' ),
'parent' => $title_meta_box,
'options' => calla_elated_get_yes_no_select_array()
)
);
$show_title_area_meta_container = calla_elated_add_admin_container(
array(
'parent' => $title_meta_box,
'name' => 'eltdf_show_title_area_meta_container',
'dependency' => array(
'hide' => array(
'eltdf_show_title_area_meta' => 'no'
)
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_type_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Title Area Type', 'calla' ),
'description' => esc_html__( 'Choose title type', 'calla' ),
'parent' => $show_title_area_meta_container,
'options' => $title_type_meta_boxes
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_in_grid_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Title Area In Grid', 'calla' ),
'description' => esc_html__( 'Set title area content to be in grid', 'calla' ),
'options' => calla_elated_get_yes_no_select_array(),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_height_meta',
'type' => 'text',
'label' => esc_html__( 'Height', 'calla' ),
'description' => esc_html__( 'Set a height for Title Area', 'calla' ),
'parent' => $show_title_area_meta_container,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_background_color_meta',
'type' => 'color',
'label' => esc_html__( 'Background Color', 'calla' ),
'description' => esc_html__( 'Choose a background color for title area', 'calla' ),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_background_image_meta',
'type' => 'image',
'label' => esc_html__( 'Background Image', 'calla' ),
'description' => esc_html__( 'Choose an Image for title area', 'calla' ),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_background_image_behavior_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Background Image Behavior', 'calla' ),
'description' => esc_html__( 'Choose title area background image behavior', 'calla' ),
'parent' => $show_title_area_meta_container,
'options' => array(
'' => esc_html__( 'Default', 'calla' ),
'hide' => esc_html__( 'Hide Image', 'calla' ),
'responsive' => esc_html__( 'Enable Responsive Image', 'calla' ),
'responsive-disabled' => esc_html__( 'Disable Responsive Image', 'calla' ),
'parallax' => esc_html__( 'Enable Parallax Image', 'calla' ),
'parallax-zoom-out' => esc_html__( 'Enable Parallax With Zoom Out Image', 'calla' ),
'parallax-disabled' => esc_html__( 'Disable Parallax Image', 'calla' )
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_show_separator_image_meta',
'type' => 'select',
'label' => esc_html__( 'Show Separator', 'calla' ),
'description' => esc_html__( 'Enable this option to show separator below title', 'calla' ),
'options' => calla_elated_get_yes_no_select_array(),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_disable_separator_image_meta',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Disable Separator Image', 'calla' ),
'parent' => $show_title_area_meta_container,
'dependency' => array(
'show' => array(
'eltdf_show_separator_image_meta' => 'yes',
)
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_separator_image_meta',
'type' => 'image',
'label' => esc_html__( 'Separator Image', 'calla' ),
'parent' => $show_title_area_meta_container,
'dependency' => array(
'show' => array(
'eltdf_show_separator_image_meta' => 'yes',
)
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_vertical_alignment_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Vertical Alignment', 'calla' ),
'description' => esc_html__( 'Specify title area content vertical alignment', 'calla' ),
'parent' => $show_title_area_meta_container,
'options' => array(
'' => esc_html__( 'Default', 'calla' ),
'header-bottom' => esc_html__( 'From Bottom of Header', 'calla' ),
'window-top' => esc_html__( 'From Window Top', 'calla' )
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_vertical_offset_meta',
'type' => 'text',
'default_value' => '',
'label' => esc_html__( 'Title Vertical Offset', 'calla' ),
'description' => esc_html__( 'Set title vertical offset relative to its current position', 'calla' ),
'parent' => $show_title_area_meta_container,
'args' => array(
'col_width' => '3',
'suffix' => 'px'
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_title_tag_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Title Tag', 'calla' ),
'options' => calla_elated_get_title_tag( true ),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_text_color_meta',
'type' => 'color',
'label' => esc_html__( 'Title Color', 'calla' ),
'description' => esc_html__( 'Choose a color for title text', 'calla' ),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_subtitle_meta',
'type' => 'text',
'default_value' => '',
'label' => esc_html__( 'Subtitle Text', 'calla' ),
'description' => esc_html__( 'Enter your subtitle text', 'calla' ),
'parent' => $show_title_area_meta_container,
'args' => array(
'col_width' => 6
)
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_title_area_subtitle_tag_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Subtitle Tag', 'calla' ),
'options' => calla_elated_get_title_tag( true, array( 'p' => 'p' ) ),
'parent' => $show_title_area_meta_container
)
);
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_subtitle_color_meta',
'type' => 'color',
'label' => esc_html__( 'Subtitle Color', 'calla' ),
'description' => esc_html__( 'Choose a color for subtitle text', 'calla' ),
'parent' => $show_title_area_meta_container
)
);
/***************** Additional Title Area Layout - start *****************/
do_action( 'calla_elated_additional_title_area_meta_boxes', $show_title_area_meta_container );
/***************** Additional Title Area Layout - end *****************/
}
add_action( 'calla_elated_meta_boxes_map', 'calla_elated_map_title_meta', 60 );
}

View File

@@ -0,0 +1,502 @@
<?php
if ( ! function_exists( 'calla_elated_get_title_types_options' ) ) {
function calla_elated_get_title_types_options() {
$title_type_options = apply_filters( 'calla_elated_title_type_global_option', $title_type_options = array() );
return $title_type_options;
}
}
if ( ! function_exists( 'calla_elated_get_title_type_default_options' ) ) {
function calla_elated_get_title_type_default_options() {
$title_type_option = apply_filters( 'calla_elated_default_title_type_global_option', $title_type_option = '' );
return $title_type_option;
}
}
foreach ( glob( ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/*/admin/options-map/*.php' ) as $options_load ) {
include_once $options_load;
}
if ( ! function_exists('calla_elated_title_options_map') ) {
function calla_elated_title_options_map() {
$title_type_options = calla_elated_get_title_types_options();
$title_type_default_option = calla_elated_get_title_type_default_options();
calla_elated_add_admin_page(
array(
'slug' => '_title_page',
'title' => esc_html__('Title', 'calla'),
'icon' => 'fa fa-list-alt'
)
);
$panel_title = calla_elated_add_admin_panel(
array(
'page' => '_title_page',
'name' => 'panel_title',
'title' => esc_html__('Title Settings', 'calla')
)
);
calla_elated_add_admin_field(
array(
'name' => 'show_title_area',
'type' => 'yesno',
'default_value' => 'yes',
'label' => esc_html__( 'Show Title Area', 'calla' ),
'description' => esc_html__( 'This option will enable/disable Title Area', 'calla' ),
'parent' => $panel_title
)
);
$show_title_area_container = calla_elated_add_admin_container(
array(
'parent' => $panel_title,
'name' => 'show_title_area_container',
'dependency' => array(
'show' => array(
'show_title_area' => 'yes'
)
)
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_type',
'type' => 'select',
'default_value' => $title_type_default_option,
'label' => esc_html__( 'Title Area Type', 'calla' ),
'description' => esc_html__( 'Choose title type', 'calla' ),
'parent' => $show_title_area_container,
'options' => $title_type_options
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_in_grid',
'type' => 'yesno',
'default_value' => 'yes',
'label' => esc_html__( 'Title Area In Grid', 'calla' ),
'description' => esc_html__( 'Set title area content to be in grid', 'calla' ),
'parent' => $show_title_area_container
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_height',
'type' => 'text',
'label' => esc_html__( 'Height', 'calla' ),
'description' => esc_html__( 'Set a height for Title Area', 'calla' ),
'parent' => $show_title_area_container,
'args' => array(
'col_width' => 2,
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_background_color',
'type' => 'color',
'label' => esc_html__( 'Background Color', 'calla' ),
'description' => esc_html__( 'Choose a background color for Title Area', 'calla' ),
'parent' => $show_title_area_container
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_background_image',
'type' => 'image',
'label' => esc_html__( 'Background Image', 'calla' ),
'description' => esc_html__( 'Choose an Image for Title Area', 'calla' ),
'parent' => $show_title_area_container
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_background_image_behavior',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Background Image Behavior', 'calla' ),
'description' => esc_html__( 'Choose title area background image behavior', 'calla' ),
'parent' => $show_title_area_container,
'options' => array(
'' => esc_html__( 'Default', 'calla' ),
'responsive' => esc_html__( 'Enable Responsive Image', 'calla' ),
'parallax' => esc_html__( 'Enable Parallax Image', 'calla' ),
'parallax-zoom-out' => esc_html__( 'Enable Parallax With Zoom Out Image', 'calla' )
)
)
);
calla_elated_add_admin_field(
array(
'name' => 'show_separator_image',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Show Separator', 'calla' ),
'description' => esc_html__( 'Enable this option to show separator below title', 'calla' ),
'parent' => $show_title_area_container
)
);
calla_elated_add_admin_field(
array(
'name' => 'separator_image',
'type' => 'image',
'label' => esc_html__( 'Separator Image', 'calla' ),
'parent' => $show_title_area_container,
'dependency' => array(
'show' => array(
'show_separator_image' => 'yes'
)
)
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_vertical_alignment',
'type' => 'select',
'default_value' => 'header-bottom',
'label' => esc_html__( 'Vertical Alignment', 'calla' ),
'description' => esc_html__( 'Specify title vertical alignment', 'calla' ),
'parent' => $show_title_area_container,
'options' => array(
'header-bottom' => esc_html__( 'From Bottom of Header', 'calla' ),
'window-top' => esc_html__( 'From Window Top', 'calla' )
)
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_vertical_offset',
'type' => 'text',
'default_value' => '',
'label' => esc_html__( 'Title Vertical Offset', 'calla' ),
'description' => esc_html__( 'Set title vertical offset relative to its current position', 'calla' ),
'parent' => $show_title_area_container,
'args' => array(
'col_width' => '3',
'suffix' => 'px'
)
)
);
/***************** Additional Title Area Layout - start *****************/
do_action( 'calla_elated_additional_title_area_options_map', $show_title_area_container );
/***************** Additional Title Area Layout - end *****************/
$panel_typography = calla_elated_add_admin_panel(
array(
'page' => '_title_page',
'name' => 'panel_title_typography',
'title' => esc_html__( 'Typography', 'calla' )
)
);
calla_elated_add_admin_section_title(
array(
'name' => 'type_section_title',
'title' => esc_html__( 'Title', 'calla' ),
'parent' => $panel_typography
)
);
$group_page_title_styles = calla_elated_add_admin_group(
array(
'name' => 'group_page_title_styles',
'title' => esc_html__( 'Title', 'calla' ),
'description' => esc_html__( 'Define styles for page title', 'calla' ),
'parent' => $panel_typography
)
);
$row_page_title_styles_1 = calla_elated_add_admin_row(
array(
'name' => 'row_page_title_styles_1',
'parent' => $group_page_title_styles
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_title_tag',
'type' => 'selectsimple',
'default_value' => 'h2',
'label' => esc_html__( 'Title Tag', 'calla' ),
'options' => calla_elated_get_title_tag(),
'parent' => $row_page_title_styles_1
)
);
$row_page_title_styles_2 = calla_elated_add_admin_row(
array(
'name' => 'row_page_title_styles_2',
'parent' => $group_page_title_styles
)
);
calla_elated_add_admin_field(
array(
'type' => 'colorsimple',
'name' => 'page_title_color',
'label' => esc_html__( 'Text Color', 'calla' ),
'parent' => $row_page_title_styles_2
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_title_font_size',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'calla' ),
'parent' => $row_page_title_styles_2,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_title_line_height',
'default_value' => '',
'label' => esc_html__( 'Line Height', 'calla' ),
'parent' => $row_page_title_styles_2,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_title_text_transform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'calla' ),
'options' => calla_elated_get_text_transform_array(),
'parent' => $row_page_title_styles_2
)
);
$row_page_title_styles_3 = calla_elated_add_admin_row(
array(
'name' => 'row_page_title_styles_3',
'parent' => $group_page_title_styles,
'next' => true
)
);
calla_elated_add_admin_field(
array(
'type' => 'fontsimple',
'name' => 'page_title_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'calla' ),
'parent' => $row_page_title_styles_3
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_title_font_style',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'calla' ),
'options' => calla_elated_get_font_style_array(),
'parent' => $row_page_title_styles_3
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_title_font_weight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'calla' ),
'options' => calla_elated_get_font_weight_array(),
'parent' => $row_page_title_styles_3
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_title_letter_spacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'calla' ),
'parent' => $row_page_title_styles_3,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_section_title(
array(
'name' => 'type_section_subtitle',
'title' => esc_html__( 'Subtitle', 'calla' ),
'parent' => $panel_typography
)
);
$group_page_subtitle_styles = calla_elated_add_admin_group(
array(
'name' => 'group_page_subtitle_styles',
'title' => esc_html__( 'Subtitle', 'calla' ),
'description' => esc_html__( 'Define styles for page subtitle', 'calla' ),
'parent' => $panel_typography
)
);
$row_page_subtitle_styles_1 = calla_elated_add_admin_row(
array(
'name' => 'row_page_subtitle_styles_1',
'parent' => $group_page_subtitle_styles
)
);
calla_elated_add_admin_field(
array(
'name' => 'title_area_subtitle_tag',
'type' => 'selectsimple',
'default_value' => 'h6',
'label' => esc_html__('Subtitle Tag', 'calla'),
'options' => calla_elated_get_title_tag(),
'parent' => $row_page_subtitle_styles_1
)
);
$row_page_subtitle_styles_2 = calla_elated_add_admin_row(
array(
'name' => 'row_page_subtitle_styles_2',
'parent' => $group_page_subtitle_styles
)
);
calla_elated_add_admin_field(
array(
'type' => 'colorsimple',
'name' => 'page_subtitle_color',
'label' => esc_html__( 'Text Color', 'calla' ),
'parent' => $row_page_subtitle_styles_2
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_subtitle_font_size',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'calla' ),
'parent' => $row_page_subtitle_styles_2,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_subtitle_line_height',
'default_value' => '',
'label' => esc_html__( 'Line Height', 'calla' ),
'parent' => $row_page_subtitle_styles_2,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_subtitle_text_transform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'calla' ),
'options' => calla_elated_get_text_transform_array(),
'parent' => $row_page_subtitle_styles_2
)
);
$row_page_subtitle_styles_3 = calla_elated_add_admin_row(
array(
'name' => 'row_page_subtitle_styles_3',
'parent' => $group_page_subtitle_styles,
'next' => true
)
);
calla_elated_add_admin_field(
array(
'type' => 'fontsimple',
'name' => 'page_subtitle_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'calla' ),
'parent' => $row_page_subtitle_styles_3
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_subtitle_font_style',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'calla' ),
'options' => calla_elated_get_font_style_array(),
'parent' => $row_page_subtitle_styles_3
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_subtitle_font_weight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'calla' ),
'options' => calla_elated_get_font_weight_array(),
'parent' => $row_page_subtitle_styles_3
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_subtitle_letter_spacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'calla' ),
'args' => array(
'suffix' => 'px'
),
'parent' => $row_page_subtitle_styles_3
)
);
/***************** Additional Title Typography Layout - start *****************/
do_action( 'calla_elated_additional_title_typography_options_map', $panel_typography );
/***************** Additional Title Typography Layout - end *****************/
}
add_action( 'calla_elated_options_map', 'calla_elated_title_options_map', 4);
}

View File

@@ -0,0 +1,80 @@
/* ==========================================================================
Title responsive styles - begin
========================================================================== */
/* common mixins - start */
/* common mixins - end */
/* mixins styles - start */
/* mixins styles - end */
/* ==========================================================================
Title responsive style - begin
========================================================================== */
@media only screen and (max-width: 1024px) {
.eltdf-title-holder.eltdf-has-bg-image {
height: auto !important;
background-image: none !important;
}
.eltdf-title-holder.eltdf-has-bg-image .eltdf-title-image {
display: block;
}
.eltdf-title-holder.eltdf-has-bg-image .eltdf-title-wrapper {
position: absolute;
top: 50%;
left: 0;
height: 100% !important;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
transform: translateY(-50%);
}
.eltdf-title-holder.eltdf-title-va-header-bottom {
height: auto !important;
}
.eltdf-title-holder.eltdf-title-va-header-bottom .eltdf-title-wrapper {
padding-top: 0 !important;
}
}
@media only screen and (max-width: 680px) {
.eltdf-title-holder .eltdf-separator-holder {
display: none;
}
}
/* ==========================================================================
Title responsive style - end
========================================================================== */
/* ==========================================================================
Centered Title type responsive style - begin
========================================================================== */
@media only screen and (max-width: 1024px) {
.eltdf-title-holder.eltdf-centered-type .eltdf-page-subtitle {
padding: 0 !important;
}
}
/* ==========================================================================
Centered Title type responsive style - end
========================================================================== */
/* ==========================================================================
Standard With Breadcrumbs Title type responsive style - begin
========================================================================== */
@media only screen and (max-width: 1024px) {
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-title-info,
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs-info {
display: block;
width: 100%;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs-info {
margin: 10px 0 0;
text-align: initial;
white-space: inherit;
}
}
/* ==========================================================================
Standard With Breadcrumbs Title type responsive style - end
========================================================================== */
/* ==========================================================================
Title responsive styles - end
========================================================================== */
/*# sourceMappingURL=title-map-responsive.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"file":"title-map-responsive.css","sources":["title/assets/css/scss/title-map-responsive.scss","../../assets/css/scss/_variables.scss","../../assets/css/scss/_mixins.scss","title/assets/css/scss/responsive/_title-responsive.scss","title/types/centered/assets/css/scss/responsive/_centered-title-responsive.scss","title/types/standard-with-breadcrumbs/assets/css/scss/responsive/_standard-with-breadcrumbs-title-responsive.scss"],"names":[],"mappings":"AAAA;;gFAEgF;AEkKhF,2BAA2B;AAqL3B,yBAAyB;AAEzB,2BAA2B;AA+B3B,yBAAyB;AC1XzB;;gFAEgF;ADqZ/E,MAAM,MAAM,MAAM,MAAM,SAAS,EAAE,MAAM;ECjZtC,AAEI,mBAFe,AAEd,mBAAmB,CAAC;IACjB,MAAM,EAAE,eAAe;IAC1B,gBAAgB,EAAE,eAAe;GAajC;EAjBL,AAMQ,mBANW,AAEd,mBAAmB,CAIhB,kBAAkB,CAAC;IACf,OAAO,EAAE,KAAK;GACjB;EART,AAUQ,mBAVW,AAEd,mBAAmB,CAQhB,oBAAoB,CAAC;IACjB,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,CAAC;IACV,MAAM,EAAE,eAAe;ID2DnC,iBAAiB,EC1DsB,gBAAgB;ID2DvD,cAAc,EC3DyB,gBAAgB;ID4DvD,SAAS,EC5D8B,gBAAgB;GAC3C;EAhBT,AAmBI,mBAnBe,AAmBd,6BAA6B,CAAC;IAC3B,MAAM,EAAE,eAAe;GAK1B;EAzBL,AAsBQ,mBAtBW,AAmBd,6BAA6B,CAG1B,oBAAoB,CAAC;IACjB,WAAW,EAAE,YAAY;GAC5B;;;ADqYZ,MAAM,MAAM,MAAM,MAAM,SAAS,EAAE,KAAK;EC/XrC,AACI,mBADe,CACf,uBAAuB,CAAC;IACpB,OAAO,EAAE,IAAI;GAChB;;;AAGT;;gFAEgF;AC5ChF;;gFAEgF;AFqZ/E,MAAM,MAAM,MAAM,MAAM,SAAS,EAAE,MAAM;EEjZzC,AAIE,mBAJiB,AAEjB,oBAAoB,CAEpB,oBAAoB,CAAC;IACpB,OAAO,EAAE,YAAY;GACrB;;;AAIJ;;gFAEgF;AClBhF;;gFAEgF;AHqZ/E,MAAM,MAAM,MAAM,MAAM,SAAS,EAAE,MAAM;EGjZzC,AAIE,mBAJiB,AAEjB,qCAAqC,CAErC,iBAAiB;EAJnB,mBAAmB,AAEjB,qCAAqC,CAGrC,uBAAuB,CAAC;IACvB,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,IAAI;GACX;EARH,AAUE,mBAViB,AAEjB,qCAAqC,CAQrC,uBAAuB,CAAC;IACvB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;GACpB;;;AAIJ;;gFAEgF;ALhBhF;;gFAEgF","sourceRoot":"../../../../../css"}

View File

@@ -0,0 +1,235 @@
/* ==========================================================================
Title styles - begin
========================================================================== */
/* common mixins - start */
/* common mixins - end */
/* mixins styles - start */
/* mixins styles - end */
/* ==========================================================================
Title style - begin
========================================================================== */
.eltdf-title-holder {
position: relative;
display: inline-block;
width: 100%;
vertical-align: middle;
height: 270px;
background-color: #f6f6f6;
background-position: center;
background-repeat: no-repeat;
z-index: 101;
}
.eltdf-title-holder.eltdf-title-full-width .eltdf-grid {
position: relative;
display: inline-block;
width: 100%;
vertical-align: middle;
margin: 0;
padding: 0 40px;
box-sizing: border-box;
}
.eltdf-title-holder.eltdf-bg-responsive {
height: auto !important;
}
.eltdf-title-holder.eltdf-bg-responsive .eltdf-title-image {
display: block;
}
.eltdf-title-holder.eltdf-bg-responsive .eltdf-title-wrapper {
position: absolute;
top: 50%;
left: 0;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
transform: translateY(-50%);
}
.eltdf-title-holder.eltdf-bg-parallax {
background-attachment: fixed;
}
.eltdf-title-holder .eltdf-title-image {
display: none;
}
.eltdf-title-holder .eltdf-title-image img {
display: block;
width: 100%;
}
.eltdf-title-holder .eltdf-separator-icon {
padding: 0 10px;
}
.eltdf-title-holder .eltdf-separator {
width: 38px;
border-bottom: 1px solid #b97a56;
}
.eltdf-title-holder .eltdf-title-wrapper {
position: relative;
display: table;
table-layout: fixed;
height: 100%;
width: 100%;
}
.eltdf-title-holder .eltdf-title-inner {
position: relative;
display: table-cell;
height: 100%;
width: 100%;
vertical-align: middle;
}
/* ==========================================================================
Title style - end
========================================================================== */
/* ==========================================================================
Breadcrumbs Title type style - begin
========================================================================== */
.eltdf-title-holder.eltdf-breadcrumbs-type .eltdf-breadcrumbs {
color: #676767;
font-family: "Crimson Text", cursive;
font-size: 16px;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
position: relative;
display: inline-block;
width: 100%;
vertical-align: middle;
}
.eltdf-title-holder.eltdf-breadcrumbs-type .eltdf-breadcrumbs.eltdf-has-inline-style a {
opacity: 1;
-webkit-transition: opacity 0.2s ease-out;
-moz-transition: opacity 0.2s ease-out;
transition: opacity 0.2s ease-out;
}
.eltdf-title-holder.eltdf-breadcrumbs-type .eltdf-breadcrumbs.eltdf-has-inline-style a:hover {
color: inherit;
opacity: 0.9;
}
.eltdf-title-holder.eltdf-breadcrumbs-type .eltdf-breadcrumbs a,
.eltdf-title-holder.eltdf-breadcrumbs-type .eltdf-breadcrumbs span {
position: relative;
display: inline-block;
vertical-align: middle;
color: #676767;
}
.eltdf-title-holder.eltdf-breadcrumbs-type .eltdf-breadcrumbs a:hover {
color: #b97a56;
}
/* ==========================================================================
Breadcrumbs Title type style - end
========================================================================== */
/* ==========================================================================
Centered Title type style - begin
========================================================================== */
.eltdf-title-holder.eltdf-centered-type .eltdf-title-inner {
text-align: center;
}
.eltdf-title-holder.eltdf-centered-type .eltdf-page-title {
margin: 0;
}
.eltdf-title-holder.eltdf-centered-type .eltdf-page-subtitle {
display: block;
margin: 10px 0 0;
box-sizing: border-box;
}
/* ==========================================================================
Centered Title type style - end
========================================================================== */
/* ==========================================================================
Standard With Breadcrumbs Title type style - begin
========================================================================== */
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-title-info,
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs-info {
display: table-cell;
vertical-align: middle;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-title-info {
width: 99%;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs-info {
width: 1%;
text-align: right;
white-space: nowrap;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-page-title {
margin: 0;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-page-subtitle {
margin: 5px 0 0;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs {
color: #676767;
font-family: "Crimson Text", cursive;
font-size: 16px;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs.eltdf-has-inline-style a {
opacity: 1;
-webkit-transition: opacity 0.2s ease-out;
-moz-transition: opacity 0.2s ease-out;
transition: opacity 0.2s ease-out;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs.eltdf-has-inline-style a:hover {
color: #b97a56;
opacity: 0.9;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs a,
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs span {
position: relative;
display: inline-block;
vertical-align: middle;
color: #676767;
}
.eltdf-title-holder.eltdf-standard-with-breadcrumbs-type .eltdf-breadcrumbs a:hover {
color: #b97a56;
}
/* ==========================================================================
Standard With Breadcrumbs Title type style - end
========================================================================== */
/* ==========================================================================
Standard Title type style - begin
========================================================================== */
.eltdf-title-holder.eltdf-standard-type .eltdf-page-title {
margin: 0;
}
.eltdf-title-holder.eltdf-standard-type .eltdf-page-subtitle {
margin: 10px 0 0;
}
/* ==========================================================================
Standard Title type style - end
========================================================================== */
/* ==========================================================================
Title styles - end
========================================================================== */
/*# sourceMappingURL=title-map.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"file":"title-map.css","sources":["title/assets/css/scss/title-map.scss","../../assets/css/scss/_variables.scss","../../assets/css/scss/_mixins.scss","title/assets/css/scss/default/_title.scss","title/types/breadcrumbs/assets/css/scss/default/_breadcrumbs-title.scss","title/types/centered/assets/css/scss/default/_centered-title.scss","title/types/standard-with-breadcrumbs/assets/css/scss/default/_standard-with-breadcrumbs-title.scss","title/types/standard/assets/css/scss/default/_standard-title.scss"],"names":[],"mappings":"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","sourceRoot":"../../../../../css"}

View File

@@ -0,0 +1,50 @@
(function($) {
"use strict";
var title = {};
eltdf.modules.title = title;
title.eltdfOnDocumentReady = eltdfOnDocumentReady;
$(document).ready(eltdfOnDocumentReady);
/*
All functions to be called on $(document).ready() should be in this function
*/
function eltdfOnDocumentReady() {
eltdfParallaxTitle();
}
/*
** Title image with parallax effect
*/
function eltdfParallaxTitle() {
var parallaxBackground = $('.eltdf-title-holder.eltdf-bg-parallax');
if (parallaxBackground.length > 0 && eltdf.windowWidth > 1024) {
var parallaxBackgroundWithZoomOut = parallaxBackground.hasClass('eltdf-bg-parallax-zoom-out'),
titleHeight = parseInt(parallaxBackground.data('height')),
imageWidth = parseInt(parallaxBackground.data('background-width')),
parallaxRate = titleHeight / 10000 * 7,
parallaxYPos = -(eltdf.scroll * parallaxRate),
adminBarHeight = eltdfGlobalVars.vars.eltdfAddForAdminBar;
parallaxBackground.css({'background-position': 'center ' + (parallaxYPos + adminBarHeight) + 'px'});
if (parallaxBackgroundWithZoomOut) {
parallaxBackground.css({'background-size': imageWidth - eltdf.scroll + 'px auto'});
}
//set position of background on window scroll
$(window).scroll(function () {
parallaxYPos = -(eltdf.scroll * parallaxRate);
parallaxBackground.css({'background-position': 'center ' + (parallaxYPos + adminBarHeight) + 'px'});
if (parallaxBackgroundWithZoomOut) {
parallaxBackground.css({'background-size': imageWidth - eltdf.scroll + 'px auto'});
}
});
}
}
})(jQuery);

View File

@@ -0,0 +1,366 @@
<?php
if ( ! function_exists( 'calla_elated_include_title_types' ) ) {
/**
* Load's all title types by going through all folders that are placed directly in title types folder
*/
function calla_elated_include_title_types() {
foreach ( glob( ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/*/load.php' ) as $module_load ) {
include_once $module_load;
}
}
add_action('calla_elated_options_map', 'calla_elated_include_title_types', 1); // 1 is set to just be before title option map init
}
if ( ! function_exists( 'calla_elated_get_title' ) ) {
/**
* Loads title area template
*/
function calla_elated_get_title() {
$page_id = calla_elated_get_page_id();
$show_title_area_meta = calla_elated_get_meta_field_intersect( 'show_title_area', $page_id ) == 'yes' ? true : false;
$show_title_area = apply_filters( 'calla_elated_show_title_area', $show_title_area_meta );
if(is_home() && is_front_page()) {
$show_title_area = false;
}
if ( $show_title_area ) {
$type_meta = calla_elated_get_meta_field_intersect( 'title_area_type', $page_id );
$type = ! empty( $type_meta ) ? $type_meta : 'standard';
$template_path = apply_filters( 'calla_elated_title_template_path', $template_path = 'types/' . $type . '/templates/' . $type . '-title' );
$module = apply_filters( 'calla_elated_title_module', $module = 'title' );
$layout = apply_filters( 'calla_elated_title_layout', $layout = '' );
$title_tag_meta = calla_elated_get_meta_field_intersect( 'title_area_title_tag', $page_id );
$title_tag = ! empty( $title_tag_meta ) ? $title_tag_meta : 'h2';
$subtitle_tag_meta = calla_elated_get_meta_field_intersect( 'title_area_subtitle_tag', $page_id );
$subtitle_tag = ! empty( $subtitle_tag_meta ) ? $subtitle_tag_meta : 'h6';
$title_offset_value = calla_elated_get_meta_field_intersect( 'title_area_vertical_offset', $page_id );
$title_offset = '';
if ($title_offset_value !== ''){
$title_offset = 'margin-top: '.calla_elated_filter_px($title_offset_value).'px;';
}
$parameters = array(
'holder_classes' => calla_elated_get_title_holder_classes(),
'holder_styles' => calla_elated_get_title_holder_styles(),
'holder_data' => calla_elated_get_title_holder_data(),
'wrapper_styles' => calla_elated_get_title_wrapper_styles(),
'title_image' => calla_elated_get_title_background_image(),
'title_separator' => calla_elated_get_title_separator_image(),
'title' => calla_elated_get_title_text(),
'title_tag' => $title_tag,
'title_styles' => calla_elated_get_title_styles(),
'subtitle' => calla_elated_subtitle_text(),
'subtitle_tag' => $subtitle_tag,
'subtitle_styles' => calla_elated_get_subtitle_styles(),
'title_offset' => $title_offset
);
$parameters = apply_filters( 'calla_elated_title_area_params', $parameters );
calla_elated_get_module_template_part( $template_path, $module, $layout, $parameters );
}
}
}
if ( ! function_exists( 'calla_elated_get_title_holder_classes' ) ) {
/**
* Function that adds classes to title holder div
*/
function calla_elated_get_title_holder_classes() {
$page_id = calla_elated_get_page_id();
$title_type_meta = calla_elated_get_meta_field_intersect( 'title_area_type', $page_id );
$title_type = ! empty( $title_type_meta ) ? $title_type_meta : 'standard';
$title_in_grid_meta = calla_elated_get_meta_field_intersect( 'title_area_in_grid', $page_id );
$title_img = calla_elated_get_meta_field_intersect( 'title_area_background_image', $page_id );
$title_img_behavior = calla_elated_get_meta_field_intersect( 'title_area_background_image_behavior', $page_id );
$title_vertical_alignment = calla_elated_get_meta_field_intersect( 'title_area_vertical_alignment', $page_id );
$classes = array();
$classes[] = 'eltdf-' . $title_type . '-type';
if ( $title_in_grid_meta === 'no' ) {
$classes[] = 'eltdf-title-full-width';
}
if ( ! empty( $title_vertical_alignment ) ) {
$classes[] = 'eltdf-title-va-' . $title_vertical_alignment;
}
if ( ! empty( $title_img ) && $title_img_behavior !== 'hide' ) {
$classes[] = 'eltdf-preload-background';
$classes[] = 'eltdf-has-bg-image';
if ( ! empty( $title_img_behavior ) ) {
$classes[] = 'eltdf-bg-' . $title_img_behavior;
}
if ( $title_img_behavior === 'parallax-zoom-out' ) {
$classes[] = 'eltdf-bg-parallax';
}
}
return implode( ' ', apply_filters( 'calla_elated_title_holder_classes', $classes ) );
}
}
if ( ! function_exists( 'calla_elated_get_title_holder_styles' ) ) {
/**
* Function that adds inline styles to title holder div
*/
function calla_elated_get_title_holder_styles() {
$page_id = calla_elated_get_page_id();
$title_height = calla_elated_get_title_area_height();
$title_content_padding = calla_elated_get_title_content_padding();
$title_bg_color = calla_elated_get_meta_field_intersect( 'title_area_background_color', $page_id );
$title_image = calla_elated_get_meta_field_intersect( 'title_area_background_image', $page_id );
$title_image_behavior = calla_elated_get_meta_field_intersect( 'title_area_background_image_behavior', $page_id );
$styles = array();
if ( ! empty( $title_height ) ) {
$styles[] = 'height: ' . ( $title_height + $title_content_padding ) . 'px';
}
if ( ! empty( $title_bg_color ) ) {
$styles[] = 'background-color: ' . $title_bg_color;
}
if ( ! empty( $title_image ) && $title_image_behavior !== 'hide' ) {
$styles[] = 'background-image:url(' . esc_url( $title_image ) . ');';
}
return implode( ';', $styles );
}
}
if ( ! function_exists( 'calla_elated_get_title_holder_data' ) ) {
/**
* Function that adds data attributes to title holder div
*/
function calla_elated_get_title_holder_data() {
$page_id = calla_elated_get_page_id();
$title_height = calla_elated_get_title_area_height();
$title_img = calla_elated_get_meta_field_intersect( 'title_area_background_image', $page_id );
$title_img_behavior = calla_elated_get_meta_field_intersect( 'title_area_background_image_behavior', $page_id );
$data = array();
if ( ! empty( $title_height ) ) {
$data['data-height'] = $title_height;
}
if ( ! empty( $title_img ) && $title_img_behavior === 'parallax-zoom-out' ) {
$attachment_dimensions = calla_elated_get_image_dimensions( $title_img );
if ( ! empty( $attachment_dimensions['width'] ) ) {
$data['data-background-width'] = esc_attr( $attachment_dimensions['width'] );
}
}
return apply_filters( 'calla_elated_title_holder_data', $data );
}
}
if ( ! function_exists( 'calla_elated_get_title_wrapper_styles' ) ) {
/**
* Function that adds inline styles to title wrapper div
*/
function calla_elated_get_title_wrapper_styles() {
$page_id = calla_elated_get_page_id();
$title_height = calla_elated_get_title_area_height();
$title_content_padding = calla_elated_get_title_content_padding();
$title_img_behavior = calla_elated_get_meta_field_intersect( 'title_area_background_image_behavior', $page_id );
$title_vertical_alignment = calla_elated_get_meta_field_intersect( 'title_area_vertical_alignment', $page_id );
$styles = array();
if ( $title_vertical_alignment === 'header-bottom' ) {
if ( $title_img_behavior !== 'responsive' ) {
$styles[] = 'height: ' . $title_height . 'px';
}
if ( ! empty( $title_content_padding ) ) {
$styles[] = 'padding-top: ' . $title_content_padding . 'px';
}
}
return implode( ';', $styles );
}
}
if ( ! function_exists( 'calla_elated_get_title_background_image' ) ) {
/**
* Function that return background image data if background image is set
*/
function calla_elated_get_title_background_image() {
$page_id = calla_elated_get_page_id();
$title_img = calla_elated_get_meta_field_intersect( 'title_area_background_image', $page_id );
$title_img_behavior = calla_elated_get_meta_field_intersect( 'title_area_background_image_behavior', $page_id );
$image = array();
if ( ! empty( $title_img ) && $title_img_behavior !== 'hide' ) {
$image_id = calla_elated_get_attachment_id_from_url( $title_img );
$alt = ! empty( $image_id ) ? get_post_meta( $image_id, '_wp_attachment_image_alt', true ) : '';
$image['src'] = $title_img;
$image['alt'] = ! empty( $alt ) ? esc_html( $alt ) : esc_html__( 'Image Alt', 'calla' );
}
return $image;
}
}
if ( ! function_exists( 'calla_elated_get_title_separator_image' ) ) {
/**
* Function that return background image data if background image is set
*/
function calla_elated_get_title_separator_image() {
$page_id = calla_elated_get_page_id();
$show_separator = calla_elated_get_meta_field_intersect('show_separator_image', $page_id);
$separator_params = array();
if ($show_separator == 'yes') {
$separator_params['position'] = '';
$disable_separator_image = get_post_meta($page_id, 'eltdf_disable_separator_image_meta', true);
if ($disable_separator_image == 'no') {
$title_img = calla_elated_get_meta_field_intersect('separator_image', $page_id);
if (!empty($title_img)) {
$separator_params['enable_icon'] = 'custom-icon';
$separator_params['custom_icon'] = calla_elated_get_attachment_id_from_url($title_img);
}
}
}
return $separator_params;
}
}
if ( ! function_exists( 'calla_elated_get_title_area_height' ) ) {
/**
* Function that returns title area height
**/
function calla_elated_get_title_area_height() {
$page_id = calla_elated_get_page_id();
$title_height_meta = calla_elated_get_meta_field_intersect( 'title_area_height', $page_id );
$title_height = ! empty( $title_height_meta ) ? intval( $title_height_meta ) : apply_filters( 'calla_elated_title_area_default_height_value', 270 );
return apply_filters( 'calla_elated_title_area_height', $title_height );
}
}
if ( ! function_exists( 'calla_elated_get_title_content_padding' ) ) {
/**
* Function that returns title content padding
**/
function calla_elated_get_title_content_padding() {
$title_content_padding = apply_filters( 'calla_elated_title_content_padding', 0 );
return intval($title_content_padding);
}
}
if ( ! function_exists( 'calla_elated_get_title_text' ) ) {
/**
* Function that returns current page title text
*/
function calla_elated_get_title_text() {
$page_id = calla_elated_get_page_id();
$title = get_the_title( $page_id );
if ( ( is_home() && is_front_page() ) || is_singular( 'post' ) ) {
$title = get_option( 'blogname' );
} elseif(is_singular( 'portfolio-item' )){
$title = esc_html__( 'Portfolio', 'calla' );
} elseif ( is_tag() ) {
$title = single_term_title( '', false ) . esc_html__( ' Tag', 'calla' );
} elseif ( is_date() ) {
$title = get_the_time( 'F Y' );
} elseif ( is_author() ) {
$title = esc_html__( 'Author:', 'calla' ) . " " . get_the_author();
} elseif ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_archive() ) {
$title = esc_html__( 'Archive', 'calla' );
} elseif ( is_search() ) {
$title = esc_html__( 'Wyniki wyszukiwania dla: ', 'calla' ) . get_search_query();
} elseif ( is_404() ) {
$title_404 = calla_elated_options()->getOptionValue( '404_title' );
$title = ! empty( $title_404 ) ? $title_404 : esc_html__( '404 - Page not found', 'calla' );
}
return apply_filters( 'calla_elated_title_text', $title );
}
}
if ( ! function_exists( 'calla_elated_get_title_styles' ) ) {
/**
* Function that adds inline styles to page title
*/
function calla_elated_get_title_styles() {
$page_id = calla_elated_get_page_id();
$color = get_post_meta( $page_id, 'eltdf_title_text_color_meta', true );
$styles = array();
if ( ! empty( $color ) ) {
$styles[] = 'color: ' . esc_attr( $color );
}
return implode( ';', $styles );
}
}
if ( ! function_exists( 'calla_elated_subtitle_text' ) ) {
/**
* Function that echoes subtitle text.
*/
function calla_elated_subtitle_text() {
$page_id = calla_elated_get_page_id();
$subtitle_meta = get_post_meta( $page_id, 'eltdf_title_area_subtitle_meta', true );
$subtitle = ! empty( $subtitle_meta ) ? $subtitle_meta : '';
return apply_filters( 'calla_elated_subtitle_title_text', $subtitle );
}
}
if ( ! function_exists( 'calla_elated_get_subtitle_styles' ) ) {
/**
* Function that adds inline styles to page subtitle
*/
function calla_elated_get_subtitle_styles() {
$page_id = calla_elated_get_page_id();
$color = get_post_meta( $page_id, 'eltdf_subtitle_color_meta', true );
$side_padding = get_post_meta( $page_id, 'eltdf_subtitle_side_padding_meta', true );
$styles = array();
if ( ! empty( $color ) ) {
$styles[] = 'color: ' . $color;
}
if ( $side_padding !== '' ) {
if ( calla_elated_string_ends_with( $side_padding, '%' ) || calla_elated_string_ends_with( $side_padding, 'px' ) ) {
$styles[] = 'padding: 0 ' . $side_padding;
} else {
$styles[] = 'padding: 0 ' . intval( $side_padding ) . 'px';
}
}
return implode( ';', $styles );
}
}

View File

@@ -0,0 +1,12 @@
<?php
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/functions.php';
//load global title options
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/admin/options-map/title-map.php';
//load per page title options
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/admin/meta-boxes/title-meta-boxes.php';
//load global title custom styles
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/admin/custom-styles/title-custom-styles.php';

View File

@@ -0,0 +1,30 @@
<?php
if ( ! function_exists( 'calla_elated_breadcrumbs_title_area_typography_style' ) ) {
function calla_elated_breadcrumbs_title_area_typography_style() {
$item_styles = calla_elated_get_typography_styles( 'page_breadcrumb' );
$item_selector = array(
'.eltdf-title-holder .eltdf-title-wrapper .eltdf-breadcrumbs'
);
echo calla_elated_dynamic_css( $item_selector, $item_styles );
$breadcrumb_hover_color = calla_elated_options()->getOptionValue( 'page_breadcrumb_hovercolor' );
$breadcrumb_hover_styles = array();
if ( ! empty( $breadcrumb_hover_color ) ) {
$breadcrumb_hover_styles['color'] = $breadcrumb_hover_color;
}
$breadcrumb_hover_selector = array(
'.eltdf-title-holder .eltdf-title-wrapper .eltdf-breadcrumbs a:hover'
);
echo calla_elated_dynamic_css( $breadcrumb_hover_selector, $breadcrumb_hover_styles );
}
add_action( 'calla_elated_style_dynamic', 'calla_elated_breadcrumbs_title_area_typography_style' );
}

View File

@@ -0,0 +1,18 @@
<?php
if ( ! function_exists( 'calla_elated_breadcrumbs_title_type_options_meta_boxes' ) ) {
function calla_elated_breadcrumbs_title_type_options_meta_boxes( $show_title_area_meta_container ) {
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_breadcrumbs_color_meta',
'type' => 'color',
'label' => esc_html__( 'Breadcrumbs Color', 'calla' ),
'description' => esc_html__( 'Choose a color for breadcrumbs text', 'calla' ),
'parent' => $show_title_area_meta_container
)
);
}
add_action( 'calla_elated_additional_title_area_meta_boxes', 'calla_elated_breadcrumbs_title_type_options_meta_boxes' );
}

View File

@@ -0,0 +1,148 @@
<?php
if ( ! function_exists('calla_elated_breadcrumbs_title_type_options_map') ) {
function calla_elated_breadcrumbs_title_type_options_map($panel_typography) {
calla_elated_add_admin_section_title(
array(
'name' => 'type_section_breadcrumbs',
'title' => esc_html__( 'Breadcrumbs', 'calla' ),
'parent' => $panel_typography
)
);
$group_page_breadcrumbs_styles = calla_elated_add_admin_group(
array(
'name' => 'group_page_breadcrumbs_styles',
'title' => esc_html__( 'Breadcrumbs', 'calla' ),
'description' => esc_html__( 'Define styles for page breadcrumbs', 'calla' ),
'parent' => $panel_typography
)
);
$row_page_breadcrumbs_styles_1 = calla_elated_add_admin_row(
array(
'name' => 'row_page_breadcrumbs_styles_1',
'parent' => $group_page_breadcrumbs_styles
)
);
calla_elated_add_admin_field(
array(
'type' => 'colorsimple',
'name' => 'page_breadcrumb_color',
'label' => esc_html__( 'Text Color', 'calla' ),
'parent' => $row_page_breadcrumbs_styles_1
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_breadcrumb_font_size',
'default_value' => '',
'label' => esc_html__( 'Font Size', 'calla' ),
'parent' => $row_page_breadcrumbs_styles_1,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_breadcrumb_line_height',
'default_value' => '',
'label' => esc_html__( 'Line Height', 'calla' ),
'parent' => $row_page_breadcrumbs_styles_1,
'args' => array(
'suffix' => 'px'
)
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_breadcrumb_text_transform',
'default_value' => '',
'label' => esc_html__( 'Text Transform', 'calla' ),
'options' => calla_elated_get_text_transform_array(),
'parent' => $row_page_breadcrumbs_styles_1
)
);
$row_page_breadcrumbs_styles_2 = calla_elated_add_admin_row(
array(
'name' => 'row_page_breadcrumbs_styles_2',
'parent' => $group_page_breadcrumbs_styles,
'next' => true
)
);
calla_elated_add_admin_field(
array(
'type' => 'fontsimple',
'name' => 'page_breadcrumb_google_fonts',
'default_value' => '-1',
'label' => esc_html__( 'Font Family', 'calla' ),
'parent' => $row_page_breadcrumbs_styles_2
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_breadcrumb_font_style',
'default_value' => '',
'label' => esc_html__( 'Font Style', 'calla' ),
'options' => calla_elated_get_font_style_array(),
'parent' => $row_page_breadcrumbs_styles_2
)
);
calla_elated_add_admin_field(
array(
'type' => 'selectblanksimple',
'name' => 'page_breadcrumb_font_weight',
'default_value' => '',
'label' => esc_html__( 'Font Weight', 'calla' ),
'options' => calla_elated_get_font_weight_array(),
'parent' => $row_page_breadcrumbs_styles_2
)
);
calla_elated_add_admin_field(
array(
'type' => 'textsimple',
'name' => 'page_breadcrumb_letter_spacing',
'default_value' => '',
'label' => esc_html__( 'Letter Spacing', 'calla' ),
'parent' => $row_page_breadcrumbs_styles_2,
'args' => array(
'suffix' => 'px'
)
)
);
$row_page_breadcrumbs_styles_3 = calla_elated_add_admin_row(
array(
'name' => 'row_page_breadcrumbs_styles_3',
'parent' => $group_page_breadcrumbs_styles,
'next' => true
)
);
calla_elated_add_admin_field(
array(
'type' => 'colorsimple',
'name' => 'page_breadcrumb_hovercolor',
'label' => esc_html__( 'Hover/Active Text Color', 'calla' ),
'parent' => $row_page_breadcrumbs_styles_3
)
);
}
add_action( 'calla_elated_additional_title_typography_options_map', 'calla_elated_breadcrumbs_title_type_options_map');
}

View File

@@ -0,0 +1,163 @@
<?php
if ( ! function_exists( 'calla_elated_set_title_breadcrumbs_type_for_options' ) ) {
/**
* This function set breadcrumbs title type value for title options map and meta boxes
*/
function calla_elated_set_title_breadcrumbs_type_for_options( $type ) {
$type['breadcrumbs'] = esc_html__( 'Breadcrumbs', 'calla' );
return $type;
}
add_filter( 'calla_elated_title_type_global_option', 'calla_elated_set_title_breadcrumbs_type_for_options' );
add_filter( 'calla_elated_title_type_meta_boxes', 'calla_elated_set_title_breadcrumbs_type_for_options' );
}
if ( ! function_exists( 'calla_elated_custom_breadcrumbs' ) ) {
/**
* Function that renders breadcrumbs
*/
function calla_elated_custom_breadcrumbs() {
global $post;
$pageid = calla_elated_get_page_id();
$homeLink = esc_url( home_url( '/' ) );
$home = esc_html__( 'Home', 'calla' );
$delimiter = '<span class="eltdf-delimiter">&nbsp; / &nbsp;</span>';
$before = '<span class="eltdf-current">';
$after = '</span>';
$holder_classes = array();
$holder_styles = array();
$colorMeta = get_post_meta( $pageid, 'eltdf_breadcrumbs_color_meta', true );
if ( ! empty( $colorMeta ) ) {
$holder_classes[] = 'eltdf-has-inline-style';
$holder_styles[] = 'color: ' . $colorMeta;
}
$holder_classes = implode( ' ', $holder_classes );
$output = '<div itemprop="breadcrumb" class="eltdf-breadcrumbs ' . esc_attr( $holder_classes ) . '" ' . calla_elated_get_inline_attr( $holder_styles, 'style', ';' ) . '>';
if ( is_home() && ! is_front_page() ) {
$output .= '<a itemprop="url" href="' . $homeLink . '">' . $home . '</a>' . $delimiter . ' <a itemprop="url" href="' . $homeLink . '">' . get_the_title( $pageid ) . '</a>';
} elseif ( is_home() ) {
$output .= $before . $home . $after;
} elseif ( is_front_page() ) {
$output .= '<a itemprop="url" href="' . $homeLink . '">' . $home . '</a>';
} else {
$output .= '<a itemprop="url" href="' . $homeLink . '">' . $home . '</a>' . $delimiter;
$childContent = '';
if ( is_tag() ) {
$childContent .= $before . esc_html__( 'Posts tagged ', 'calla' ) . '"' . single_tag_title( '', false ) . '"' . $after;
} elseif ( is_day() ) {
$childContent .= '<a itemprop="url" href="' . get_year_link( get_the_time( 'Y' ) ) . '">' . get_the_time( 'Y' ) . '</a>' . $delimiter;
$childContent .= '<a itemprop="url" href="' . get_month_link( get_the_time( 'Y' ), get_the_time( 'm' ) ) . '">' . get_the_time( 'F' ) . '</a>' . $delimiter;
$childContent .= $before . get_the_time( 'd' ) . $after;
} elseif ( is_month() ) {
$childContent .= '<a itemprop="url" href="' . get_year_link( get_the_time( 'Y' ) ) . '">' . get_the_time( 'Y' ) . '</a>' . $delimiter;
$childContent .= $before . get_the_time( 'F' ) . $after;
} elseif ( is_year() ) {
$childContent .= $before . get_the_time( 'Y' ) . $after;
} elseif ( is_author() ) {
$author_id = get_query_var( 'author' );
$childContent .= $before . esc_html__( 'Articles posted by ', 'calla' ) . get_the_author_meta( 'display_name', $author_id ) . $after;
} elseif ( is_category() ) {
$thisCat = get_category( get_query_var( 'cat' ), false );
if ( isset( $thisCat->parent ) && $thisCat->parent != 0 ) {
$childContent .= get_category_parents( $thisCat->parent, true, ' ' . $delimiter );
}
$childContent .= $before . single_cat_title( '', false ) . $after;
} elseif ( is_search() ) {
$childContent .= $before . esc_html__( 'Wyniki wyszukiwania dla ', 'calla' ) . '"' . get_search_query() . '"' . $after;
} elseif ( is_404() ) {
$childContent .= $before . esc_html__( 'Error 404', 'calla' ) . $after;
} elseif ( is_single() && ! is_attachment() ) {
if ( is_singular( 'post' ) ) {
$cat = get_the_category();
$cat = $cat[0];
$cats = get_category_parents( $cat, true, ' ' . $delimiter );
$childContent .= $cats;
$childContent .= $before . get_the_title() . $after;
} else {
$childContent .= $before . get_the_title() . $after;
}
} elseif ( is_attachment() ) {
if ( $post->post_parent ) {
$parent = get_post( $post->post_parent );
$cat = get_the_category( $parent->ID );
if ( $cat ) {
$cat = $cat[0];
$childContent .= get_category_parents( $cat, true, ' ' . $delimiter );
}
$childContent .= '<a itemprop="url" href="' . get_permalink( $parent ) . '">' . $parent->post_title . '</a>';
$childContent .= $delimiter . $before . get_the_title() . $after;
} else {
$childContent .= $before . get_the_title() . $after;
}
} elseif ( is_page() ) {
if ( $post->post_parent ) {
$parent_ids = array();
$parent_ids[] = $post->post_parent;
foreach ( $parent_ids as $parent_id ) {
$childContent .= '<a itemprop="url" href="' . get_the_permalink( $parent_id ) . '">' . get_the_title( $parent_id ) . '</a>' . $delimiter;
}
}
$childContent .= $before . get_the_title() . $after;
}
if ( get_query_var( 'paged' ) ) {
$childContent .= $before . " (" . esc_html__( 'Page', 'calla' ) . ' ' . get_query_var( 'paged' ) . ")" . $after;
}
$output .= apply_filters( 'calla_elated_breadcrumbs_title_child_output', $childContent, $delimiter, $before, $after );
}
$output .= '</div>';
echo wp_kses( apply_filters( 'calla_elated_breadcrumbs_title_output', $output ), array(
'div' => array(
'itemprop' => true,
'id' => true,
'class' => true,
'style' => true
),
'span' => array(
'class' => true,
'id' => true,
'style' => true
),
'a' => array(
'itemprop' => true,
'id' => true,
'class' => true,
'href' => true,
'style' => true
)
) );
}
}

View File

@@ -0,0 +1,3 @@
<?php
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/breadcrumbs/functions.php';

View File

@@ -0,0 +1,18 @@
<?php do_action('calla_elated_before_page_title'); ?>
<div class="eltdf-title-holder <?php echo esc_attr($holder_classes); ?>" <?php calla_elated_inline_style($holder_styles); ?> <?php echo calla_elated_get_inline_attrs($holder_data); ?>>
<?php if(!empty($title_image)) { ?>
<div class="eltdf-title-image">
<img itemprop="image" src="<?php echo esc_url($title_image['src']); ?>" alt="<?php echo esc_attr($title_image['alt']); ?>" />
</div>
<?php } ?>
<div class="eltdf-title-wrapper" <?php calla_elated_inline_style($wrapper_styles); ?>>
<div class="eltdf-title-inner">
<div class="eltdf-grid" <?php calla_elated_inline_style($title_offset);?>>
<?php calla_elated_custom_breadcrumbs(); ?>
</div>
</div>
</div>
</div>
<?php do_action('calla_elated_after_page_title'); ?>

View File

@@ -0,0 +1,22 @@
<?php
if ( ! function_exists( 'calla_elated_centered_title_type_options_meta_boxes' ) ) {
function calla_elated_centered_title_type_options_meta_boxes( $show_title_area_meta_container ) {
calla_elated_create_meta_box_field(
array(
'name' => 'eltdf_subtitle_side_padding_meta',
'type' => 'text',
'label' => esc_html__( 'Subtitle Side Padding', 'calla' ),
'description' => esc_html__( 'Set left/right padding for subtitle area', 'calla' ),
'parent' => $show_title_area_meta_container,
'args' => array(
'col_width' => 2,
'suffix' => 'px or %'
)
)
);
}
add_action( 'calla_elated_additional_title_area_meta_boxes', 'calla_elated_centered_title_type_options_meta_boxes', 5 );
}

View File

@@ -0,0 +1,15 @@
<?php
if ( ! function_exists( 'calla_elated_set_title_centered_type_for_options' ) ) {
/**
* This function set centered title type value for title options map and meta boxes
*/
function calla_elated_set_title_centered_type_for_options( $type ) {
$type['centered'] = esc_html__( 'Centered', 'calla' );
return $type;
}
add_filter( 'calla_elated_title_type_global_option', 'calla_elated_set_title_centered_type_for_options' );
add_filter( 'calla_elated_title_type_meta_boxes', 'calla_elated_set_title_centered_type_for_options' );
}

View File

@@ -0,0 +1,3 @@
<?php
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/centered/functions.php';

View File

@@ -0,0 +1,25 @@
<?php do_action('calla_elated_before_page_title'); ?>
<div class="eltdf-title-holder <?php echo esc_attr($holder_classes); ?>" <?php calla_elated_inline_style($holder_styles); ?> <?php echo calla_elated_get_inline_attrs($holder_data); ?>>
<?php if(!empty($title_image)) { ?>
<div class="eltdf-title-image">
<img itemprop="image" src="<?php echo esc_url($title_image['src']); ?>" alt="<?php echo esc_attr($title_image['alt']); ?>" />
</div>
<?php } ?>
<div class="eltdf-title-wrapper" <?php calla_elated_inline_style($wrapper_styles); ?>>
<div class="eltdf-title-inner">
<div class="eltdf-grid" <?php calla_elated_inline_style($title_offset);?>>
<?php if(!empty($title)) { ?>
<<?php echo esc_attr($title_tag); ?> class="eltdf-page-title entry-title" <?php calla_elated_inline_style($title_styles); ?>><?php echo esc_html($title); ?></<?php echo esc_attr($title_tag); ?>>
<?php } ?>
<?php if(!empty($subtitle)){ ?>
<<?php echo esc_attr($subtitle_tag); ?> class="eltdf-page-subtitle" <?php calla_elated_inline_style($subtitle_styles); ?>><?php echo esc_html($subtitle); ?></<?php echo esc_attr($subtitle_tag); ?>>
<?php } ?>
<?php if(is_array($title_separator) && count($title_separator)) {
echo calla_elated_execute_shortcode('eltdf_separator', $title_separator);
} ?>
</div>
</div>
</div>
</div>
<?php do_action('calla_elated_after_page_title'); ?>

View File

@@ -0,0 +1,15 @@
<?php
if ( ! function_exists( 'calla_elated_set_title_standard_with_breadcrumbs_type_for_options' ) ) {
/**
* This function set standard with breadcrumbs title type value for title options map and meta boxes
*/
function calla_elated_set_title_standard_with_breadcrumbs_type_for_options( $type ) {
$type['standard-with-breadcrumbs'] = esc_html__( 'Standard With Breadcrumbs', 'calla' );
return $type;
}
add_filter( 'calla_elated_title_type_global_option', 'calla_elated_set_title_standard_with_breadcrumbs_type_for_options' );
add_filter( 'calla_elated_title_type_meta_boxes', 'calla_elated_set_title_standard_with_breadcrumbs_type_for_options' );
}

View File

@@ -0,0 +1,3 @@
<?php
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/standard-with-breadcrumbs/functions.php';

View File

@@ -0,0 +1,31 @@
<?php do_action('calla_elated_before_page_title'); ?>
<div class="eltdf-title-holder <?php echo esc_attr($holder_classes); ?>" <?php calla_elated_inline_style($holder_styles); ?> <?php echo calla_elated_get_inline_attrs($holder_data); ?>>
<?php if(!empty($title_image)) { ?>
<div class="eltdf-title-image">
<img itemprop="image" src="<?php echo esc_url($title_image['src']); ?>" alt="<?php echo esc_attr($title_image['alt']); ?>" />
</div>
<?php } ?>
<div class="eltdf-title-wrapper" <?php calla_elated_inline_style($wrapper_styles); ?>>
<div class="eltdf-title-inner">
<div class="eltdf-grid" <?php calla_elated_inline_style($title_offset);?>>
<div class="eltdf-title-info">
<?php if(!empty($title)) { ?>
<<?php echo esc_attr($title_tag); ?> class="eltdf-page-title entry-title" <?php calla_elated_inline_style($title_styles); ?>><?php echo esc_html($title); ?></<?php echo esc_attr($title_tag); ?>>
<?php } ?>
<?php if(!empty($subtitle)){ ?>
<<?php echo esc_attr($subtitle_tag); ?> class="eltdf-page-subtitle" <?php calla_elated_inline_style($subtitle_styles); ?>><?php echo esc_html($subtitle); ?></<?php echo esc_attr($subtitle_tag); ?>>
<?php } ?>
<?php if(is_array($title_separator) && count($title_separator)) {
echo calla_elated_execute_shortcode('eltdf_separator', $title_separator);
} ?>
</div>
<div class="eltdf-breadcrumbs-info">
<?php calla_elated_custom_breadcrumbs(); ?>
</div>
</div>
</div>
</div>
</div>
<?php do_action('calla_elated_after_page_title'); ?>

View File

@@ -0,0 +1,28 @@
<?php
if ( ! function_exists( 'calla_elated_set_title_standard_type_for_options' ) ) {
/**
* This function set standard title type value for title options map and meta boxes
*/
function calla_elated_set_title_standard_type_for_options( $type ) {
$type['standard'] = esc_html__( 'Standard', 'calla' );
return $type;
}
add_filter( 'calla_elated_title_type_global_option', 'calla_elated_set_title_standard_type_for_options' );
add_filter( 'calla_elated_title_type_meta_boxes', 'calla_elated_set_title_standard_type_for_options' );
}
if ( ! function_exists( 'calla_elated_set_title_standard_type_as_default_options' ) ) {
/**
* This function set default title type value for global title option map
*/
function calla_elated_set_title_standard_type_as_default_options( $type ) {
$type = 'standard';
return $type;
}
add_filter( 'calla_elated_default_title_type_global_option', 'calla_elated_set_title_standard_type_as_default_options' );
}

View File

@@ -0,0 +1,3 @@
<?php
include_once ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/standard/functions.php';

View File

@@ -0,0 +1,26 @@
<?php do_action('calla_elated_before_page_title'); ?>
<div class="eltdf-title-holder <?php echo esc_attr($holder_classes); ?>" <?php calla_elated_inline_style($holder_styles); ?> <?php echo calla_elated_get_inline_attrs($holder_data); ?>>
<?php if(!empty($title_image)) { ?>
<div class="eltdf-title-image">
<img itemprop="image" src="<?php echo esc_url($title_image['src']); ?>" alt="<?php echo esc_attr($title_image['alt']); ?>" />
</div>
<?php } ?>
<div class="eltdf-title-wrapper" <?php calla_elated_inline_style($wrapper_styles); ?>>
<div class="eltdf-title-inner">
<div class="eltdf-grid" <?php calla_elated_inline_style($title_offset);?>>
<?php if(!empty($title)) { ?>
<<?php echo esc_attr($title_tag); ?> class="eltdf-page-title entry-title" <?php calla_elated_inline_style($title_styles); ?>><?php echo esc_html($title); ?></<?php echo esc_attr($title_tag); ?>>
<?php } ?>
<?php if(!empty($subtitle)){ ?>
<<?php echo esc_attr($subtitle_tag); ?> class="eltdf-page-subtitle" <?php calla_elated_inline_style($subtitle_styles); ?>><?php echo esc_html($subtitle); ?></<?php echo esc_attr($subtitle_tag); ?>>
<?php } ?>
<?php if(is_array($title_separator) && count($title_separator)) {
echo calla_elated_execute_shortcode('eltdf_separator', $title_separator);
} ?>
</div>
</div>
</div>
</div>
<?php do_action('calla_elated_after_page_title'); ?>