Make WordPress Themes

Changeset 248156


Ignore:
Timestamp:
11/09/2024 11:32:26 AM (13 months ago)
Author:
themedropbox
Message:

New version of Home Construction Builder - 1.0.6

Location:
home-construction-builder/1.0.6
Files:
23 edited
1 copied

Legend:

Unmodified
Added
Removed
  • home-construction-builder/1.0.6/classes/body-classes.php

    r233437 r248156  
    77 if (!function_exists('home_construction_builder_body_classes')) :
    88
    9     function home_construction_builder_body_classes($classes) {
     9    function home_construction_builder_body_classes($home_construction_builder_classes) {
    1010
    1111        $home_construction_builder_default = home_construction_builder_get_default_theme_options();
     
    1313        // Adds a class of hfeed to non-singular pages.
    1414        if ( !is_singular() ) {
    15             $classes[] = 'hfeed';
     15            $home_construction_builder_classes[] = 'hfeed';
    1616        }
    1717
    1818        // Adds a class of no-sidebar when there is no sidebar present.
    1919        if ( !is_active_sidebar( 'sidebar-1' ) ) {
    20             $classes[] = 'no-sidebar';
     20            $home_construction_builder_classes[] = 'no-sidebar';
    2121        }
    2222
     
    2727                $home_construction_builder_post_sidebar = esc_html( get_post_meta( $post->ID, 'home_construction_builder_post_sidebar_option', true ) );
    2828                if (empty($home_construction_builder_post_sidebar) || ($home_construction_builder_post_sidebar == 'global-sidebar')) {
    29                     $classes[] = esc_attr( $home_construction_builder_global_sidebar_layout );
     29                    $home_construction_builder_classes[] = esc_attr( $home_construction_builder_global_sidebar_layout );
    3030                } else{
    31                     $classes[] = esc_attr( $home_construction_builder_post_sidebar );
     31                    $home_construction_builder_classes[] = esc_attr( $home_construction_builder_post_sidebar );
    3232                }
    3333            }else{
    34                 $classes[] = esc_attr( $home_construction_builder_global_sidebar_layout );
     34                $home_construction_builder_classes[] = esc_attr( $home_construction_builder_global_sidebar_layout );
    3535            }
    3636           
    3737        }
    3838       
    39         return $classes;
     39        return $home_construction_builder_classes;
    4040    }
    4141
  • home-construction-builder/1.0.6/classes/class-svg-icons.php

    r233437 r248156  
    1111           Get the SVG code for the specified icon
    1212           -------------------------------------------------------------------- */
    13         public static function get_svg($icon)
     13        public static function get_svg($home_construction_builder_icon)
    1414        {
    15             $arr = apply_filters('home_construction_builder_svg_icons', self::$icons);
    16             if (array_key_exists($icon, $arr)) {
    17                 $repl = '<svg class="svg-icon" aria-hidden="true" role="img" focusable="false" ';
    18                 $svg = preg_replace('/^<svg /', $repl, trim($arr[$icon])); // Add extra attributes to SVG code.
    19                 $svg = str_replace('#', '%23', $svg); // Urlencode hashes.
    20                 $svg = preg_replace("/([\n\t]+)/", ' ', $svg); // Remove newlines & tabs.
    21                 $svg = preg_replace('/>\s*</', '><', $svg); // Remove white space between SVG tags.
    22                 return $svg;
     15            $home_construction_builder_arr = apply_filters('home_construction_builder_svg_icons', self::$home_construction_builder_icons);
     16            if (array_key_exists($home_construction_builder_icon, $home_construction_builder_arr)) {
     17                $home_construction_builder_repl = '<svg class="svg-icon" aria-hidden="true" role="img" focusable="false" ';
     18                $home_construction_builder_svg = preg_replace('/^<svg /', $home_construction_builder_repl, trim($home_construction_builder_arr[$home_construction_builder_icon])); // Add extra attributes to SVG code.
     19                $home_construction_builder_svg = str_replace('#', '%23', $home_construction_builder_svg); // Urlencode hashes.
     20                $home_construction_builder_svg = preg_replace("/([\n\t]+)/", ' ', $home_construction_builder_svg); // Remove newlines & tabs.
     21                $home_construction_builder_svg = preg_replace('/>\s*</', '><', $home_construction_builder_svg); // Remove white space between SVG tags.
     22                return $home_construction_builder_svg;
    2323            }
    2424            return null;
    2525        }
    2626
    27         static function get_theme_svg_name($url)
     27        static function get_theme_svg_name($home_construction_builder_url)
    2828        {
    2929
    3030
    31             static $regex_map; // Only compute regex map once, for performance.
    32             if (!isset($regex_map)) {
    33                 $regex_map = array();
    34                 $map = Home_Construction_Builder_SVG_Icons::$social_icons_map; // Use reference instead of copy, to save memory.
    35                 foreach (array_keys(Home_Construction_Builder_SVG_Icons::$icons) as $icon) {
     31            static $home_construction_builder_regex_map; // Only compute regex map once, for performance.
     32            if (!isset($home_construction_builder_regex_map)) {
     33                $home_construction_builder_regex_map = array();
     34                $home_construction_builder_map = Home_Construction_Builder_SVG_Icons::$home_construction_builder_social_icons_map; // Use reference instead of copy, to save memory.
     35                foreach (array_keys(Home_Construction_Builder_SVG_Icons::$home_construction_builder_icons) as $home_construction_builder_icon) {
    3636
    37                     $domains = array_key_exists($icon, $map) ? $map[$icon] : array(sprintf('%s.com', $icon));
     37                    $home_construction_builder_domains = array_key_exists($home_construction_builder_icon, $home_construction_builder_map) ? $home_construction_builder_map[$home_construction_builder_icon] : array(sprintf('%s.com', $home_construction_builder_icon));
    3838
    39                     $domains = array_map('trim', $domains); // Remove leading/trailing spaces, to prevent regex from failing to match.
    40                     $domains = array_map('preg_quote', $domains);
    41                     $regex_map[$icon] = sprintf('/(%s)/i', implode('|', $domains));
     39                    $home_construction_builder_domains = array_map('trim', $home_construction_builder_domains); // Remove leading/trailing spaces, to prevent regex from failing to match.
     40                    $home_construction_builder_domains = array_map('preg_quote', $home_construction_builder_domains);
     41                    $home_construction_builder_regex_map[$home_construction_builder_icon] = sprintf('/(%s)/i', implode('|', $home_construction_builder_domains));
    4242
    4343                }
    4444            }
    45             foreach ($regex_map as $icon => $regex) {
    46                 if (preg_match($regex, $url)) {
    47                     return home_construction_builder_get_theme_svg($icon);;
     45            foreach ($home_construction_builder_regex_map as $home_construction_builder_icon => $home_construction_builder_regex) {
     46                if (preg_match($home_construction_builder_regex, $home_construction_builder_url)) {
     47                    return home_construction_builder_get_theme_svg($home_construction_builder_icon);;
    4848                }
    4949            }
     
    5353        }
    5454
    55         static $social_icons_map = array(
     55        static $home_construction_builder_social_icons_map = array(
    5656            'amazon' => array(
    5757                'amazon.com',
     
    108108           Store the code for all SVGs in an array
    109109           -------------------------------------------------------------------- */
    110         static $icons = array(
     110        static $home_construction_builder_icons = array(
    111111
    112112            'envalope' => '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"/></svg>',
  • home-construction-builder/1.0.6/classes/class-walker-menu.php

    r233437 r248156  
    1717         * Outputs the beginning of the current element in the tree.
    1818         *
    19          * @param string $output Used to append additional content. Passed by reference.
     19         * @param string $home_construction_builder_output Used to append additional content. Passed by reference.
    2020         * @param WP_Post $page Page data object.
    21          * @param int $depth Optional. Depth of page. Used for padding. Default 0.
    22          * @param array $args Optional. Array of arguments. Default empty array.
     21         * @param int $home_construction_builder_depth Optional. Depth of page. Used for padding. Default 0.
     22         * @param array $home_construction_builder_args Optional. Array of arguments. Default empty array.
    2323         * @param int $current_page Optional. Page ID. Default 0.
    2424         * @since 2.1.0
     
    2727         */
    2828
    29         public function start_lvl( &$output, $depth = 0, $args = array() ) {
    30             $indent  = str_repeat( "\t", $depth );
    31             $output .= "$indent<ul class='sub-menu'>\n";
     29        public function start_lvl( &$home_construction_builder_output, $home_construction_builder_depth = 0, $home_construction_builder_args = array() ) {
     30            $home_construction_builder_indent  = str_repeat( "\t", $home_construction_builder_depth );
     31            $home_construction_builder_output .= "$home_construction_builder_indent<ul class='sub-menu'>\n";
    3232        }
    3333
    34         public function start_el(&$output, $page, $depth = 0, $args = array(), $current_page = 0)
     34        public function start_el(&$home_construction_builder_output, $page, $home_construction_builder_depth = 0, $home_construction_builder_args = array(), $current_page = 0)
    3535        {
    3636
    37             if (isset($args['item_spacing']) && 'preserve' === $args['item_spacing']) {
     37            if (isset($home_construction_builder_args['item_spacing']) && 'preserve' === $home_construction_builder_args['item_spacing']) {
    3838                $t = "\t";
    3939                $n = "\n";
     
    4242                $n = '';
    4343            }
    44             if ($depth) {
    45                 $indent = str_repeat($t, $depth);
     44            if ($home_construction_builder_depth) {
     45                $home_construction_builder_indent = str_repeat($t, $home_construction_builder_depth);
    4646            } else {
    47                 $indent = '';
     47                $home_construction_builder_indent = '';
    4848            }
    4949
    50             $css_class = array('page_item', 'page-item-' . $page->ID);
     50            $home_construction_builder_css_class = array('page_item', 'page-item-' . $page->ID);
    5151
    52             if (isset($args['pages_with_children'][$page->ID])) {
    53                 $css_class[] = 'page_item_has_children';
     52            if (isset($home_construction_builder_args['pages_with_children'][$page->ID])) {
     53                $home_construction_builder_css_class[] = 'page_item_has_children';
    5454            }
    5555
     
    5757                $_current_page = get_post($current_page);
    5858                if ($_current_page && in_array($page->ID, $_current_page->ancestors, true)) {
    59                     $css_class[] = 'current_page_ancestor';
     59                    $home_construction_builder_css_class[] = 'current_page_ancestor';
    6060                }
    6161                if ($page->ID === $current_page) {
    62                     $css_class[] = 'current_page_item';
     62                    $home_construction_builder_css_class[] = 'current_page_item';
    6363                } elseif ($_current_page && $page->ID === $_current_page->post_parent) {
    64                     $css_class[] = 'current_page_parent';
     64                    $home_construction_builder_css_class[] = 'current_page_parent';
    6565                }
    6666            } elseif (get_option('page_for_posts') === $page->ID) {
    67                 $css_class[] = 'current_page_parent';
     67                $home_construction_builder_css_class[] = 'current_page_parent';
    6868            }
    6969
    7070            /** This filter is documented in wp-includes/class-walker-page.php */
    71             $css_classes = implode(' ', apply_filters('page_css_class', $css_class, $page, $depth, $args, $current_page));
    72             $css_classes = $css_classes ? ' class="' . esc_attr($css_classes) . '"' : '';
     71            $home_construction_builder_css_classes = implode(' ', apply_filters('page_css_class', $home_construction_builder_css_class, $page, $home_construction_builder_depth, $home_construction_builder_args, $current_page));
     72            $home_construction_builder_css_classes = $home_construction_builder_css_classes ? ' class="' . esc_attr($home_construction_builder_css_classes) . '"' : '';
    7373
    7474            if ('' === $page->post_title) {
     
    7777            }
    7878
    79             $args['link_before'] = empty($args['link_before']) ? '' : $args['link_before'];
    80             $args['link_after'] = empty($args['link_after']) ? '' : $args['link_after'];
     79            $home_construction_builder_args['link_before'] = empty($home_construction_builder_args['link_before']) ? '' : $home_construction_builder_args['link_before'];
     80            $home_construction_builder_args['link_after'] = empty($home_construction_builder_args['link_after']) ? '' : $home_construction_builder_args['link_after'];
    8181
    82             $atts = array();
    83             $atts['href'] = get_permalink($page->ID);
    84             $atts['aria-current'] = ($page->ID === $current_page) ? 'page' : '';
     82            $home_construction_builder_atts = array();
     83            $home_construction_builder_atts['href'] = get_permalink($page->ID);
     84            $home_construction_builder_atts['aria-current'] = ($page->ID === $current_page) ? 'page' : '';
    8585
    8686            /** This filter is documented in wp-includes/class-walker-page.php */
    87             $atts = apply_filters('page_menu_link_attributes', $atts, $page, $depth, $args, $current_page);
     87            $home_construction_builder_atts = apply_filters('page_menu_link_attributes', $home_construction_builder_atts, $page, $home_construction_builder_depth, $home_construction_builder_args, $current_page);
    8888
    89             $attributes = '';
    90             foreach ($atts as $attr => $value) {
    91                 if (!empty($value)) {
    92                     $value = ('href' === $attr) ? esc_url($value) : esc_attr($value);
    93                     $attributes .= ' ' . $attr . '="' . $value . '"';
     89            $home_construction_builder_attributes = '';
     90            foreach ($home_construction_builder_atts as $attr => $home_construction_builder_value) {
     91                if (!empty($home_construction_builder_value)) {
     92                    $home_construction_builder_value = ('href' === $attr) ? esc_url($home_construction_builder_value) : esc_attr($home_construction_builder_value);
     93                    $home_construction_builder_attributes .= ' ' . $attr . '="' . $home_construction_builder_value . '"';
    9494                }
    9595            }
    9696
    97             $args['list_item_before'] = '';
    98             $args['list_item_after'] = '';
    99             $args['icon_rennder'] = '';
     97            $home_construction_builder_args['list_item_before'] = '';
     98            $home_construction_builder_args['list_item_after'] = '';
     99            $home_construction_builder_args['icon_rennder'] = '';
    100100            // Wrap the link in a div and append a sub menu toggle.
    101             if (isset($args['show_toggles']) && true === $args['show_toggles']) {
     101            if (isset($home_construction_builder_args['show_toggles']) && true === $home_construction_builder_args['show_toggles']) {
    102102                // Wrap the menu item link contents in a div, used for positioning.
    103                 $args['list_item_after'] = '';
     103                $home_construction_builder_args['list_item_after'] = '';
    104104            }
    105105
    106106
    107107            // Add icons to menu items with children.
    108             if (isset($args['show_sub_menu_icons']) && true === $args['show_sub_menu_icons']) {
    109                 if (isset($args['pages_with_children'][$page->ID])) {
    110                     $args['icon_rennder'] = '';
     108            if (isset($home_construction_builder_args['show_sub_menu_icons']) && true === $home_construction_builder_args['show_sub_menu_icons']) {
     109                if (isset($home_construction_builder_args['pages_with_children'][$page->ID])) {
     110                    $home_construction_builder_args['icon_rennder'] = '';
    111111                }
    112112            }
    113113
    114114            // Add icons to menu items with children.
    115             if (isset($args['show_toggles']) && true === $args['show_toggles']) {
    116                 if (isset($args['pages_with_children'][$page->ID])) {
     115            if (isset($home_construction_builder_args['show_toggles']) && true === $home_construction_builder_args['show_toggles']) {
     116                if (isset($home_construction_builder_args['pages_with_children'][$page->ID])) {
    117117
    118118                    $toggle_target_string = '.page_item.page-item-' . $page->ID . ' > .sub-menu';
    119119
    120                     $args['list_item_after'] = '<button type="button" class="theme-aria-button submenu-toggle" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="250"><span class="btn__content" tabindex="-1"><span class="screen-reader-text">' . __( 'Show sub menu', 'home-construction-builder' ) . '</span>' . home_construction_builder_get_theme_svg( 'chevron-down' ) . '</span></button>';
     120                    $home_construction_builder_args['list_item_after'] = '<button type="button" class="theme-aria-button submenu-toggle" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="250"><span class="btn__content" tabindex="-1"><span class="screen-reader-text">' . __( 'Show sub menu', 'home-construction-builder' ) . '</span>' . home_construction_builder_get_theme_svg( 'chevron-down' ) . '</span></button>';
    121121                }
    122122            }
    123123
    124             if (isset($args['show_toggles']) && true === $args['show_toggles']) {
     124            if (isset($home_construction_builder_args['show_toggles']) && true === $home_construction_builder_args['show_toggles']) {
    125125
    126                 $output .= $indent . sprintf(
     126                $home_construction_builder_output .= $home_construction_builder_indent . sprintf(
    127127                        '<li%s>%s%s<a%s>%s%s%s</a>%s%s',
    128                         $css_classes,
     128                        $home_construction_builder_css_classes,
    129129                        '<div class="submenu-wrapper">',
    130                         $args['list_item_before'],
    131                         $attributes,
    132                         $args['link_before'],
     130                        $home_construction_builder_args['list_item_before'],
     131                        $home_construction_builder_attributes,
     132                        $home_construction_builder_args['link_before'],
    133133                        /** This filter is documented in wp-includes/post-template.php */
    134134                        apply_filters('the_title', $page->post_title, $page->ID),
    135                         $args['link_after'],
    136                         $args['list_item_after'],
     135                        $home_construction_builder_args['link_after'],
     136                        $home_construction_builder_args['list_item_after'],
    137137                        '</div>'
    138138                    );
     
    140140            }else{
    141141
    142                 $output .= $indent . sprintf(
     142                $home_construction_builder_output .= $home_construction_builder_indent . sprintf(
    143143                        '<li%s>%s<a%s>%s%s%s%s</a>%s',
    144                         $css_classes,
    145                         $args['list_item_before'],
    146                         $attributes,
    147                         $args['link_before'],
     144                        $home_construction_builder_css_classes,
     145                        $home_construction_builder_args['list_item_before'],
     146                        $home_construction_builder_attributes,
     147                        $home_construction_builder_args['link_before'],
    148148                        /** This filter is documented in wp-includes/post-template.php */
    149149                        apply_filters('the_title', $page->post_title, $page->ID),
    150                         $args['icon_rennder'],
    151                         $args['link_after'],
    152                         $args['list_item_after']
     150                        $home_construction_builder_args['icon_rennder'],
     151                        $home_construction_builder_args['link_after'],
     152                        $home_construction_builder_args['list_item_after']
    153153                    );
    154154
    155155            }
    156156
    157             if (!empty($args['show_date'])) {
    158                 if ('modified' === $args['show_date']) {
    159                     $time = $page->post_modified;
     157            if (!empty($home_construction_builder_args['show_date'])) {
     158                if ('modified' === $home_construction_builder_args['show_date']) {
     159                    $home_construction_builder_time = $page->post_modified;
    160160                } else {
    161                     $time = $page->post_date;
     161                    $home_construction_builder_time = $page->post_date;
    162162                }
    163163
    164                 $date_format = empty($args['date_format']) ? '' : $args['date_format'];
    165                 $output .= ' ' . mysql2date($date_format, $time);
     164                $home_construction_builder_date_format = empty($home_construction_builder_args['date_format']) ? '' : $home_construction_builder_args['date_format'];
     165                $home_construction_builder_output .= ' ' . mysql2date($home_construction_builder_date_format, $home_construction_builder_time);
    166166            }
    167167        }
  • home-construction-builder/1.0.6/custom_css.php

    r247305 r248156  
    33$home_construction_builder_custom_css = "";
    44
    5 $home_construction_builder_theme_pagination_options_alignment = get_theme_mod('home_construction_builder_theme_pagination_options_alignment', 'Center');
     5    $home_construction_builder_theme_pagination_options_alignment = get_theme_mod('home_construction_builder_theme_pagination_options_alignment', 'Center');
    66    if ($home_construction_builder_theme_pagination_options_alignment == 'Center') {
    7         $home_construction_builder_custom_css .= '.pagination{';
    8         $home_construction_builder_custom_css .= 'text-align: center;';
    9         $home_construction_builder_custom_css .= '}';
     7        $home_construction_builder_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
     8        $home_construction_builder_custom_css .= 'justify-content: center;margin: 0 auto;';
     9        $home_construction_builder_custom_css .= '}';
    1010    } else if ($home_construction_builder_theme_pagination_options_alignment == 'Right') {
    11         $home_construction_builder_custom_css .= '.pagination{';
    12         $home_construction_builder_custom_css .= 'text-align: Right;';
    13         $home_construction_builder_custom_css .= '}';
     11        $home_construction_builder_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
     12        $home_construction_builder_custom_css .= 'justify-content: right;margin: 0 0 0 auto;';
     13        $home_construction_builder_custom_css .= '}';
    1414    } else if ($home_construction_builder_theme_pagination_options_alignment == 'Left') {
    15         $home_construction_builder_custom_css .= '.pagination{';
    16         $home_construction_builder_custom_css .= 'text-align: Left;';
    17         $home_construction_builder_custom_css .= '}';
     15        $home_construction_builder_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
     16        $home_construction_builder_custom_css .= 'justify-content: left;margin: 0 auto 0 0;';
     17        $home_construction_builder_custom_css .= '}';
    1818    }
    1919
     
    9696    }
    9797
     98    /*-------------------- Global First Color -------------------*/
     99
     100    $home_construction_builder_secondary_color = get_theme_mod('home_construction_builder_secondary_color', '#FFC527'); // Add a fallback if the color isn't set
     101
     102    if ($home_construction_builder_secondary_color) {
     103        $home_construction_builder_custom_css .= ':root {';
     104        $home_construction_builder_custom_css .= '--secondary-color: ' . esc_attr($home_construction_builder_secondary_color) . ';';
     105        $home_construction_builder_custom_css .= '}';
     106    }
     107
    98108    /*-------------------- Content Font -------------------*/
    99109
  • home-construction-builder/1.0.6/functions.php

    r247305 r248156  
    8282    wp_enqueue_style( 'dashicons' );
    8383
    84     $theme_version = wp_get_theme()->get( 'Version' );
    85     $fonts_url = home_construction_builder_fonts_url();
    86     if( $fonts_url ){
     84    $home_construction_builder_theme_version = wp_get_theme()->get( 'Version' );
     85    $home_construction_builder_fonts_url = home_construction_builder_fonts_url();
     86    if( $home_construction_builder_fonts_url ){
    8787        require_once get_theme_file_path( 'lib/custom/css/wptt-webfont-loader.php' );
    8888        wp_enqueue_style(
    8989            'home-construction-builder-google-fonts',
    90             wptt_get_webfont_url( $fonts_url ),
     90            wptt_get_webfont_url( $home_construction_builder_fonts_url ),
    9191            array(),
    92             $theme_version
     92            $home_construction_builder_theme_version
    9393        );
    9494    }
     
    9696    wp_enqueue_style( 'swiper', get_template_directory_uri() . '/lib/swiper/css/swiper-bundle.min.css');
    9797    wp_enqueue_style( 'owl.carousel', get_template_directory_uri() . '/lib/custom/css/owl.carousel.min.css');
    98     wp_enqueue_style( 'home-construction-builder-style', get_stylesheet_uri(), array(), $theme_version );
     98    wp_enqueue_style( 'home-construction-builder-style', get_stylesheet_uri(), array(), $home_construction_builder_theme_version );
    9999
    100100    wp_enqueue_style( 'home-construction-builder-style', get_stylesheet_uri() );
     
    132132    if( is_front_page() ){
    133133
    134         $posts_per_page = absint( get_option('posts_per_page') );
    135         $c_paged = ( get_query_var( 'page' ) ) ? absint( get_query_var( 'page' ) ) : 1;
    136         $posts_args = array(
    137             'posts_per_page'        => $posts_per_page,
    138             'paged'                 => $c_paged,
     134        $home_construction_builder_posts_per_page = absint( get_option('posts_per_page') );
     135        $home_construction_builder_c_paged = ( get_query_var( 'page' ) ) ? absint( get_query_var( 'page' ) ) : 1;
     136        $home_construction_builder_posts_args = array(
     137            'posts_per_page'        => $home_construction_builder_posts_per_page,
     138            'paged'                 => $home_construction_builder_c_paged,
    139139        );
    140         $posts_qry = new WP_Query( $posts_args );
    141         $max = $posts_qry->max_num_pages;
     140        $home_construction_builder_posts_qry = new WP_Query( $home_construction_builder_posts_args );
     141        $home_construction_builder_max = $home_construction_builder_posts_qry->max_num_pages;
    142142
    143143    }else{
    144144        global $wp_query;
    145         $max = $wp_query->max_num_pages;
    146         $c_paged = ( get_query_var( 'paged' ) > 1 ) ? get_query_var( 'paged' ) : 1;
     145        $home_construction_builder_max = $wp_query->max_num_pages;
     146        $home_construction_builder_c_paged = ( get_query_var( 'paged' ) > 1 ) ? get_query_var( 'paged' ) : 1;
    147147    }
    148148
     
    166166function home_construction_builder_menus() {
    167167
    168     $locations = array(
     168    $home_construction_builder_locations = array(
    169169        'home-construction-builder-primary-menu'  => esc_html__( 'Primary Menu', 'home-construction-builder' ),
    170170    );
    171171
    172     register_nav_menus( $locations );
     172    register_nav_menus( $home_construction_builder_locations );
    173173}
    174174
     
    263263add_action('wp_head', 'home_construction_builder_customizer_css');
    264264
    265 function home_construction_builder_radio_sanitize(  $input, $setting  ) {
    266     $input = sanitize_key( $input );
    267     $choices = $setting->manager->get_control( $setting->id )->choices;
    268     return ( array_key_exists( $input, $choices ) ? $input : $setting->default );
     265function home_construction_builder_radio_sanitize(  $home_construction_builder_input, $home_construction_builder_setting  ) {
     266    $home_construction_builder_input = sanitize_key( $home_construction_builder_input );
     267    $home_construction_builder_choices = $home_construction_builder_setting->manager->get_control( $home_construction_builder_setting->id )->choices;
     268    return ( array_key_exists( $home_construction_builder_input, $home_construction_builder_choices ) ? $home_construction_builder_input : $home_construction_builder_setting->default );
    269269}
    270270require get_template_directory() . '/inc/general.php';
  • home-construction-builder/1.0.6/inc/custom-functions.php

    r247305 r248156  
    1111    function home_construction_builder_fonts_url(){
    1212
    13         $font_families = array(
     13        $home_construction_builder_font_families = array(
    1414            'Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900',
    1515            'Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700',
     
    1717        );
    1818
    19         $fonts_url = add_query_arg( array(
    20             'family' => implode( '&family=', $font_families ),
     19        $home_construction_builder_fonts_url = add_query_arg( array(
     20            'family' => implode( '&family=', $home_construction_builder_font_families ),
    2121            'display' => 'swap',
    2222        ), 'https://fonts.googleapis.com/css2' );
    2323
    24         return esc_url_raw($fonts_url);
     24        return esc_url_raw($home_construction_builder_fonts_url);
    2525    }
    2626
     
    2929if ( ! function_exists( 'home_construction_builder_sub_menu_toggle_button' ) ) :
    3030
    31     function home_construction_builder_sub_menu_toggle_button( $args, $item, $depth ) {
     31    function home_construction_builder_sub_menu_toggle_button( $home_construction_builder_args, $home_construction_builder_item, $depth ) {
    3232
    3333        // Add sub menu toggles to the main menu with toggles
    34         if ( $args->theme_location == 'home-construction-builder-primary-menu' && isset( $args->show_toggles ) ) {
     34        if ( $home_construction_builder_args->theme_location == 'home-construction-builder-primary-menu' && isset( $home_construction_builder_args->show_toggles ) ) {
    3535           
    3636            // Wrap the menu item link contents in a div, used for positioning
    37             $args->before = '<div class="submenu-wrapper">';
    38             $args->after  = '';
     37            $home_construction_builder_args->before = '<div class="submenu-wrapper">';
     38            $home_construction_builder_args->after  = '';
    3939
    4040            // Add a toggle to items with children
    41             if ( in_array( 'menu-item-has-children', $item->classes ) ) {
    42 
    43                 $toggle_target_string = '.menu-item.menu-item-' . $item->ID . ' > .sub-menu';
     41            if ( in_array( 'menu-item-has-children', $home_construction_builder_item->classes ) ) {
     42
     43                $home_construction_builder_toggle_target_string = '.menu-item.menu-item-' . $home_construction_builder_item->ID . ' > .sub-menu';
    4444
    4545                // Add the sub menu toggle
    46                 $args->after .= '<button type="button" class="theme-aria-button submenu-toggle" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="250" aria-expanded="false"><span class="btn__content" tabindex="-1"><span class="screen-reader-text">' . esc_html__( 'Show sub menu', 'home-construction-builder' ) . '</span>' . home_construction_builder_get_theme_svg( 'plus' ) . '</span></button>';
     46                $home_construction_builder_args->after .= '<button type="button" class="theme-aria-button submenu-toggle" data-toggle-target="' . $home_construction_builder_toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="250" aria-expanded="false"><span class="btn__content" tabindex="-1"><span class="screen-reader-text">' . esc_html__( 'Show sub menu', 'home-construction-builder' ) . '</span>' . home_construction_builder_get_theme_svg( 'plus' ) . '</span></button>';
    4747
    4848            }
    4949
    5050            // Close the wrapper
    51             $args->after .= '</div><!-- .submenu-wrapper -->';
     51            $home_construction_builder_args->after .= '</div><!-- .submenu-wrapper -->';
    5252            // Add sub menu icons to the main menu without toggles (the fallback menu)
    5353
    54         }elseif( $args->theme_location == 'home-construction-builder-primary-menu' ) {
    55 
    56             if ( in_array( 'menu-item-has-children', $item->classes ) ) {
    57 
    58                 $args->before = '<div class="link-icon-wrapper">';
    59                 $args->after  = home_construction_builder_get_theme_svg( 'plus' ) . '</div>';
     54        }elseif( $home_construction_builder_args->theme_location == 'home-construction-builder-primary-menu' ) {
     55
     56            if ( in_array( 'menu-item-has-children', $home_construction_builder_item->classes ) ) {
     57
     58                $home_construction_builder_args->before = '<div class="link-icon-wrapper">';
     59                $home_construction_builder_args->after  = home_construction_builder_get_theme_svg( 'plus' ) . '</div>';
    6060
    6161            } else {
    6262
    63                 $args->before = '';
    64                 $args->after  = '';
     63                $home_construction_builder_args->before = '';
     64                $home_construction_builder_args->after  = '';
    6565
    6666            }
     
    6868        }
    6969
    70         return $args;
     70        return $home_construction_builder_args;
    7171
    7272    }
     
    7878if ( ! function_exists( 'home_construction_builder_the_theme_svg' ) ):
    7979   
    80     function home_construction_builder_the_theme_svg( $svg_name, $return = false ) {
    81 
    82         if( $return ){
    83 
    84             return home_construction_builder_get_theme_svg( $svg_name ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in home_construction_builder_get_theme_svg();.
     80    function home_construction_builder_the_theme_svg( $home_construction_builder_svg_name, $home_construction_builder_return = false ) {
     81
     82        if( $home_construction_builder_return ){
     83
     84            return home_construction_builder_get_theme_svg( $home_construction_builder_svg_name ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in home_construction_builder_get_theme_svg();.
    8585
    8686        }else{
    8787
    88             echo home_construction_builder_get_theme_svg( $svg_name ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in home_construction_builder_get_theme_svg();.
     88            echo home_construction_builder_get_theme_svg( $home_construction_builder_svg_name ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in home_construction_builder_get_theme_svg();.
    8989
    9090        }
     
    9595if ( ! function_exists( 'home_construction_builder_get_theme_svg' ) ):
    9696
    97     function home_construction_builder_get_theme_svg( $svg_name ) {
     97    function home_construction_builder_get_theme_svg( $home_construction_builder_svg_name ) {
    9898
    9999        // Make sure that only our allowed tags and attributes are included.
    100         $svg = wp_kses(
    101             Home_Construction_Builder_SVG_Icons::get_svg( $svg_name ),
     100        $home_construction_builder_svg = wp_kses(
     101            Home_Construction_Builder_SVG_Icons::get_svg( $home_construction_builder_svg_name ),
    102102            array(
    103103                'svg'     => array(
     
    137137            )
    138138        );
    139         if ( ! $svg ) {
     139        if ( ! $home_construction_builder_svg ) {
    140140            return false;
    141141        }
    142         return $svg;
     142        return $home_construction_builder_svg;
    143143
    144144    }
     
    149149
    150150    // Post Category List.
    151     function home_construction_builder_post_category_list( $select_cat = true ){
    152 
    153         $post_cat_lists = get_categories(
     151    function home_construction_builder_post_category_list( $home_construction_builder_select_cat = true ){
     152
     153        $home_construction_builder_post_cat_lists = get_categories(
    154154            array(
    155155                'hide_empty' => '0',
     
    158158        );
    159159
    160         $post_cat_cat_array = array();
    161         if( $select_cat ){
    162 
    163             $post_cat_cat_array[''] = esc_html__( '-- Select Category --','home-construction-builder' );
    164 
    165         }
    166 
    167         foreach ( $post_cat_lists as $post_cat_list ) {
    168 
    169             $post_cat_cat_array[$post_cat_list->slug] = $post_cat_list->name;
    170 
    171         }
    172 
    173         return $post_cat_cat_array;
     160        $home_construction_builder_post_cat_cat_array = array();
     161        if( $home_construction_builder_select_cat ){
     162
     163            $home_construction_builder_post_cat_cat_array[''] = esc_html__( '-- Select Category --','home-construction-builder' );
     164
     165        }
     166
     167        foreach ( $home_construction_builder_post_cat_lists as $home_construction_builder_post_cat_list ) {
     168
     169            $home_construction_builder_post_cat_cat_array[$home_construction_builder_post_cat_list->slug] = $home_construction_builder_post_cat_list->name;
     170
     171        }
     172
     173        return $home_construction_builder_post_cat_cat_array;
    174174    }
    175175
     
    182182        $home_construction_builder_footer_column_layout = home_construction_builder_get_default_theme_options();
    183183        $home_construction_builder_twp_navigation_type = esc_attr( get_post_meta( get_the_ID(), 'home_construction_builder_twp_disable_ajax_load_next_post', true ) );
    184         $current_id = '';
     184        $home_construction_builder_current_id = '';
    185185        $article_wrap_class = '';
    186186        global $post;
    187         $current_id = $post->ID;
     187        $home_construction_builder_current_id = $post->ID;
    188188        if( $home_construction_builder_twp_navigation_type == '' || $home_construction_builder_twp_navigation_type == 'global-layout' ){
    189189            $home_construction_builder_twp_navigation_type = get_theme_mod('home_construction_builder_twp_navigation_type', $home_construction_builder_footer_column_layout['home_construction_builder_twp_navigation_type']);
     
    198198                    // Previous/next post navigation.
    199199                    the_post_navigation(array(
    200                         'prev_text' => '<span class="arrow" aria-hidden="true">' . home_construction_builder_the_theme_svg('arrow-left',$return = true ) . '</span><span class="screen-reader-text">' . esc_html__('Previous post:', 'home-construction-builder') . '</span><span class="post-title">%title</span>',
    201                         'next_text' => '<span class="arrow" aria-hidden="true">' . home_construction_builder_the_theme_svg('arrow-right',$return = true ) . '</span><span class="screen-reader-text">' . esc_html__('Next post:', 'home-construction-builder') . '</span><span class="post-title">%title</span>',
     200                        'prev_text' => '<span class="arrow" aria-hidden="true">' . home_construction_builder_the_theme_svg('arrow-left',$home_construction_builder_return = true ) . '</span><span class="screen-reader-text">' . esc_html__('Previous post:', 'home-construction-builder') . '</span><span class="post-title">%title</span>',
     201                        'next_text' => '<span class="arrow" aria-hidden="true">' . home_construction_builder_the_theme_svg('arrow-right',$home_construction_builder_return = true ) . '</span><span class="screen-reader-text">' . esc_html__('Next post:', 'home-construction-builder') . '</span><span class="post-title">%title</span>',
    202202                    )); ?>
    203203                </div>
     
    206206            }else{
    207207
    208                 $next_post = get_next_post();
    209                 if( isset( $next_post->ID ) ){
    210 
    211                     $next_post_id = $next_post->ID;
    212                     echo '<div loop-count="1" next-post="' . absint( $next_post_id ) . '" class="twp-single-infinity"></div>';
     208                $home_construction_builder_next_post = get_next_post();
     209                if( isset( $home_construction_builder_next_post->ID ) ){
     210
     211                    $home_construction_builder_next_post_id = $home_construction_builder_next_post->ID;
     212                    echo '<div loop-count="1" next-post="' . absint( $home_construction_builder_next_post_id ) . '" class="twp-single-infinity"></div>';
    213213
    214214                }
     
    339339                                    echo esc_html( $home_construction_builder_footer_copyright_text );
    340340                                    echo '<br>';
    341                                     echo esc_html__('Theme: ', 'home-construction-builder') . '<a href="' . esc_url('https://www.omegathemes.com/products/free-builder-wordpress-theme') . '" title="' . esc_attr__('HOME CONSTRUCTION BUILDER ', 'home-construction-builder') . '" target="_blank"><span>' . esc_html__('HOME CONSTRUCTION BUILDER ', 'home-construction-builder') . '</span></a>' . esc_html__('By ', 'home-construction-builder') . '  <span>' . esc_html__('OMEGA ', 'home-construction-builder') . '</span>';
     341                                    echo esc_html__('Theme: ', 'home-construction-builder') . '<a href="' . esc_url('https://www.omegathemes.com/products/free-builder-wordpress-theme') . '" title="' . esc_attr__('HOME CONSTRUCTION BUILDER', 'home-construction-builder') . '" target="_blank"><span>' . esc_html__('HOME CONSTRUCTION BUILDER', 'home-construction-builder') . '</span></a>' . esc_html__(' By ', 'home-construction-builder') . '  <span>' . esc_html__('OMEGA ', 'home-construction-builder') . '</span>';
    342342                                    echo esc_html__('Powered by ', 'home-construction-builder') . '<a href="' . esc_url('https://wordpress.org') . '" title="' . esc_attr__('WordPress', 'home-construction-builder') . '" target="_blank"><span>' . esc_html__('WordPress.', 'home-construction-builder') . '</span></a>';
    343343                                 ?>
     
    391391        $home_construction_builder_header_banner_cat = get_theme_mod( 'home_construction_builder_header_banner_cat' );
    392392
    393         if( $home_construction_builder_header_slider ){ $rtl = '';
     393        if( $home_construction_builder_header_slider ){ $home_construction_builder_rtl = '';
    394394            if( is_rtl() ){
    395                 $rtl = 'dir="rtl"';
     395                $home_construction_builder_rtl = 'dir="rtl"';
    396396            }
    397397
     
    403403                    <div class="slider-box" style="background: url(<?php echo esc_url( $home_construction_builder_banner_background_image ); ?>);">
    404404                        <div class="main-banner-box">
    405                             <div class="swiper-container theme-main-carousel swiper-container" <?php echo $rtl; ?>>
     405                            <div class="swiper-container theme-main-carousel swiper-container" <?php echo $home_construction_builder_rtl; ?>>
    406406                                <div class="swiper-wrapper">
    407407                                    <?php
     
    634634     * Get information about the SVG icon.
    635635     *
    636      * @param string $svg_name The name of the icon.
     636     * @param string $home_construction_builder_svg_name The name of the icon.
    637637     * @param string $group The group the icon belongs to.
    638638     * @param string $color Color code.
    639639     */
    640     function home_construction_builder_svg_escape( $input ) {
     640    function home_construction_builder_svg_escape( $home_construction_builder_input ) {
    641641
    642642        // Make sure that only our allowed tags and attributes are included.
    643         $svg = wp_kses(
    644             $input,
     643        $home_construction_builder_svg = wp_kses(
     644            $home_construction_builder_input,
    645645            array(
    646646                'svg'     => array(
     
    670670        );
    671671
    672         if ( ! $svg ) {
     672        if ( ! $home_construction_builder_svg ) {
    673673            return false;
    674674        }
    675675
    676         return $svg;
     676        return $home_construction_builder_svg;
    677677
    678678    }
     
    683683
    684684    // Sidebar Option Sanitize.
    685     function home_construction_builder_sanitize_sidebar_option_meta( $input ){
     685    function home_construction_builder_sanitize_sidebar_option_meta( $home_construction_builder_input ){
    686686
    687687        $home_construction_builder_metabox_options = array( 'global-sidebar','left-sidebar','right-sidebar','no-sidebar' );
    688         if( in_array( $input,$home_construction_builder_metabox_options ) ){
    689 
    690             return $input;
     688        if( in_array( $home_construction_builder_input,$home_construction_builder_metabox_options ) ){
     689
     690            return $home_construction_builder_input;
    691691
    692692        }else{
     
    702702
    703703    // Sidebar Option Sanitize.
    704     function home_construction_builder_sanitize_pagination_meta( $input ){
     704    function home_construction_builder_sanitize_pagination_meta( $home_construction_builder_input ){
    705705
    706706        $home_construction_builder_metabox_options = array( 'Center','Right','Left');
    707         if( in_array( $input,$home_construction_builder_metabox_options ) ){
    708 
    709             return $input;
     707        if( in_array( $home_construction_builder_input,$home_construction_builder_metabox_options ) ){
     708
     709            return $home_construction_builder_input;
    710710
    711711        }else{
     
    721721
    722722    // Sidebar Option Sanitize.
    723     function home_construction_builder_sanitize_menu_transform( $input ){
     723    function home_construction_builder_sanitize_menu_transform( $home_construction_builder_input ){
    724724
    725725        $home_construction_builder_metabox_options = array( 'capitalize','uppercase','lowercase');
    726         if( in_array( $input,$home_construction_builder_metabox_options ) ){
    727 
    728             return $input;
     726        if( in_array( $home_construction_builder_input,$home_construction_builder_metabox_options ) ){
     727
     728            return $home_construction_builder_input;
    729729
    730730        }else{
     
    740740
    741741    // Sidebar Option Sanitize.
    742     function home_construction_builder_sanitize_page_content_alignment( $input ){
     742    function home_construction_builder_sanitize_page_content_alignment( $home_construction_builder_input ){
    743743
    744744        $home_construction_builder_metabox_options = array( 'left','center','right');
    745         if( in_array( $input,$home_construction_builder_metabox_options ) ){
    746 
    747             return $input;
     745        if( in_array( $home_construction_builder_input,$home_construction_builder_metabox_options ) ){
     746
     747            return $home_construction_builder_input;
    748748
    749749        }else{
     
    759759
    760760    // Footer Option Sanitize.
    761     function home_construction_builder_sanitize_footer_widget_title_alignment( $input ){
     761    function home_construction_builder_sanitize_footer_widget_title_alignment( $home_construction_builder_input ){
    762762
    763763        $home_construction_builder_metabox_options = array( 'left','center','right');
    764         if( in_array( $input,$home_construction_builder_metabox_options ) ){
    765 
    766             return $input;
     764        if( in_array( $home_construction_builder_input,$home_construction_builder_metabox_options ) ){
     765
     766            return $home_construction_builder_input;
    767767
    768768        }else{
     
    774774
    775775endif;
     776
     777if( !function_exists( 'home_construction_builder_sanitize_pagination_type' ) ) :
     778
     779    /**
     780     * Sanitize the pagination type setting.
     781     *
     782     * @param string $home_construction_builder_input The input value from the Customizer.
     783     * @return string The sanitized value.
     784     */
     785    function home_construction_builder_sanitize_pagination_type( $home_construction_builder_input ) {
     786        // Define valid options for the pagination type.
     787        $home_construction_builder_valid_options = array( 'numeric', 'newer_older' ); // Update valid options to include 'newer_older'
     788
     789        // If the input is one of the valid options, return it. Otherwise, return the default option ('numeric').
     790        if ( in_array( $home_construction_builder_input, $home_construction_builder_valid_options, true ) ) {
     791            return $home_construction_builder_input;
     792        } else {
     793            // Return 'numeric' as the fallback if the input is invalid.
     794            return 'numeric';
     795        }
     796    }
     797
     798endif;
     799
     800
     801// Sanitize the enable/disable setting for pagination
     802if( !function_exists('home_construction_builder_sanitize_enable_pagination') ) :
     803    function home_construction_builder_sanitize_enable_pagination( $home_construction_builder_input ) {
     804        return (bool) $home_construction_builder_input;
     805    }
     806endif;
  • home-construction-builder/1.0.6/inc/customizer/custom-addon.php

    r234252 r248156  
    1212    'capability' => 'edit_theme_options',
    1313    'panel'      => 'home_construction_builder_theme_addons_panel',
     14    )
     15);
     16
     17// Add Pagination Enable/Disable option to Customizer
     18$wp_customize->add_setting( 'home_construction_builder_enable_pagination',
     19    array(
     20        'default'           => true, // Default is enabled
     21        'capability'        => 'edit_theme_options',
     22        'sanitize_callback' => 'home_construction_builder_sanitize_enable_pagination', // Sanitize the input
     23    )
     24);
     25
     26// Add the control to the Customizer
     27$wp_customize->add_control( 'home_construction_builder_enable_pagination',
     28    array(
     29        'label'    => esc_html__( 'Enable Pagination', 'home-construction-builder' ),
     30        'section'  => 'home_construction_builder_theme_pagination_options', // Add to the correct section
     31        'type'     => 'checkbox',
     32    )
     33);
     34
     35$wp_customize->add_setting( 'home_construction_builder_theme_pagination_type',
     36    array(
     37        'default'           => 'numeric', // Set "numeric" as the default
     38        'capability'        => 'edit_theme_options',
     39        'sanitize_callback' => 'home_construction_builder_sanitize_pagination_type', // Use our sanitize function
     40    )
     41);
     42
     43$wp_customize->add_control( 'home_construction_builder_theme_pagination_type',
     44    array(
     45        'label'       => esc_html__( 'Pagination Style', 'home-construction-builder' ),
     46        'section'     => 'home_construction_builder_theme_pagination_options',
     47        'type'        => 'select',
     48        'choices'     => array(
     49            'numeric'      => esc_html__( 'Numeric (Page Numbers)', 'home-construction-builder' ),
     50            'newer_older'  => esc_html__( 'Newer/Older (Previous/Next)', 'home-construction-builder' ), // Renamed to "Newer/Older"
     51        ),
    1452    )
    1553);
  • home-construction-builder/1.0.6/inc/customizer/custom-classes.php

    r233437 r248156  
    66
    77if ( ! function_exists( 'home_construction_builder_sanitize_number_range' ) ) :
    8     function home_construction_builder_sanitize_number_range( $input, $setting ) {
    9         $input = absint( $input );
    10         $atts = $setting->manager->get_control( $setting->id )->input_attrs;
    11         $min = ( isset( $atts['min'] ) ? $atts['min'] : $input );
    12         $max = ( isset( $atts['max'] ) ? $atts['max'] : $input );
    13         $step = ( isset( $atts['step'] ) ? $atts['step'] : 1 );
    14         return ( $min <= $input && $input <= $max && is_int( $input / $step ) ? $input : $setting->default );
     8    function home_construction_builder_sanitize_number_range( $home_construction_builder_input, $home_construction_builder_setting ) {
     9        $home_construction_builder_input = absint( $home_construction_builder_input );
     10        $home_construction_builder_atts = $home_construction_builder_setting->manager->get_control( $home_construction_builder_setting->id )->input_attrs;
     11        $home_construction_builder_min = ( isset( $home_construction_builder_atts['min'] ) ? $home_construction_builder_atts['min'] : $home_construction_builder_input );
     12        $home_construction_builder_max = ( isset( $home_construction_builder_atts['max'] ) ? $home_construction_builder_atts['max'] : $home_construction_builder_input );
     13        $home_construction_builder_step = ( isset( $home_construction_builder_atts['step'] ) ? $home_construction_builder_atts['step'] : 1 );
     14        return ( $home_construction_builder_min <= $home_construction_builder_input && $home_construction_builder_input <= $home_construction_builder_max && is_int( $home_construction_builder_input / $home_construction_builder_step ) ? $home_construction_builder_input : $home_construction_builder_setting->default );
    1515    }
    1616endif;
  • home-construction-builder/1.0.6/inc/customizer/default.php

    r247305 r248156  
    8989        $home_construction_builder_defaults['home_construction_builder_display_archive_post_image']            = 1;
    9090        $home_construction_builder_defaults['home_construction_builder_global_color']                                   = '#E74216';
     91        $home_construction_builder_defaults['home_construction_builder_secondary_color']                                   = '#FFC527';
    9192        $home_construction_builder_defaults['home_construction_builder_display_archive_post_category']          = 1;
    9293        $home_construction_builder_defaults['home_construction_builder_display_archive_post_sticky_post']       = 1;
  • home-construction-builder/1.0.6/inc/customizer/global-color-setting.php

    r247305 r248156  
    1212    array(
    1313    'title'      => esc_html__( 'Global Color Settings', 'home-construction-builder' ),
    14     'priority'   => 21,
     14    'priority'   => 1,
    1515    'capability' => 'edit_theme_options',
    1616    'panel'      => 'home_construction_builder_theme_option_panel',
     
    3535    ) )
    3636);
     37
     38
     39$wp_customize->add_setting( 'home_construction_builder_secondary_color',
     40    array(
     41    'default'           => '#FFC527',
     42    'capability'        => 'edit_theme_options',
     43    'sanitize_callback' => 'sanitize_hex_color',
     44    )
     45);
     46$wp_customize->add_control(
     47    new WP_Customize_Color_Control(
     48    $wp_customize,
     49    'home_construction_builder_secondary_color',
     50    array(
     51        'label'      => esc_html__( 'Secondary Color', 'home-construction-builder' ),
     52        'section'    => 'home_construction_builder_global_color_setting',
     53        'settings'   => 'home_construction_builder_secondary_color',
     54    ) )
     55);
  • home-construction-builder/1.0.6/inc/customizer/sanitize.php

    r233437 r248156  
    5252
    5353/*Radio Button sanitization*/
    54 function home_construction_builder_sanitize_choices( $input, $setting ) {
     54function home_construction_builder_sanitize_choices( $home_construction_builder_input, $home_construction_builder_setting ) {
    5555    global $wp_customize;
    56     $control = $wp_customize->get_control( $setting->id );
    57     if ( array_key_exists( $input, $control->choices ) ) {
    58         return $input;
     56    $home_construction_builder_control = $wp_customize->get_control( $home_construction_builder_setting->id );
     57    if ( array_key_exists( $home_construction_builder_input, $home_construction_builder_control->choices ) ) {
     58        return $home_construction_builder_input;
    5959    } else {
    60         return $setting->default;
     60        return $home_construction_builder_setting->default;
    6161    }
    6262}
  • home-construction-builder/1.0.6/inc/get-started/get-started.css

    r234252 r248156  
    269269    }
    270270}
     271
     272.ocdi h2 {
     273    text-align: inherit;
     274    font-size: 19px;
     275    line-height: 30px;
     276    font-weight: 500;
     277    margin-bottom: 10px !important;
     278}   
  • home-construction-builder/1.0.6/inc/metabox.php

    r233437 r248156  
    4242add_action( 'category_add_form_fields', 'home_construction_builder_category_add_form_fields_callback' );
    4343
    44 function home_construction_builder_custom_create_term_callback($term_id) {
     44function home_construction_builder_custom_create_term_callback($home_construction_builder_term_id) {
    4545    // add term meta data
    4646    add_term_meta(
    47         $term_id,
     47        $home_construction_builder_term_id,
    4848        'term_image',
    4949        esc_url($_REQUEST['category_custom_image_url'])
     
    5353
    5454function home_construction_builder_category_edit_form_fields_callback($ttObj, $taxonomy) {
    55     $term_id = $ttObj->term_id;
     55    $home_construction_builder_term_id = $ttObj->term_id;
    5656    $home_construction_builder_image = '';
    57     $home_construction_builder_image = get_term_meta( $term_id, 'term_image', true ); ?>
     57    $home_construction_builder_image = get_term_meta( $home_construction_builder_term_id, 'term_image', true ); ?>
    5858    <tr class="form-field term-image-wrap">
    5959        <th scope="row"><label for="image"><?php esc_html_e('Image','home-construction-builder'); ?></label></th>
     
    8282add_action ( 'category_edit_form_fields', 'home_construction_builder_category_edit_form_fields_callback', 10, 2 );
    8383
    84 function home_construction_builder_edit_term_callback($term_id) {
     84function home_construction_builder_edit_term_callback($home_construction_builder_term_id) {
    8585    $home_construction_builder_image = '';
    86     $home_construction_builder_image = get_term_meta( $term_id, 'term_image' );
     86    $home_construction_builder_image = get_term_meta( $home_construction_builder_term_id, 'term_image' );
    8787    if ( $home_construction_builder_image )
    8888    update_term_meta(
    89         $term_id,
     89        $home_construction_builder_term_id,
    9090        'term_image',
    9191        esc_url( $_POST['category_custom_image_url']) );
    9292    else
    9393    add_term_meta(
    94         $term_id,
     94        $home_construction_builder_term_id,
    9595        'term_image',
    9696        esc_url( $_POST['category_custom_image_url']) );
  • home-construction-builder/1.0.6/inc/pagination.php

    r233437 r248156  
    77 */
    88
    9 if( !function_exists('home_construction_builder_archive_pagination_x') ):
     9/**
     10 * Pagination for archive.
     11 */
     12function home_construction_builder_render_posts_pagination() {
     13    // Get the setting to check if pagination is enabled
     14    $home_construction_builder_is_pagination_enabled = get_theme_mod( 'home_construction_builder_enable_pagination', true );
    1015
    11     // Archive Page Navigation
    12     function home_construction_builder_archive_pagination_x(){
     16    // Check if pagination is enabled
     17    if ( $home_construction_builder_is_pagination_enabled ) {
     18        // Get the selected pagination type from the Customizer
     19        $home_construction_builder_pagination_type = get_theme_mod( 'home_construction_builder_theme_pagination_type', 'numeric' );
    1320
    14         the_posts_pagination();
    15     }
    16 
    17 endif;
    18 add_action('home_construction_builder_archive_pagination','home_construction_builder_archive_pagination_x',20);
     21        // Check if the pagination type is "newer_older" (Previous/Next) or "numeric"
     22        if ( 'newer_older' === $home_construction_builder_pagination_type ) :
     23            // Display "Newer/Older" pagination (Previous/Next navigation)
     24            the_posts_navigation(
     25                array(
     26                    'prev_text' => __( '&laquo; Newer', 'home-construction-builder' ),  // Change the label for "previous"
     27                    'next_text' => __( 'Older &raquo;', 'home-construction-builder' ),  // Change the label for "next"
     28                    'screen_reader_text' => __( 'Posts navigation', 'home-construction-builder' ),
     29                )
     30            );
     31        else :
     32            // Display numeric pagination (Page numbers)
     33            the_posts_pagination(
     34                array(
     35                    'prev_text' => __( '&laquo; Previous', 'home-construction-builder' ),
     36                    'next_text' => __( 'Next &raquo;', 'home-construction-builder' ),
     37                    'type'      => 'list', // Display as <ul> <li> tags
     38                    'screen_reader_text' => __( 'Posts navigation', 'home-construction-builder' ),
     39                )
     40            );
     41        endif;
     42    }
     43}
     44add_action( 'home_construction_builder_posts_pagination', 'home_construction_builder_render_posts_pagination', 10 );
  • home-construction-builder/1.0.6/inc/template-tags.php

    r233437 r248156  
    1414     * Displays the site logo, either text or image.
    1515     *
    16      * @param array $args Arguments for displaying the site logo either as an image or text.
    17      * @param boolean $echo Echo or return the HTML.
    18      *
    19      * @return string $html Compiled HTML based on our arguments.
    20      */
    21     function home_construction_builder_site_logo( $args = array(), $echo = true ){
    22         $logo = get_custom_logo();
    23         $site_title = get_bloginfo('name');
    24         $contents = '';
    25         $classname = '';
    26         $defaults = array(
     16     * @param array $home_construction_builder_args Arguments for displaying the site logo either as an image or text.
     17     * @param boolean $home_construction_builder_echo Echo or return the HTML.
     18     *
     19     * @return string $home_construction_builder_html Compiled HTML based on our arguments.
     20     */
     21    function home_construction_builder_site_logo( $home_construction_builder_args = array(), $home_construction_builder_echo = true ){
     22        $home_construction_builder_logo = get_custom_logo();
     23        $home_construction_builder_site_title = get_bloginfo('name');
     24        $home_construction_builder_contents = '';
     25        $home_construction_builder_classname = '';
     26        $home_construction_builder_defaults = array(
    2727            'logo' => '%1$s<span class="screen-reader-text">%2$s</span>',
    2828            'logo_class' => 'site-logo site-branding',
     
    3333            'condition' => (is_front_page() || is_home()) && !is_page(),
    3434        );
    35         $args = wp_parse_args($args, $defaults);
     35        $home_construction_builder_args = wp_parse_args($home_construction_builder_args, $home_construction_builder_defaults);
    3636        /**
    3737         * Filters the arguments for `home_construction_builder_site_logo()`.
    3838         *
    39          * @param array $args Parsed arguments.
    40          * @param array $defaults Function's default arguments.
     39         * @param array $home_construction_builder_args Parsed arguments.
     40         * @param array $home_construction_builder_defaults Function's default arguments.
    4141         */
    42         $args = apply_filters('home_construction_builder_site_logo_args', $args, $defaults);
     42        $home_construction_builder_args = apply_filters('home_construction_builder_site_logo_args', $home_construction_builder_args, $home_construction_builder_defaults);
    4343        if ( has_custom_logo() ) {
    44             $contents = sprintf($args['logo'], $logo, esc_html($site_title));
    45             $contents .= sprintf($args['title'], esc_url( get_home_url(null, '/') ), esc_html($site_title));
    46             $classname = $args['logo_class'];
     44            $home_construction_builder_contents = sprintf($home_construction_builder_args['logo'], $home_construction_builder_logo, esc_html($home_construction_builder_site_title));
     45            $home_construction_builder_contents .= sprintf($home_construction_builder_args['title'], esc_url( get_home_url(null, '/') ), esc_html($home_construction_builder_site_title));
     46            $home_construction_builder_classname = $home_construction_builder_args['logo_class'];
    4747        } else {
    48             $contents = sprintf($args['title'], esc_url( get_home_url(null, '/') ), esc_html($site_title));
    49             $classname = $args['title_class'];
    50         }
    51         $wrap = $args['condition'] ? 'home_wrap' : 'single_wrap';
    52         // $wrap = 'home_wrap';
    53         $html = sprintf($args[$wrap], $classname, $contents);
     48            $home_construction_builder_contents = sprintf($home_construction_builder_args['title'], esc_url( get_home_url(null, '/') ), esc_html($home_construction_builder_site_title));
     49            $home_construction_builder_classname = $home_construction_builder_args['title_class'];
     50        }
     51        $home_construction_builder_wrap = $home_construction_builder_args['condition'] ? 'home_wrap' : 'single_wrap';
     52        // $home_construction_builder_wrap = 'home_wrap';
     53        $home_construction_builder_html = sprintf($home_construction_builder_args[$home_construction_builder_wrap], $home_construction_builder_classname, $home_construction_builder_contents);
    5454        /**
    5555         * Filters the arguments for `home_construction_builder_site_logo()`.
    5656         *
    57          * @param string $html Compiled html based on our arguments.
    58          * @param array $args Parsed arguments.
    59          * @param string $classname Class name based on current view, home or single.
    60          * @param string $contents HTML for site title or logo.
     57         * @param string $home_construction_builder_html Compiled html based on our arguments.
     58         * @param array $home_construction_builder_args Parsed arguments.
     59         * @param string $home_construction_builder_classname Class name based on current view, home or single.
     60         * @param string $home_construction_builder_contents HTML for site title or logo.
    6161         */
    62         $html = apply_filters('home_construction_builder_site_logo', $html, $args, $classname, $contents);
    63         if (!$echo) {
    64             return $html;
    65         }
    66         echo $html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     62        $home_construction_builder_html = apply_filters('home_construction_builder_site_logo', $home_construction_builder_html, $home_construction_builder_args, $home_construction_builder_classname, $home_construction_builder_contents);
     63        if (!$home_construction_builder_echo) {
     64            return $home_construction_builder_html;
     65        }
     66        echo $home_construction_builder_html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    6767
    6868    }
     
    7575     * Displays the site description.
    7676     *
    77      * @param boolean $echo Echo or return the html.
    78      *
    79      * @return string $html The HTML to display.
    80      */
    81     function home_construction_builder_site_description($echo = true){
     77     * @param boolean $home_construction_builder_echo Echo or return the html.
     78     *
     79     * @return string $home_construction_builder_html The HTML to display.
     80     */
     81    function home_construction_builder_site_description($home_construction_builder_echo = true){
    8282
    8383        if ( get_theme_mod('home_construction_builder_display_header_text', false) == true ) :
     
    8686            return;
    8787        }
    88         $wrapper = '<div class="site-description"><span>%s</span></div><!-- .site-description -->';
    89         $html = sprintf($wrapper, esc_html($home_construction_builder_description));
     88        $home_construction_builder_wrapper = '<div class="site-description"><span>%s</span></div><!-- .site-description -->';
     89        $home_construction_builder_html = sprintf($home_construction_builder_wrapper, esc_html($home_construction_builder_description));
    9090        /**
    9191         * Filters the html for the site description.
    9292         *
    93          * @param string $html The HTML to display.
     93         * @param string $home_construction_builder_html The HTML to display.
    9494         * @param string $home_construction_builder_description Site description via `bloginfo()`.
    95          * @param string $wrapper The format used in case you want to reuse it in a `sprintf()`.
     95         * @param string $home_construction_builder_wrapper The format used in case you want to reuse it in a `sprintf()`.
    9696         * @since 1.0.0
    9797         *
    9898         */
    99         $html = apply_filters('home_construction_builder_site_description', $html, $home_construction_builder_description, $wrapper);
    100         if (!$echo) {
    101             return $html;
    102         }
    103         echo $html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     99        $home_construction_builder_html = apply_filters('home_construction_builder_site_description', $home_construction_builder_html, $home_construction_builder_description, $home_construction_builder_wrapper);
     100        if (!$home_construction_builder_echo) {
     101            return $home_construction_builder_html;
     102        }
     103        echo $home_construction_builder_html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    104104        endif;
    105105    }
     
    112112     * Prints HTML with meta information for the current post-date/time.
    113113     */
    114     function home_construction_builder_posted_on( $icon = true, $animation_class = '' ){
     114    function home_construction_builder_posted_on( $home_construction_builder_icon = true, $home_construction_builder_animation_class = '' ){
    115115
    116116        $home_construction_builder_default = home_construction_builder_get_default_theme_options();
     
    119119        if( $home_construction_builder_post_date ){
    120120
    121             $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
     121            $home_construction_builder_time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
    122122            if (get_the_time('U') !== get_the_modified_time('U')) {
    123                 $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
    124             }
    125 
    126             $time_string = sprintf($time_string,
     123                $home_construction_builder_time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
     124            }
     125
     126            $home_construction_builder_time_string = sprintf($home_construction_builder_time_string,
    127127                esc_attr(get_the_date(DATE_W3C)),
    128128                esc_html(get_the_date()),
     
    131131            );
    132132
    133             $year = get_the_date('Y');
    134             $month = get_the_date('m');
    135             $day = get_the_date('d');
    136             $link = get_day_link($year, $month, $day);
    137 
    138             $posted_on = '<a href="' . esc_url($link) . '" rel="bookmark">' . $time_string . '</a>';
     133            $home_construction_builder_year = get_the_date('Y');
     134            $home_construction_builder_month = get_the_date('m');
     135            $home_construction_builder_day = get_the_date('d');
     136            $home_construction_builder_link = get_day_link($home_construction_builder_year, $home_construction_builder_month, $home_construction_builder_day);
     137
     138            $home_construction_builder_posted_on = '<a href="' . esc_url($home_construction_builder_link) . '" rel="bookmark">' . $home_construction_builder_time_string . '</a>';
    139139
    140140            echo '<div class="entry-meta-item entry-meta-date">';
    141             echo '<div class="entry-meta-wrapper '.esc_attr( $animation_class ).'">';
    142 
    143             if( $icon ){
     141            echo '<div class="entry-meta-wrapper '.esc_attr( $home_construction_builder_animation_class ).'">';
     142
     143            if( $home_construction_builder_icon ){
    144144
    145145                echo '<span class="entry-meta-icon calendar-icon"> ';
     
    149149            }
    150150
    151             echo '<span class="posted-on">' . $posted_on . '</span>'; // WPCS: XSS OK.
     151            echo '<span class="posted-on">' . $home_construction_builder_posted_on . '</span>'; // WPCS: XSS OK.
    152152            echo '</div>';
    153153            echo '</div>';
     
    164164     * Prints HTML with meta information for the current author.
    165165     */
    166     function home_construction_builder_posted_by( $icon = true, $animation_class = '' ){   
     166    function home_construction_builder_posted_by( $home_construction_builder_icon = true, $home_construction_builder_animation_class = '' ){   
    167167
    168168        $home_construction_builder_default = home_construction_builder_get_default_theme_options();
     
    172172
    173173            echo '<div class="entry-meta-item entry-meta-author">';
    174             echo '<div class="entry-meta-wrapper '.esc_attr( $animation_class ).'">';
    175 
    176             if( $icon ){
     174            echo '<div class="entry-meta-wrapper '.esc_attr( $home_construction_builder_animation_class ).'">';
     175
     176            if( $home_construction_builder_icon ){
    177177           
    178178                echo '<span class="entry-meta-icon author-icon"> ';
     
    182182            }
    183183
    184             $byline = '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta('ID') ) ) . '">' . esc_html(get_the_author()) . '</a></span>';
    185             echo '<span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
     184            $home_construction_builder_byline = '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta('ID') ) ) . '">' . esc_html(get_the_author()) . '</a></span>';
     185            echo '<span class="byline"> ' . $home_construction_builder_byline . '</span>'; // WPCS: XSS OK.
    186186            echo '</div>';
    187187            echo '</div>';
     
    199199     * Prints HTML with meta information for the current author.
    200200     */
    201     function home_construction_builder_posted_by_avatar( $date = false ){
     201    function home_construction_builder_posted_by_avatar( $home_construction_builder_date = false ){
    202202
    203203        $home_construction_builder_default = home_construction_builder_get_default_theme_options();
     
    216216            echo '<div class="entry-meta-right">';
    217217
    218             $byline = '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta('ID') ) ) . '">' . esc_html(get_the_author()) . '</a></span>';
    219 
    220             echo '<div class="entry-meta-item entry-meta-byline"> ' . $byline . '</div>';
    221 
    222             if( $date ){
    223                 home_construction_builder_posted_on($icon = false);
     218            $home_construction_builder_byline = '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta('ID') ) ) . '">' . esc_html(get_the_author()) . '</a></span>';
     219
     220            echo '<div class="entry-meta-item entry-meta-byline"> ' . $home_construction_builder_byline . '</div>';
     221
     222            if( $home_construction_builder_date ){
     223                home_construction_builder_posted_on($home_construction_builder_icon = false);
    224224            }
    225225            echo '</div>';
     
    236236     * Prints HTML with meta information for the categories, tags and comments.
    237237     */
    238     function home_construction_builder_entry_footer( $cats = true, $tags = true, $edits = true){   
     238    function home_construction_builder_entry_footer( $home_construction_builder_cats = true, $home_construction_builder_tags = true, $home_construction_builder_edits = true){   
    239239
    240240        $home_construction_builder_default = home_construction_builder_get_default_theme_options();
     
    245245        if ('post' === get_post_type()) {
    246246
    247             if( $cats && $home_construction_builder_post_category ){
     247            if( $home_construction_builder_cats && $home_construction_builder_post_category ){
    248248
    249249                /* translators: used between list items, there is a space after the comma */
    250                 $categories = get_the_category();
    251                 if ($categories) {
     250                $home_construction_builder_categories = get_the_category();
     251                if ($home_construction_builder_categories) {
    252252                    echo '<div class="entry-meta-item entry-meta-categories">';
    253253                    echo '<div class="entry-meta-wrapper">';
     
    255255                    /* translators: 1: list of categories. */
    256256                    echo '<span class="cat-links">';
    257                     foreach( $categories as $category ){
    258 
    259                         $cat_name = $category->name;
    260                         $cat_slug = $category->slug;
    261                         $cat_url = get_category_link( $category->term_id );
     257                    foreach( $home_construction_builder_categories as $home_construction_builder_category ){
     258
     259                        $home_construction_builder_cat_name = $home_construction_builder_category->name;
     260                        $home_construction_builder_cat_slug = $home_construction_builder_category->slug;
     261                        $home_construction_builder_cat_url = get_category_link( $home_construction_builder_category->term_id );
    262262                        ?>
    263263
    264                         <a class="twp_cat_<?php echo esc_attr( $cat_slug ); ?>" href="<?php echo esc_url( $cat_url ); ?>" rel="category tag"><?php echo esc_html( $cat_name ); ?></a>
     264                        <a class="twp_cat_<?php echo esc_attr( $home_construction_builder_cat_slug ); ?>" href="<?php echo esc_url( $home_construction_builder_cat_url ); ?>" rel="category tag"><?php echo esc_html( $home_construction_builder_cat_name ); ?></a>
    265265
    266266                    <?php }
     
    272272            }
    273273
    274             if( $tags && $home_construction_builder_post_tags ){
     274            if( $home_construction_builder_tags && $home_construction_builder_post_tags ){
    275275                /* translators: used between list items, there is a space after the comma */
    276276                $home_construction_builder_tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'home-construction-builder'));
     
    290290            }
    291291
    292             if( $edits ){
     292            if( $home_construction_builder_edits ){
    293293
    294294                edit_post_link(
     
    321321     *
    322322     * Wraps the post thumbnail in an anchor element on index views, or a div
    323      * element when on single views.
     323     * element when on single views. If no post thumbnail is available, a default image is used.
    324324     */
    325325    function home_construction_builder_post_thumbnail($image_size = 'full'){
    326326
    327         if( post_password_required() || is_attachment() || !has_post_thumbnail() ){ return; }
     327        if( post_password_required() || is_attachment() ){ return; }
     328
     329        // Set the URL for your default image here (e.g. from your theme directory)
     330        $home_construction_builder_default_image = get_template_directory_uri() . '/assets/images/about1.png'; // Update this path accordingly
    328331
    329332        if ( is_singular() ) : ?>
     
    333336            <a href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
    334337                <?php
    335                 the_post_thumbnail($image_size, array(
    336                     'alt' => the_title_attribute(array(
    337                         'echo' => false,
    338                     )),
    339                 )); ?>
     338
     339                $home_construction_builder_featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), $image_size);
     340                $home_construction_builder_featured_image = isset($home_construction_builder_featured_image[0]) ? $home_construction_builder_featured_image[0] : '';
     341
     342                // Check if there's a featured image
     343                if ($home_construction_builder_featured_image != '' ) {
     344                    // Display the featured image
     345                    the_post_thumbnail($image_size, array(
     346                        'alt' => the_title_attribute(array(
     347                            'echo' => false,
     348                        )),
     349                    ));
     350                } else {
     351                    // No featured image, display the default image
     352                    echo '<img src="' . esc_url($home_construction_builder_default_image) . '" alt="' . the_title_attribute(array('echo' => false)) . '" />';
     353                }
     354                ?>
    340355            </a>
    341356
    342357        <?php
    343 
    344358        endif; // End is_singular().
    345 
    346359    }
    347360
     
    356369     * Check if the specified comment is written by the author of the post commented on.
    357370     *
    358      * @param object $comment Comment data.
     371     * @param object $home_construction_builder_comment Comment data.
    359372     *
    360373     * @return bool
    361374     */
    362     function home_construction_builder_is_comment_by_post_author($comment = null){
    363 
    364         if (is_object($comment) && $comment->user_id > 0) {
    365             $user = get_userdata($comment->user_id);
    366             $post = get_post($comment->comment_post_ID);
    367             if (!empty($user) && !empty($post)) {
    368                 return $comment->user_id === $post->post_author;
     375    function home_construction_builder_is_comment_by_post_author($home_construction_builder_comment = null){
     376
     377        if (is_object($home_construction_builder_comment) && $home_construction_builder_comment->user_id > 0) {
     378            $home_construction_builder_user = get_userdata($home_construction_builder_comment->user_id);
     379            $home_construction_builder_post = get_post($home_construction_builder_comment->comment_post_ID);
     380            if (!empty($home_construction_builder_user) && !empty($home_construction_builder_post)) {
     381                return $home_construction_builder_comment->user_id === $home_construction_builder_post->post_author;
    369382            }
    370383        }
     
    379392     * Home Construction Builder Breadcrumb
    380393     */
    381     function home_construction_builder_breadcrumb($comment = null){
     394    function home_construction_builder_breadcrumb($home_construction_builder_comment = null){
    382395
    383396        echo '<div class="entry-breadcrumb">';
  • home-construction-builder/1.0.6/inc/widgets/widgets.php

    r233437 r248156  
    2222    $home_construction_builder_home_construction_builder_footer_column_layout = absint( get_theme_mod( 'home_construction_builder_footer_column_layout',$home_construction_builder_default['home_construction_builder_footer_column_layout'] ) );
    2323
    24     for( $i = 0; $i < $home_construction_builder_home_construction_builder_footer_column_layout; $i++ ){
     24    for( $home_construction_builder_i = 0; $home_construction_builder_i < $home_construction_builder_home_construction_builder_footer_column_layout; $home_construction_builder_i++ ){
    2525       
    26         if( $i == 0 ){ $count = esc_html__('One','home-construction-builder'); }
    27         if( $i == 1 ){ $count = esc_html__('Two','home-construction-builder'); }
    28         if( $i == 2 ){ $count = esc_html__('Three','home-construction-builder'); }
     26        if( $home_construction_builder_i == 0 ){ $home_construction_builder_count = esc_html__('One','home-construction-builder'); }
     27        if( $home_construction_builder_i == 1 ){ $home_construction_builder_count = esc_html__('Two','home-construction-builder'); }
     28        if( $home_construction_builder_i == 2 ){ $home_construction_builder_count = esc_html__('Three','home-construction-builder'); }
    2929
    3030        register_sidebar( array(
    31             'name' => esc_html__('Footer Widget ', 'home-construction-builder').$count,
    32             'id' => 'home-construction-builder-footer-widget-'.$i,
     31            'name' => esc_html__('Footer Widget ', 'home-construction-builder').$home_construction_builder_count,
     32            'id' => 'home-construction-builder-footer-widget-'.$home_construction_builder_i,
    3333            'description' => esc_html__('Add widgets here.', 'home-construction-builder'),
    3434            'before_widget' => '<div id="%1$s" class="widget %2$s">',
  • home-construction-builder/1.0.6/index.php

    r233437 r248156  
    4444                                the_posts_pagination();
    4545                            }else{
    46                                 do_action('home_construction_builder_archive_pagination');
     46                                do_action('home_construction_builder_posts_pagination');
    4747                            }
    4848
  • home-construction-builder/1.0.6/languages/home-construction-builder.pot

    r247305 r248156  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Home Construction Builder 1.0.5\n"
     5"Project-Id-Version: Home Construction Builder 1.0.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/home-construction-builder\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-10-28T10:06:42+00:00\n"
     12"POT-Creation-Date: 2024-11-08T05:46:40+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    149149
    150150#: inc/custom-functions.php:341
    151 msgid "HOME CONSTRUCTION BUILDER "
     151msgid "HOME CONSTRUCTION BUILDER"
    152152msgstr ""
    153153
    154154#: inc/custom-functions.php:341
    155 msgid "By "
     155msgid " By "
    156156msgstr ""
    157157
     
    230230msgstr ""
    231231
    232 #: inc/customizer/custom-addon.php:26
     232#: inc/customizer/custom-addon.php:29
     233msgid "Enable Pagination"
     234msgstr ""
     235
     236#: inc/customizer/custom-addon.php:45
     237msgid "Pagination Style"
     238msgstr ""
     239
     240#: inc/customizer/custom-addon.php:49
     241msgid "Numeric (Page Numbers)"
     242msgstr ""
     243
     244#: inc/customizer/custom-addon.php:50
     245msgid "Newer/Older (Previous/Next)"
     246msgstr ""
     247
     248#: inc/customizer/custom-addon.php:64
    233249msgid "Pagination Alignment"
    234250msgstr ""
    235251
    236 #: inc/customizer/custom-addon.php:30
    237 #: inc/customizer/custom-addon.php:50
    238 #: inc/customizer/custom-addon.php:91
     252#: inc/customizer/custom-addon.php:68
     253#: inc/customizer/custom-addon.php:88
     254#: inc/customizer/custom-addon.php:129
    239255#: inc/customizer/footer.php:68
    240256msgid "Center"
    241257msgstr ""
    242258
    243 #: inc/customizer/custom-addon.php:31
    244 #: inc/customizer/custom-addon.php:51
    245 #: inc/customizer/custom-addon.php:92
     259#: inc/customizer/custom-addon.php:69
     260#: inc/customizer/custom-addon.php:89
     261#: inc/customizer/custom-addon.php:130
    246262#: inc/customizer/footer.php:69
    247263msgid "Right"
    248264msgstr ""
    249265
    250 #: inc/customizer/custom-addon.php:32
    251 #: inc/customizer/custom-addon.php:52
     266#: inc/customizer/custom-addon.php:70
    252267#: inc/customizer/custom-addon.php:90
     268#: inc/customizer/custom-addon.php:128
    253269#: inc/customizer/footer.php:67
    254270msgid "Left"
    255271msgstr ""
    256272
    257 #: inc/customizer/custom-addon.php:46
     273#: inc/customizer/custom-addon.php:84
    258274msgid "Breadcrumb Alignment"
    259275msgstr ""
    260276
    261 #: inc/customizer/custom-addon.php:66
     277#: inc/customizer/custom-addon.php:104
    262278msgid "Breadcrumb Font Size"
    263279msgstr ""
    264280
    265 #: inc/customizer/custom-addon.php:86
     281#: inc/customizer/custom-addon.php:124
    266282msgid "Single Page Content Alignment"
    267283msgstr ""
     
    372388
    373389#: inc/customizer/default.php:83
    374 #: template-parts/content.php:80
     390#: template-parts/content.php:89
    375391msgid "Read More"
    376392msgstr ""
    377393
    378 #: inc/customizer/default.php:96
     394#: inc/customizer/default.php:97
    379395msgid "#"
    380396msgstr ""
     
    442458#: inc/customizer/global-color-setting.php:32
    443459msgid "Global Color"
     460msgstr ""
     461
     462#: inc/customizer/global-color-setting.php:51
     463msgid "Secondary Color"
    444464msgstr ""
    445465
     
    768788#: inc/metabox.php:75
    769789msgid "Remove Image"
     790msgstr ""
     791
     792#: inc/pagination.php:26
     793msgid "&laquo; Newer"
     794msgstr ""
     795
     796#: inc/pagination.php:27
     797msgid "Older &raquo;"
     798msgstr ""
     799
     800#: inc/pagination.php:28
     801#: inc/pagination.php:38
     802msgid "Posts navigation"
     803msgstr ""
     804
     805#: inc/pagination.php:35
     806msgid "&laquo; Previous"
     807msgstr ""
     808
     809#: inc/pagination.php:36
     810msgid "Next &raquo;"
    770811msgstr ""
    771812
     
    915956msgstr ""
    916957
     958#: template-parts/content-single.php:26
     959msgid "Home Construction Builder Default Image"
     960msgstr ""
     961
    917962#. translators: %s: Name of current post.
    918 #: template-parts/content-single.php:75
     963#: template-parts/content-single.php:67
    919964msgid "Read More %s <span class=\"meta-nav\">&rarr;</span>"
    920965msgstr ""
    921966
    922 #: template-parts/content-single.php:80
    923 #: template-parts/content.php:73
     967#: template-parts/content-single.php:72
     968#: template-parts/content.php:82
    924969msgid "Pages:"
    925970msgstr ""
  • home-construction-builder/1.0.6/readme.txt

    r247305 r248156  
    44Tested up to: 6.6
    55Requires PHP: 7.2
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    118118* Added Settings for To The Top.
    119119* Updated To The Top Function and CSS.
     120
     121= 1.0.6 =
     122* Added Pagination Enable/Disable Setting.
     123* Added Pagination Style Setting.
     124* Added Default Image on Blog Posts.
     125* Done Prefixing.
  • home-construction-builder/1.0.6/rtl.css

    r247305 r248156  
    66https://codex.wordpress.org/Right-to-Left_Language_Support
    77*/
    8 
     8/*--------------------------------------------------------------
     9# Normalize
     10--------------------------------------------------------------*/
    911html {
    1012    line-height: 1.15;
     
    2628}
    2729pre {
    28     font-family: monospace, monospace;
     30    font-family: var(--font-main);
    2931    font-size: 1em;
    3032}
     
    4446kbd,
    4547samp {
    46     font-family: monospace, monospace;
     48    font-family: var(--font-main);
    4749    font-size: 1em;
    4850}
     
    6567input {
    6668    overflow: visible;
     69    font-family: var(--font-main);
    6770}
    6871button,
     
    157160}
    158161body {
    159    font-family: "Poppins", sans-serif;
     162   font-family: var(--font-main);
    160163    color: #666B6E;
    161164}
     
    170173    clear: both;
    171174    font-weight: bold;
    172     font-family: "Lato", sans-serif;
     175    font-family: var(--font-head);
    173176}
    174177h1,
     
    188191}
    189192.entry-title a {
    190     background-image: linear-gradient(-180deg, transparent 94%, #000 0);
     193    background-image: linear-gradient(180deg, transparent 94%, #000 0);
    191194    background-size: 0% 100%;
    192195    background-repeat: no-repeat;
     
    246249tt,
    247250var {
    248     font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
     251    font-family: var(--font-main);
    249252    font-size: 15px;
    250253    font-size: 0.9375rem;
     
    310313li > ol {
    311314    margin-bottom: 0;
    312     margin-right: 1.5em;
     315    margin-left: 1.5em;
    313316}
    314317dt {
     
    372375
    373376figure.wp-block-gallery.columns-3 {
    374     padding-left: 10%;
     377    padding-right: 10%;
    375378}
    376379/* Gallery */
     
    378381.wp-block-gallery {
    379382    margin-bottom: 28px;
    380     margin-right: 0;
     383    margin-left: 0;
    381384}
    382385
     
    391394
    392395figure.wp-block-gallery.columns-3{
    393     padding-left: 15%;
     396    padding-right: 15%;
    394397}
    395398
    396399figure.wp-block-gallery.columns-2{
    397     padding-left: 1%;
     400    padding-right: 1%;
    398401}
    399402
     
    449452    display: inline;
    450453    font-weight: 400;
    451     margin-right: 0.5rem;
     454    margin-left: 0.5rem;
    452455}
    453456input,
     
    522525textarea:hover,
    523526textarea:focus {
    524     border-color: #E74216;
     527    border-color: var(--global-color);
    525528}
    526529textarea {
     
    579582}
    580583.wp-block-button.is-style-outline .wp-block-button__link{
    581     border: solid 2px #E74216;
    582     color: #E74216 !important;
     584    border: solid 2px var(--global-color);
     585    color: var(--global-color) !important;
    583586}
    584587.wp-block-button.is-style-squared .wp-block-button__link{
     
    602605input[type="submit"]:focus {
    603606    text-decoration: none;
    604     border-color: #E74216;
    605     background-color: #E74216;
     607    border-color: var(--global-color);
     608    background-color: var(--global-color);
    606609}
    607610button:focus,
     
    691694    background: #fff;
    692695    padding: 5px 10px;
    693     margin-right: 10px;
     696    margin-left: 10px;
    694697    border-radius: 7px;
    695698}
     
    736739
    737740.woocommerce span.onsale{
    738     background-color: #E74216;
     741    background-color: var(--global-color);
    739742}
    740743
    741744.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button{
    742     background-color: #E74216;
     745    background-color: var(--global-color);
    743746    color: #fff;
    744747}
    745748
    746749.woocommerce ul.products li.product .price,.woocommerce div.product p.price, .woocommerce div.product span.price{
    747     color: #E74216;
     750    color: var(--global-color);
    748751}
    749752
     
    847850
    848851.woocommerce nav.woocommerce-pagination ul li span.current{
    849     background: #E74216;
     852    background: var(--global-color);
    850853    color: #222;
    851854}
    852855
    853856.wp-block-woocommerce-cart .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-totals-coupon__button{
    854   background: #E74216;
     857  background: var(--global-color);
    855858  color: #fff !important;
    856859  text-decoration: none !important;
     
    862865}
    863866.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover{
    864   border: 2px solid #E74216;
    865   background: #E74216;
     867  border: 2px solid var(--global-color);
     868  background: var(--global-color);
    866869  color: #fff !important;
    867870}
     
    893896}
    894897.wc-block-components-order-summary-item__quantity{
    895   background: #E74216 !important;
     898  background: var(--global-color) !important;
    896899  color: #fff !important;
    897900  border: none !important;
    898901  box-shadow: none !important;
    899902}
    900 .wc-block-components-sidebar-layout{
    901   flex-flow: column-reverse !important;
    902 }
     903
    903904.wc-block-components-sidebar-layout .wc-block-components-main {
    904   padding-left:0% !important;
     905  padding-right:0% !important;
    905906  width: 100% !important;
    906907}
     
    909910}
    910911.wp-block-woocommerce-cart.alignwide{
     912  margin-right: auto !important;
    911913  margin-left: auto !important;
    912   margin-right: auto !important;
    913914}
    914915.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
     
    951952
    952953.woocommerce span.onsale{
    953     background-color: #E74216;
     954    background-color: var(--global-color);
    954955}
    955956
    956957.woocommerce div.product p.price, .woocommerce div.product span.price{
    957     color: #E74216;
     958    color: var(--global-color);
    958959}
    959960.products button,.products .button,.products .wp-block-search__button,.products .wp-block-button__link,.products .wp-block-file .wp-block-file__button,.products input[type="button"],.products input[type="reset"],.products input[type="submit"],.products .woocommerce ul.products li.product .button,.products a.added_to_cart.wc-forward{
     
    971972
    972973.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:hover,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button:hover{
    973     background-color: #E74216;
     974    background-color: var(--global-color);
    974975}
    975976
     
    979980
    980981#top-header {
    981     background: #FFC527;
     982    background: var(--secondary-color);
    982983}
    983984#top-header svg{
    984985    fill: #ffffff;
    985     margin-left: 10px;
     986    margin-right: 10px;
    986987}
    987988#center-header .social-area svg {
     
    989990    font-size: 15px;
    990991}
    991 
    992 #top-header span {
    993     letter-spacing: 1px;
    994 }
    995992#top-header span, #top-header span a, #top-header .social-area a {
    996993    color: #ffffff;
    997     font-size: 12px;
     994    font-size: 14px;
    998995    font-weight: 500;
    999996}
    1000997.wrapper.headers-top{
    1001     background: #E74216;
     998    background: var(--global-color);
    1002999    padding-top: 10px;
    10031000    padding-bottom: 10px;
     
    10071004}
    10081005.header-button span a {
    1009     background: #FFC527;
     1006    background: var(--secondary-color);
    10101007    padding: 10px 30px;
    10111008    border-radius: 0px;
     
    10461043
    10471044.header-titles .custom-logo-name, .site-description {
    1048     color: #E74216;
    1049     font-family: "Inter", sans-serif;
     1045    color: var(--global-color);
     1046    font-family: var(--font-head);
    10501047    text-transform: uppercase;
    10511048}
     
    10591056    position: fixed;
    10601057    top: 0px;
    1061     right: 0px;
     1058    left: 0px;
    10621059    width: 100%;
    10631060    height: 100%;
     
    10921089    position: absolute;
    10931090    top: 50%;
    1094     right: 0;
     1091    left: 0;
    10951092    margin-top: -51px;
    10961093    width: 60%;
    1097     margin-right: 20%;
     1094    margin-left: 20%;
    10981095    color: rgb(255, 255, 255);
    10991096    background: transparent;
    11001097    border-top: 1px solid rgba(255, 255, 255, .8);
    11011098    border-bottom: 2px solid rgba(255, 255, 255, .5);
     1099    border-left: 0px solid transparent;
    11021100    border-right: 0px solid transparent;
    1103     border-left: 0px solid transparent;
    11041101    font-size: 40px;
    11051102    font-weight: 300;
     
    11071104    outline: none;
    11081105    padding: 10px;
     1106    font-family: var(--font-main);
    11091107}
    11101108#search .close {
    11111109    position: fixed;
    11121110    top: 15px;
    1113     left: 15px;
     1111    right: 15px;
    11141112    opacity: 1;
    11151113    font-size: 27px;
     
    11401138    position: relative;
    11411139    top: 0px;
    1142     float: left;
     1140    float: right;
    11431141    z-index: 1000;
    11441142}
    11451143.toggle-menu.active i {
    1146     right: 80px;
     1144    left: 80px;
    11471145    top: 10px !important;
    11481146    background: #000;
     
    11541152  background: #ffffff;
    11551153  width: 30px;
    1156   right: 0px;
     1154  left: 0px;
    11571155  -webkit-transition: all .3s;
    11581156  transition: all .3s;
     
    11741172}
    11751173.toggle-menu.active i:nth-child(1) {
     1174  top: 25px;
     1175  -webkit-transform: rotateZ(45deg);
     1176  transform: rotateZ(45deg);
     1177}
     1178
     1179.toggle-menu.active i:nth-child(2) {
     1180  background: transparent;
     1181}
     1182
     1183.toggle-menu.active i:nth-child(3) {
    11761184  top: 25px;
    11771185  -webkit-transform: rotateZ(-45deg);
    11781186  transform: rotateZ(-45deg);
    11791187}
    1180 
    1181 .toggle-menu.active i:nth-child(2) {
    1182   background: transparent;
    1183 }
    1184 
    1185 .toggle-menu.active i:nth-child(3) {
    1186   top: 25px;
    1187   -webkit-transform: rotateZ(45deg);
    1188   transform: rotateZ(45deg);
    1189 }
    11901188.menu-drawer {
    11911189    overflow-y: scroll;
    11921190}
    11931191.menu-drawer .widget-area-wrapper .widget {
    1194     margin-right: 0px !important;
     1192    margin-left: 0px !important;
    11951193}
    11961194.menu-drawer {
     
    12001198    position: fixed;
    12011199    display: none;
    1202     left: -550px;
     1200    right: -550px;
    12031201    top: 32px;
    1204     transition: left linear .10s;
     1202    transition: right linear .10s;
    12051203    padding: 50px;
    12061204    z-index: 9;
    12071205}
    12081206.open {
    1209   left: 0px;
     1207  right: 0px;
    12101208  display: block;
    1211   transition: left linear .10s;
     1209  transition: right linear .10s;
    12121210}
    12131211.menu-drawer .header-logo {
     
    12421240    width: 15px;
    12431241    font-size: 10px;
    1244     left: 0px;
    1245     background: #E74216;
     1242    right: 0px;
     1243    background: var(--global-color);
    12461244    text-align: center;
    12471245    border-radius: 30px;
     
    12721270    z-index: -1 !important;
    12731271    position: absolute;
     1272    right: 0px;
    12741273    left: 0px;
    1275     right: 0px;
    12761274    z-index: 0;
    12771275    width: 22%;
     
    13751373}
    13761374.main-nav-controls .navbar-control {
    1377     margin: 0 auto 0 1.25rem;
     1375    margin: 0 1.25rem 0 auto;
    13781376}
    13791377.navbar-control:hover,
     
    14061404    height: 600px;
    14071405    position: relative;
    1408     background-size: 100% 100% !important;
     1406    background-size: cover !important;
    14091407}
    14101408.slider-box:before{
     
    14151413    position: absolute;
    14161414    top: 0px;
    1417     right: 0px;
     1415    left: 0px;
    14181416}
    14191417.image-main-box {
     
    14261424    clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0 100%, 0 58%);
    14271425    width: 600px;
     1426    background-size: cover;
     1427    object-fit: cover;
    14281428}
    14291429span.third_word_span {
    1430     color: #E74216;
     1430    color: var(--global-color);
    14311431}
    14321432.slider-main {
     
    14501450    width: 460px;
    14511451    content: "";
    1452     background: #FFC527;
     1452    background: var(--secondary-color);
    14531453    position: absolute;
    14541454    top: 0px;
    14551455    z-index: -1;
    1456     left: 0px;
     1456    right: 0px;
    14571457}
    14581458.slider-box:after {
     
    14611461    content: "";
    14621462    clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
    1463     background: #E74216;
     1463    background: var(--global-color);
    14641464    position: absolute;
    14651465    bottom: 0px;
    14661466    z-index: 2;
    1467     right: 0px;
     1467    left: 0px;
    14681468}
    14691469.main-carousel-caption .post-content {
    14701470    position: absolute;
    1471     left: 30%;
    1472     right: 27%;
     1471    right: 30%;
     1472    left: 27%;
    14731473    top: 35px;
    14741474}
    14751475.slide-heading-main .entry-header h3 {
    1476     font-size: 14px;
     1476    font-size: 16px;
    14771477    font-weight: 700;
    14781478    color: #000000;
    14791479}
    14801480.slide-heading-main a.btn-fancy.btn-fancy-primary {
    1481     background: #FFC527;
     1481    background: var(--secondary-color);
    14821482    font-size: 14px;
    14831483    font-weight: 500;
     
    14951495}
    14961496.slide-heading-main .entry-header svg{
    1497     margin-left: 5px;
     1497    margin-right: 5px;
    14981498}
    14991499.page-template-frontpage-php .main-header,.page-template-frontpage .main-header{
     
    15091509}
    15101510.slide-heading-main h4.slide-title {
    1511     color: #E74216;
     1511    color: var(--global-color);
    15121512    font-size: 20px;
    15131513    text-transform: uppercase;
     
    15251525.slide-heading-main span.slide-button a {
    15261526    font-size: 20px;
    1527     color: #E74216;
     1527    color: var(--global-color);
    15281528    font-weight: 600;
    15291529}
    15301530.slide-heading-main span.slide-button a svg {
    15311531    fill: #000;
    1532     margin-right: 15px;
     1532    margin-left: 15px;
    15331533    top: 4px;
    15341534    position: relative;
     
    15401540    margin: 0px 0px;
    15411541    object-fit: cover;
    1542     right: 0px;
     1542    left: 0px;
    15431543    z-index: 2;
    15441544}
     
    15531553}
    15541554h2.slider-heading .last_word_span{
    1555     color: #E74216;
     1555    color: var(--global-color);
    15561556}
    15571557.most-sidebar-box:before {
     
    15591559    position: absolute;
    15601560    top: -28px;
     1561    right: -23px;
     1562    width: 72px;
     1563    z-index: -1;
     1564    height: 100px;
     1565    background: url(assets/images/about-small.png);
     1566    background-repeat: no-repeat;
     1567}
     1568.most-sidebar-box:after {
     1569    content: "";
     1570    position: absolute;
     1571    bottom: -28px;
    15611572    left: -23px;
    15621573    width: 72px;
     
    15661577    background-repeat: no-repeat;
    15671578}
    1568 .most-sidebar-box:after {
    1569     content: "";
    1570     position: absolute;
    1571     bottom: -28px;
    1572     right: -23px;
    1573     width: 72px;
    1574     z-index: -1;
    1575     height: 100px;
    1576     background: url(assets/images/about-small.png);
    1577     background-repeat: no-repeat;
    1578 }
    15791579
    15801580.most-sidebar-box h3 {
    15811581    position: absolute;
    1582     transform: rotate(-270deg);
    1583     right: -58%;
     1582    transform: rotate(270deg);
     1583    left: -58%;
    15841584    top: 40%;
    15851585    font-size: 64px;
     
    15951595}
    15961596.about-btn a.btn-fancy.btn-fancy-primary {
    1597     background: #FFC527;
     1597    background: var(--secondary-color);
    15981598    font-size: 14px;
    15991599    font-weight: 500;
     
    16181618}
    16191619.about-single-box svg{
    1620     fill: #E74216;
     1620    fill: var(--global-color);
    16211621}
    16221622.about-single-box {
     
    16291629    background: #0E1B48;
    16301630    width: 50px;
    1631     margin-left: 15px;
     1631    margin-right: 15px;
    16321632    text-align: center;
    16331633    height: 50px;
     
    16421642    content: "";
    16431643    background: #000;
    1644     transform: rotateZ(-45deg);
     1644    transform: rotateZ(45deg);
    16451645    position: absolute;
    16461646    bottom: 0px;
    16471647    z-index: 2;
    1648     right: 0px;
     1648    left: 0px;
    16491649}
    16501650.list-heading-main h4.list-title:after {
     
    16521652    width: 12px;
    16531653    content: "";
    1654     background: #E74216;
    1655     transform: rotateZ(-45deg);
     1654    background: var(--global-color);
     1655    transform: rotateZ(45deg);
    16561656    position: absolute;
    16571657    bottom: 0px;
    16581658    z-index: 2;
    16591659    z-index: 1;
    1660     right: 9px;
     1660    left: 9px;
    16611661}
    16621662.list-heading-main h4.list-title {
    1663     color: #E74216;
     1663    color: var(--global-color);
    16641664    font-weight: 700;
    16651665    position: relative;
    1666     padding-right: 45px;
     1666    padding-left: 45px;
    16671667    font-size: 15px;
    16681668    text-transform: uppercase;
     
    16841684.blog-main-box {
    16851685    width: 70%;
    1686     padding-right: 55px;
     1686    padding-left: 55px;
    16871687}
    16881688.most-sidebar-box img {
     
    17541754    position: relative;
    17551755    width: 75%;
    1756     padding-right: 25px !important;
     1756    padding-left: 25px !important;
    17571757}
    17581758.middle-blog-box .theme-article-post {
     
    17971797    height: 100%;
    17981798    position: absolute;
     1799    left: 0;
    17991800    right: 0;
    1800     left: 0;
    18011801    top: 0;
    18021802    bottom: 0;
     
    18321832    list-style: none;
    18331833    display: inline;
    1834     margin-left: 10px;
     1834    margin-right: 10px;
    18351835}
    18361836.blog-box span.middle-cat {
     
    18431843    list-style: none;
    18441844    display: inline;
    1845     margin-left: 10px;
     1845    margin-right: 10px;
    18461846}
    18471847.middle-blog-box span.middle-cat {
     
    18731873    }
    18741874    .main-carousel-caption .post-content {
     1875        right: 0;
     1876        position: relative;
    18751877        left: 0;
    1876         position: relative;
    1877         right: 0;
    18781878        padding-bottom: 20px;
    18791879    }
     
    19381938    .banner-img {
    19391939        height: 350px;
    1940         width: 100%;
     1940        width: 400px;
     1941    }
     1942    .theme-main-carousel .entry-content {
     1943        display: none;
    19411944    }
    19421945    .image-main-box:after {
     
    19471950    .main-carousel-caption .post-content {
    19481951        position: absolute;
    1949         left: 10%;
    1950         right: 9%;
     1952        right: 10%;
     1953        left: 9%;
    19511954        top: 35px;
    19521955    }
     
    19661969@media screen and  (min-width: 992px) and (max-width: 1199px){
    19671970    .main-carousel-caption .post-content {
    1968         right: 7%;
     1971        left: 7%;
     1972    }
     1973    .banner-img {
     1974        height: 325px;
     1975        clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0 100%, 0 58%);
     1976        width: 460px;
     1977    }
     1978    .image-main-box:after {
     1979        clip-path: polygon(35% 0%, 100% 0, 100% 100%, 0 100%, 0 28%);
     1980        width: 380px;
    19691981    }
    19701982}
     
    20152027--------------------------------------------------------------*/
    20162028.site-navigation .current_page_item >a, .site-navigation .current-menu-item>a, .site-navigation .current_page_ancestor>a, .site-navigation .current-menu-ancestor>a {
    2017     color: #E74216 !important;
     2029    color: var(--global-color) !important;
    20182030}
    20192031ul.sub-menu .current_page_item >a{
     
    20362048    margin: 0 auto;
    20372049    padding: 0;
    2038     justify-content: right;
     2050    justify-content: left;
    20392051}
    20402052.site-navigation .primary-menu .brand-home {
     
    20652077.site-navigation .primary-menu .icon {
    20662078    pointer-events: none;
     2079    margin-left: 5px;
     2080}
     2081.rtl .site-navigation .primary-menu .icon {
     2082    margin-left: 0;
    20672083    margin-right: 5px;
    2068 }
    2069 .rtl .site-navigation .primary-menu .icon {
    2070     margin-right: 0;
    2071     margin-left: 5px;
    20722084}
    20732085.site-navigation .primary-menu .icon .svg-icon {
     
    20802092}
    20812093.header-layout .site-navigation .primary-menu > li:last-child {
     2094    margin-right: 0;
     2095}
     2096.rtl .header-layout .site-navigation .primary-menu > li:last-child {
     2097    margin-right: 1rem;
    20822098    margin-left: 0;
    2083 }
    2084 .rtl .header-layout .site-navigation .primary-menu > li:last-child {
    2085     margin-left: 1rem;
    2086     margin-right: 0;
    20872099}
    20882100.site-navigation .primary-menu > li > a,.link-icon-wrapper a {
     
    20962108    top: 3px;
    20972109    height: 15px;
    2098     margin-right: 0px;
     2110    margin-left: 0px;
    20992111    position: relative;
    21002112}
     
    21022114.site-navigation .primary-menu > li:focus > a::before {
    21032115    width: 100%;
    2104     right: 0;
     2116    left: 0;
    21052117}
    21062118.site-navigation .primary-menu > li.active > a::before {
    21072119    width: 100%;
    2108     right: 0;
     2120    left: 0;
    21092121}
    21102122.site-navigation .primary-menu > li:not(.megamenu-has-children),
     
    21252137/* SUB MENU */
    21262138.site-navigation .primary-menu ul {
    2127     background: #E74216;
     2139    background: var(--global-color);
    21282140    color: #fff;
    21292141    font-size: 1.7rem;
     
    21312143    margin: 0 auto;
    21322144    position: absolute;
    2133     right: -99999rem;
     2145    left: -99999rem;
    21342146    top: 100%;
    2135     transition: opacity 0.15s linear, transform 0.15s linear, left 0s 0.15s;
     2147    transition: opacity 0.15s linear, transform 0.15s linear, right 0s 0.15s;
    21362148    transform: translateY(0.6rem);
    21372149    width: 30rem;
     
    21422154.site-navigation .primary-menu li.page_item_has_children:hover > ul,
    21432155.site-navigation .primary-menu li.page_item_has_children:focus > ul {
    2144     right: 0;
     2156    left: 0;
    21452157    opacity: 1;
    21462158    transform: translateY(0);
     
    21492161.site-navigation .primary-menu li.menu-item-has-children:focus-within > ul,
    21502162.site-navigation .primary-menu li.page_item_has_children:focus-within > ul {
    2151     right: 0;
     2163    left: 0;
    21522164    opacity: 1;
    21532165    transform: translateY(0);
     
    21622174.site-navigation .primary-menu ul::before {
    21632175    height: 2rem;
     2176    left: 0;
    21642177    right: 0;
    2165     left: 0;
    21662178}
    21672179.site-navigation .primary-menu ul a {
     
    21742186}
    21752187.site-navigation .primary-menu ul li.menu-item-has-children > a {
    2176     padding-left: 3rem;
     2188    padding-right: 3rem;
    21772189}
    21782190.site-navigation .primary-menu ul li.menu-item-has-children .icon {
    21792191    position: absolute;
    2180     left: 1.5rem;
     2192    right: 1.5rem;
    21812193    top: calc(50% - 0.5rem);
    21822194}
     
    21892201.site-navigation .primary-menu ul li.page_item_has_children:hover > ul,
    21902202.site-navigation .primary-menu ul li.page_item_has_children:focus > ul {
    2191     right: calc(100% + 2rem);
     2203    left: calc(100% + 2rem);
    21922204}
    21932205.site-navigation .primary-menu ul li.menu-item-has-children:focus-within > ul,
    21942206.site-navigation .primary-menu ul li.page_item_has_children:focus-within > ul {
    2195     right: calc(100% + 2rem);
     2207    left: calc(100% + 2rem);
    21962208}
    21972209.site-navigation .primary-menu ul ul::before {
     
    22002212    bottom: 0;
    22012213    height: 5.6rem;
    2202     left: auto;
    2203     right: -2rem;
     2214    right: auto;
     2215    left: -2rem;
    22042216    top: 0;
    22052217    width: 2rem;
     
    22082220    border: 0.8rem solid transparent;
    22092221    border-bottom-color: transparent;
    2210     border-left-color: #000;
     2222    border-right-color: #000;
    22112223    bottom: auto;
    2212     right: -1.6rem;
     2224    left: -1.6rem;
    22132225    top: 2rem;
    22142226}
    22152227.rtl .site-navigation .primary-menu ul ul::after {
    2216     transform: rotate(-180deg);
     2228    transform: rotate(180deg);
    22172229}
    22182230/*
     
    22232235@media (any-pointer: coarse) {
    22242236    .site-navigation .primary-menu > li.menu-item-has-children > a {
    2225         padding-left: 0;
    2226         margin-left: 2rem;
     2237        padding-right: 0;
     2238        margin-right: 2rem;
    22272239    }
    22282240    .site-navigation .primary-menu ul li.menu-item-has-children > a {
    2229         margin-left: 4.5rem;
    2230         padding-left: 0;
     2241        margin-right: 4.5rem;
     2242        padding-right: 0;
    22312243        width: unset;
    22322244    }
     
    22342246/* Repeat previous rules for IE11 (when JS enabled for polyfill). */
    22352247body.touch-enabled .primary-menu > li.menu-item-has-children > a {
    2236     padding-left: 0;
    2237     margin-left: 2rem;
     2248    padding-right: 0;
     2249    margin-right: 2rem;
    22382250}
    22392251body.touch-enabled .primary-menu ul li.menu-item-has-children > a {
    2240     margin-left: 4.5rem;
    2241     padding-left: 0;
     2252    margin-right: 4.5rem;
     2253    padding-right: 0;
    22422254    width: unset;
    22432255}
     
    22502262    .wrapper, .wrapper-fluid {
    22512263        width: auto !important;
     2264        margin-right: 15px !important;
    22522265        margin-left: 15px !important;
    2253         margin-right: 15px !important;
    22542266    }
    22552267}
     
    22622274    position: absolute;
    22632275    top: -20px;
    2264     right: calc(100% - 20px);
     2276    left: calc(100% - 20px);
    22652277    padding: 2px 5px;
    22662278    line-height: 10px;
     
    22732285    width: 0;
    22742286    height: 0;
    2275     border-right: 0px solid transparent;
    2276     border-left: 5px solid transparent;
     2287    border-left: 0px solid transparent;
     2288    border-right: 5px solid transparent;
    22772289    border-top: 5px solid;
    22782290    border-top-color: #000;
    2279     right: 3px;
     2291    left: 3px;
    22802292    bottom: -4px;
    22812293}
     
    22912303        visibility: visible;
    22922304    }
     2305    .offcanvas-main-navigation .submenu-wrapper .submenu-toggle .svg-icon {
     2306        height: 1.9rem !important;
     2307    }
    22932308}
    22942309#offcanvas-menu {
     
    22972312    top: 0;
    22982313    height: 100%;
    2299     left: -100%;
     2314    right: -100%;
    23002315    width: 100%;
    23012316    z-index: 1000;
    23022317    justify-content: flex-end;
    2303     -webkit-transition: left 0.5s;
    2304     -moz-transition: left 0.5s;
    2305     -ms-transition: left 0.5s;
    2306     -o-transition: left 0.5s;
    2307     transition: left 0.5s;
     2318    -webkit-transition: right 0.5s;
     2319    -moz-transition: right 0.5s;
     2320    -ms-transition: right 0.5s;
     2321    -o-transition: right 0.5s;
     2322    transition: right 0.5s;
    23082323}
    23092324#offcanvas-menu .offcanvas-wraper {
     
    23382353}
    23392354#offcanvas-menu .close-offcanvas-menu {
    2340     text-align: left;
     2355    text-align: right;
    23412356    cursor: pointer;
    23422357}
     
    23542369.responsive-date-clock .responsive-content-date,
    23552370.responsive-date-clock .theme-topbar-clock {
    2356     text-align: right;
     2371    text-align: left;
    23572372}
    23582373.responsive-date-clock .theme-topbar-icon,
     
    23622377}
    23632378.offcanvas-wraper > * {
    2364     -webkit-transform: translateX(-30px);
    2365     -ms-transform: translateX(-30px);
    2366     transform: translateX(-30px);
     2379    -webkit-transform: translateX(30px);
     2380    -ms-transform: translateX(30px);
     2381    transform: translateX(30px);
    23672382    opacity: 0;
    23682383    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
     
    23872402    display: -ms-flexbox;
    23882403    display: flex;
    2389     left: 0;
     2404    right: 0;
    23902405}
    23912406.offcanvas-main-navigation {
     
    24302445.offcanvas-main-navigation .submenu-wrapper .submenu-toggle {
    24312446    border-style: solid;
    2432     border-width: 0 1px 0 0;
     2447    border-width: 0 0 0 1px;
     2448    padding-left: 3rem;
    24332449    padding-right: 3rem;
    2434     padding-left: 3rem;
    24352450}
    24362451.offcanvas-main-navigation .submenu-wrapper .submenu-toggle .svg-icon {
     
    24402455}
    24412456.offcanvas-main-navigation .submenu-wrapper .submenu-toggle.button-toggle-active .svg-icon {
    2442     transform: rotate(-180deg);
     2457    transform: rotate(180deg);
    24432458}
    24442459.social-menu ul {
     
    24532468}
    24542469.social-menu li a .svg-icon {
    2455     margin-right: 0.2rem;
     2470    margin-left: 0.2rem;
    24562471    width: 1.6rem;
    24572472    height: 1.6rem;
     
    24882503    font-weight: bold;
    24892504    height: auto;
    2490     right: 5px;
     2505    left: 5px;
    24912506    line-height: normal;
    24922507    padding: 15px 23px 14px;
     
    25132528.alignleft {
    25142529    display: inline;
     2530    float: left;
     2531    margin-right: 1.5em;
     2532}
     2533.alignright {
     2534    display: inline;
    25152535    float: right;
    25162536    margin-left: 1.5em;
    2517 }
    2518 .alignright {
    2519     display: inline;
    2520     float: left;
    2521     margin-right: 1.5em;
    25222537}
    25232538.aligncenter {
    25242539    clear: both;
    25252540    display: block;
     2541    margin-left: auto;
    25262542    margin-right: auto;
    2527     margin-left: auto;
    25282543}
    25292544/*--------------------------------------------------------------
     
    25722587.widget ul,
    25732588.widget ol {
     2589    padding-left: 0;
    25742590    padding-right: 0;
    2575     padding-left: 0;
    25762591    list-style: none;
    25772592    margin-bottom: 0;
     
    26462661}
    26472662.widget_nav_menu .sub-menu .sub-menu a {
    2648     padding-right: 1rem;
     2663    padding-left: 1rem;
    26492664}
    26502665.widget_nav_menu .submenu-visible {
     
    26582673    margin: 0 auto;
    26592674    width: 80%;
    2660     float: right;
     2675    float: left;
    26612676}
    26622677.search-form label .search-field {
    2663     border-left: 0;
     2678    border-right: 0;
    26642679}
    26652680.search-form .search-submit {
    2666     float: right;
     2681    float: left;
    26672682    width: 20%;
    26682683    -webkit-appearance: none;
     2684    padding: 24px 0;
    26692685}
    26702686.header-searchbar-area .search-form .search-submit {
     
    27072723.widget_archive ul li a,
    27082724.widget_meta ul li a {
    2709     padding-left: 0.6666666667rem;
    2710     margin-left: auto;
     2725    padding-right: 0.6666666667rem;
     2726    margin-right: auto;
    27112727    -webkit-transition: color 0.2s;
    27122728    transition: color 0.2s;
     
    27202736    width: 100%;
    27212737    margin-top: 1rem;
    2722     margin-right: 0;
    2723     padding-right: 1.5em;
     2738    margin-left: 0;
     2739    padding-left: 1.5em;
    27242740}
    27252741.widget_categories ul ul.children li,
    27262742.widget_pages ul ul.children li,
    27272743.widget_archive ul ul.children li {
    2728     padding: 1rem 1rem 1rem 0;
     2744    padding: 1rem 0 1rem 1rem;
    27292745}
    27302746.widget_categories ul ul.children li:last-child,
     
    27372753.widget_pages ul ul.children ul.children li,
    27382754.widget_archive ul ul.children ul.children li {
    2739     margin-right: 1rem;
    2740     padding-right: 0;
     2755    margin-left: 1rem;
     2756    padding-left: 0;
    27412757}
    27422758.widget_search form {
     
    27482764}
    27492765#wp-calendar caption {
    2750     text-align: left;
     2766    text-align: right;
    27512767    margin-bottom: 15px;
    27522768}
     
    27872803}
    27882804.widget_recent_entries li .post-date {
    2789     margin-right: 1rem;
     2805    margin-left: 1rem;
    27902806}
    27912807.widget_recent_entries li .post-date:before {
     
    28262842    margin-top: 0.25rem;
    28272843    font-style: normal;
    2828     text-align: left;
     2844    text-align: right;
    28292845    font-size: 0.8125rem;
    28302846}
     
    28442860    padding: 0.5rem 1.5rem;
    28452861    margin-top: 0.5rem;
    2846     margin-left: 0.5rem;
     2862    margin-right: 0.5rem;
    28472863    text-decoration: none;
    28482864    font-weight: 700;
     
    28562872}
    28572873.widget_tag_cloud .tagcloud a:last-child {
    2858     margin-left: 0;
     2874    margin-right: 0;
    28592875}
    28602876.widget_tag_cloud .tagcloud a:first-letter {
     
    29943010.widget_text ul {
    29953011    list-style: disc;
    2996     margin: 0 1rem 1rem 0;
     3012    margin: 0 0 1rem 1rem;
    29973013}
    29983014.widget_text ol {
     
    30083024}
    30093025.widget_text ul li ul {
    3010     margin: 0 1rem 0 0;
     3026    margin: 0 0 0 1rem;
    30113027}
    30123028.widget_text ul li li {
     3029    padding-left: 0;
    30133030    padding-right: 0;
    3014     padding-left: 0;
    30153031}
    30163032.widget_text ol li {
     
    30263042}
    30273043.widget .tab-head .twp-nav-tabs li {
    3028     float: right;
     3044    float: left;
    30293045    margin: 0 auto;
    30303046    width: 33.33%;
     
    30713087    width: 100%;
    30723088    top: 0;
     3089    left: 0;
    30733090    right: 0;
    3074     left: 0;
    30753091    background-color: rgba(0, 0, 0, 0.14);
    30763092}
     
    30863102    height: 15px;
    30873103    display: inline-block;
    3088     margin-left: 5px;
     3104    margin-right: 5px;
    30893105    vertical-align: middle;
    30903106}
     
    31193135    line-height: 20px;
    31203136    position: absolute;
    3121     right: 15px;
     3137    left: 15px;
    31223138    bottom: 15px;
     3139    margin-left: auto;
    31233140    margin-right: auto;
    3124     margin-left: auto;
    31253141    text-align: center;
    31263142    width: 20px;
     
    31433159    color: #fff;
    31443160    display: inline-block;
    3145     float: left;
     3161    float: right;
    31463162    font-size: 16px;
    31473163    font-weight: 700;
     
    32743290}
    32753291.breadcrumbs ul .trail-item.trail-begin span {
    3276     padding-right: 0;
     3292    padding-left: 0;
    32773293}
    32783294.breadcrumbs ul li span:before {
     
    32923308  content: '';
    32933309  font-size: 1.2rem;
    3294   background: url(assets/images/pin.png) no-repeat scroll 100% 0px !important;
     3310  background: url(assets/images/pin.png) no-repeat scroll 0 0px !important;
    32953311  font-weight: 900;
    32963312  padding: 10px 15px;
     
    33053321  background: #fff;
    33063322  width: 100%;
    3307   right: 0;
     3323  left: 0;
    33083324  bottom: 0;
    33093325  top: 0;
     
    33373353    width: 0px;
    33383354    height: 0px;
    3339     border-left: 25px solid transparent;
    3340     border-top: 25px solid #E74216;
    3341     border-right: 25px solid #E74216;
    3342     border-bottom: 25px solid #E74216;
     3355    border-right: 25px solid transparent;
     3356    border-top: 25px solid var(--global-color);
     3357    border-left: 25px solid var(--global-color);
     3358    border-bottom: 25px solid var(--global-color);
    33433359    border-radius: 25px;
    33443360    -webkit-animation: rotate_pacman_half_up 0.5s 0s infinite;
    33453361    animation: rotate_pacman_half_up 0.5s 0s infinite;
    33463362    position: relative;
    3347     right: 30%;
     3363    left: 30%;
    33483364}
    33493365.loader > div:nth-child(2) {
    33503366    width: 0px;
    33513367    height: 0px;
    3352     border-left: 25px solid transparent;
    3353     border-top: 25px solid #E74216;
    3354     border-right: 25px solid #E74216;
    3355     border-bottom: 25px solid #E74216;
     3368    border-right: 25px solid transparent;
     3369    border-top: 25px solid var(--global-color);
     3370    border-left: 25px solid var(--global-color);
     3371    border-bottom: 25px solid var(--global-color);
    33563372    border-radius: 25px;
    33573373    -webkit-animation: rotate_pacman_half_down 0.5s 0s infinite;
     
    33593375    margin-top: -50px;
    33603376    position: relative;
    3361     right: 30%;
     3377    left: 30%;
    33623378}
    33633379.loader > div:nth-child(3),
     
    33773393    transform: translate(0, -6.25px);
    33783394    top: 25px;
    3379     left: 0;
     3395    right: 0;
    33803396}
    33813397@-webkit-keyframes rotate_pacman_half_up {
    33823398    0% {
    3383         -webkit-transform: rotate(-270deg);
    3384         transform: rotate(-270deg); }
     3399        -webkit-transform: rotate(270deg);
     3400        transform: rotate(270deg); }
    33853401    50% {
    3386         -webkit-transform: rotate(-360deg);
    3387         transform: rotate(-360deg); }
     3402        -webkit-transform: rotate(360deg);
     3403        transform: rotate(360deg); }
    33883404    100% {
    3389         -webkit-transform: rotate(-270deg);
    3390         transform: rotate(-270deg); }
     3405        -webkit-transform: rotate(270deg);
     3406        transform: rotate(270deg); }
    33913407}
    33923408@keyframes rotate_pacman_half_up {
    33933409    0% {
    3394         -webkit-transform: rotate(-270deg);
    3395         transform: rotate(-270deg); }
     3410        -webkit-transform: rotate(270deg);
     3411        transform: rotate(270deg); }
    33963412    50% {
    3397         -webkit-transform: rotate(-360deg);
    3398         transform: rotate(-360deg); }
     3413        -webkit-transform: rotate(360deg);
     3414        transform: rotate(360deg); }
    33993415    100% {
    3400         -webkit-transform: rotate(-270deg);
    3401         transform: rotate(-270deg); }
     3416        -webkit-transform: rotate(270deg);
     3417        transform: rotate(270deg); }
    34023418}
    34033419@-webkit-keyframes rotate_pacman_half_down {
    34043420    0% {
    3405         -webkit-transform: rotate(-90deg);
    3406         transform: rotate(-90deg); }
     3421        -webkit-transform: rotate(90deg);
     3422        transform: rotate(90deg); }
    34073423    50% {
    34083424        -webkit-transform: rotate(0deg);
    34093425        transform: rotate(0deg); }
    34103426    100% {
    3411         -webkit-transform: rotate(-90deg);
    3412         transform: rotate(-90deg); }
     3427        -webkit-transform: rotate(90deg);
     3428        transform: rotate(90deg); }
    34133429}
    34143430@keyframes rotate_pacman_half_down {
    34153431    0% {
    3416         -webkit-transform: rotate(-90deg);
    3417         transform: rotate(-90deg); }
     3432        -webkit-transform: rotate(90deg);
     3433        transform: rotate(90deg); }
    34183434    50% {
    34193435        -webkit-transform: rotate(0deg);
    34203436        transform: rotate(0deg); }
    34213437    100% {
    3422         -webkit-transform: rotate(-90deg);
    3423         transform: rotate(-90deg); }
     3438        -webkit-transform: rotate(90deg);
     3439        transform: rotate(90deg); }
    34243440}
    34253441@-webkit-keyframes pacman-balls {
     
    34273443        opacity: 0.7; }
    34283444    100% {
    3429         -webkit-transform: translate(100px, -6.25px);
    3430         transform: translate(100px, -6.25px); }
     3445        -webkit-transform: translate(-100px, -6.25px);
     3446        transform: translate(-100px, -6.25px); }
    34313447}
    34323448@keyframes pacman-balls {
     
    34343450        opacity: 0.7; }
    34353451    100% {
    3436         -webkit-transform: translate(100px, -6.25px);
    3437         transform: translate(100px, -6.25px); }
     3452        -webkit-transform: translate(-100px, -6.25px);
     3453        transform: translate(-100px, -6.25px); }
    34383454}
    34393455
     
    34723488.wrapper-fluid {
    34733489    width: 100%;
     3490    margin-right: auto;
    34743491    margin-left: auto;
    3475     margin-right: auto;
    34763492}
    34773493.wrapper {
     3494    padding-right: 15px;
    34783495    padding-left: 15px;
    3479     padding-right: 15px;
    34803496}
    34813497@media (min-width: 1400px) {
     
    35033519    -ms-flex-wrap: wrap;
    35043520    flex-wrap: wrap;
     3521    margin-right: -15px;
    35053522    margin-left: -15px;
    3506     margin-right: -15px;
    35073523}
    35083524.column-row-collapse {
     3525    margin-right: 0;
    35093526    margin-left: 0;
    3510     margin-right: 0;
    35113527}
    35123528.column-row-small {
     3529    margin-right: -5px;
    35133530    margin-left: -5px;
    3514     margin-right: -5px;
    35153531}
    35163532.column {
    35173533    position: relative;
    35183534    width: 100%;
     3535    padding-right: 15px;
    35193536    padding-left: 15px;
    3520     padding-right: 15px;
    35213537}
    35223538.column-row-collapse .column {
     3539    padding-right: 0;
    35233540    padding-left: 0;
    3524     padding-right: 0;
    35253541}
    35263542.column-row-small .column {
     3543    padding-right: 5px;
    35273544    padding-left: 5px;
    3528     padding-right: 5px;
    35293545}
    35303546.column-1 {
     
    36573673.content-area {
    36583674    position: relative;
     3675    padding-right: 15px;
    36593676    padding-left: 15px;
    3660     padding-right: 15px;
    36613677    padding-top: 3rem;
    36623678    width: 100%;
     
    36843700}
    36853701.left-sidebar .content-area #site-content {
    3686     padding-right: 2%;
     3702    padding-left: 2%;
    36873703}
    36883704.widget-area {
     
    36903706    flex: 0 0 25%;
    36913707    max-width: 25%;
     3708    padding-right: 15px;
    36923709    padding-left: 15px;
    3693     padding-right: 15px;
    36943710}
    36953711@media (max-width: 1400px) {
     
    37233739}
    37243740.left-sidebar .widget-area {
    3725     border-left: 1px solid;
     3741    border-right: 1px solid;
    37263742}
    37273743.left-sidebar .widget-area-wrapper .widget {
    3728     margin-left: 40px;
     3744    margin-right: 40px;
    37293745}
    37303746@media (max-width: 1400px) {
    37313747    .left-sidebar .content-area #site-content {
    3732         padding-right: 0;
     3748        padding-left: 0;
    37333749    }
    37343750}
    37353751@media (max-width: 1024px) {
    37363752    .left-sidebar .widget-area-wrapper {
    3737         padding-left: 0;
    3738         border-left: none;
     3753        padding-right: 0;
     3754        border-right: none;
    37393755    }
    37403756    .left-sidebar .widget-area-wrapper .widget {
    3741         margin-left: 0;
     3757        margin-right: 0;
    37423758    }
    37433759}
     
    37473763}
    37483764.right-sidebar .widget-area {
    3749     border-right: 1px solid;
     3765    border-left: 1px solid;
    37503766    -ms-flex-order: 2;
    37513767    order: 2;
    37523768}
    37533769.right-sidebar .widget-area-wrapper .widget {
    3754     margin-right: 40px;
     3770    margin-left: 40px;
    37553771}
    37563772.right-sidebar .content-area #site-content {
    3757     padding-left: 2%;
    3758     padding-right: 0;
     3773    padding-right: 2%;
     3774    padding-left: 0;
    37593775}
    37603776@media (max-width: 1400px) {
    37613777    .right-sidebar .content-area #site-content {
    3762         padding-left: 0;
     3778        padding-right: 0;
    37633779    }
    37643780}
    37653781@media (max-width: 1024px) {
    37663782    .right-sidebar .widget-area-wrapper {
    3767         border-right: 0;
    3768         padding-right: 0;
     3783        border-left: 0;
     3784        padding-left: 0;
    37693785    }
    37703786    .right-sidebar .widget-area-wrapper .widget {
    3771         margin-right: 0;
     3787        margin-left: 0;
    37723788    }
    37733789}
     
    37803796}
    37813797.widget-area-wrapper .widget_recent_entries ul li a {
    3782     background-image: linear-gradient(-180deg, transparent 94%, #000 0);
     3798    background-image: linear-gradient(180deg, transparent 94%, #000 0);
    37833799    background-size: 0% 100%;
    37843800    background-repeat: no-repeat;
     
    38133829}
    38143830.alignleft {
     3831    margin: 0.5rem 2.5rem 2.5rem 0;
     3832}
     3833.alignright {
    38153834    margin: 0.5rem 0 2.5rem 2.5rem;
    3816 }
    3817 .alignright {
    3818     margin: 0.5rem 2.5rem 2.5rem 0;
    38193835}
    38203836@media only screen and (min-width: 1400px) {
    38213837    .entry-content .alignwide {
     3838        margin-left: -2rem;
    38223839        margin-right: -2rem;
    3823         margin-left: -2rem;
    38243840    }
    38253841}
     
    38543870    background-repeat: no-repeat;
    38553871    background-size: 100% 100%;
    3856     padding-left: 1rem;
    3857     margin-left: 0.5rem;
     3872    padding-right: 1rem;
     3873    margin-right: 0.5rem;
    38583874}
    38593875.entry-meta .cat-links a:hover:not(.entry-meta .cat-links a:first-child) {
     
    38663882    top: 50%;
    38673883    transform: translateY(-50%);
    3868     left: 0;
     3884    right: 0;
    38693885    font-weight: 600;
    38703886    color: #000;
    38713887}
    38723888.entry-meta .cat-links a:last-child {
    3873     margin-left: 0;
    3874     padding-left: 0;
     3889    margin-right: 0;
     3890    padding-right: 0;
    38753891}
    38763892.entry-meta .cat-links a:last-child::before {
     
    38783894}
    38793895.entry-meta .cat-links a:first-child {
    3880     color: #E74216;
     3896    color: var(--global-color);
    38813897}
    38823898.entry-meta .cat-links a:first-child:hover,
     
    38853901}
    38863902.entry-meta .entry-meta-item {
    3887     margin: 0 0 1rem 1rem;
    3888     padding-left: 1.5rem;
     3903    margin: 0 1rem 1rem 0;
     3904    padding-right: 1.5rem;
    38893905}
    38903906.entry-meta .entry-meta-item:last-child {
    3891     margin-left: 0;
    3892     padding-left: 0;
     3907    margin-right: 0;
     3908    padding-right: 0;
    38933909}
    38943910.entry-meta .entry-meta-item:last-child::before {
     
    38993915    border-radius: 50%;
    39003916    margin-bottom: 0;
    3901     margin-left: 1rem;
     3917    margin-right: 1rem;
    39023918    overflow: hidden;
    39033919}
     
    39143930}
    39153931.entry-meta-item .entry-meta-icon {
    3916     margin-left: 1rem;
     3932    margin-right: 1rem;
    39173933}
    39183934.entry-meta-label {
    3919     margin-left: 5px;
     3935    margin-right: 5px;
    39203936}
    39213937.post-navigation {
     
    39383954}
    39393955.post-navigation .arrow {
    3940     margin-left: 1rem;
     3956    margin-right: 1rem;
    39413957}
    39423958@media (max-width: 767px) {
     
    39613977    -ms-flex-wrap: wrap;
    39623978    flex-wrap: wrap;
     3979    margin-right: -15px;
    39633980    margin-left: -15px;
    3964     margin-right: -15px;
    39653981}
    39663982.site-content .article-wraper-archive .theme-article-post {
    39673983    position: relative;
    39683984    width: 100%;
     3985    padding-right: 15px;
    39693986    padding-left: 15px;
    3970     padding-right: 15px;
    39713987    -ms-flex: 0 0 33%;
    39723988    flex: 0 0 33.33%;
     
    40104026}
    40114027.post-navigation .nav-links > div + div {
    4012     margin: 0 4rem 0 0;
     4028    margin: 0 0 0 4rem;
    40134029}
    40144030.post-navigation .arrow {
    4015     margin: 0 0 0 2rem;
     4031    margin: 0 2rem 0 0;
    40164032}
    40174033.post-navigation .nav-next:only-child {
    4018     margin-right: auto;
     4034    margin-left: auto;
    40194035}
    40204036.post-navigation .nav-next a {
    40214037    flex-direction: row-reverse;
    4022     text-align: left;
     4038    text-align: right;
    40234039}
    40244040.post-navigation .nav-next .arrow {
    4025     margin: 0 2rem 0 0;
     4041    margin: 0 0 0 2rem;
    40264042}
    40274043.theme-ajax-post-load {
     
    40414057.pagination .page-numbers {
    40424058    display: inline-block;
    4043     margin-left: 1.25em;
     4059    margin-right: 1.25em;
    40444060    color: #abadaf;
    40454061}
     
    40484064}
    40494065.pagination .page-numbers:last-child {
    4050     margin-left: 0;
     4066    margin-right: 0;
    40514067}
    40524068@media only screen and (min-width: 600px) {
     
    40624078    }
    40634079    .pagination .prev:after {
     4080        margin-left: 1.25em;
     4081    }
     4082    .pagination .next:before {
    40644083        margin-right: 1.25em;
    4065     }
    4066     .pagination .next:before {
    4067         margin-left: 1.25em;
    40684084    }
    40694085}
     
    40724088--------------------------------------------------------------*/
    40734089.twp-comment-toggle {
    4074     text-align: right;
     4090    text-align: left;
    40754091    position: relative;
    40764092    width: 100%;
     
    40794095    position: absolute;
    40804096    top: 0;
    4081     left: 0;
     4097    right: 0;
    40824098    bottom: 0;
    40834099    width: 45px;
     
    41004116    margin: auto;
    41014117    top: 0;
     4118    right: 0;
     4119    bottom: 0;
    41024120    left: 0;
    4103     bottom: 0;
    4104     right: 0;
    41054121}
    41064122.comment-toggle-icon:after {
     
    41374153    list-style: none;
    41384154    margin: 0;
    4139     padding-right: 30px;
     4155    padding-left: 30px;
    41404156    position: relative;
    41414157}
     
    41734189}
    41744190#comments .comment-author img {
    4175     float: right;
    4176     margin-left: 20px;
     4191    float: left;
     4192    margin-right: 20px;
    41774193}
    41784194#comments .comment-author .fn {
     
    41934209}
    41944210#comments .comment-meta .comment-metadata .edit-link {
    4195     margin-right: 10px;
     4211    margin-left: 10px;
    41964212}
    41974213#comments .reply {
     
    42074223}
    42084224#comments .comment-reply-link:hover:after {
    4209     margin-right: 13px;
     4225    margin-left: 13px;
    42104226}
    42114227#comments .comment-form {
     
    42544270#comments h3.comment-reply-title #cancel-comment-reply-link {
    42554271    display: inline-block;
    4256     margin-right: 10px;
     4272    margin-left: 10px;
    42574273    text-transform: none;
    42584274    font-size: 14px;
     
    42804296        -ms-flex-wrap: wrap;
    42814297        flex-wrap: wrap;
     4298        margin-right: -20px;
    42824299        margin-left: -20px;
    4283         margin-right: -20px;
    42844300    }
    42854301    .comments-area .comment-form-comment {
     
    42954311        position: relative;
    42964312        width: 100%;
     4313        padding-right: 20px;
    42974314        padding-left: 20px;
    4298         padding-right: 20px;
    42994315        margin-bottom: 1.5rem;
    43004316    }
     
    43064322        position: relative;
    43074323        width: 100%;
     4324        padding-right: 20px;
    43084325        padding-left: 20px;
    4309         padding-right: 20px;
    43104326        margin-bottom: 1.5rem;
    43114327    }
     
    43304346        position: relative;
    43314347        width: 100%;
     4348        padding-right: 20px;
    43324349        padding-left: 20px;
    4333         padding-right: 20px;
    43344350    }
    43354351}
     
    43454361        position: relative;
    43464362        width: 100%;
     4363        padding-right: 20px;
    43474364        padding-left: 20px;
    4348         padding-right: 20px;
    43494365    }
    43504366}
     
    43974413.wp-caption img[class*="wp-image-"] {
    43984414    display: block;
     4415    margin-left: auto;
    43994416    margin-right: auto;
    4400     margin-left: auto;
    44014417}
    44024418.wp-caption .wp-caption-text {
     
    44044420}
    44054421.wp-caption.aligncenter {
     4422    margin-left: auto;
    44064423    margin-right: auto;
    4407     margin-left: auto;
    44084424}
    44094425.wp-caption.alignleft {
     4426    margin-right: 20px;
     4427}
     4428.wp-caption.alignright {
    44104429    margin-left: 20px;
    4411 }
    4412 .wp-caption.alignright {
    4413     margin-right: 20px;
    44144430}
    44154431.wp-caption-text {
     
    44304446        -ms-flex-wrap: wrap;
    44314447        flex-wrap: wrap;
     4448        margin-left: -10px;
    44324449        margin-right: -10px;
    4433         margin-left: -10px;
    44344450    }
    44354451}
     
    44454461        position: relative;
    44464462        width: 100%;
     4463        padding-left: 10px;
    44474464        padding-right: 10px;
    4448         padding-left: 10px;
    44494465        margin-bottom: 20px;
    44504466    }
     
    44554471        position: relative;
    44564472        width: 100%;
     4473        padding-left: 10px;
    44574474        padding-right: 10px;
    4458         padding-left: 10px;
    44594475        margin-bottom: 20px;
    44604476    }
     
    44654481        position: relative;
    44664482        width: 100%;
     4483        padding-left: 10px;
    44674484        padding-right: 10px;
    4468         padding-left: 10px;
    44694485        margin-bottom: 20px;
    44704486    }
     
    44754491        position: relative;
    44764492        width: 100%;
     4493        padding-left: 10px;
    44774494        padding-right: 10px;
    4478         padding-left: 10px;
    44794495        margin-bottom: 20px;
    44804496    }
     
    44854501        position: relative;
    44864502        width: 100%;
     4503        padding-left: 10px;
    44874504        padding-right: 10px;
    4488         padding-left: 10px;
    44894505        margin-bottom: 20px;
    44904506    }
     
    44954511        position: relative;
    44964512        width: 100%;
     4513        padding-left: 10px;
    44974514        padding-right: 10px;
    4498         padding-left: 10px;
    44994515        margin-bottom: 20px;
    45004516    }
     
    45054521        position: relative;
    45064522        width: 100%;
     4523        padding-left: 10px;
    45074524        padding-right: 10px;
    4508         padding-left: 10px;
    45094525        margin-bottom: 20px;
    45104526    }
     
    45154531        position: relative;
    45164532        width: 100%;
     4533        padding-left: 10px;
    45174534        padding-right: 10px;
    4518         padding-left: 10px;
    45194535        margin-bottom: 20px;
    45204536    }
     
    45824598    position: absolute;
    45834599    top: 0;
    4584     right: 50%;
    4585     transform: translate(50%, 0);
     4600    left: 50%;
     4601    transform: translate(-50%, 0);
    45864602    pointer-events: none;
    45874603}
     
    46434659--------------------------------------------------------------*/
    46444660.align-text-right {
    4645     text-align: left;
     4661    text-align: right;
    46464662}
    46474663.to-the-top > * {
     
    47434759    position: absolute;
    47444760    top: 0;
    4745     right: 0;
     4761    left: 0;
    47464762    width: 10rem;
    47474763    height: 100%;
     
    47514767@keyframes animate {
    47524768    0% {
    4753         right: 0;
     4769        left: 0;
    47544770    }
    47554771    50% {
    4756         right: 100%;
     4772        left: 100%;
    47574773    }
    47584774    0% {
    4759         right: 0;
     4775        left: 0;
    47604776    }
    47614777}
     
    47634779    @keyframes animate {
    47644780        0% {
    4765             right: 0;
     4781            left: 0;
    47664782        }
    47674783        50% {
    4768             right: 67%;
     4784            left: 67%;
    47694785        }
    47704786        0% {
    4771             right: 0;
     4787            left: 0;
    47724788        }
    47734789    }
     
    47784794    -ms-flex-align: center;
    47794795    align-items: center;
    4780     margin-right: auto;
     4796    margin-left: auto;
    47814797}
    47824798@media (max-width: 991px) {
    47834799    .theme-carousel-control {
    4784         margin-left: auto;
     4800        margin-right: auto;
    47854801    }
    47864802}
     
    48384854@-webkit-keyframes reveal-carousel-primary {
    48394855    100% {
    4840         transform: translateX(-100%);
     4856        transform: translateX(100%);
    48414857    }
    48424858}
    48434859@keyframes reveal-carousel-primary {
    48444860    100% {
    4845         transform: translateX(-100%);
     4861        transform: translateX(100%);
    48464862    }
    48474863}
    48484864@-webkit-keyframes reveal-carousel-secondary {
    48494865    0% {
    4850         transform: translateX(100%);
     4866        transform: translateX(-100%);
    48514867    }
    48524868    50% {
     
    48544870    }
    48554871    100% {
    4856         transform: translateX(-100%);
     4872        transform: translateX(100%);
    48574873    }
    48584874}
    48594875@keyframes reveal-carousel-secondary {
    48604876    0% {
    4861         transform: translateX(100%);
     4877        transform: translateX(-100%);
    48624878    }
    48634879    50% {
     
    48654881    }
    48664882    100% {
    4867         transform: translateX(-100%);
     4883        transform: translateX(100%);
    48684884    }
    48694885}
    48704886@-webkit-keyframes reveal-carousel-tertiary {
    48714887    0% {
    4872         transform: translateX(100%);
     4888        transform: translateX(-100%);
    48734889    }
    48744890    50% {
     
    48764892    }
    48774893    100% {
    4878         transform: translateX(-100%);
     4894        transform: translateX(100%);
    48794895    }
    48804896}
    48814897@keyframes reveal-carousel-tertiary {
    48824898    0% {
    4883         transform: translateX(100%);
     4899        transform: translateX(-100%);
    48844900    }
    48854901    50% {
     
    48874903    }
    48884904    100% {
    4889         transform: translateX(-100%);
     4905        transform: translateX(100%);
    48904906    }
    48914907}
     
    48964912        text-align: center;
    48974913    }
     4914    .theme-main-carousel .entry-content{
     4915        display: none;
     4916    }
    48984917    .theme-product-block h3:after{
    48994918        display: none;
     
    49144933    }
    49154934    .imagebox1 .entry-thumbnail img{
    4916         right: 0px;
     4935        left: 0px;
    49174936    }
    49184937    .imagebox1 .entry-thumbnail:after{
    4919         right: 0px;
     4938        left: 0px;
    49204939        margin:0 auto;
    49214940    }
     
    49394958    }
    49404959    header#site-header{
    4941         padding-left: 0px;
     4960        padding-right: 0px;
    49424961    }
    49434962    section#top-header {
     4963        padding-right: 15px;
    49444964        padding-left: 15px;
    4945         padding-right: 15px;
    4946         padding-bottom: 15px;
    49474965    }
    49484966    .main-carousel-caption .entry-title a{
     
    49544972    }
    49554973    .blog-main-box{
    4956         padding-right: 0px;
     4974        padding-left: 0px;
    49574975    }
    49584976    .page-template-frontpage header#site-header{
     
    49634981    }
    49644982    .list-heading-main{
    4965         margin-left: 0px;
     4983        margin-right: 0px;
    49664984        margin-bottom: 20px;
    49674985    }
     
    50035021    }
    50045022    .toggle-menu.active i {
    5005         right: 129px !important;
     5023        left: 129px !important;
    50065024        top: -166px !important;
    50075025        background: #000;
     
    50215039        height: 200px;
    50225040        width: 200px;
    5023         right: 0px;
     5041        left: 0px;
    50245042    }
    50255043    .header-menu {
     
    50845102.theme-main-carousel .entry-content {
    50855103    margin-bottom: 2rem;
    5086     color: #000000;
     5104    color: #222222;
    50875105    font-size: 14px;
     5106    font-weight: 500;
    50885107}
    50895108.swiper-control,
     
    50975116}
    50985117:root {
     5118    --global-color: #E74216;
     5119    --secondary-color: #FFC527;
     5120    --font-head: "Outfit", sans-serif;
     5121    --font-main: "Roboto", sans-serif;
    50995122    --swiper-navigation-size: 2.6rem;
    51005123}
     
    51285151.swiper-button-prev,
    51295152.swiper-container-rtl .swiper-button-next {
    5130     right: 0;
     5153    left: 0;
    51315154}
    51325155.swiper-button-next,
    51335156.swiper-container-rtl .swiper-button-prev {
    5134     left: 0;
     5157    right: 0;
    51355158}
    51365159.swiper-container .swiper-pagination-progressbar {
     
    51475170    position: absolute;
    51485171    top: 0;
    5149     right: 0;
     5172    left: 0;
    51505173    padding: 5px 10px;
    51515174    font-size: 12px;
     
    51575180}
    51585181.theme-article-post .column-order-1 .theme-post-format {
    5159     right: inherit;
    5160     left: 0;
     5182    left: inherit;
     5183    right: 0;
    51615184}
    51625185.theme-post-format .post-format-icom {
    5163     margin-left: 5px;
     5186    margin-right: 5px;
    51645187}
    51655188/* Hide JS Functionalities ------------------------ */
     
    51825205}
    51835206.theme-post-format {
    5184     background-color: #E74216;
     5207    background-color: var(--global-color);
    51855208    color: #fff;
    51865209}
     
    51935216    height: 100%;
    51945217    top: 0;
     5218    left: 0;
    51955219    right: 0;
    5196     left: 0;
    51975220    position: absolute;
    51985221    z-index: 4;
    51995222}
    52005223.theme-image-responsive:focus {
    5201     border: 2px solid #E74216;
     5224    border: 2px solid var(--global-color);
    52025225}
    52035226@media (min-width: 992px) {
     
    52545277    bottom: 0;
    52555278    background: rgb(26 77 140 / 70%);
     5279    left: 0;
    52565280    right: 0;
    5257     left: 0;
    52585281    padding: 15px;
    52595282}
     
    52665289    color: #fff !important;
    52675290}
     5291
     5292h1.site-title,.site-title,.site-title p{
     5293    font-family: var(--font-head);
     5294}
     5295
     5296@media screen and (max-width:500px) {
     5297    footer#site-footer .column-9, footer#site-footer .column-3{
     5298        padding: 0;
     5299    }
     5300}
     5301.is-large .wc-block-checkout__sidebar.is-sticky {
     5302    position: relative !important;
     5303}
     5304
     5305/* Add the styles for Newer/Older pagination (Previous/Next) */
     5306.navigation.posts-navigation {
     5307    display: flex;
     5308    justify-content: space-between;
     5309    align-items: center;
     5310    margin: 20px 0;
     5311    padding: 0;
     5312}
     5313
     5314.navigation.posts-navigation .nav-links {
     5315    display: flex;
     5316    justify-content: space-between;
     5317    width: 30%;
     5318}
     5319
     5320.navigation.posts-navigation .nav-previous,
     5321.navigation.posts-navigation .nav-next {
     5322    flex: 1;
     5323    text-align: center;
     5324}
     5325
     5326.navigation.posts-navigation .nav-previous a,
     5327.navigation.posts-navigation .nav-next a {
     5328    display: inline-block;
     5329    padding: 10px 20px;
     5330    background-color: var(--global-color); /* Customize this color */
     5331    color: #fff;
     5332    text-decoration: none;
     5333    font-size: 16px;
     5334    font-weight: bold;
     5335    border-radius: 5px;
     5336    transition: background-color 0.3s ease;
     5337}
     5338
     5339.navigation.posts-navigation .nav-previous a:hover,
     5340.navigation.posts-navigation .nav-next a:hover {
     5341    background-color: var(--secondary-color); /* Darker shade on hover */
     5342}
     5343
     5344/* Styles for Numeric Pagination */
     5345.navigation.pagination {
     5346    display: flex;
     5347    justify-content: center;
     5348    align-items: center;
     5349    margin: 20px 0;
     5350}
     5351
     5352.navigation.pagination .nav-links {
     5353    display: flex;
     5354    list-style-type: none;
     5355    padding: 0;
     5356    margin: 0;
     5357    margin-top: 30px;
     5358}
     5359
     5360.navigation.pagination .page-numbers {
     5361    display: inline-flex;
     5362    list-style: none;
     5363    padding: 7px;
     5364    margin: 0 5px;
     5365    background-color: #f1f1f1; /* Light grey background */
     5366    color: var(--global-color); /* Blue text */
     5367    text-decoration: none;
     5368    font-size: 16px;
     5369    font-weight: 500;
     5370    border-radius: 50px;
     5371    transition: background-color 0.3s ease, transform 0.2s ease;
     5372    align-items: center;
     5373    justify-content: center;
     5374    cursor: pointer;
     5375}
     5376
     5377/* Hover effect on page numbers */
     5378.navigation.pagination .page-numbers:hover {
     5379    background-color: var(--global-color); /* Blue background on hover */
     5380    color: #fff; /* White text on hover */
     5381    transform: scale(1.02); /* Slight scale up effect on hover */
     5382}
     5383
     5384.navigation.pagination a.page-numbers:hover,.navigation.pagination .page-numbers.dots:hover {
     5385    background-color: var(--secondary-color);
     5386}
     5387
     5388/* Active current page style */
     5389.navigation.pagination .current {
     5390    background-color: var(--secondary-color); /* Blue background */
     5391    color: #fff; /* White text */
     5392    font-weight: bold;
     5393}
     5394
     5395/* Previous and Next buttons (Prev/Next) */
     5396.navigation.pagination .prev,
     5397.navigation.pagination .next {
     5398    padding: 10px 15px;
     5399    background-color: var(--global-color);
     5400    color: #fff;
     5401    text-decoration: none;
     5402    font-size: 16px;
     5403    font-weight: bold;
     5404    border-radius: 50px;
     5405    transition: background-color 0.3s ease, transform 0.2s ease;
     5406    cursor: pointer;
     5407}
     5408
     5409.navigation.pagination .page-numbers:hover .navigation.pagination .current{
     5410    background-color: var(--secondary-color); /* Darker blue on hover */
     5411}
     5412
     5413.navigation.pagination .nav-links:hover .navigation.pagination .current{
     5414    background-color: var(--secondary-color); /* Darker blue on hover */
     5415}
     5416
     5417/* Hover effect on Prev/Next buttons */
     5418.navigation.pagination .prev:hover,
     5419.navigation.pagination .next:hover {
     5420    background-color: var(--secondary-color); /* Darker blue on hover */
     5421    transform: scale(1.02); /* Slight scale up effect */
     5422}
     5423
     5424/* Dots (for page gaps) */
     5425.navigation.pagination .dots {
     5426    color: #999; /* Grey color for dots */
     5427    font-size: 16px;
     5428    padding: 10px;
     5429    margin: 0 5px;
     5430    background-color: #f1f1f1;
     5431    border-radius: 50px;
     5432}
     5433
     5434/* Responsive Adjustments */
     5435@media (max-width: 800px) {
     5436    .navigation.posts-navigation .nav-links {
     5437        width: 35%;
     5438    }
     5439}
     5440
     5441/* Responsive Adjustments */
     5442@media (max-width: 600px) {
     5443    .navigation.pagination .page-numbers {
     5444        display: block;
     5445    }
     5446    ul.page-numbers li {
     5447        margin: 5px 0;
     5448    }
     5449    .navigation.posts-navigation .nav-links {
     5450        width: 60%;
     5451    }
     5452    .navigation.posts-navigation .nav-previous a, .navigation.posts-navigation .nav-next a {
     5453        padding: 5px 7px;
     5454        font-size: 14px;
     5455    }
     5456}
     5457
     5458.site-content .article-wraper-archive .theme-article-post {
     5459    margin-bottom: 20px;
     5460}
  • home-construction-builder/1.0.6/style.css

    r247305 r248156  
    99Tested up to: 6.6
    1010Requires PHP: 7.2
    11 Version: 1.0.5
     11Version: 1.0.6
    1212License: GNU General Public License v2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    938938  box-shadow: none !important;
    939939}
    940 .wc-block-components-sidebar-layout{
    941   flex-flow: column-reverse !important;
    942 }
     940
    943941.wc-block-components-sidebar-layout .wc-block-components-main {
    944942  padding-right:0% !important;
     
    10191017
    10201018#top-header {
    1021     background: #FFC527;
     1019    background: var(--secondary-color);
    10221020}
    10231021#top-header svg{
     
    10431041}
    10441042.header-button span a {
    1045     background: #FFC527;
     1043    background: var(--secondary-color);
    10461044    padding: 10px 30px;
    10471045    border-radius: 0px;
     
    14891487    width: 460px;
    14901488    content: "";
    1491     background: #FFC527;
     1489    background: var(--secondary-color);
    14921490    position: absolute;
    14931491    top: 0px;
     
    15181516}
    15191517.slide-heading-main a.btn-fancy.btn-fancy-primary {
    1520     background: #FFC527;
     1518    background: var(--secondary-color);
    15211519    font-size: 14px;
    15221520    font-weight: 500;
     
    16341632}
    16351633.about-btn a.btn-fancy.btn-fancy-primary {
    1636     background: #FFC527;
     1634    background: var(--secondary-color);
    16371635    font-size: 14px;
    16381636    font-weight: 500;
     
    51565154:root {
    51575155    --global-color: #E74216;
     5156    --secondary-color: #FFC527;
    51585157    --font-head: "Outfit", sans-serif;
    51595158    --font-main: "Roboto", sans-serif;
     
    53405339    position: relative !important;
    53415340}
     5341
     5342/* Add the styles for Newer/Older pagination (Previous/Next) */
     5343.navigation.posts-navigation {
     5344    display: flex;
     5345    justify-content: space-between;
     5346    align-items: center;
     5347    margin: 20px 0;
     5348    padding: 0;
     5349}
     5350
     5351.navigation.posts-navigation .nav-links {
     5352    display: flex;
     5353    justify-content: space-between;
     5354    width: 30%;
     5355}
     5356
     5357.navigation.posts-navigation .nav-previous,
     5358.navigation.posts-navigation .nav-next {
     5359    flex: 1;
     5360    text-align: center;
     5361}
     5362
     5363.navigation.posts-navigation .nav-previous a,
     5364.navigation.posts-navigation .nav-next a {
     5365    display: inline-block;
     5366    padding: 10px 20px;
     5367    background-color: var(--global-color); /* Customize this color */
     5368    color: #fff;
     5369    text-decoration: none;
     5370    font-size: 16px;
     5371    font-weight: bold;
     5372    border-radius: 5px;
     5373    transition: background-color 0.3s ease;
     5374}
     5375
     5376.navigation.posts-navigation .nav-previous a:hover,
     5377.navigation.posts-navigation .nav-next a:hover {
     5378    background-color: var(--secondary-color); /* Darker shade on hover */
     5379}
     5380
     5381/* Styles for Numeric Pagination */
     5382.navigation.pagination {
     5383    display: flex;
     5384    justify-content: center;
     5385    align-items: center;
     5386    margin: 20px 0;
     5387}
     5388
     5389.navigation.pagination .nav-links {
     5390    display: flex;
     5391    list-style-type: none;
     5392    padding: 0;
     5393    margin: 0;
     5394    margin-top: 30px;
     5395}
     5396
     5397.navigation.pagination .page-numbers {
     5398    display: inline-flex;
     5399    list-style: none;
     5400    padding: 7px;
     5401    margin: 0 5px;
     5402    background-color: #f1f1f1; /* Light grey background */
     5403    color: var(--global-color); /* Blue text */
     5404    text-decoration: none;
     5405    font-size: 16px;
     5406    font-weight: 500;
     5407    border-radius: 50px;
     5408    transition: background-color 0.3s ease, transform 0.2s ease;
     5409    align-items: center;
     5410    justify-content: center;
     5411    cursor: pointer;
     5412}
     5413
     5414/* Hover effect on page numbers */
     5415.navigation.pagination .page-numbers:hover {
     5416    background-color: var(--global-color); /* Blue background on hover */
     5417    color: #fff; /* White text on hover */
     5418    transform: scale(1.02); /* Slight scale up effect on hover */
     5419}
     5420
     5421.navigation.pagination a.page-numbers:hover,.navigation.pagination .page-numbers.dots:hover {
     5422    background-color: var(--secondary-color);
     5423}
     5424
     5425/* Active current page style */
     5426.navigation.pagination .current {
     5427    background-color: var(--secondary-color); /* Blue background */
     5428    color: #fff; /* White text */
     5429    font-weight: bold;
     5430}
     5431
     5432/* Previous and Next buttons (Prev/Next) */
     5433.navigation.pagination .prev,
     5434.navigation.pagination .next {
     5435    padding: 10px 15px;
     5436    background-color: var(--global-color);
     5437    color: #fff;
     5438    text-decoration: none;
     5439    font-size: 16px;
     5440    font-weight: bold;
     5441    border-radius: 50px;
     5442    transition: background-color 0.3s ease, transform 0.2s ease;
     5443    cursor: pointer;
     5444}
     5445
     5446.navigation.pagination .page-numbers:hover .navigation.pagination .current{
     5447    background-color: var(--secondary-color); /* Darker blue on hover */
     5448}
     5449
     5450.navigation.pagination .nav-links:hover .navigation.pagination .current{
     5451    background-color: var(--secondary-color); /* Darker blue on hover */
     5452}
     5453
     5454/* Hover effect on Prev/Next buttons */
     5455.navigation.pagination .prev:hover,
     5456.navigation.pagination .next:hover {
     5457    background-color: var(--secondary-color); /* Darker blue on hover */
     5458    transform: scale(1.02); /* Slight scale up effect */
     5459}
     5460
     5461/* Dots (for page gaps) */
     5462.navigation.pagination .dots {
     5463    color: #999; /* Grey color for dots */
     5464    font-size: 16px;
     5465    padding: 10px;
     5466    margin: 0 5px;
     5467    background-color: #f1f1f1;
     5468    border-radius: 50px;
     5469}
     5470
     5471/* Responsive Adjustments */
     5472@media (max-width: 800px) {
     5473    .navigation.posts-navigation .nav-links {
     5474        width: 35%;
     5475    }
     5476}
     5477
     5478/* Responsive Adjustments */
     5479@media (max-width: 600px) {
     5480    .navigation.pagination .page-numbers {
     5481        display: block;
     5482    }
     5483    ul.page-numbers li {
     5484        margin: 5px 0;
     5485    }
     5486    .navigation.posts-navigation .nav-links {
     5487        width: 60%;
     5488    }
     5489    .navigation.posts-navigation .nav-previous a, .navigation.posts-navigation .nav-next a {
     5490        padding: 5px 7px;
     5491        font-size: 14px;
     5492    }
     5493}
     5494
     5495.site-content .article-wraper-archive .theme-article-post {
     5496    margin-bottom: 20px;
     5497}
  • home-construction-builder/1.0.6/template-parts/content-single.php

    r233437 r248156  
    1212<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1313
    14     <?php if( has_post_thumbnail() ){
    15        
    16         if( is_single() ){ ?>
     14    <?php if( is_single() && 'post' === get_post_type() ) {
     15        // Check if it is a single post page
     16        if ( has_post_thumbnail() ) { // If the post has a featured image
     17            ?>
     18            <div class="post-thumbnail">
     19                <?php home_construction_builder_post_thumbnail(); ?>
     20            </div>
     21            <?php
     22        } else {
     23            // No featured image, so show default image
     24            ?>
     25            <div class="post-thumbnail">
     26                <img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/about1.png' ); ?>" alt="<?php esc_attr_e( 'Home Construction Builder Default Image', 'home-construction-builder' ); ?>" />
     27            </div>
     28            <?php
     29        }
     30    } else {
     31        // Don't show default image or featured image for other single pages (like static pages, etc.)
     32        ?>
     33        <!-- Optionally you can add code for non-post pages here -->
     34    <?php } ?>
    1735
    18                 <div class="post-thumbnail">
    19 
    20                     <?php home_construction_builder_post_thumbnail(); ?>
    21                        
    22                 </div>
    23 
    24             <?php
    25 
    26         }else{ ?>
    27 
    28             <div class="post-thumbnail">
    29            
    30                 <?php home_construction_builder_post_thumbnail(); ?>
    31 
    32             </div>
    33 
    34         <?php
    35         }
    36 
    37     }
    38 
    39     if ( is_singular() ) { ?>
     36    <?php if ( is_singular() ) { ?>
    4037
    4138        <header class="entry-header entry-header-1">
    42 
    4339            <h1 class="entry-title entry-title-large">
    44 
    45                 <span><?php the_title(); ?></span>
    46 
    47             </h1>
    48 
     40                <span><?php the_title(); ?></span>
     41            </h1>
    4942        </header>
    5043
     
    5447
    5548        <div class="entry-meta">
    56 
    5749            <?php
    5850            home_construction_builder_posted_by();
     
    6052            home_construction_builder_entry_footer( $cats = true, $tags = false, $edits = false );
    6153            ?>
    62 
    6354        </div>
    6455
    6556    <?php } ?>
     57
    6658    <div class="post-content-wrap">
    6759
     
    8880
    8981                <div class="entry-footer">
    90                     <div class="entry-meta">
    91                         <?php home_construction_builder_entry_footer( $cats = false, $tags = true, $edits = true ); ?>
    92                     </div>
     82                    <div class="entry-meta">
     83                        <?php home_construction_builder_entry_footer( $cats = false, $tags = true, $edits = true ); ?>
     84                    </div>
    9385                </div>
    9486
  • home-construction-builder/1.0.6/template-parts/content.php

    r244715 r248156  
    2020            <div class="entry-thumbnail">
    2121                <?php
    22                 if (is_search() || is_archive() || is_front_page()) {
    23                     $home_construction_builder_featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
    24                     $home_construction_builder_featured_image = isset( $home_construction_builder_featured_image[0] ) ? $home_construction_builder_featured_image[0] : ''; ?>
    25                     <div class="post-thumbnail data-bg data-bg-big"
    26                          data-background="<?php echo esc_url( $home_construction_builder_featured_image ); ?>">
    27                         <a href="<?php the_permalink(); ?>" class="theme-image-responsive" tabindex="0"></a>
    28                     </div>
    29                     <?php
     22                if ( is_search() || is_archive() || is_front_page() ) {
     23                    // Check if the post has a featured image
     24                    if ( has_post_thumbnail() ) {
     25                        $home_construction_builder_featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
     26                        $home_construction_builder_featured_image = isset($home_construction_builder_featured_image[0]) ? $home_construction_builder_featured_image[0] : '';
     27                        ?>
     28                        <div class="post-thumbnail data-bg data-bg-big"
     29                             data-background="<?php echo esc_url($home_construction_builder_featured_image); ?>">
     30                            <a href="<?php the_permalink(); ?>" class="theme-image-responsive" tabindex="0"></a>
     31                        </div>
     32                        <?php
     33                    } else {
     34                        // No featured image, show the default image
     35                        echo '<div class="post-thumbnail data-bg data-bg-big" data-background="' . esc_url(get_template_directory_uri() . '/assets/images/about1.png') . '">';
     36                        echo '<a href="' . esc_url(get_permalink()) . '" class="theme-image-responsive" tabindex="0"></a>';
     37                        echo '</div>';
     38                    }
    3039                } else {
    3140                    home_construction_builder_post_thumbnail($home_construction_builder_image_size);
    3241                }
    33                 if (get_theme_mod('home_construction_builder_display_archive_post_sticky_post', true) == true) :
     42                if ( get_theme_mod('home_construction_builder_display_archive_post_sticky_post', true) == true ) :
    3443                    home_construction_builder_post_format_icon();
    35                 endif; ?>
     44                endif;
     45                ?>
    3646            </div>
    3747        <?php endif; ?>
    38 
    3948    </div>
    4049    <div class="theme-article-details">
Note: See TracChangeset for help on using the changeset viewer.