namespace RTLPlugins\AstarehWidgets\Widgets; use Elementor\Controls_Manager; use Elementor\Group_Control_Border; use Elementor\Group_Control_Typography; use Elementor\Icons_Manager; use Elementor\Plugin; use Elementor\Utils; use Elementor\Widget_base; use RTLPlugins\AstarehCore\Admin\OptionLogic; use RTLPlugins\AstarehCore\Controllers\MetaboxController; use RTLPlugins\AstarehCore\Controllers\OptionController; use RTLPlugins\AstarehCore\Controllers\PostTypeController; use RTLPlugins\AstarehWidgets\Helper; use RTLPlugins\AstarehCore\Helper as CoreHelper; use WP_Query; if (defined("ABSPATH")) { goto O449188583252; } goto O000024675454; O449188583252: goto O524233161424; O000024675454: goto O077481903640; O524233161424: goto O624718269476; O077481903640: exit; O624718269476: class PricingPlanWidget extends Widget_base { public function get_name() { return Helper::genertateWidgetName("pricing-plan"); } public function get_title() { return esc_html__("Pricing Plan", ASTAREH_WIDGETS_TEXTDOMAIN); } public function get_icon() { return "eicon-price-table"; } public function get_categories() { return [Helper::getElementsSlug()]; } public function get_keywords() { return ["pricing", "pricing plan", __("Pricing", ASTAREH_WIDGETS_TEXTDOMAIN), __("Pricing Plan", ASTAREH_WIDGETS_TEXTDOMAIN)]; } protected function register_controls() { $this->start_controls_section("posts_section", ["label" => esc_html__("Posts", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_CONTENT]); $this->add_control("service_selected_terms", ["label" => __("Category", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SELECT2, "options" => $this->getCategories(), "multiple" => true]); $this->add_control("services_order_by", ["label" => __("Order By", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SELECT, "options" => ["none" => __("None", ASTAREH_WIDGETS_TEXTDOMAIN), "ID" => __("ID", ASTAREH_WIDGETS_TEXTDOMAIN), "name" => __("Name", ASTAREH_WIDGETS_TEXTDOMAIN), "title" => __("Title", ASTAREH_WIDGETS_TEXTDOMAIN), "date" => __("Date", ASTAREH_WIDGETS_TEXTDOMAIN), "modified" => __("Last Modified", ASTAREH_WIDGETS_TEXTDOMAIN), "rand" => __("Random", ASTAREH_WIDGETS_TEXTDOMAIN)], "default" => "date"]); $this->add_control("services_order", ["label" => __("Order", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SELECT, "options" => ["ASC" => __("ASC", ASTAREH_WIDGETS_TEXTDOMAIN), "DESC" => __("DESC", ASTAREH_WIDGETS_TEXTDOMAIN)], "default" => "DESC"]); $this->add_control("services_posts_per_category", ["label" => __("Post per Category", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::NUMBER, "default" => -1]); $this->add_control("services_post_status", ["label" => __("Post Status", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SELECT, "options" => ["publish" => __("Publish", ASTAREH_WIDGETS_TEXTDOMAIN), "draft" => __("Draft", ASTAREH_WIDGETS_TEXTDOMAIN), "pending" => __("Pending", ASTAREH_WIDGETS_TEXTDOMAIN), "any" => __("Any", ASTAREH_WIDGETS_TEXTDOMAIN)], "default" => "publish"]); $this->add_control("services_excluded_posts", ["label" => __("Excluded Posts", ASTAREH_WIDGETS_TEXTDOMAIN), "description" => __("Input post IDs seperated by Space here.", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::TEXTAREA]); $this->end_controls_section(); $this->start_controls_section("content_section", ["label" => esc_html__("Content", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_CONTENT]); $this->add_control("services_all_tab_filter_text", ["label" => __("All Tab Text", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::TEXT, "default" => __("All Hosting Plans", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("service_monthly_text", ["label" => esc_html__("Monthly Text", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::TEXT, "default" => esc_html__("Monthly", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("service_order_plan_text", ["label" => esc_html__("Order Plan Text", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::TEXT, "default" => esc_html__("Order Plan", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("service_yearly_text", ["label" => esc_html__("Yearly Text", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::TEXT, "default" => esc_html__("Yearly :", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("service_discount_text", ["label" => esc_html__("Discount Text", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::TEXT, "default" => esc_html__("discount", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("service_attribute_icon", ["label" => esc_html__("Attribute Icon", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::ICONS, "default" => ["value" => "fas fa-check", "library" => "fa-solid"], "recommended" => ["fa-solid" => ["check", "check-circle", "check-square"], "fa-regular" => ["check", "check-circle", "check-square"]]]); $this->end_controls_section(); $this->start_controls_section("section_tab_style", ["label" => esc_html__("Tabs", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_control("tabs_box_shadow", ["label" => esc_html__("Box Shadow", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::BOX_SHADOW, "selectors" => ["{{WRAPPER}} .hl-menu__pricing" => "box-shadow: {{HORIZONTAL}}px {{VERTICAL}}px {{BLUR}}px {{SPREAD}}px {{COLOR}};"], "default" => ["horizontal" => 0, "vertical" => 0, "blur" => 20, "spread" => 0, "color" => "rgba(76, 86, 134, 0.10)"]]); $this->add_responsive_control("tabs_container_width", ["label" => esc_html__("Width", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SLIDER, "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "range" => ["px" => ["min" => 300, "max" => 1000]], "selectors" => ["{{WRAPPER}} .hl-menu__pricing" => "width: {{SIZE}}{{UNIT}};"]]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "tabs_border", "selector" => "{{WRAPPER}} .hl-menu__pricing"]); $this->add_control("tabs_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->add_control("tabs_background_color", ["label" => __("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-menu__pricing" => "background-color: {{VALUE}}"]]); $this->end_controls_section(); $this->start_controls_section("section_tab_buttons_style", ["label" => esc_html__("Tab Buttons", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_control("tab_buttons_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->add_control("tab_buttons_padding", ["label" => __("Padding", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li" => "padding-top:{{TOP}}{{UNIT}};padding-right: {{RIGHT}}{{UNIT}}; padding-bottom:{{BOTTOM}}{{UNIT}}; padding-left:{{LEFT}}{{UNIT}};"]]); $this->add_control("tab_buttons_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "tab_buttons_typography", "selector" => "{{WRAPPER}} .hl-menu__pricing li"]); $this->start_controls_tabs("tab_buttons_states"); $this->start_controls_tab("tab_buttons_normal_state", ["label" => esc_html__("Normal", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("tab_buttons_normal_text_color", ["label" => esc_html__("Text Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-menu__item__pricing:not(.active)" => "color: {{VALUE}}"]]); $this->add_control("tab_buttons_normal_bg_color", ["label" => esc_html__("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-menu__item__pricing:not(.active)" => "background-color: {{VALUE}}"]]); $this->end_controls_tab(); $this->start_controls_tab("tab_buttons_active_hover_state", ["label" => esc_html__("Active", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("tab_buttons_active_hover_text_color", ["label" => esc_html__("Text Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-menu__item__pricing.active" => "color: {{VALUE}}", "{{WRAPPER}} .hl-menu__item__pricing:hover" => "color: {{VALUE}}"]]); $this->add_control("tab_buttons_active_hover_bg_color", ["label" => esc_html__("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-menu__item__pricing.active" => "background-color: {{VALUE}}", "{{WRAPPER}} .hl-menu__item__pricing:hover" => "background-color: {{VALUE}}"]]); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); $this->start_controls_section("section_tab_button_separators_style", ["label" => esc_html__("Tab Button Separators", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_responsive_control("tab_button_separators_width", ["label" => esc_html__("Width", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SLIDER, "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "desktop_default" => ["size" => 1, "unit" => "px"], "tablet_default" => ["size" => 1, "unit" => "px"], "mobile_default" => ["size" => 1, "unit" => "px"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li:not(:last-child)::after" => "border-left-width: {{SIZE}}{{UNIT}};"]]); $this->add_responsive_control("tab_button_separators_height", ["type" => Controls_Manager::SLIDER, "label" => esc_html__("Height", ASTAREH_WIDGETS_TEXTDOMAIN), "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "desktop_default" => ["size" => 29, "unit" => "px"], "tablet_default" => ["size" => 29, "unit" => "px"], "mobile_default" => ["size" => 29, "unit" => "px"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li:not(:last-child)::after" => "height: {{SIZE}}{{UNIT}};"]]); $this->add_responsive_control("tab_button_separators_top", ["type" => Controls_Manager::SLIDER, "label" => esc_html__("Top Position", ASTAREH_WIDGETS_TEXTDOMAIN), "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li:not(:last-child)::after" => "top: {{SIZE}}{{UNIT}};"]]); $this->add_responsive_control("tab_button_separators_right", ["type" => Controls_Manager::SLIDER, "label" => esc_html__("Right Position", ASTAREH_WIDGETS_TEXTDOMAIN), "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "selectors" => ["{{WRAPPER}} .hl-menu__pricing li:not(:last-child)::after" => "margin-inline-start: {{SIZE}}{{UNIT}};"]]); $this->end_controls_section(); $this->start_controls_section("section_cards_style", ["label" => __("Cards", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_control("cards_box_shadow", ["label" => __("Box Shadow", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::BOX_SHADOW, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan" => "box-shadow: {{HORIZONTAL}}px {{VERTICAL}}px {{BLUR}}px {{SPREAD}}px {{COLOR}};"], "default" => ["horizontal" => 0, "vertical" => 0, "blur" => 20, "spread" => 0, "color" => "#4c56861a"]]); $this->add_control("cards_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->start_controls_tabs("cards_states"); $this->start_controls_tab("cards_normal_state", ["label" => esc_html__("Normal", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("cards_normal_background_color", ["label" => __("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan" => "background-color: {{VALUE}}"]]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "cards_normal_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan"]); $this->add_control("cards_normal_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->end_controls_tab(); $this->start_controls_tab("cards_hover_state", ["label" => esc_html__("Hover", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("cards_hover_background_color", ["label" => __("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover" => "background-color: {{VALUE}}"]]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "cards_hover_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan:hover"]); $this->add_control("cards_hover_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); $this->start_controls_section("section_card_image_styles", ["label" => __("Card Image", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "card_image_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__img"]); $this->add_control("card_image_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__img" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->add_control("card_image_alignment", ["label" => __("Alignment", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::CHOOSE, "options" => ["auto" => ["title" => __("Center", ASTAREH_WIDGETS_TEXTDOMAIN), "icon" => "fa fa-align-center"]], "toggle" => true, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__img" => "margin-inline: {{VALUE}} !important"]]); $this->add_control("card_image_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__img" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->add_responsive_control("card_image_width", ["type" => Controls_Manager::SLIDER, "label" => esc_html__("Width", ASTAREH_WIDGETS_TEXTDOMAIN), "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__img" => "max-width: {{SIZE}}{{UNIT}};"]]); $this->add_responsive_control("card_image_height", ["type" => Controls_Manager::SLIDER, "label" => esc_html__("Height", ASTAREH_WIDGETS_TEXTDOMAIN), "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__img" => "height: {{SIZE}}{{UNIT}};"]]); $this->end_controls_section(); $this->start_controls_section("section_card_title_styles", ["label" => __("Card Title", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "card_title_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__title__text"]); $this->add_control("card_title_text_color", ["label" => __("Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__title__text" => "color: {{VALUE}}"]]); $this->end_controls_section(); $this->start_controls_section("section_card_monthly_price_styles", ["label" => __("Card Monthly Price", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "card_monthly_price_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__price__text"]); $this->add_control("card_monthly_price_normal_text_color", ["label" => __("Normal Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__price__text" => "color: {{VALUE}}"]]); $this->add_control("card_monthly_price_hover_text_color", ["label" => __("Hover Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover .hl-box__pricing__plan__price__text" => "color: {{VALUE}}"]]); $this->end_controls_section(); $this->start_controls_section("section_card_monthly_price_currency_styles", ["label" => __("Card Monthly Currency", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "card_monthly_currency_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__price__currency"]); $this->add_control("card_monthly_currency_normal_text_color", ["label" => __("Normal Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__price__currency" => "color: {{VALUE}}"]]); $this->add_control("card_monthly_currency_hover_text_color", ["label" => __("Hover Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover .hl-box__pricing__plan__price__currency" => "color: {{VALUE}}"]]); $this->add_control("card_monthly_currency_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__price__currency" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->end_controls_section(); $this->start_controls_section("section_card_monthly_text_styles", ["label" => __("Card Monthly Text", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "card_monthly_text_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__price__date"]); $this->add_control("card_monthly_text_normal_text_color", ["label" => __("Normal Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__price__date" => "color: {{VALUE}}"]]); $this->add_control("card_monthly_text_hover_text_color", ["label" => __("Hover Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover .hl-box__pricing__plan__price__date" => "color: {{VALUE}}"]]); $this->add_control("card_monthly_text_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__price__date" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->end_controls_section(); $this->start_controls_section("section_card_order_plan_styles", ["label" => __("Card Order Button", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "card_order_plan_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__btn__text"]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "card_order_plan_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__btn__text"]); $this->add_control("card_order_plan_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__btn__text" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->start_controls_tabs("card_order_plan_states"); $this->start_controls_tab("card_order_plan_normal_state", ["label" => esc_html__("Normal", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("card_order_plan_normal_text_color", ["label" => esc_html__("Text Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__btn__text" => "color: {{VALUE}}"]]); $this->add_control("card_order_plan_normal_bg_color", ["label" => esc_html__("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__btn__text" => "background-color: {{VALUE}}"]]); $this->end_controls_tab(); $this->start_controls_tab("card_order_plan_hover_state", ["label" => esc_html__("Hover", ASTAREH_WIDGETS_TEXTDOMAIN)]); $this->add_control("card_order_plan_hover_text_color", ["label" => esc_html__("Text Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover .hl-box__pricing__plan__btn__text" => "color: {{VALUE}}"]]); $this->add_control("card_order_plan_hover_bg_color", ["label" => esc_html__("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan:hover .hl-box__pricing__plan__btn__text" => "background-color: {{VALUE}}"]]); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); $this->start_controls_section("section_card_yearly_discount_styles", ["label" => __("Card Yearly Discount", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["name" => "card_yearly_discount_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__th p"]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "card_yearly_discount_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__th"]); $this->add_control("card_yearly_discount_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__th" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->add_control("card_yearly_discount_text_color", ["label" => esc_html__("Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__th p" => "color: {{VALUE}}"]]); $this->add_control("card_yearly_discount_bg_color", ["label" => esc_html__("Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__th" => "background-color: {{VALUE}}"]]); $this->end_controls_section(); $this->start_controls_section("section_card_yearly_price_styles", ["label" => __("Card Yearly Price", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_group_control(Group_Control_Typography::get_type(), ["label" => esc_html__("Price Typography", ASTAREH_WIDGETS_TEXTDOMAIN), "name" => "card_yearly_price_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__td .hl-box__pricing__plan__td__Digit"]); $this->add_group_control(Group_Control_Typography::get_type(), ["label" => esc_html__("Currency Typography", ASTAREH_WIDGETS_TEXTDOMAIN), "name" => "card_yearly_currency_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__td .hl-box__pricing__plan__td__currency"]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "card_yearly_price_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__td"]); $this->add_control("card_yearly_price_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__td" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->add_control("card_yearly_price_color", ["label" => esc_html__("Price Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__td .hl-box__pricing__plan__td__Digit" => "color: {{VALUE}}"]]); $this->add_control("card_yearly_currency_color", ["label" => esc_html__("Currency Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__td .hl-box__pricing__plan__td__currency" => "color: {{VALUE}}"]]); $this->end_controls_section(); $this->start_controls_section("section_card_separator_styles", ["label" => __("Card Separator", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_control("card_separator_color", ["label" => esc_html__("Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-hr" => "color: {{VALUE}}"]]); $this->add_control("card_separator_width", ["label" => esc_html__("Width", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SLIDER, "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "%", "em", "rem", "custom"], "desktop_default" => ["size" => 1, "unit" => "px"], "tablet_default" => ["size" => 1, "unit" => "px"], "mobile_default" => ["size" => 1, "unit" => "px"], "selectors" => ["{{WRAPPER}} .hl-hr" => "width: {{SIZE}}{{UNIT}};"]]); $this->end_controls_section(); $this->start_controls_section("section_card_icon_list_styles", ["label" => __("Card Icon List", ASTAREH_WIDGETS_TEXTDOMAIN), "tab" => Controls_Manager::TAB_STYLE]); $this->add_control("card_icon_list_icon_size", ["label" => esc_html__("Icon Size", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::SLIDER, "devices" => ["desktop", "tablet", "mobile"], "size_units" => ["px", "em", "rem"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__icon" => "font-size: {{SIZE}}{{UNIT}};"]]); $this->add_group_control(Group_Control_Border::get_type(), ["name" => "card_icon_list_icon_border", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__option__item__icon"]); $this->add_control("card_icon_list_icon_border_radius", ["label" => __("Border Radius", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "%"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__icon" => "border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};"]]); $this->add_control("card_icon_list_icon_color", ["label" => esc_html__("Icon Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__icon" => "color: {{VALUE}}"]]); $this->add_control("card_icon_list_icon_bg_color", ["label" => esc_html__("Icon Background Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__icon" => "background-color: {{VALUE}}"]]); $this->add_control("card_icon_list_icon_padding", ["label" => __("Padding", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__icon" => "padding-top:{{TOP}}{{UNIT}};padding-right: {{RIGHT}}{{UNIT}}; padding-bottom:{{BOTTOM}}{{UNIT}}; padding-left:{{LEFT}}{{UNIT}};"]]); $this->add_control("card_icon_list_icon_margin", ["label" => __("Margin", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::DIMENSIONS, "size_units" => ["px", "rem", "em"], "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__icon" => "margin-top:{{TOP}}{{UNIT}};margin-right: {{RIGHT}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}}; margin-left:{{LEFT}}{{UNIT}};"]]); $this->add_group_control(Group_Control_Typography::get_type(), ["label" => esc_html__("Text Typography", ASTAREH_WIDGETS_TEXTDOMAIN), "name" => "card_icon_list_text_typography", "selector" => "{{WRAPPER}} .hl-box__pricing__plan__option__item__text"]); $this->add_control("card_icon_list_text_color", ["label" => esc_html__("Text Color", ASTAREH_WIDGETS_TEXTDOMAIN), "type" => Controls_Manager::COLOR, "selectors" => ["{{WRAPPER}} .hl-box__pricing__plan__option__item__text" => "color: {{VALUE}}"]]); $this->end_controls_section(); } protected function getCategories() { $terms = get_terms(["taxonomy" => PostTypeController::getServiceCategoryTaxonomySlug(), "hide_empty" => true]); $options = []; if (!(!is_wp_error($terms) && !empty($terms))) { goto O075730384553; } goto O408739298114; O075730384553: goto O821594609136; O408739298114: goto O994865095912; O821594609136: goto O385060347187; O994865095912: foreach ($terms as $term) { $options[$term->term_id] = $term->name; O167704258057: O512634714166: O372165493872: O444711539779: O094001832618: } O981572636736: O220616374330: O591280057816: O579967912405: O966379972850: O385060347187: return $options; } protected function render() { $settings = $this->get_settings_for_display(); $selected_categories = $settings["service_selected_terms"]; $query_args = ["order_by" => $settings["services_order_by"] ?? "ID", "order" => $settings["services_order"] ?? "DESC", "posts_per_page" => $settings["services_posts_per_category"] ?? -1, "post_status" => $settings["services_post_status"] ?? "publish"]; $excluded_posts = $settings["services_excluded_posts"]; if (empty($excluded_posts)) { goto O592170363630; } goto O498165700203; O592170363630: goto O392046474665; O498165700203: goto O802799257928; O392046474665: goto O124978693773; O802799257928: $excluded_posts = explode(" ", $excluded_posts); $query_args["post__not_in"] = $excluded_posts; O124978693773: $categories_data = $this->getCategoryDetails($selected_categories, $query_args); $all_tabs_filter_text = $settings["services_all_tab_filter_text"]; $monthly_text = $settings["service_monthly_text"] ?? ''; $order_plan_text = $settings["service_order_plan_text"] ?? ''; $yearly_text = $settings["service_yearly_text"] ?? ''; $yearly_discount_text = $settings["service_discount_text"] ?? ''; $data_slider_id = $this->get_id(); $posts = []; echo "\xd
"; if (empty($categories_data)) { goto O517191768043; } goto O141729679901; O517191768043: goto O470305813564; O141729679901: goto O243927367322; O470305813564: goto O511143029604; O243927367322: echo " <div class="hl-pricing__plan__wrapper">
\xa <div class="hl-filter__pricing__plan">\xd\xa <ul class="hl-menu__pricing">\xd\xa <li class="hl-menu__item__pricing hl-filter__pricing__plan__button active"\xd
data-filter="*"\xd\xa data-slider-id=""; echo $data_slider_id; echo ""
\xa >\xd
"; echo esc_html($all_tabs_filter_text); echo " </li>
\xd\xa "; foreach ($categories_data as $category) { echo " <li class="hl-menu__item__pricing hl-filter__pricing__plan__button"
\xa data-filter=""; echo esc_html($category["term_id"]); echo ""\xd\xa data-slider-id=""; echo $data_slider_id; echo ""
>\xd
"; echo esc_html($category["name"]); echo " </li>
\xa\xd
"; $posts = array_merge($posts, $category["posts"]); echo " "; O215115543889: O123146018002: O304666834377: O871107249939: O636607291160: } O220538970363: O625536174324: O399056447407: O793301731328: O015814536964: echo "\xd\xa </ul>
\xa </div>
\xd
<div class="hl-main__pricing__plan swiper" data-slider-id=""; echo $data_slider_id; echo "">\xd
<div class="swiper-wrapper">\xd
"; foreach ($posts as $post) { $term_id = get_the_terms($post->ID, PostTypeController::getServiceCategoryTaxonomySlug())[0]->term_id; $icon = MetaboxController::getMetaValue("service-icon", true, "#", $post->ID); $icon_url = empty($icon["url"]) ? "#" : $icon["url"]; $currency_separator = MetaboxController::getMetaValue("service-currency-separator", true, ",", $post->ID); $external_url = MetaboxController::getMetaValue("service-link", true, "#", $post->ID); $currency = MetaboxController::getMetaValue("service-currency", true, ",", $post->ID); $monthly_price = number_format((float) MetaboxController::getMetaValue("service-monthly-price", true, "0", $post->ID), 0, '', $currency_separator); $yearly_price = number_format((float) MetaboxController::getMetaValue("service-yearly-price", true, "0", $post->ID), 0, '', $currency_separator); $yearly_discount = MetaboxController::getMetaValue("service-yearly-discount", true, "0", $post->ID); $repeater_values = MetaboxController::getMetaValue("service-attribute-repeater", true, '', $post->ID); $attributes = []; if (!(!empty($repeater_values["service-attr-title"]) && !empty($repeater_values["service-attr-desc"]) && count($repeater_values["service-attr-desc"]) == count($repeater_values["service-attr-title"]))) { goto O275409179380; } goto O907459787017; O275409179380: goto O663801024306; O907459787017: goto O410924511363; O663801024306: goto O277178268684; O410924511363: $attributes = array_map(function ($title, $description, $main) { return ["title" => $title, "description" => $description, "main" => $main]; }, $repeater_values["service-attr-title"], $repeater_values["service-attr-desc"], $repeater_values["service-attr-as-main"]); O277178268684: echo " <div class="hl-box__pricing__plan__controller swiper-slide"
data-category=""; echo esc_html($term_id); echo ""
data-slider-id=""; echo $data_slider_id; echo ""\xd\xa >
\xa <div class="hl-box__pricing__plan">\xd
<div class="hl-box__pricing__plan__img">\xd\xa
<img src=""; echo $icon_url; echo ""\xd\xa alt=""; echo esc_html($post->post_title); echo ""
>\xd
</div>
\xa <div class="hl-box__pricing__plan__title">\xd
<h6 class="hl-box__pricing__plan__title__text">
\xa "; echo esc_html($post->post_title); echo " </h6>\xd
</div>\xd
<div class="hl-box__pricing__plan__price">
<p class="hl-box__pricing__plan__price__text">
\xa \xd\xa "; echo $monthly_price; echo " </p>\xd\xa <div>\xd\xa <p class="hl-box__pricing__plan__price__currency">
"; echo $currency; echo " </p>\xd
<p class="hl-box__pricing__plan__price__date">\xd\xa "; echo $monthly_text; echo " </p>\xd
</div>\xd
</div>\xd\xa <div class="hl-box__pricing__plan__btn">
<a href=""; echo esc_html($external_url); echo ""\xd\xa class="hl-box__pricing__plan__btn__text"
>
\xa "; echo $order_plan_text; echo " </a>
</div>
<div class="hl-box__pricing__plan__table">\xd\xa <div class="hl-box__pricing__plan__th">\xd\xa <p>
\xa "; echo $yearly_text . " " . $yearly_discount . " " . $yearly_discount_text; echo " </p>
</div>\xd\xa <div class="hl-box__pricing__plan__td">\xd
<span class="hl-box__pricing__plan__td__Digit">\xd
"; echo $yearly_price; echo " </span>
\xa <span class="hl-box__pricing__plan__td__currency">\xd
"; echo $currency; echo " </span>\xd
</div>
</div>\xd\xa <hr class="hl-hr">\xd\xa <div class="hl-box__pricing__plan__option">\xd
\xa "; foreach ($attributes as $attribute) { echo " "; if (empty($attribute["main"])) { goto O354672723986; } goto O451355653707; O354672723986: goto O205176700160; O451355653707: goto O079366906731; O205176700160: goto O331127470426; O079366906731: echo " <div class="hl-box__pricing__plan__option__item">\xd
<div class="hl-box__pricing__plan__option__item__icon">
\xa "; Icons_Manager::render_icon($settings["service_attribute_icon"], ["aria-hidden" => "true"]); echo " </div>\xd\xa <div class="hl-box__pricing__plan__option__item__text">\xd
<p>\xd
"; echo $attribute["title"] . " : " . $attribute["description"]; echo " </p>
\xa </div>\xd
</div>
"; O331127470426: echo " "; O979131667907: O494312141899: O100911723575: O186371706104: O043039825500: } O523358016360: O581836144209: O324449550000: O360733444037: O338132623184: echo "\xd\xa </div>
</div>
\xa </div>
"; O460446503915: O620067522223: O534122344862: O778583743323: O947232939520: } O230133956882: O851017387001: O292440429111: O646795909266: O872422860971: echo " </div>\xd\xa </div>\xd
</div>
"; O511143029604: echo "
"; if (!Plugin::$instance->editor->is_edit_mode()) { goto O762374811734; } goto O675023416072; O762374811734: goto O965997933433; O675023416072: goto O250606981946; O965997933433: goto O959984231061; O250606981946: echo " <script>
\xa (function ($) {\xd
$(document).ready(function () {
\xa /**\xd\xa * PRICING PLAN SWIPER FILTER
\xa * */
if ($('.hl-pricing__plan__wrapper').length > 0) {\xd\xa $('.hl-pricing__plan__wrapper').each(function () {\xd
// Initialize Swiper
\xa var hl_pricing_plan_swiper = new Swiper('.hl-main__pricing__plan', {\xd
slidesPerView: 1.2,
\xa spaceBetween:5,
\xa observer: true,\xd
observeParents: true,
\xa breakpoints: {\xd\xa 0: {
slidesPerView: 1.2,
\xa spaceBetween: \xd
},\xd
68: {
\xa slidesPerView: 2,
spaceBetween:0
\xa },
990: {\xd\xa slidesPerView: 3,
spaceBetween:
\xa },\xd\xa 14: {
\xa slidesPerView: 4,\xd
spaceBetween:
\xa }\xd
\xd
}\xd\xa });\xd
// Filter functionality
\xa $('.hl-filter__pricing__plan__button').click(function () {
let hl_pricing_plan_slider_id = $(this).attr('data-slider-id');\xd
let filter = $(this).attr('data-filter');
\xa $('.hl-filter__pricing__plan__button[data-slider-id="' + hl_pricing_plan_slider_id + '"]').removeClass('active');
$(this).addClass('active');\xd
\xd\xa $('.hl-box__pricing__plan__controller[data-slider-id="' + hl_pricing_plan_slider_id + '"]').each(function () {
let category = $(this).attr('data-category');\xd\xa if (filter === '*' || category === filter) {
$(this).show();\xd
$(this).addClass('swiper-slide');\xd\xa } else {\xd
$(this).hide();\xd\xa $(this).removeClass('swiper-slide');\xd\xa }\xd\xa });
hl_pricing_plan_swiper = new Swiper('.hl-main__pricing__plan[data-slider-id="' + hl_pricing_plan_slider_id + '"]', {\xd
slidesPerView: 1.2,\xd\xa spaceBetween: ,\xd\xa observer: true,\xd
observeParents: true,\xd\xa breakpoints: {\xd
0: {\xd\xa slidesPerView: 1.2,\xd
spaceBetween: 20\xd
},\xd\xa 768: {\xd
slidesPerView: 2,
\xa spaceBetween: 20\xd
},\xd\xa 990: {
slidesPerView: 3,\xd\xa spaceBetween:0\xd
},\xd
400: {
\xa slidesPerView: 4,\xd
spaceBetween:5\xd
}
\xa }\xd\xa });\xd
hl_pricing_plan_swiper.slideTo(0);\xd
});\xd
});
\xa }\xd
})
\xa })(jQuery)
</script>\xd
"; O959984231061: echo " "; } protected function getCategoryDetails($categories, $args = []) { $categories_data = []; $post_type_slug = PostTypeController::getServicePostTypeSlug(); $post_type_taxonomy_slug = PostTypeController::getServiceCategoryTaxonomySlug(); if (empty($categories)) { goto O245467356133; } goto O806780388255; O245467356133: goto O786157996693; O806780388255: goto O884380030581; O786157996693: goto O912560606251; O884380030581: foreach ($categories as $category_id) { $category_detail = get_term($category_id, $post_type_taxonomy_slug, ARRAY_A); $custom_query_args = ["post_type" => $post_type_slug, "tax_query" => [["taxonomy" => $post_type_taxonomy_slug, "field" => "term_id", "terms" => $category_id]]]; $custom_query_args = array_merge($custom_query_args, $args); $query_result = new WP_Query($custom_query_args); if (!(empty($category_detail) || is_wp_error($category_detail) || is_wp_error($query_result) || !$query_result->have_posts())) { goto O841399086416; } goto O042106058230; O841399086416: goto O465181878434; O042106058230: goto O672637691349; O465181878434: goto O125448067687; O672637691349: goto O458956587769; O125448067687: $category_detail = array_merge($category_detail, ["posts" => $query_result->posts]); array_push($categories_data, $category_detail); O458956587769: O009264471844: O101022841021: O151506707530: O292330206152: } O319257317652: O804668282622: O657979691287: O465812489918: O004669310642: O912560606251: return $categories_data; } }
© 2023 Quttera Ltd. All rights reserved.