Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/footer/
?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules
<?php
if (!function_exists('edgtf_quadric_register_footer_sidebar')) {
function edgtf_quadric_register_footer_sidebar() {
register_sidebar(array(
'name' => esc_html__( 'Footer Column 1', 'quadric' ),
'id' => 'footer_column_1',
'description' => esc_html__( 'Footer Column 1', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-column-1 %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'. edgtf_quadric_get_footer_separator()
));
register_sidebar(array(
'name' => esc_html__( 'Footer Column 2', 'quadric' ),
'id' => 'footer_column_2',
'description' => esc_html__( 'Footer Column 2', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-column-2 %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'. edgtf_quadric_get_footer_separator()
));
register_sidebar(array(
'name' => esc_html__( 'Footer Column 3', 'quadric' ),
'id' => 'footer_column_3',
'description' => esc_html__( 'Footer Column 3', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-column-3 %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'. edgtf_quadric_get_footer_separator()
));
register_sidebar(array(
'name' => esc_html__( 'Footer Column 4', 'quadric' ),
'id' => 'footer_column_4',
'description' => esc_html__( 'Footer Column 4', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-column-4 %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'. edgtf_quadric_get_footer_separator()
));
register_sidebar(array(
'name' => esc_html__( 'Footer Bottom', 'quadric' ),
'id' => 'footer_text',
'description' => esc_html__( 'Footer Bottom', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-text %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => esc_html__( 'Footer Bottom Left', 'quadric' ),
'id' => 'footer_bottom_left',
'description' => esc_html__( 'Footer Bottom Left', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-bottom-left %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => esc_html__( 'Footer Bottom Right', 'quadric' ),
'id' => 'footer_bottom_right',
'description' => esc_html__( 'Footer Bottom Right', 'quadric' ),
'before_widget' => '<div id="%1$s" class="widget edgtf-footer-bottom-left %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="edgtf-footer-widget-title">',
'after_title' => '</h3>'
));
}
add_action('widgets_init', 'edgtf_quadric_register_footer_sidebar');
}
if (!function_exists('edgtf_quadric_get_footer')) {
/**
* Loads footer HTML
*/
function edgtf_quadric_get_footer() {
$parameters = array();
$id = edgtf_quadric_get_page_id();
$parameters['footer_classes'] = edgtf_quadric_get_footer_classes($id);
$parameters['display_footer_top'] = (edgtf_quadric_options()->getOptionValue('show_footer_top') == 'yes') ? true : false;
$parameters['display_footer_bottom'] = (edgtf_quadric_options()->getOptionValue('show_footer_bottom') == 'yes') ? true : false;
edgtf_quadric_get_module_template_part('templates/footer', 'footer', '', $parameters);
}
}
if (!function_exists('edgtf_quadric_get_content_bottom_area')) {
/**
* Loads content bottom area HTML with all needed parameters
*/
function edgtf_quadric_get_content_bottom_area() {
$parameters = array();
//Current page id
$id = edgtf_quadric_get_page_id();
//is content bottom area enabled for current page?
$parameters['content_bottom_area'] = edgtf_quadric_get_meta_field_intersect('enable_content_bottom_area');
if ($parameters['content_bottom_area'] == 'yes') {
//Sidebar for content bottom area
$parameters['content_bottom_area_sidebar'] = edgtf_quadric_get_meta_field_intersect('content_bottom_sidebar_custom_display');
//Content bottom area in grid
$parameters['content_bottom_area_in_grid'] = edgtf_quadric_get_meta_field_intersect('content_bottom_in_grid');
//Content bottom area background color
$parameters['content_bottom_background_color'] = 'background-color: '.edgtf_quadric_get_meta_field_intersect('content_bottom_background_color');
}
edgtf_quadric_get_module_template_part('templates/parts/content-bottom-area', 'footer', '', $parameters);
}
}
if (!function_exists('edgtf_quadric_get_footer_top')) {
/**
* Return footer top HTML
*/
function edgtf_quadric_get_footer_top() {
$parameters = array();
$parameters['footer_top_border'] = edgtf_quadric_get_footer_top_border();
$parameters['footer_top_border_in_grid'] = (edgtf_quadric_options()->getOptionValue('footer_top_border_in_grid') == 'yes') ? 'edgtf-in-grid' : '';
$parameters['footer_in_grid'] = (edgtf_quadric_options()->getOptionValue('footer_in_grid') == 'yes') ? true : false;
$parameters['footer_top_classes'] = (edgtf_quadric_options()->getOptionValue('footer_in_grid') == 'yes') ? '' : 'edgtf-footer-top-full';
$parameters['footer_top_columns'] = edgtf_quadric_options()->getOptionValue('footer_top_columns');
edgtf_quadric_get_module_template_part('templates/parts/footer-top', 'footer', '', $parameters);
}
}
if (!function_exists('edgtf_quadric_get_footer_bottom')) {
/**
* Return footer bottom HTML
*/
function edgtf_quadric_get_footer_bottom() {
$parameters = array();
$parameters['footer_bottom_border'] = edgtf_quadric_get_footer_bottom_border();
$parameters['footer_bottom_border_in_grid'] = (edgtf_quadric_options()->getOptionValue('footer_bottom_border_in_grid') == 'yes') ? 'edgtf-in-grid' : '';
$parameters['footer_in_grid'] = (edgtf_quadric_options()->getOptionValue('footer_in_grid') == 'yes') ? true : false;
$parameters['footer_bottom_classes'] = (edgtf_quadric_options()->getOptionValue('footer_in_grid') == 'yes') ? '' : 'edgtf-footer-bottom-full';
$parameters['footer_bottom_columns'] = edgtf_quadric_options()->getOptionValue('footer_bottom_columns');
$parameters['footer_bottom_border_bottom'] = edgtf_quadric_get_footer_bottom_bottom_border();
edgtf_quadric_get_module_template_part('templates/parts/footer-bottom', 'footer', '', $parameters);
}
}
if (!function_exists('edgtf_quadric_get_footer_separator')) {
/**
* Return separator below title
*/
function edgtf_quadric_get_footer_separator() {
$html = '';
if(edgtf_quadric_core_installed() && edgtf_quadric_core_installed() && edgtf_quadric_options()->getOptionValue('footer_separator') != 'no'){
$html .= edgtf_quadric_get_zig_zag_html(array('size'=>'small', 'position'=>'left', 'animated'=>'no', ''));
}
return $html;
}
}
//Functions for loading sidebars
if (!function_exists('edgtf_quadric_get_footer_sidebar_25_25_50')) {
function edgtf_quadric_get_footer_sidebar_25_25_50() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-three-columns-25-25-50', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_sidebar_50_25_25')) {
function edgtf_quadric_get_footer_sidebar_50_25_25() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-three-columns-50-25-25', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_sidebar_four_columns')) {
function edgtf_quadric_get_footer_sidebar_four_columns() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-four-columns', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_sidebar_three_columns')) {
function edgtf_quadric_get_footer_sidebar_three_columns() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-three-columns', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_sidebar_two_columns')) {
function edgtf_quadric_get_footer_sidebar_two_columns() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-two-columns', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_sidebar_one_column')) {
function edgtf_quadric_get_footer_sidebar_one_column() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-one-column', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_bottom_sidebar_three_columns')) {
function edgtf_quadric_get_footer_bottom_sidebar_three_columns() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-bottom-three-columns', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_bottom_sidebar_two_columns')) {
function edgtf_quadric_get_footer_bottom_sidebar_two_columns() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-bottom-two-columns', 'footer');
}
}
if (!function_exists('edgtf_quadric_get_footer_bottom_sidebar_one_column')) {
function edgtf_quadric_get_footer_bottom_sidebar_one_column() {
edgtf_quadric_get_module_template_part('templates/sidebars/sidebar-bottom-one-column', 'footer');
}
}