Changeset 248156
- Timestamp:
- 11/09/2024 11:32:26 AM (13 months ago)
- Location:
- home-construction-builder/1.0.6
- Files:
-
- 23 edited
- 1 copied
-
. (copied) (copied from home-construction-builder/1.0.5)
-
classes/body-classes.php (modified) (3 diffs)
-
classes/class-svg-icons.php (modified) (3 diffs)
-
classes/class-walker-menu.php (modified) (6 diffs)
-
custom_css.php (modified) (2 diffs)
-
functions.php (modified) (5 diffs)
-
inc/custom-functions.php (modified) (23 diffs)
-
inc/customizer/custom-addon.php (modified) (1 diff)
-
inc/customizer/custom-classes.php (modified) (1 diff)
-
inc/customizer/default.php (modified) (1 diff)
-
inc/customizer/global-color-setting.php (modified) (2 diffs)
-
inc/customizer/sanitize.php (modified) (1 diff)
-
inc/get-started/get-started.css (modified) (1 diff)
-
inc/metabox.php (modified) (3 diffs)
-
inc/pagination.php (modified) (1 diff)
-
inc/template-tags.php (modified) (22 diffs)
-
inc/widgets/widgets.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
languages/home-construction-builder.pot (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
-
rtl.css (modified) (193 diffs)
-
style.css (modified) (9 diffs)
-
template-parts/content-single.php (modified) (4 diffs)
-
template-parts/content.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
home-construction-builder/1.0.6/classes/body-classes.php
r233437 r248156 7 7 if (!function_exists('home_construction_builder_body_classes')) : 8 8 9 function home_construction_builder_body_classes($ classes) {9 function home_construction_builder_body_classes($home_construction_builder_classes) { 10 10 11 11 $home_construction_builder_default = home_construction_builder_get_default_theme_options(); … … 13 13 // Adds a class of hfeed to non-singular pages. 14 14 if ( !is_singular() ) { 15 $ classes[] = 'hfeed';15 $home_construction_builder_classes[] = 'hfeed'; 16 16 } 17 17 18 18 // Adds a class of no-sidebar when there is no sidebar present. 19 19 if ( !is_active_sidebar( 'sidebar-1' ) ) { 20 $ classes[] = 'no-sidebar';20 $home_construction_builder_classes[] = 'no-sidebar'; 21 21 } 22 22 … … 27 27 $home_construction_builder_post_sidebar = esc_html( get_post_meta( $post->ID, 'home_construction_builder_post_sidebar_option', true ) ); 28 28 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 ); 30 30 } else{ 31 $ classes[] = esc_attr( $home_construction_builder_post_sidebar );31 $home_construction_builder_classes[] = esc_attr( $home_construction_builder_post_sidebar ); 32 32 } 33 33 }else{ 34 $ classes[] = esc_attr( $home_construction_builder_global_sidebar_layout );34 $home_construction_builder_classes[] = esc_attr( $home_construction_builder_global_sidebar_layout ); 35 35 } 36 36 37 37 } 38 38 39 return $ classes;39 return $home_construction_builder_classes; 40 40 } 41 41 -
home-construction-builder/1.0.6/classes/class-svg-icons.php
r233437 r248156 11 11 Get the SVG code for the specified icon 12 12 -------------------------------------------------------------------- */ 13 public static function get_svg($ icon)13 public static function get_svg($home_construction_builder_icon) 14 14 { 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; 23 23 } 24 24 return null; 25 25 } 26 26 27 static function get_theme_svg_name($ url)27 static function get_theme_svg_name($home_construction_builder_url) 28 28 { 29 29 30 30 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) { 36 36 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)); 38 38 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)); 42 42 43 43 } 44 44 } 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);; 48 48 } 49 49 } … … 53 53 } 54 54 55 static $ social_icons_map = array(55 static $home_construction_builder_social_icons_map = array( 56 56 'amazon' => array( 57 57 'amazon.com', … … 108 108 Store the code for all SVGs in an array 109 109 -------------------------------------------------------------------- */ 110 static $ icons = array(110 static $home_construction_builder_icons = array( 111 111 112 112 '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 17 17 * Outputs the beginning of the current element in the tree. 18 18 * 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. 20 20 * @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. 23 23 * @param int $current_page Optional. Page ID. Default 0. 24 24 * @since 2.1.0 … … 27 27 */ 28 28 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"; 32 32 } 33 33 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) 35 35 { 36 36 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']) { 38 38 $t = "\t"; 39 39 $n = "\n"; … … 42 42 $n = ''; 43 43 } 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); 46 46 } else { 47 $ indent = '';47 $home_construction_builder_indent = ''; 48 48 } 49 49 50 $ css_class = array('page_item', 'page-item-' . $page->ID);50 $home_construction_builder_css_class = array('page_item', 'page-item-' . $page->ID); 51 51 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'; 54 54 } 55 55 … … 57 57 $_current_page = get_post($current_page); 58 58 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'; 60 60 } 61 61 if ($page->ID === $current_page) { 62 $ css_class[] = 'current_page_item';62 $home_construction_builder_css_class[] = 'current_page_item'; 63 63 } elseif ($_current_page && $page->ID === $_current_page->post_parent) { 64 $ css_class[] = 'current_page_parent';64 $home_construction_builder_css_class[] = 'current_page_parent'; 65 65 } 66 66 } elseif (get_option('page_for_posts') === $page->ID) { 67 $ css_class[] = 'current_page_parent';67 $home_construction_builder_css_class[] = 'current_page_parent'; 68 68 } 69 69 70 70 /** 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) . '"' : ''; 73 73 74 74 if ('' === $page->post_title) { … … 77 77 } 78 78 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']; 81 81 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' : ''; 85 85 86 86 /** 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); 88 88 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 . '"'; 94 94 } 95 95 } 96 96 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'] = ''; 100 100 // 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']) { 102 102 // 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'] = ''; 104 104 } 105 105 106 106 107 107 // 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'] = ''; 111 111 } 112 112 } 113 113 114 114 // 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])) { 117 117 118 118 $toggle_target_string = '.page_item.page-item-' . $page->ID . ' > .sub-menu'; 119 119 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>'; 121 121 } 122 122 } 123 123 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']) { 125 125 126 $ output .= $indent . sprintf(126 $home_construction_builder_output .= $home_construction_builder_indent . sprintf( 127 127 '<li%s>%s%s<a%s>%s%s%s</a>%s%s', 128 $ css_classes,128 $home_construction_builder_css_classes, 129 129 '<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'], 133 133 /** This filter is documented in wp-includes/post-template.php */ 134 134 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'], 137 137 '</div>' 138 138 ); … … 140 140 }else{ 141 141 142 $ output .= $indent . sprintf(142 $home_construction_builder_output .= $home_construction_builder_indent . sprintf( 143 143 '<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'], 148 148 /** This filter is documented in wp-includes/post-template.php */ 149 149 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'] 153 153 ); 154 154 155 155 } 156 156 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; 160 160 } else { 161 $ time = $page->post_date;161 $home_construction_builder_time = $page->post_date; 162 162 } 163 163 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); 166 166 } 167 167 } -
home-construction-builder/1.0.6/custom_css.php
r247305 r248156 3 3 $home_construction_builder_custom_css = ""; 4 4 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'); 6 6 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 .= '}'; 10 10 } 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 .= '}'; 14 14 } 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 .= '}'; 18 18 } 19 19 … … 96 96 } 97 97 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 98 108 /*-------------------- Content Font -------------------*/ 99 109 -
home-construction-builder/1.0.6/functions.php
r247305 r248156 82 82 wp_enqueue_style( 'dashicons' ); 83 83 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 ){ 87 87 require_once get_theme_file_path( 'lib/custom/css/wptt-webfont-loader.php' ); 88 88 wp_enqueue_style( 89 89 'home-construction-builder-google-fonts', 90 wptt_get_webfont_url( $ fonts_url ),90 wptt_get_webfont_url( $home_construction_builder_fonts_url ), 91 91 array(), 92 $ theme_version92 $home_construction_builder_theme_version 93 93 ); 94 94 } … … 96 96 wp_enqueue_style( 'swiper', get_template_directory_uri() . '/lib/swiper/css/swiper-bundle.min.css'); 97 97 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 ); 99 99 100 100 wp_enqueue_style( 'home-construction-builder-style', get_stylesheet_uri() ); … … 132 132 if( is_front_page() ){ 133 133 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, 139 139 ); 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; 142 142 143 143 }else{ 144 144 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; 147 147 } 148 148 … … 166 166 function home_construction_builder_menus() { 167 167 168 $ locations = array(168 $home_construction_builder_locations = array( 169 169 'home-construction-builder-primary-menu' => esc_html__( 'Primary Menu', 'home-construction-builder' ), 170 170 ); 171 171 172 register_nav_menus( $ locations );172 register_nav_menus( $home_construction_builder_locations ); 173 173 } 174 174 … … 263 263 add_action('wp_head', 'home_construction_builder_customizer_css'); 264 264 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 );265 function 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 ); 269 269 } 270 270 require get_template_directory() . '/inc/general.php'; -
home-construction-builder/1.0.6/inc/custom-functions.php
r247305 r248156 11 11 function home_construction_builder_fonts_url(){ 12 12 13 $ font_families = array(13 $home_construction_builder_font_families = array( 14 14 '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', 15 15 'Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700', … … 17 17 ); 18 18 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 ), 21 21 'display' => 'swap', 22 22 ), 'https://fonts.googleapis.com/css2' ); 23 23 24 return esc_url_raw($ fonts_url);24 return esc_url_raw($home_construction_builder_fonts_url); 25 25 } 26 26 … … 29 29 if ( ! function_exists( 'home_construction_builder_sub_menu_toggle_button' ) ) : 30 30 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 ) { 32 32 33 33 // 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 ) ) { 35 35 36 36 // 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 = ''; 39 39 40 40 // 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'; 44 44 45 45 // 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>'; 47 47 48 48 } 49 49 50 50 // Close the wrapper 51 $ args->after .= '</div><!-- .submenu-wrapper -->';51 $home_construction_builder_args->after .= '</div><!-- .submenu-wrapper -->'; 52 52 // Add sub menu icons to the main menu without toggles (the fallback menu) 53 53 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>'; 60 60 61 61 } else { 62 62 63 $ args->before = '';64 $ args->after = '';63 $home_construction_builder_args->before = ''; 64 $home_construction_builder_args->after = ''; 65 65 66 66 } … … 68 68 } 69 69 70 return $ args;70 return $home_construction_builder_args; 71 71 72 72 } … … 78 78 if ( ! function_exists( 'home_construction_builder_the_theme_svg' ) ): 79 79 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();. 85 85 86 86 }else{ 87 87 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();. 89 89 90 90 } … … 95 95 if ( ! function_exists( 'home_construction_builder_get_theme_svg' ) ): 96 96 97 function home_construction_builder_get_theme_svg( $ svg_name ) {97 function home_construction_builder_get_theme_svg( $home_construction_builder_svg_name ) { 98 98 99 99 // 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 ), 102 102 array( 103 103 'svg' => array( … … 137 137 ) 138 138 ); 139 if ( ! $ svg ) {139 if ( ! $home_construction_builder_svg ) { 140 140 return false; 141 141 } 142 return $ svg;142 return $home_construction_builder_svg; 143 143 144 144 } … … 149 149 150 150 // 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( 154 154 array( 155 155 'hide_empty' => '0', … … 158 158 ); 159 159 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; 174 174 } 175 175 … … 182 182 $home_construction_builder_footer_column_layout = home_construction_builder_get_default_theme_options(); 183 183 $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 = ''; 185 185 $article_wrap_class = ''; 186 186 global $post; 187 $ current_id = $post->ID;187 $home_construction_builder_current_id = $post->ID; 188 188 if( $home_construction_builder_twp_navigation_type == '' || $home_construction_builder_twp_navigation_type == 'global-layout' ){ 189 189 $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']); … … 198 198 // Previous/next post navigation. 199 199 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>', 202 202 )); ?> 203 203 </div> … … 206 206 }else{ 207 207 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>'; 213 213 214 214 } … … 339 339 echo esc_html( $home_construction_builder_footer_copyright_text ); 340 340 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>'; 342 342 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>'; 343 343 ?> … … 391 391 $home_construction_builder_header_banner_cat = get_theme_mod( 'home_construction_builder_header_banner_cat' ); 392 392 393 if( $home_construction_builder_header_slider ){ $ rtl = '';393 if( $home_construction_builder_header_slider ){ $home_construction_builder_rtl = ''; 394 394 if( is_rtl() ){ 395 $ rtl = 'dir="rtl"';395 $home_construction_builder_rtl = 'dir="rtl"'; 396 396 } 397 397 … … 403 403 <div class="slider-box" style="background: url(<?php echo esc_url( $home_construction_builder_banner_background_image ); ?>);"> 404 404 <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; ?>> 406 406 <div class="swiper-wrapper"> 407 407 <?php … … 634 634 * Get information about the SVG icon. 635 635 * 636 * @param string $ svg_name The name of the icon.636 * @param string $home_construction_builder_svg_name The name of the icon. 637 637 * @param string $group The group the icon belongs to. 638 638 * @param string $color Color code. 639 639 */ 640 function home_construction_builder_svg_escape( $ input ) {640 function home_construction_builder_svg_escape( $home_construction_builder_input ) { 641 641 642 642 // 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, 645 645 array( 646 646 'svg' => array( … … 670 670 ); 671 671 672 if ( ! $ svg ) {672 if ( ! $home_construction_builder_svg ) { 673 673 return false; 674 674 } 675 675 676 return $ svg;676 return $home_construction_builder_svg; 677 677 678 678 } … … 683 683 684 684 // 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 ){ 686 686 687 687 $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; 691 691 692 692 }else{ … … 702 702 703 703 // Sidebar Option Sanitize. 704 function home_construction_builder_sanitize_pagination_meta( $ input ){704 function home_construction_builder_sanitize_pagination_meta( $home_construction_builder_input ){ 705 705 706 706 $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; 710 710 711 711 }else{ … … 721 721 722 722 // Sidebar Option Sanitize. 723 function home_construction_builder_sanitize_menu_transform( $ input ){723 function home_construction_builder_sanitize_menu_transform( $home_construction_builder_input ){ 724 724 725 725 $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; 729 729 730 730 }else{ … … 740 740 741 741 // 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 ){ 743 743 744 744 $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; 748 748 749 749 }else{ … … 759 759 760 760 // 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 ){ 762 762 763 763 $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; 767 767 768 768 }else{ … … 774 774 775 775 endif; 776 777 if( !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 798 endif; 799 800 801 // Sanitize the enable/disable setting for pagination 802 if( !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 } 806 endif; -
home-construction-builder/1.0.6/inc/customizer/custom-addon.php
r234252 r248156 12 12 'capability' => 'edit_theme_options', 13 13 '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 ), 14 52 ) 15 53 ); -
home-construction-builder/1.0.6/inc/customizer/custom-classes.php
r233437 r248156 6 6 7 7 if ( ! 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 ); 15 15 } 16 16 endif; -
home-construction-builder/1.0.6/inc/customizer/default.php
r247305 r248156 89 89 $home_construction_builder_defaults['home_construction_builder_display_archive_post_image'] = 1; 90 90 $home_construction_builder_defaults['home_construction_builder_global_color'] = '#E74216'; 91 $home_construction_builder_defaults['home_construction_builder_secondary_color'] = '#FFC527'; 91 92 $home_construction_builder_defaults['home_construction_builder_display_archive_post_category'] = 1; 92 93 $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 12 12 array( 13 13 'title' => esc_html__( 'Global Color Settings', 'home-construction-builder' ), 14 'priority' => 21,14 'priority' => 1, 15 15 'capability' => 'edit_theme_options', 16 16 'panel' => 'home_construction_builder_theme_option_panel', … … 35 35 ) ) 36 36 ); 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 52 52 53 53 /*Radio Button sanitization*/ 54 function home_construction_builder_sanitize_choices( $ input, $setting ) {54 function home_construction_builder_sanitize_choices( $home_construction_builder_input, $home_construction_builder_setting ) { 55 55 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; 59 59 } else { 60 return $ setting->default;60 return $home_construction_builder_setting->default; 61 61 } 62 62 } -
home-construction-builder/1.0.6/inc/get-started/get-started.css
r234252 r248156 269 269 } 270 270 } 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 42 42 add_action( 'category_add_form_fields', 'home_construction_builder_category_add_form_fields_callback' ); 43 43 44 function home_construction_builder_custom_create_term_callback($ term_id) {44 function home_construction_builder_custom_create_term_callback($home_construction_builder_term_id) { 45 45 // add term meta data 46 46 add_term_meta( 47 $ term_id,47 $home_construction_builder_term_id, 48 48 'term_image', 49 49 esc_url($_REQUEST['category_custom_image_url']) … … 53 53 54 54 function 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; 56 56 $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 ); ?> 58 58 <tr class="form-field term-image-wrap"> 59 59 <th scope="row"><label for="image"><?php esc_html_e('Image','home-construction-builder'); ?></label></th> … … 82 82 add_action ( 'category_edit_form_fields', 'home_construction_builder_category_edit_form_fields_callback', 10, 2 ); 83 83 84 function home_construction_builder_edit_term_callback($ term_id) {84 function home_construction_builder_edit_term_callback($home_construction_builder_term_id) { 85 85 $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' ); 87 87 if ( $home_construction_builder_image ) 88 88 update_term_meta( 89 $ term_id,89 $home_construction_builder_term_id, 90 90 'term_image', 91 91 esc_url( $_POST['category_custom_image_url']) ); 92 92 else 93 93 add_term_meta( 94 $ term_id,94 $home_construction_builder_term_id, 95 95 'term_image', 96 96 esc_url( $_POST['category_custom_image_url']) ); -
home-construction-builder/1.0.6/inc/pagination.php
r233437 r248156 7 7 */ 8 8 9 if( !function_exists('home_construction_builder_archive_pagination_x') ): 9 /** 10 * Pagination for archive. 11 */ 12 function 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 ); 10 15 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' ); 13 20 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' => __( '« Newer', 'home-construction-builder' ), // Change the label for "previous" 27 'next_text' => __( 'Older »', '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' => __( '« Previous', 'home-construction-builder' ), 36 'next_text' => __( 'Next »', '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 } 44 add_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 14 14 * Displays the site logo, either text or image. 15 15 * 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 $h tml 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( 27 27 'logo' => '%1$s<span class="screen-reader-text">%2$s</span>', 28 28 'logo_class' => 'site-logo site-branding', … … 33 33 'condition' => (is_front_page() || is_home()) && !is_page(), 34 34 ); 35 $ args = wp_parse_args($args, $defaults);35 $home_construction_builder_args = wp_parse_args($home_construction_builder_args, $home_construction_builder_defaults); 36 36 /** 37 37 * Filters the arguments for `home_construction_builder_site_logo()`. 38 38 * 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. 41 41 */ 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); 43 43 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']; 47 47 } 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 $h tml = 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); 54 54 /** 55 55 * Filters the arguments for `home_construction_builder_site_logo()`. 56 56 * 57 * @param string $h tml 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. 61 61 */ 62 $h tml = apply_filters('home_construction_builder_site_logo', $html, $args, $classname, $contents);63 if (!$ echo) {64 return $h tml;65 } 66 echo $h tml; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped62 $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 67 67 68 68 } … … 75 75 * Displays the site description. 76 76 * 77 * @param boolean $ echo Echo or return the html.78 * 79 * @return string $h tml 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){ 82 82 83 83 if ( get_theme_mod('home_construction_builder_display_header_text', false) == true ) : … … 86 86 return; 87 87 } 88 $ wrapper = '<div class="site-description"><span>%s</span></div><!-- .site-description -->';89 $h tml = 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)); 90 90 /** 91 91 * Filters the html for the site description. 92 92 * 93 * @param string $h tml The HTML to display.93 * @param string $home_construction_builder_html The HTML to display. 94 94 * @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()`. 96 96 * @since 1.0.0 97 97 * 98 98 */ 99 $h tml = apply_filters('home_construction_builder_site_description', $html, $home_construction_builder_description, $wrapper);100 if (!$ echo) {101 return $h tml;102 } 103 echo $h tml; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped99 $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 104 104 endif; 105 105 } … … 112 112 * Prints HTML with meta information for the current post-date/time. 113 113 */ 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 = '' ){ 115 115 116 116 $home_construction_builder_default = home_construction_builder_get_default_theme_options(); … … 119 119 if( $home_construction_builder_post_date ){ 120 120 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>'; 122 122 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, 127 127 esc_attr(get_the_date(DATE_W3C)), 128 128 esc_html(get_the_date()), … … 131 131 ); 132 132 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>'; 139 139 140 140 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 ){ 144 144 145 145 echo '<span class="entry-meta-icon calendar-icon"> '; … … 149 149 } 150 150 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. 152 152 echo '</div>'; 153 153 echo '</div>'; … … 164 164 * Prints HTML with meta information for the current author. 165 165 */ 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 = '' ){ 167 167 168 168 $home_construction_builder_default = home_construction_builder_get_default_theme_options(); … … 172 172 173 173 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 ){ 177 177 178 178 echo '<span class="entry-meta-icon author-icon"> '; … … 182 182 } 183 183 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. 186 186 echo '</div>'; 187 187 echo '</div>'; … … 199 199 * Prints HTML with meta information for the current author. 200 200 */ 201 function home_construction_builder_posted_by_avatar( $ date = false ){201 function home_construction_builder_posted_by_avatar( $home_construction_builder_date = false ){ 202 202 203 203 $home_construction_builder_default = home_construction_builder_get_default_theme_options(); … … 216 216 echo '<div class="entry-meta-right">'; 217 217 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); 224 224 } 225 225 echo '</div>'; … … 236 236 * Prints HTML with meta information for the categories, tags and comments. 237 237 */ 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){ 239 239 240 240 $home_construction_builder_default = home_construction_builder_get_default_theme_options(); … … 245 245 if ('post' === get_post_type()) { 246 246 247 if( $ cats && $home_construction_builder_post_category ){247 if( $home_construction_builder_cats && $home_construction_builder_post_category ){ 248 248 249 249 /* 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) { 252 252 echo '<div class="entry-meta-item entry-meta-categories">'; 253 253 echo '<div class="entry-meta-wrapper">'; … … 255 255 /* translators: 1: list of categories. */ 256 256 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 ); 262 262 ?> 263 263 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> 265 265 266 266 <?php } … … 272 272 } 273 273 274 if( $ tags && $home_construction_builder_post_tags ){274 if( $home_construction_builder_tags && $home_construction_builder_post_tags ){ 275 275 /* translators: used between list items, there is a space after the comma */ 276 276 $home_construction_builder_tags_list = get_the_tag_list('', esc_html_x(', ', 'list item separator', 'home-construction-builder')); … … 290 290 } 291 291 292 if( $ edits ){292 if( $home_construction_builder_edits ){ 293 293 294 294 edit_post_link( … … 321 321 * 322 322 * 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. 324 324 */ 325 325 function home_construction_builder_post_thumbnail($image_size = 'full'){ 326 326 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 328 331 329 332 if ( is_singular() ) : ?> … … 333 336 <a href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"> 334 337 <?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 ?> 340 355 </a> 341 356 342 357 <?php 343 344 358 endif; // End is_singular(). 345 346 359 } 347 360 … … 356 369 * Check if the specified comment is written by the author of the post commented on. 357 370 * 358 * @param object $ comment Comment data.371 * @param object $home_construction_builder_comment Comment data. 359 372 * 360 373 * @return bool 361 374 */ 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; 369 382 } 370 383 } … … 379 392 * Home Construction Builder Breadcrumb 380 393 */ 381 function home_construction_builder_breadcrumb($ comment = null){394 function home_construction_builder_breadcrumb($home_construction_builder_comment = null){ 382 395 383 396 echo '<div class="entry-breadcrumb">'; -
home-construction-builder/1.0.6/inc/widgets/widgets.php
r233437 r248156 22 22 $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'] ) ); 23 23 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++ ){ 25 25 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'); } 29 29 30 30 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, 33 33 'description' => esc_html__('Add widgets here.', 'home-construction-builder'), 34 34 'before_widget' => '<div id="%1$s" class="widget %2$s">', -
home-construction-builder/1.0.6/index.php
r233437 r248156 44 44 the_posts_pagination(); 45 45 }else{ 46 do_action('home_construction_builder_ archive_pagination');46 do_action('home_construction_builder_posts_pagination'); 47 47 } 48 48 -
home-construction-builder/1.0.6/languages/home-construction-builder.pot
r247305 r248156 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Home Construction Builder 1.0. 5\n"5 "Project-Id-Version: Home Construction Builder 1.0.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/home-construction-builder\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-1 0-28T10:06:42+00:00\n"12 "POT-Creation-Date: 2024-11-08T05:46:40+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 149 149 150 150 #: inc/custom-functions.php:341 151 msgid "HOME CONSTRUCTION BUILDER "151 msgid "HOME CONSTRUCTION BUILDER" 152 152 msgstr "" 153 153 154 154 #: inc/custom-functions.php:341 155 msgid " By "155 msgid " By " 156 156 msgstr "" 157 157 … … 230 230 msgstr "" 231 231 232 #: inc/customizer/custom-addon.php:26 232 #: inc/customizer/custom-addon.php:29 233 msgid "Enable Pagination" 234 msgstr "" 235 236 #: inc/customizer/custom-addon.php:45 237 msgid "Pagination Style" 238 msgstr "" 239 240 #: inc/customizer/custom-addon.php:49 241 msgid "Numeric (Page Numbers)" 242 msgstr "" 243 244 #: inc/customizer/custom-addon.php:50 245 msgid "Newer/Older (Previous/Next)" 246 msgstr "" 247 248 #: inc/customizer/custom-addon.php:64 233 249 msgid "Pagination Alignment" 234 250 msgstr "" 235 251 236 #: inc/customizer/custom-addon.php: 30237 #: inc/customizer/custom-addon.php: 50238 #: inc/customizer/custom-addon.php: 91252 #: inc/customizer/custom-addon.php:68 253 #: inc/customizer/custom-addon.php:88 254 #: inc/customizer/custom-addon.php:129 239 255 #: inc/customizer/footer.php:68 240 256 msgid "Center" 241 257 msgstr "" 242 258 243 #: inc/customizer/custom-addon.php: 31244 #: inc/customizer/custom-addon.php: 51245 #: inc/customizer/custom-addon.php: 92259 #: inc/customizer/custom-addon.php:69 260 #: inc/customizer/custom-addon.php:89 261 #: inc/customizer/custom-addon.php:130 246 262 #: inc/customizer/footer.php:69 247 263 msgid "Right" 248 264 msgstr "" 249 265 250 #: inc/customizer/custom-addon.php:32 251 #: inc/customizer/custom-addon.php:52 266 #: inc/customizer/custom-addon.php:70 252 267 #: inc/customizer/custom-addon.php:90 268 #: inc/customizer/custom-addon.php:128 253 269 #: inc/customizer/footer.php:67 254 270 msgid "Left" 255 271 msgstr "" 256 272 257 #: inc/customizer/custom-addon.php: 46273 #: inc/customizer/custom-addon.php:84 258 274 msgid "Breadcrumb Alignment" 259 275 msgstr "" 260 276 261 #: inc/customizer/custom-addon.php: 66277 #: inc/customizer/custom-addon.php:104 262 278 msgid "Breadcrumb Font Size" 263 279 msgstr "" 264 280 265 #: inc/customizer/custom-addon.php: 86281 #: inc/customizer/custom-addon.php:124 266 282 msgid "Single Page Content Alignment" 267 283 msgstr "" … … 372 388 373 389 #: inc/customizer/default.php:83 374 #: template-parts/content.php:8 0390 #: template-parts/content.php:89 375 391 msgid "Read More" 376 392 msgstr "" 377 393 378 #: inc/customizer/default.php:9 6394 #: inc/customizer/default.php:97 379 395 msgid "#" 380 396 msgstr "" … … 442 458 #: inc/customizer/global-color-setting.php:32 443 459 msgid "Global Color" 460 msgstr "" 461 462 #: inc/customizer/global-color-setting.php:51 463 msgid "Secondary Color" 444 464 msgstr "" 445 465 … … 768 788 #: inc/metabox.php:75 769 789 msgid "Remove Image" 790 msgstr "" 791 792 #: inc/pagination.php:26 793 msgid "« Newer" 794 msgstr "" 795 796 #: inc/pagination.php:27 797 msgid "Older »" 798 msgstr "" 799 800 #: inc/pagination.php:28 801 #: inc/pagination.php:38 802 msgid "Posts navigation" 803 msgstr "" 804 805 #: inc/pagination.php:35 806 msgid "« Previous" 807 msgstr "" 808 809 #: inc/pagination.php:36 810 msgid "Next »" 770 811 msgstr "" 771 812 … … 915 956 msgstr "" 916 957 958 #: template-parts/content-single.php:26 959 msgid "Home Construction Builder Default Image" 960 msgstr "" 961 917 962 #. translators: %s: Name of current post. 918 #: template-parts/content-single.php: 75963 #: template-parts/content-single.php:67 919 964 msgid "Read More %s <span class=\"meta-nav\">→</span>" 920 965 msgstr "" 921 966 922 #: template-parts/content-single.php: 80923 #: template-parts/content.php: 73967 #: template-parts/content-single.php:72 968 #: template-parts/content.php:82 924 969 msgid "Pages:" 925 970 msgstr "" -
home-construction-builder/1.0.6/readme.txt
r247305 r248156 4 4 Tested up to: 6.6 5 5 Requires PHP: 7.2 6 Stable tag: 1.0. 56 Stable tag: 1.0.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 118 118 * Added Settings for To The Top. 119 119 * 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 6 6 https://codex.wordpress.org/Right-to-Left_Language_Support 7 7 */ 8 8 /*-------------------------------------------------------------- 9 # Normalize 10 --------------------------------------------------------------*/ 9 11 html { 10 12 line-height: 1.15; … … 26 28 } 27 29 pre { 28 font-family: monospace, monospace;30 font-family: var(--font-main); 29 31 font-size: 1em; 30 32 } … … 44 46 kbd, 45 47 samp { 46 font-family: monospace, monospace;48 font-family: var(--font-main); 47 49 font-size: 1em; 48 50 } … … 65 67 input { 66 68 overflow: visible; 69 font-family: var(--font-main); 67 70 } 68 71 button, … … 157 160 } 158 161 body { 159 font-family: "Poppins", sans-serif;162 font-family: var(--font-main); 160 163 color: #666B6E; 161 164 } … … 170 173 clear: both; 171 174 font-weight: bold; 172 font-family: "Lato", sans-serif;175 font-family: var(--font-head); 173 176 } 174 177 h1, … … 188 191 } 189 192 .entry-title a { 190 background-image: linear-gradient( -180deg, transparent 94%, #000 0);193 background-image: linear-gradient(180deg, transparent 94%, #000 0); 191 194 background-size: 0% 100%; 192 195 background-repeat: no-repeat; … … 246 249 tt, 247 250 var { 248 font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;251 font-family: var(--font-main); 249 252 font-size: 15px; 250 253 font-size: 0.9375rem; … … 310 313 li > ol { 311 314 margin-bottom: 0; 312 margin- right: 1.5em;315 margin-left: 1.5em; 313 316 } 314 317 dt { … … 372 375 373 376 figure.wp-block-gallery.columns-3 { 374 padding- left: 10%;377 padding-right: 10%; 375 378 } 376 379 /* Gallery */ … … 378 381 .wp-block-gallery { 379 382 margin-bottom: 28px; 380 margin- right: 0;383 margin-left: 0; 381 384 } 382 385 … … 391 394 392 395 figure.wp-block-gallery.columns-3{ 393 padding- left: 15%;396 padding-right: 15%; 394 397 } 395 398 396 399 figure.wp-block-gallery.columns-2{ 397 padding- left: 1%;400 padding-right: 1%; 398 401 } 399 402 … … 449 452 display: inline; 450 453 font-weight: 400; 451 margin- right: 0.5rem;454 margin-left: 0.5rem; 452 455 } 453 456 input, … … 522 525 textarea:hover, 523 526 textarea:focus { 524 border-color: #E74216;527 border-color: var(--global-color); 525 528 } 526 529 textarea { … … 579 582 } 580 583 .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; 583 586 } 584 587 .wp-block-button.is-style-squared .wp-block-button__link{ … … 602 605 input[type="submit"]:focus { 603 606 text-decoration: none; 604 border-color: #E74216;605 background-color: #E74216;607 border-color: var(--global-color); 608 background-color: var(--global-color); 606 609 } 607 610 button:focus, … … 691 694 background: #fff; 692 695 padding: 5px 10px; 693 margin- right: 10px;696 margin-left: 10px; 694 697 border-radius: 7px; 695 698 } … … 736 739 737 740 .woocommerce span.onsale{ 738 background-color: #E74216;741 background-color: var(--global-color); 739 742 } 740 743 741 744 .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button{ 742 background-color: #E74216;745 background-color: var(--global-color); 743 746 color: #fff; 744 747 } 745 748 746 749 .woocommerce ul.products li.product .price,.woocommerce div.product p.price, .woocommerce div.product span.price{ 747 color: #E74216;750 color: var(--global-color); 748 751 } 749 752 … … 847 850 848 851 .woocommerce nav.woocommerce-pagination ul li span.current{ 849 background: #E74216;852 background: var(--global-color); 850 853 color: #222; 851 854 } 852 855 853 856 .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); 855 858 color: #fff !important; 856 859 text-decoration: none !important; … … 862 865 } 863 866 .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); 866 869 color: #fff !important; 867 870 } … … 893 896 } 894 897 .wc-block-components-order-summary-item__quantity{ 895 background: #E74216!important;898 background: var(--global-color) !important; 896 899 color: #fff !important; 897 900 border: none !important; 898 901 box-shadow: none !important; 899 902 } 900 .wc-block-components-sidebar-layout{ 901 flex-flow: column-reverse !important; 902 } 903 903 904 .wc-block-components-sidebar-layout .wc-block-components-main { 904 padding- left:0% !important;905 padding-right:0% !important; 905 906 width: 100% !important; 906 907 } … … 909 910 } 910 911 .wp-block-woocommerce-cart.alignwide{ 912 margin-right: auto !important; 911 913 margin-left: auto !important; 912 margin-right: auto !important;913 914 } 914 915 .wc-block-components-totals-footer-item .wc-block-components-totals-item__value, … … 951 952 952 953 .woocommerce span.onsale{ 953 background-color: #E74216;954 background-color: var(--global-color); 954 955 } 955 956 956 957 .woocommerce div.product p.price, .woocommerce div.product span.price{ 957 color: #E74216;958 color: var(--global-color); 958 959 } 959 960 .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{ … … 971 972 972 973 .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); 974 975 } 975 976 … … 979 980 980 981 #top-header { 981 background: #FFC527;982 background: var(--secondary-color); 982 983 } 983 984 #top-header svg{ 984 985 fill: #ffffff; 985 margin- left: 10px;986 margin-right: 10px; 986 987 } 987 988 #center-header .social-area svg { … … 989 990 font-size: 15px; 990 991 } 991 992 #top-header span {993 letter-spacing: 1px;994 }995 992 #top-header span, #top-header span a, #top-header .social-area a { 996 993 color: #ffffff; 997 font-size: 1 2px;994 font-size: 14px; 998 995 font-weight: 500; 999 996 } 1000 997 .wrapper.headers-top{ 1001 background: #E74216;998 background: var(--global-color); 1002 999 padding-top: 10px; 1003 1000 padding-bottom: 10px; … … 1007 1004 } 1008 1005 .header-button span a { 1009 background: #FFC527;1006 background: var(--secondary-color); 1010 1007 padding: 10px 30px; 1011 1008 border-radius: 0px; … … 1046 1043 1047 1044 .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); 1050 1047 text-transform: uppercase; 1051 1048 } … … 1059 1056 position: fixed; 1060 1057 top: 0px; 1061 right: 0px;1058 left: 0px; 1062 1059 width: 100%; 1063 1060 height: 100%; … … 1092 1089 position: absolute; 1093 1090 top: 50%; 1094 right: 0;1091 left: 0; 1095 1092 margin-top: -51px; 1096 1093 width: 60%; 1097 margin- right: 20%;1094 margin-left: 20%; 1098 1095 color: rgb(255, 255, 255); 1099 1096 background: transparent; 1100 1097 border-top: 1px solid rgba(255, 255, 255, .8); 1101 1098 border-bottom: 2px solid rgba(255, 255, 255, .5); 1099 border-left: 0px solid transparent; 1102 1100 border-right: 0px solid transparent; 1103 border-left: 0px solid transparent;1104 1101 font-size: 40px; 1105 1102 font-weight: 300; … … 1107 1104 outline: none; 1108 1105 padding: 10px; 1106 font-family: var(--font-main); 1109 1107 } 1110 1108 #search .close { 1111 1109 position: fixed; 1112 1110 top: 15px; 1113 left: 15px;1111 right: 15px; 1114 1112 opacity: 1; 1115 1113 font-size: 27px; … … 1140 1138 position: relative; 1141 1139 top: 0px; 1142 float: left;1140 float: right; 1143 1141 z-index: 1000; 1144 1142 } 1145 1143 .toggle-menu.active i { 1146 right: 80px;1144 left: 80px; 1147 1145 top: 10px !important; 1148 1146 background: #000; … … 1154 1152 background: #ffffff; 1155 1153 width: 30px; 1156 right: 0px;1154 left: 0px; 1157 1155 -webkit-transition: all .3s; 1158 1156 transition: all .3s; … … 1174 1172 } 1175 1173 .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) { 1176 1184 top: 25px; 1177 1185 -webkit-transform: rotateZ(-45deg); 1178 1186 transform: rotateZ(-45deg); 1179 1187 } 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 }1190 1188 .menu-drawer { 1191 1189 overflow-y: scroll; 1192 1190 } 1193 1191 .menu-drawer .widget-area-wrapper .widget { 1194 margin- right: 0px !important;1192 margin-left: 0px !important; 1195 1193 } 1196 1194 .menu-drawer { … … 1200 1198 position: fixed; 1201 1199 display: none; 1202 left: -550px;1200 right: -550px; 1203 1201 top: 32px; 1204 transition: left linear .10s;1202 transition: right linear .10s; 1205 1203 padding: 50px; 1206 1204 z-index: 9; 1207 1205 } 1208 1206 .open { 1209 left: 0px;1207 right: 0px; 1210 1208 display: block; 1211 transition: left linear .10s;1209 transition: right linear .10s; 1212 1210 } 1213 1211 .menu-drawer .header-logo { … … 1242 1240 width: 15px; 1243 1241 font-size: 10px; 1244 left: 0px;1245 background: #E74216;1242 right: 0px; 1243 background: var(--global-color); 1246 1244 text-align: center; 1247 1245 border-radius: 30px; … … 1272 1270 z-index: -1 !important; 1273 1271 position: absolute; 1272 right: 0px; 1274 1273 left: 0px; 1275 right: 0px;1276 1274 z-index: 0; 1277 1275 width: 22%; … … 1375 1373 } 1376 1374 .main-nav-controls .navbar-control { 1377 margin: 0 auto 0 1.25rem;1375 margin: 0 1.25rem 0 auto; 1378 1376 } 1379 1377 .navbar-control:hover, … … 1406 1404 height: 600px; 1407 1405 position: relative; 1408 background-size: 100% 100%!important;1406 background-size: cover !important; 1409 1407 } 1410 1408 .slider-box:before{ … … 1415 1413 position: absolute; 1416 1414 top: 0px; 1417 right: 0px;1415 left: 0px; 1418 1416 } 1419 1417 .image-main-box { … … 1426 1424 clip-path: polygon(50% 0%, 100% 0, 100% 100%, 0 100%, 0 58%); 1427 1425 width: 600px; 1426 background-size: cover; 1427 object-fit: cover; 1428 1428 } 1429 1429 span.third_word_span { 1430 color: #E74216;1430 color: var(--global-color); 1431 1431 } 1432 1432 .slider-main { … … 1450 1450 width: 460px; 1451 1451 content: ""; 1452 background: #FFC527;1452 background: var(--secondary-color); 1453 1453 position: absolute; 1454 1454 top: 0px; 1455 1455 z-index: -1; 1456 left: 0px;1456 right: 0px; 1457 1457 } 1458 1458 .slider-box:after { … … 1461 1461 content: ""; 1462 1462 clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%); 1463 background: #E74216;1463 background: var(--global-color); 1464 1464 position: absolute; 1465 1465 bottom: 0px; 1466 1466 z-index: 2; 1467 right: 0px;1467 left: 0px; 1468 1468 } 1469 1469 .main-carousel-caption .post-content { 1470 1470 position: absolute; 1471 left: 30%;1472 right: 27%;1471 right: 30%; 1472 left: 27%; 1473 1473 top: 35px; 1474 1474 } 1475 1475 .slide-heading-main .entry-header h3 { 1476 font-size: 1 4px;1476 font-size: 16px; 1477 1477 font-weight: 700; 1478 1478 color: #000000; 1479 1479 } 1480 1480 .slide-heading-main a.btn-fancy.btn-fancy-primary { 1481 background: #FFC527;1481 background: var(--secondary-color); 1482 1482 font-size: 14px; 1483 1483 font-weight: 500; … … 1495 1495 } 1496 1496 .slide-heading-main .entry-header svg{ 1497 margin- left: 5px;1497 margin-right: 5px; 1498 1498 } 1499 1499 .page-template-frontpage-php .main-header,.page-template-frontpage .main-header{ … … 1509 1509 } 1510 1510 .slide-heading-main h4.slide-title { 1511 color: #E74216;1511 color: var(--global-color); 1512 1512 font-size: 20px; 1513 1513 text-transform: uppercase; … … 1525 1525 .slide-heading-main span.slide-button a { 1526 1526 font-size: 20px; 1527 color: #E74216;1527 color: var(--global-color); 1528 1528 font-weight: 600; 1529 1529 } 1530 1530 .slide-heading-main span.slide-button a svg { 1531 1531 fill: #000; 1532 margin- right: 15px;1532 margin-left: 15px; 1533 1533 top: 4px; 1534 1534 position: relative; … … 1540 1540 margin: 0px 0px; 1541 1541 object-fit: cover; 1542 right: 0px;1542 left: 0px; 1543 1543 z-index: 2; 1544 1544 } … … 1553 1553 } 1554 1554 h2.slider-heading .last_word_span{ 1555 color: #E74216;1555 color: var(--global-color); 1556 1556 } 1557 1557 .most-sidebar-box:before { … … 1559 1559 position: absolute; 1560 1560 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; 1561 1572 left: -23px; 1562 1573 width: 72px; … … 1566 1577 background-repeat: no-repeat; 1567 1578 } 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 }1579 1579 1580 1580 .most-sidebar-box h3 { 1581 1581 position: absolute; 1582 transform: rotate( -270deg);1583 right: -58%;1582 transform: rotate(270deg); 1583 left: -58%; 1584 1584 top: 40%; 1585 1585 font-size: 64px; … … 1595 1595 } 1596 1596 .about-btn a.btn-fancy.btn-fancy-primary { 1597 background: #FFC527;1597 background: var(--secondary-color); 1598 1598 font-size: 14px; 1599 1599 font-weight: 500; … … 1618 1618 } 1619 1619 .about-single-box svg{ 1620 fill: #E74216;1620 fill: var(--global-color); 1621 1621 } 1622 1622 .about-single-box { … … 1629 1629 background: #0E1B48; 1630 1630 width: 50px; 1631 margin- left: 15px;1631 margin-right: 15px; 1632 1632 text-align: center; 1633 1633 height: 50px; … … 1642 1642 content: ""; 1643 1643 background: #000; 1644 transform: rotateZ( -45deg);1644 transform: rotateZ(45deg); 1645 1645 position: absolute; 1646 1646 bottom: 0px; 1647 1647 z-index: 2; 1648 right: 0px;1648 left: 0px; 1649 1649 } 1650 1650 .list-heading-main h4.list-title:after { … … 1652 1652 width: 12px; 1653 1653 content: ""; 1654 background: #E74216;1655 transform: rotateZ( -45deg);1654 background: var(--global-color); 1655 transform: rotateZ(45deg); 1656 1656 position: absolute; 1657 1657 bottom: 0px; 1658 1658 z-index: 2; 1659 1659 z-index: 1; 1660 right: 9px;1660 left: 9px; 1661 1661 } 1662 1662 .list-heading-main h4.list-title { 1663 color: #E74216;1663 color: var(--global-color); 1664 1664 font-weight: 700; 1665 1665 position: relative; 1666 padding- right: 45px;1666 padding-left: 45px; 1667 1667 font-size: 15px; 1668 1668 text-transform: uppercase; … … 1684 1684 .blog-main-box { 1685 1685 width: 70%; 1686 padding- right: 55px;1686 padding-left: 55px; 1687 1687 } 1688 1688 .most-sidebar-box img { … … 1754 1754 position: relative; 1755 1755 width: 75%; 1756 padding- right: 25px !important;1756 padding-left: 25px !important; 1757 1757 } 1758 1758 .middle-blog-box .theme-article-post { … … 1797 1797 height: 100%; 1798 1798 position: absolute; 1799 left: 0; 1799 1800 right: 0; 1800 left: 0;1801 1801 top: 0; 1802 1802 bottom: 0; … … 1832 1832 list-style: none; 1833 1833 display: inline; 1834 margin- left: 10px;1834 margin-right: 10px; 1835 1835 } 1836 1836 .blog-box span.middle-cat { … … 1843 1843 list-style: none; 1844 1844 display: inline; 1845 margin- left: 10px;1845 margin-right: 10px; 1846 1846 } 1847 1847 .middle-blog-box span.middle-cat { … … 1873 1873 } 1874 1874 .main-carousel-caption .post-content { 1875 right: 0; 1876 position: relative; 1875 1877 left: 0; 1876 position: relative;1877 right: 0;1878 1878 padding-bottom: 20px; 1879 1879 } … … 1938 1938 .banner-img { 1939 1939 height: 350px; 1940 width: 100%; 1940 width: 400px; 1941 } 1942 .theme-main-carousel .entry-content { 1943 display: none; 1941 1944 } 1942 1945 .image-main-box:after { … … 1947 1950 .main-carousel-caption .post-content { 1948 1951 position: absolute; 1949 left: 10%;1950 right: 9%;1952 right: 10%; 1953 left: 9%; 1951 1954 top: 35px; 1952 1955 } … … 1966 1969 @media screen and (min-width: 992px) and (max-width: 1199px){ 1967 1970 .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; 1969 1981 } 1970 1982 } … … 2015 2027 --------------------------------------------------------------*/ 2016 2028 .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; 2018 2030 } 2019 2031 ul.sub-menu .current_page_item >a{ … … 2036 2048 margin: 0 auto; 2037 2049 padding: 0; 2038 justify-content: right;2050 justify-content: left; 2039 2051 } 2040 2052 .site-navigation .primary-menu .brand-home { … … 2065 2077 .site-navigation .primary-menu .icon { 2066 2078 pointer-events: none; 2079 margin-left: 5px; 2080 } 2081 .rtl .site-navigation .primary-menu .icon { 2082 margin-left: 0; 2067 2083 margin-right: 5px; 2068 }2069 .rtl .site-navigation .primary-menu .icon {2070 margin-right: 0;2071 margin-left: 5px;2072 2084 } 2073 2085 .site-navigation .primary-menu .icon .svg-icon { … … 2080 2092 } 2081 2093 .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; 2082 2098 margin-left: 0; 2083 }2084 .rtl .header-layout .site-navigation .primary-menu > li:last-child {2085 margin-left: 1rem;2086 margin-right: 0;2087 2099 } 2088 2100 .site-navigation .primary-menu > li > a,.link-icon-wrapper a { … … 2096 2108 top: 3px; 2097 2109 height: 15px; 2098 margin- right: 0px;2110 margin-left: 0px; 2099 2111 position: relative; 2100 2112 } … … 2102 2114 .site-navigation .primary-menu > li:focus > a::before { 2103 2115 width: 100%; 2104 right: 0;2116 left: 0; 2105 2117 } 2106 2118 .site-navigation .primary-menu > li.active > a::before { 2107 2119 width: 100%; 2108 right: 0;2120 left: 0; 2109 2121 } 2110 2122 .site-navigation .primary-menu > li:not(.megamenu-has-children), … … 2125 2137 /* SUB MENU */ 2126 2138 .site-navigation .primary-menu ul { 2127 background: #E74216;2139 background: var(--global-color); 2128 2140 color: #fff; 2129 2141 font-size: 1.7rem; … … 2131 2143 margin: 0 auto; 2132 2144 position: absolute; 2133 right: -99999rem;2145 left: -99999rem; 2134 2146 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; 2136 2148 transform: translateY(0.6rem); 2137 2149 width: 30rem; … … 2142 2154 .site-navigation .primary-menu li.page_item_has_children:hover > ul, 2143 2155 .site-navigation .primary-menu li.page_item_has_children:focus > ul { 2144 right: 0;2156 left: 0; 2145 2157 opacity: 1; 2146 2158 transform: translateY(0); … … 2149 2161 .site-navigation .primary-menu li.menu-item-has-children:focus-within > ul, 2150 2162 .site-navigation .primary-menu li.page_item_has_children:focus-within > ul { 2151 right: 0;2163 left: 0; 2152 2164 opacity: 1; 2153 2165 transform: translateY(0); … … 2162 2174 .site-navigation .primary-menu ul::before { 2163 2175 height: 2rem; 2176 left: 0; 2164 2177 right: 0; 2165 left: 0;2166 2178 } 2167 2179 .site-navigation .primary-menu ul a { … … 2174 2186 } 2175 2187 .site-navigation .primary-menu ul li.menu-item-has-children > a { 2176 padding- left: 3rem;2188 padding-right: 3rem; 2177 2189 } 2178 2190 .site-navigation .primary-menu ul li.menu-item-has-children .icon { 2179 2191 position: absolute; 2180 left: 1.5rem;2192 right: 1.5rem; 2181 2193 top: calc(50% - 0.5rem); 2182 2194 } … … 2189 2201 .site-navigation .primary-menu ul li.page_item_has_children:hover > ul, 2190 2202 .site-navigation .primary-menu ul li.page_item_has_children:focus > ul { 2191 right: calc(100% + 2rem);2203 left: calc(100% + 2rem); 2192 2204 } 2193 2205 .site-navigation .primary-menu ul li.menu-item-has-children:focus-within > ul, 2194 2206 .site-navigation .primary-menu ul li.page_item_has_children:focus-within > ul { 2195 right: calc(100% + 2rem);2207 left: calc(100% + 2rem); 2196 2208 } 2197 2209 .site-navigation .primary-menu ul ul::before { … … 2200 2212 bottom: 0; 2201 2213 height: 5.6rem; 2202 left: auto;2203 right: -2rem;2214 right: auto; 2215 left: -2rem; 2204 2216 top: 0; 2205 2217 width: 2rem; … … 2208 2220 border: 0.8rem solid transparent; 2209 2221 border-bottom-color: transparent; 2210 border- left-color: #000;2222 border-right-color: #000; 2211 2223 bottom: auto; 2212 right: -1.6rem;2224 left: -1.6rem; 2213 2225 top: 2rem; 2214 2226 } 2215 2227 .rtl .site-navigation .primary-menu ul ul::after { 2216 transform: rotate( -180deg);2228 transform: rotate(180deg); 2217 2229 } 2218 2230 /* … … 2223 2235 @media (any-pointer: coarse) { 2224 2236 .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; 2227 2239 } 2228 2240 .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; 2231 2243 width: unset; 2232 2244 } … … 2234 2246 /* Repeat previous rules for IE11 (when JS enabled for polyfill). */ 2235 2247 body.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; 2238 2250 } 2239 2251 body.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; 2242 2254 width: unset; 2243 2255 } … … 2250 2262 .wrapper, .wrapper-fluid { 2251 2263 width: auto !important; 2264 margin-right: 15px !important; 2252 2265 margin-left: 15px !important; 2253 margin-right: 15px !important;2254 2266 } 2255 2267 } … … 2262 2274 position: absolute; 2263 2275 top: -20px; 2264 right: calc(100% - 20px);2276 left: calc(100% - 20px); 2265 2277 padding: 2px 5px; 2266 2278 line-height: 10px; … … 2273 2285 width: 0; 2274 2286 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; 2277 2289 border-top: 5px solid; 2278 2290 border-top-color: #000; 2279 right: 3px;2291 left: 3px; 2280 2292 bottom: -4px; 2281 2293 } … … 2291 2303 visibility: visible; 2292 2304 } 2305 .offcanvas-main-navigation .submenu-wrapper .submenu-toggle .svg-icon { 2306 height: 1.9rem !important; 2307 } 2293 2308 } 2294 2309 #offcanvas-menu { … … 2297 2312 top: 0; 2298 2313 height: 100%; 2299 left: -100%;2314 right: -100%; 2300 2315 width: 100%; 2301 2316 z-index: 1000; 2302 2317 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; 2308 2323 } 2309 2324 #offcanvas-menu .offcanvas-wraper { … … 2338 2353 } 2339 2354 #offcanvas-menu .close-offcanvas-menu { 2340 text-align: left;2355 text-align: right; 2341 2356 cursor: pointer; 2342 2357 } … … 2354 2369 .responsive-date-clock .responsive-content-date, 2355 2370 .responsive-date-clock .theme-topbar-clock { 2356 text-align: right;2371 text-align: left; 2357 2372 } 2358 2373 .responsive-date-clock .theme-topbar-icon, … … 2362 2377 } 2363 2378 .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); 2367 2382 opacity: 0; 2368 2383 transition: transform 0.4s ease-out, opacity 0.4s ease-out; … … 2387 2402 display: -ms-flexbox; 2388 2403 display: flex; 2389 left: 0;2404 right: 0; 2390 2405 } 2391 2406 .offcanvas-main-navigation { … … 2430 2445 .offcanvas-main-navigation .submenu-wrapper .submenu-toggle { 2431 2446 border-style: solid; 2432 border-width: 0 1px 0 0; 2447 border-width: 0 0 0 1px; 2448 padding-left: 3rem; 2433 2449 padding-right: 3rem; 2434 padding-left: 3rem;2435 2450 } 2436 2451 .offcanvas-main-navigation .submenu-wrapper .submenu-toggle .svg-icon { … … 2440 2455 } 2441 2456 .offcanvas-main-navigation .submenu-wrapper .submenu-toggle.button-toggle-active .svg-icon { 2442 transform: rotate( -180deg);2457 transform: rotate(180deg); 2443 2458 } 2444 2459 .social-menu ul { … … 2453 2468 } 2454 2469 .social-menu li a .svg-icon { 2455 margin- right: 0.2rem;2470 margin-left: 0.2rem; 2456 2471 width: 1.6rem; 2457 2472 height: 1.6rem; … … 2488 2503 font-weight: bold; 2489 2504 height: auto; 2490 right: 5px;2505 left: 5px; 2491 2506 line-height: normal; 2492 2507 padding: 15px 23px 14px; … … 2513 2528 .alignleft { 2514 2529 display: inline; 2530 float: left; 2531 margin-right: 1.5em; 2532 } 2533 .alignright { 2534 display: inline; 2515 2535 float: right; 2516 2536 margin-left: 1.5em; 2517 }2518 .alignright {2519 display: inline;2520 float: left;2521 margin-right: 1.5em;2522 2537 } 2523 2538 .aligncenter { 2524 2539 clear: both; 2525 2540 display: block; 2541 margin-left: auto; 2526 2542 margin-right: auto; 2527 margin-left: auto;2528 2543 } 2529 2544 /*-------------------------------------------------------------- … … 2572 2587 .widget ul, 2573 2588 .widget ol { 2589 padding-left: 0; 2574 2590 padding-right: 0; 2575 padding-left: 0;2576 2591 list-style: none; 2577 2592 margin-bottom: 0; … … 2646 2661 } 2647 2662 .widget_nav_menu .sub-menu .sub-menu a { 2648 padding- right: 1rem;2663 padding-left: 1rem; 2649 2664 } 2650 2665 .widget_nav_menu .submenu-visible { … … 2658 2673 margin: 0 auto; 2659 2674 width: 80%; 2660 float: right;2675 float: left; 2661 2676 } 2662 2677 .search-form label .search-field { 2663 border- left: 0;2678 border-right: 0; 2664 2679 } 2665 2680 .search-form .search-submit { 2666 float: right;2681 float: left; 2667 2682 width: 20%; 2668 2683 -webkit-appearance: none; 2684 padding: 24px 0; 2669 2685 } 2670 2686 .header-searchbar-area .search-form .search-submit { … … 2707 2723 .widget_archive ul li a, 2708 2724 .widget_meta ul li a { 2709 padding- left: 0.6666666667rem;2710 margin- left: auto;2725 padding-right: 0.6666666667rem; 2726 margin-right: auto; 2711 2727 -webkit-transition: color 0.2s; 2712 2728 transition: color 0.2s; … … 2720 2736 width: 100%; 2721 2737 margin-top: 1rem; 2722 margin- right: 0;2723 padding- right: 1.5em;2738 margin-left: 0; 2739 padding-left: 1.5em; 2724 2740 } 2725 2741 .widget_categories ul ul.children li, 2726 2742 .widget_pages ul ul.children li, 2727 2743 .widget_archive ul ul.children li { 2728 padding: 1rem 1rem 1rem 0;2744 padding: 1rem 0 1rem 1rem; 2729 2745 } 2730 2746 .widget_categories ul ul.children li:last-child, … … 2737 2753 .widget_pages ul ul.children ul.children li, 2738 2754 .widget_archive ul ul.children ul.children li { 2739 margin- right: 1rem;2740 padding- right: 0;2755 margin-left: 1rem; 2756 padding-left: 0; 2741 2757 } 2742 2758 .widget_search form { … … 2748 2764 } 2749 2765 #wp-calendar caption { 2750 text-align: left;2766 text-align: right; 2751 2767 margin-bottom: 15px; 2752 2768 } … … 2787 2803 } 2788 2804 .widget_recent_entries li .post-date { 2789 margin- right: 1rem;2805 margin-left: 1rem; 2790 2806 } 2791 2807 .widget_recent_entries li .post-date:before { … … 2826 2842 margin-top: 0.25rem; 2827 2843 font-style: normal; 2828 text-align: left;2844 text-align: right; 2829 2845 font-size: 0.8125rem; 2830 2846 } … … 2844 2860 padding: 0.5rem 1.5rem; 2845 2861 margin-top: 0.5rem; 2846 margin- left: 0.5rem;2862 margin-right: 0.5rem; 2847 2863 text-decoration: none; 2848 2864 font-weight: 700; … … 2856 2872 } 2857 2873 .widget_tag_cloud .tagcloud a:last-child { 2858 margin- left: 0;2874 margin-right: 0; 2859 2875 } 2860 2876 .widget_tag_cloud .tagcloud a:first-letter { … … 2994 3010 .widget_text ul { 2995 3011 list-style: disc; 2996 margin: 0 1rem 1rem 0;3012 margin: 0 0 1rem 1rem; 2997 3013 } 2998 3014 .widget_text ol { … … 3008 3024 } 3009 3025 .widget_text ul li ul { 3010 margin: 0 1rem 0 0;3026 margin: 0 0 0 1rem; 3011 3027 } 3012 3028 .widget_text ul li li { 3029 padding-left: 0; 3013 3030 padding-right: 0; 3014 padding-left: 0;3015 3031 } 3016 3032 .widget_text ol li { … … 3026 3042 } 3027 3043 .widget .tab-head .twp-nav-tabs li { 3028 float: right;3044 float: left; 3029 3045 margin: 0 auto; 3030 3046 width: 33.33%; … … 3071 3087 width: 100%; 3072 3088 top: 0; 3089 left: 0; 3073 3090 right: 0; 3074 left: 0;3075 3091 background-color: rgba(0, 0, 0, 0.14); 3076 3092 } … … 3086 3102 height: 15px; 3087 3103 display: inline-block; 3088 margin- left: 5px;3104 margin-right: 5px; 3089 3105 vertical-align: middle; 3090 3106 } … … 3119 3135 line-height: 20px; 3120 3136 position: absolute; 3121 right: 15px;3137 left: 15px; 3122 3138 bottom: 15px; 3139 margin-left: auto; 3123 3140 margin-right: auto; 3124 margin-left: auto;3125 3141 text-align: center; 3126 3142 width: 20px; … … 3143 3159 color: #fff; 3144 3160 display: inline-block; 3145 float: left;3161 float: right; 3146 3162 font-size: 16px; 3147 3163 font-weight: 700; … … 3274 3290 } 3275 3291 .breadcrumbs ul .trail-item.trail-begin span { 3276 padding- right: 0;3292 padding-left: 0; 3277 3293 } 3278 3294 .breadcrumbs ul li span:before { … … 3292 3308 content: ''; 3293 3309 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; 3295 3311 font-weight: 900; 3296 3312 padding: 10px 15px; … … 3305 3321 background: #fff; 3306 3322 width: 100%; 3307 right: 0;3323 left: 0; 3308 3324 bottom: 0; 3309 3325 top: 0; … … 3337 3353 width: 0px; 3338 3354 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); 3343 3359 border-radius: 25px; 3344 3360 -webkit-animation: rotate_pacman_half_up 0.5s 0s infinite; 3345 3361 animation: rotate_pacman_half_up 0.5s 0s infinite; 3346 3362 position: relative; 3347 right: 30%;3363 left: 30%; 3348 3364 } 3349 3365 .loader > div:nth-child(2) { 3350 3366 width: 0px; 3351 3367 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); 3356 3372 border-radius: 25px; 3357 3373 -webkit-animation: rotate_pacman_half_down 0.5s 0s infinite; … … 3359 3375 margin-top: -50px; 3360 3376 position: relative; 3361 right: 30%;3377 left: 30%; 3362 3378 } 3363 3379 .loader > div:nth-child(3), … … 3377 3393 transform: translate(0, -6.25px); 3378 3394 top: 25px; 3379 left: 0;3395 right: 0; 3380 3396 } 3381 3397 @-webkit-keyframes rotate_pacman_half_up { 3382 3398 0% { 3383 -webkit-transform: rotate( -270deg);3384 transform: rotate( -270deg); }3399 -webkit-transform: rotate(270deg); 3400 transform: rotate(270deg); } 3385 3401 50% { 3386 -webkit-transform: rotate( -360deg);3387 transform: rotate( -360deg); }3402 -webkit-transform: rotate(360deg); 3403 transform: rotate(360deg); } 3388 3404 100% { 3389 -webkit-transform: rotate( -270deg);3390 transform: rotate( -270deg); }3405 -webkit-transform: rotate(270deg); 3406 transform: rotate(270deg); } 3391 3407 } 3392 3408 @keyframes rotate_pacman_half_up { 3393 3409 0% { 3394 -webkit-transform: rotate( -270deg);3395 transform: rotate( -270deg); }3410 -webkit-transform: rotate(270deg); 3411 transform: rotate(270deg); } 3396 3412 50% { 3397 -webkit-transform: rotate( -360deg);3398 transform: rotate( -360deg); }3413 -webkit-transform: rotate(360deg); 3414 transform: rotate(360deg); } 3399 3415 100% { 3400 -webkit-transform: rotate( -270deg);3401 transform: rotate( -270deg); }3416 -webkit-transform: rotate(270deg); 3417 transform: rotate(270deg); } 3402 3418 } 3403 3419 @-webkit-keyframes rotate_pacman_half_down { 3404 3420 0% { 3405 -webkit-transform: rotate( -90deg);3406 transform: rotate( -90deg); }3421 -webkit-transform: rotate(90deg); 3422 transform: rotate(90deg); } 3407 3423 50% { 3408 3424 -webkit-transform: rotate(0deg); 3409 3425 transform: rotate(0deg); } 3410 3426 100% { 3411 -webkit-transform: rotate( -90deg);3412 transform: rotate( -90deg); }3427 -webkit-transform: rotate(90deg); 3428 transform: rotate(90deg); } 3413 3429 } 3414 3430 @keyframes rotate_pacman_half_down { 3415 3431 0% { 3416 -webkit-transform: rotate( -90deg);3417 transform: rotate( -90deg); }3432 -webkit-transform: rotate(90deg); 3433 transform: rotate(90deg); } 3418 3434 50% { 3419 3435 -webkit-transform: rotate(0deg); 3420 3436 transform: rotate(0deg); } 3421 3437 100% { 3422 -webkit-transform: rotate( -90deg);3423 transform: rotate( -90deg); }3438 -webkit-transform: rotate(90deg); 3439 transform: rotate(90deg); } 3424 3440 } 3425 3441 @-webkit-keyframes pacman-balls { … … 3427 3443 opacity: 0.7; } 3428 3444 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); } 3431 3447 } 3432 3448 @keyframes pacman-balls { … … 3434 3450 opacity: 0.7; } 3435 3451 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); } 3438 3454 } 3439 3455 … … 3472 3488 .wrapper-fluid { 3473 3489 width: 100%; 3490 margin-right: auto; 3474 3491 margin-left: auto; 3475 margin-right: auto;3476 3492 } 3477 3493 .wrapper { 3494 padding-right: 15px; 3478 3495 padding-left: 15px; 3479 padding-right: 15px;3480 3496 } 3481 3497 @media (min-width: 1400px) { … … 3503 3519 -ms-flex-wrap: wrap; 3504 3520 flex-wrap: wrap; 3521 margin-right: -15px; 3505 3522 margin-left: -15px; 3506 margin-right: -15px;3507 3523 } 3508 3524 .column-row-collapse { 3525 margin-right: 0; 3509 3526 margin-left: 0; 3510 margin-right: 0;3511 3527 } 3512 3528 .column-row-small { 3529 margin-right: -5px; 3513 3530 margin-left: -5px; 3514 margin-right: -5px;3515 3531 } 3516 3532 .column { 3517 3533 position: relative; 3518 3534 width: 100%; 3535 padding-right: 15px; 3519 3536 padding-left: 15px; 3520 padding-right: 15px;3521 3537 } 3522 3538 .column-row-collapse .column { 3539 padding-right: 0; 3523 3540 padding-left: 0; 3524 padding-right: 0;3525 3541 } 3526 3542 .column-row-small .column { 3543 padding-right: 5px; 3527 3544 padding-left: 5px; 3528 padding-right: 5px;3529 3545 } 3530 3546 .column-1 { … … 3657 3673 .content-area { 3658 3674 position: relative; 3675 padding-right: 15px; 3659 3676 padding-left: 15px; 3660 padding-right: 15px;3661 3677 padding-top: 3rem; 3662 3678 width: 100%; … … 3684 3700 } 3685 3701 .left-sidebar .content-area #site-content { 3686 padding- right: 2%;3702 padding-left: 2%; 3687 3703 } 3688 3704 .widget-area { … … 3690 3706 flex: 0 0 25%; 3691 3707 max-width: 25%; 3708 padding-right: 15px; 3692 3709 padding-left: 15px; 3693 padding-right: 15px;3694 3710 } 3695 3711 @media (max-width: 1400px) { … … 3723 3739 } 3724 3740 .left-sidebar .widget-area { 3725 border- left: 1px solid;3741 border-right: 1px solid; 3726 3742 } 3727 3743 .left-sidebar .widget-area-wrapper .widget { 3728 margin- left: 40px;3744 margin-right: 40px; 3729 3745 } 3730 3746 @media (max-width: 1400px) { 3731 3747 .left-sidebar .content-area #site-content { 3732 padding- right: 0;3748 padding-left: 0; 3733 3749 } 3734 3750 } 3735 3751 @media (max-width: 1024px) { 3736 3752 .left-sidebar .widget-area-wrapper { 3737 padding- left: 0;3738 border- left: none;3753 padding-right: 0; 3754 border-right: none; 3739 3755 } 3740 3756 .left-sidebar .widget-area-wrapper .widget { 3741 margin- left: 0;3757 margin-right: 0; 3742 3758 } 3743 3759 } … … 3747 3763 } 3748 3764 .right-sidebar .widget-area { 3749 border- right: 1px solid;3765 border-left: 1px solid; 3750 3766 -ms-flex-order: 2; 3751 3767 order: 2; 3752 3768 } 3753 3769 .right-sidebar .widget-area-wrapper .widget { 3754 margin- right: 40px;3770 margin-left: 40px; 3755 3771 } 3756 3772 .right-sidebar .content-area #site-content { 3757 padding- left: 2%;3758 padding- right: 0;3773 padding-right: 2%; 3774 padding-left: 0; 3759 3775 } 3760 3776 @media (max-width: 1400px) { 3761 3777 .right-sidebar .content-area #site-content { 3762 padding- left: 0;3778 padding-right: 0; 3763 3779 } 3764 3780 } 3765 3781 @media (max-width: 1024px) { 3766 3782 .right-sidebar .widget-area-wrapper { 3767 border- right: 0;3768 padding- right: 0;3783 border-left: 0; 3784 padding-left: 0; 3769 3785 } 3770 3786 .right-sidebar .widget-area-wrapper .widget { 3771 margin- right: 0;3787 margin-left: 0; 3772 3788 } 3773 3789 } … … 3780 3796 } 3781 3797 .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); 3783 3799 background-size: 0% 100%; 3784 3800 background-repeat: no-repeat; … … 3813 3829 } 3814 3830 .alignleft { 3831 margin: 0.5rem 2.5rem 2.5rem 0; 3832 } 3833 .alignright { 3815 3834 margin: 0.5rem 0 2.5rem 2.5rem; 3816 }3817 .alignright {3818 margin: 0.5rem 2.5rem 2.5rem 0;3819 3835 } 3820 3836 @media only screen and (min-width: 1400px) { 3821 3837 .entry-content .alignwide { 3838 margin-left: -2rem; 3822 3839 margin-right: -2rem; 3823 margin-left: -2rem;3824 3840 } 3825 3841 } … … 3854 3870 background-repeat: no-repeat; 3855 3871 background-size: 100% 100%; 3856 padding- left: 1rem;3857 margin- left: 0.5rem;3872 padding-right: 1rem; 3873 margin-right: 0.5rem; 3858 3874 } 3859 3875 .entry-meta .cat-links a:hover:not(.entry-meta .cat-links a:first-child) { … … 3866 3882 top: 50%; 3867 3883 transform: translateY(-50%); 3868 left: 0;3884 right: 0; 3869 3885 font-weight: 600; 3870 3886 color: #000; 3871 3887 } 3872 3888 .entry-meta .cat-links a:last-child { 3873 margin- left: 0;3874 padding- left: 0;3889 margin-right: 0; 3890 padding-right: 0; 3875 3891 } 3876 3892 .entry-meta .cat-links a:last-child::before { … … 3878 3894 } 3879 3895 .entry-meta .cat-links a:first-child { 3880 color: #E74216;3896 color: var(--global-color); 3881 3897 } 3882 3898 .entry-meta .cat-links a:first-child:hover, … … 3885 3901 } 3886 3902 .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; 3889 3905 } 3890 3906 .entry-meta .entry-meta-item:last-child { 3891 margin- left: 0;3892 padding- left: 0;3907 margin-right: 0; 3908 padding-right: 0; 3893 3909 } 3894 3910 .entry-meta .entry-meta-item:last-child::before { … … 3899 3915 border-radius: 50%; 3900 3916 margin-bottom: 0; 3901 margin- left: 1rem;3917 margin-right: 1rem; 3902 3918 overflow: hidden; 3903 3919 } … … 3914 3930 } 3915 3931 .entry-meta-item .entry-meta-icon { 3916 margin- left: 1rem;3932 margin-right: 1rem; 3917 3933 } 3918 3934 .entry-meta-label { 3919 margin- left: 5px;3935 margin-right: 5px; 3920 3936 } 3921 3937 .post-navigation { … … 3938 3954 } 3939 3955 .post-navigation .arrow { 3940 margin- left: 1rem;3956 margin-right: 1rem; 3941 3957 } 3942 3958 @media (max-width: 767px) { … … 3961 3977 -ms-flex-wrap: wrap; 3962 3978 flex-wrap: wrap; 3979 margin-right: -15px; 3963 3980 margin-left: -15px; 3964 margin-right: -15px;3965 3981 } 3966 3982 .site-content .article-wraper-archive .theme-article-post { 3967 3983 position: relative; 3968 3984 width: 100%; 3985 padding-right: 15px; 3969 3986 padding-left: 15px; 3970 padding-right: 15px;3971 3987 -ms-flex: 0 0 33%; 3972 3988 flex: 0 0 33.33%; … … 4010 4026 } 4011 4027 .post-navigation .nav-links > div + div { 4012 margin: 0 4rem 0 0;4028 margin: 0 0 0 4rem; 4013 4029 } 4014 4030 .post-navigation .arrow { 4015 margin: 0 0 0 2rem;4031 margin: 0 2rem 0 0; 4016 4032 } 4017 4033 .post-navigation .nav-next:only-child { 4018 margin- right: auto;4034 margin-left: auto; 4019 4035 } 4020 4036 .post-navigation .nav-next a { 4021 4037 flex-direction: row-reverse; 4022 text-align: left;4038 text-align: right; 4023 4039 } 4024 4040 .post-navigation .nav-next .arrow { 4025 margin: 0 2rem 0 0;4041 margin: 0 0 0 2rem; 4026 4042 } 4027 4043 .theme-ajax-post-load { … … 4041 4057 .pagination .page-numbers { 4042 4058 display: inline-block; 4043 margin- left: 1.25em;4059 margin-right: 1.25em; 4044 4060 color: #abadaf; 4045 4061 } … … 4048 4064 } 4049 4065 .pagination .page-numbers:last-child { 4050 margin- left: 0;4066 margin-right: 0; 4051 4067 } 4052 4068 @media only screen and (min-width: 600px) { … … 4062 4078 } 4063 4079 .pagination .prev:after { 4080 margin-left: 1.25em; 4081 } 4082 .pagination .next:before { 4064 4083 margin-right: 1.25em; 4065 }4066 .pagination .next:before {4067 margin-left: 1.25em;4068 4084 } 4069 4085 } … … 4072 4088 --------------------------------------------------------------*/ 4073 4089 .twp-comment-toggle { 4074 text-align: right;4090 text-align: left; 4075 4091 position: relative; 4076 4092 width: 100%; … … 4079 4095 position: absolute; 4080 4096 top: 0; 4081 left: 0;4097 right: 0; 4082 4098 bottom: 0; 4083 4099 width: 45px; … … 4100 4116 margin: auto; 4101 4117 top: 0; 4118 right: 0; 4119 bottom: 0; 4102 4120 left: 0; 4103 bottom: 0;4104 right: 0;4105 4121 } 4106 4122 .comment-toggle-icon:after { … … 4137 4153 list-style: none; 4138 4154 margin: 0; 4139 padding- right: 30px;4155 padding-left: 30px; 4140 4156 position: relative; 4141 4157 } … … 4173 4189 } 4174 4190 #comments .comment-author img { 4175 float: right;4176 margin- left: 20px;4191 float: left; 4192 margin-right: 20px; 4177 4193 } 4178 4194 #comments .comment-author .fn { … … 4193 4209 } 4194 4210 #comments .comment-meta .comment-metadata .edit-link { 4195 margin- right: 10px;4211 margin-left: 10px; 4196 4212 } 4197 4213 #comments .reply { … … 4207 4223 } 4208 4224 #comments .comment-reply-link:hover:after { 4209 margin- right: 13px;4225 margin-left: 13px; 4210 4226 } 4211 4227 #comments .comment-form { … … 4254 4270 #comments h3.comment-reply-title #cancel-comment-reply-link { 4255 4271 display: inline-block; 4256 margin- right: 10px;4272 margin-left: 10px; 4257 4273 text-transform: none; 4258 4274 font-size: 14px; … … 4280 4296 -ms-flex-wrap: wrap; 4281 4297 flex-wrap: wrap; 4298 margin-right: -20px; 4282 4299 margin-left: -20px; 4283 margin-right: -20px;4284 4300 } 4285 4301 .comments-area .comment-form-comment { … … 4295 4311 position: relative; 4296 4312 width: 100%; 4313 padding-right: 20px; 4297 4314 padding-left: 20px; 4298 padding-right: 20px;4299 4315 margin-bottom: 1.5rem; 4300 4316 } … … 4306 4322 position: relative; 4307 4323 width: 100%; 4324 padding-right: 20px; 4308 4325 padding-left: 20px; 4309 padding-right: 20px;4310 4326 margin-bottom: 1.5rem; 4311 4327 } … … 4330 4346 position: relative; 4331 4347 width: 100%; 4348 padding-right: 20px; 4332 4349 padding-left: 20px; 4333 padding-right: 20px;4334 4350 } 4335 4351 } … … 4345 4361 position: relative; 4346 4362 width: 100%; 4363 padding-right: 20px; 4347 4364 padding-left: 20px; 4348 padding-right: 20px;4349 4365 } 4350 4366 } … … 4397 4413 .wp-caption img[class*="wp-image-"] { 4398 4414 display: block; 4415 margin-left: auto; 4399 4416 margin-right: auto; 4400 margin-left: auto;4401 4417 } 4402 4418 .wp-caption .wp-caption-text { … … 4404 4420 } 4405 4421 .wp-caption.aligncenter { 4422 margin-left: auto; 4406 4423 margin-right: auto; 4407 margin-left: auto;4408 4424 } 4409 4425 .wp-caption.alignleft { 4426 margin-right: 20px; 4427 } 4428 .wp-caption.alignright { 4410 4429 margin-left: 20px; 4411 }4412 .wp-caption.alignright {4413 margin-right: 20px;4414 4430 } 4415 4431 .wp-caption-text { … … 4430 4446 -ms-flex-wrap: wrap; 4431 4447 flex-wrap: wrap; 4448 margin-left: -10px; 4432 4449 margin-right: -10px; 4433 margin-left: -10px;4434 4450 } 4435 4451 } … … 4445 4461 position: relative; 4446 4462 width: 100%; 4463 padding-left: 10px; 4447 4464 padding-right: 10px; 4448 padding-left: 10px;4449 4465 margin-bottom: 20px; 4450 4466 } … … 4455 4471 position: relative; 4456 4472 width: 100%; 4473 padding-left: 10px; 4457 4474 padding-right: 10px; 4458 padding-left: 10px;4459 4475 margin-bottom: 20px; 4460 4476 } … … 4465 4481 position: relative; 4466 4482 width: 100%; 4483 padding-left: 10px; 4467 4484 padding-right: 10px; 4468 padding-left: 10px;4469 4485 margin-bottom: 20px; 4470 4486 } … … 4475 4491 position: relative; 4476 4492 width: 100%; 4493 padding-left: 10px; 4477 4494 padding-right: 10px; 4478 padding-left: 10px;4479 4495 margin-bottom: 20px; 4480 4496 } … … 4485 4501 position: relative; 4486 4502 width: 100%; 4503 padding-left: 10px; 4487 4504 padding-right: 10px; 4488 padding-left: 10px;4489 4505 margin-bottom: 20px; 4490 4506 } … … 4495 4511 position: relative; 4496 4512 width: 100%; 4513 padding-left: 10px; 4497 4514 padding-right: 10px; 4498 padding-left: 10px;4499 4515 margin-bottom: 20px; 4500 4516 } … … 4505 4521 position: relative; 4506 4522 width: 100%; 4523 padding-left: 10px; 4507 4524 padding-right: 10px; 4508 padding-left: 10px;4509 4525 margin-bottom: 20px; 4510 4526 } … … 4515 4531 position: relative; 4516 4532 width: 100%; 4533 padding-left: 10px; 4517 4534 padding-right: 10px; 4518 padding-left: 10px;4519 4535 margin-bottom: 20px; 4520 4536 } … … 4582 4598 position: absolute; 4583 4599 top: 0; 4584 right: 50%;4585 transform: translate( 50%, 0);4600 left: 50%; 4601 transform: translate(-50%, 0); 4586 4602 pointer-events: none; 4587 4603 } … … 4643 4659 --------------------------------------------------------------*/ 4644 4660 .align-text-right { 4645 text-align: left;4661 text-align: right; 4646 4662 } 4647 4663 .to-the-top > * { … … 4743 4759 position: absolute; 4744 4760 top: 0; 4745 right: 0;4761 left: 0; 4746 4762 width: 10rem; 4747 4763 height: 100%; … … 4751 4767 @keyframes animate { 4752 4768 0% { 4753 right: 0;4769 left: 0; 4754 4770 } 4755 4771 50% { 4756 right: 100%;4772 left: 100%; 4757 4773 } 4758 4774 0% { 4759 right: 0;4775 left: 0; 4760 4776 } 4761 4777 } … … 4763 4779 @keyframes animate { 4764 4780 0% { 4765 right: 0;4781 left: 0; 4766 4782 } 4767 4783 50% { 4768 right: 67%;4784 left: 67%; 4769 4785 } 4770 4786 0% { 4771 right: 0;4787 left: 0; 4772 4788 } 4773 4789 } … … 4778 4794 -ms-flex-align: center; 4779 4795 align-items: center; 4780 margin- right: auto;4796 margin-left: auto; 4781 4797 } 4782 4798 @media (max-width: 991px) { 4783 4799 .theme-carousel-control { 4784 margin- left: auto;4800 margin-right: auto; 4785 4801 } 4786 4802 } … … 4838 4854 @-webkit-keyframes reveal-carousel-primary { 4839 4855 100% { 4840 transform: translateX( -100%);4856 transform: translateX(100%); 4841 4857 } 4842 4858 } 4843 4859 @keyframes reveal-carousel-primary { 4844 4860 100% { 4845 transform: translateX( -100%);4861 transform: translateX(100%); 4846 4862 } 4847 4863 } 4848 4864 @-webkit-keyframes reveal-carousel-secondary { 4849 4865 0% { 4850 transform: translateX( 100%);4866 transform: translateX(-100%); 4851 4867 } 4852 4868 50% { … … 4854 4870 } 4855 4871 100% { 4856 transform: translateX( -100%);4872 transform: translateX(100%); 4857 4873 } 4858 4874 } 4859 4875 @keyframes reveal-carousel-secondary { 4860 4876 0% { 4861 transform: translateX( 100%);4877 transform: translateX(-100%); 4862 4878 } 4863 4879 50% { … … 4865 4881 } 4866 4882 100% { 4867 transform: translateX( -100%);4883 transform: translateX(100%); 4868 4884 } 4869 4885 } 4870 4886 @-webkit-keyframes reveal-carousel-tertiary { 4871 4887 0% { 4872 transform: translateX( 100%);4888 transform: translateX(-100%); 4873 4889 } 4874 4890 50% { … … 4876 4892 } 4877 4893 100% { 4878 transform: translateX( -100%);4894 transform: translateX(100%); 4879 4895 } 4880 4896 } 4881 4897 @keyframes reveal-carousel-tertiary { 4882 4898 0% { 4883 transform: translateX( 100%);4899 transform: translateX(-100%); 4884 4900 } 4885 4901 50% { … … 4887 4903 } 4888 4904 100% { 4889 transform: translateX( -100%);4905 transform: translateX(100%); 4890 4906 } 4891 4907 } … … 4896 4912 text-align: center; 4897 4913 } 4914 .theme-main-carousel .entry-content{ 4915 display: none; 4916 } 4898 4917 .theme-product-block h3:after{ 4899 4918 display: none; … … 4914 4933 } 4915 4934 .imagebox1 .entry-thumbnail img{ 4916 right: 0px;4935 left: 0px; 4917 4936 } 4918 4937 .imagebox1 .entry-thumbnail:after{ 4919 right: 0px;4938 left: 0px; 4920 4939 margin:0 auto; 4921 4940 } … … 4939 4958 } 4940 4959 header#site-header{ 4941 padding- left: 0px;4960 padding-right: 0px; 4942 4961 } 4943 4962 section#top-header { 4963 padding-right: 15px; 4944 4964 padding-left: 15px; 4945 padding-right: 15px;4946 padding-bottom: 15px;4947 4965 } 4948 4966 .main-carousel-caption .entry-title a{ … … 4954 4972 } 4955 4973 .blog-main-box{ 4956 padding- right: 0px;4974 padding-left: 0px; 4957 4975 } 4958 4976 .page-template-frontpage header#site-header{ … … 4963 4981 } 4964 4982 .list-heading-main{ 4965 margin- left: 0px;4983 margin-right: 0px; 4966 4984 margin-bottom: 20px; 4967 4985 } … … 5003 5021 } 5004 5022 .toggle-menu.active i { 5005 right: 129px !important;5023 left: 129px !important; 5006 5024 top: -166px !important; 5007 5025 background: #000; … … 5021 5039 height: 200px; 5022 5040 width: 200px; 5023 right: 0px;5041 left: 0px; 5024 5042 } 5025 5043 .header-menu { … … 5084 5102 .theme-main-carousel .entry-content { 5085 5103 margin-bottom: 2rem; 5086 color: # 000000;5104 color: #222222; 5087 5105 font-size: 14px; 5106 font-weight: 500; 5088 5107 } 5089 5108 .swiper-control, … … 5097 5116 } 5098 5117 :root { 5118 --global-color: #E74216; 5119 --secondary-color: #FFC527; 5120 --font-head: "Outfit", sans-serif; 5121 --font-main: "Roboto", sans-serif; 5099 5122 --swiper-navigation-size: 2.6rem; 5100 5123 } … … 5128 5151 .swiper-button-prev, 5129 5152 .swiper-container-rtl .swiper-button-next { 5130 right: 0;5153 left: 0; 5131 5154 } 5132 5155 .swiper-button-next, 5133 5156 .swiper-container-rtl .swiper-button-prev { 5134 left: 0;5157 right: 0; 5135 5158 } 5136 5159 .swiper-container .swiper-pagination-progressbar { … … 5147 5170 position: absolute; 5148 5171 top: 0; 5149 right: 0;5172 left: 0; 5150 5173 padding: 5px 10px; 5151 5174 font-size: 12px; … … 5157 5180 } 5158 5181 .theme-article-post .column-order-1 .theme-post-format { 5159 right: inherit;5160 left: 0;5182 left: inherit; 5183 right: 0; 5161 5184 } 5162 5185 .theme-post-format .post-format-icom { 5163 margin- left: 5px;5186 margin-right: 5px; 5164 5187 } 5165 5188 /* Hide JS Functionalities ------------------------ */ … … 5182 5205 } 5183 5206 .theme-post-format { 5184 background-color: #E74216;5207 background-color: var(--global-color); 5185 5208 color: #fff; 5186 5209 } … … 5193 5216 height: 100%; 5194 5217 top: 0; 5218 left: 0; 5195 5219 right: 0; 5196 left: 0;5197 5220 position: absolute; 5198 5221 z-index: 4; 5199 5222 } 5200 5223 .theme-image-responsive:focus { 5201 border: 2px solid #E74216;5224 border: 2px solid var(--global-color); 5202 5225 } 5203 5226 @media (min-width: 992px) { … … 5254 5277 bottom: 0; 5255 5278 background: rgb(26 77 140 / 70%); 5279 left: 0; 5256 5280 right: 0; 5257 left: 0;5258 5281 padding: 15px; 5259 5282 } … … 5266 5289 color: #fff !important; 5267 5290 } 5291 5292 h1.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 9 9 Tested up to: 6.6 10 10 Requires PHP: 7.2 11 Version: 1.0. 511 Version: 1.0.6 12 12 License: GNU General Public License v2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 938 938 box-shadow: none !important; 939 939 } 940 .wc-block-components-sidebar-layout{ 941 flex-flow: column-reverse !important; 942 } 940 943 941 .wc-block-components-sidebar-layout .wc-block-components-main { 944 942 padding-right:0% !important; … … 1019 1017 1020 1018 #top-header { 1021 background: #FFC527;1019 background: var(--secondary-color); 1022 1020 } 1023 1021 #top-header svg{ … … 1043 1041 } 1044 1042 .header-button span a { 1045 background: #FFC527;1043 background: var(--secondary-color); 1046 1044 padding: 10px 30px; 1047 1045 border-radius: 0px; … … 1489 1487 width: 460px; 1490 1488 content: ""; 1491 background: #FFC527;1489 background: var(--secondary-color); 1492 1490 position: absolute; 1493 1491 top: 0px; … … 1518 1516 } 1519 1517 .slide-heading-main a.btn-fancy.btn-fancy-primary { 1520 background: #FFC527;1518 background: var(--secondary-color); 1521 1519 font-size: 14px; 1522 1520 font-weight: 500; … … 1634 1632 } 1635 1633 .about-btn a.btn-fancy.btn-fancy-primary { 1636 background: #FFC527;1634 background: var(--secondary-color); 1637 1635 font-size: 14px; 1638 1636 font-weight: 500; … … 5156 5154 :root { 5157 5155 --global-color: #E74216; 5156 --secondary-color: #FFC527; 5158 5157 --font-head: "Outfit", sans-serif; 5159 5158 --font-main: "Roboto", sans-serif; … … 5340 5339 position: relative !important; 5341 5340 } 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 12 12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 13 13 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 } ?> 17 35 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() ) { ?> 40 37 41 38 <header class="entry-header entry-header-1"> 42 43 39 <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> 49 42 </header> 50 43 … … 54 47 55 48 <div class="entry-meta"> 56 57 49 <?php 58 50 home_construction_builder_posted_by(); … … 60 52 home_construction_builder_entry_footer( $cats = true, $tags = false, $edits = false ); 61 53 ?> 62 63 54 </div> 64 55 65 56 <?php } ?> 57 66 58 <div class="post-content-wrap"> 67 59 … … 88 80 89 81 <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> 93 85 </div> 94 86 -
home-construction-builder/1.0.6/template-parts/content.php
r244715 r248156 20 20 <div class="entry-thumbnail"> 21 21 <?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 } 30 39 } else { 31 40 home_construction_builder_post_thumbnail($home_construction_builder_image_size); 32 41 } 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 ) : 34 43 home_construction_builder_post_format_icon(); 35 endif; ?> 44 endif; 45 ?> 36 46 </div> 37 47 <?php endif; ?> 38 39 48 </div> 40 49 <div class="theme-article-details">
Note: See TracChangeset
for help on using the changeset viewer.