wpcap_content_layout_options(); $this->wpcap_content_design_options(); } /** * Content Layout Options. */ private function wpcap_content_layout_options() { $this->start_controls_section( 'section_layout', [ 'label' => esc_html__('Layout', 'fieldday'), ] ); $this->add_control( 'session_layout', [ 'label' => __('View', 'fieldday'), 'type' => Controls_Manager::SELECT, 'options' => [ '1' => __('1 Column view', 'fieldday'), '2' => __('2 Columns view', 'fieldday'), '3' => __('3 Colums view', 'fieldday'), '4' => __('4 Columns view', 'fieldday'), '5' => __('5 Columns view', 'fieldday'), '6' => __('6 Columns view', 'fieldday') ], 'default' => '3' ] ); $this->add_control( 'purchase_text', [ 'label' => __('Purchase Button Text', 'fieldday'), 'type' => Controls_Manager::TEXT, 'default' => __('Purchase', 'fieldday'), ] ); $this->add_control( 'timeamount_layout', [ 'label' => __('Show CreditAmount', 'fieldday'), 'type' => Controls_Manager::SELECT, 'options' => [ '1' => __('Hours', 'fieldday'), '2' => __('Minutes', 'fieldday'), ], 'default' => '1' ] ); $this->end_controls_section(); } private function wpcap_content_design_options() { $this->start_controls_section( 'section_design_options', [ 'label' => __('Design Options', 'elementor'), ] ); $this->add_control( 'event_list_title', [ 'label' => __('Membership Lists Title', 'elementor'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .km_featured_membershipsession_tilte' => 'color: {{VALUE}};', ] ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'event_list_title_design', 'label' => __('Membership Lists Title Typography', 'fieldday'), //'scheme' => Typography::TYPOGRAPHY_1, 'selector' => '{{WRAPPER}} .km_featured_membershipsession_tilte', ] ); $this->add_control( 'event_title_color', [ 'label' => __('List Content', 'elementor'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .membership_section span' => 'color: {{VALUE}};', ] ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'event_list_content_design', 'label' => __('List Content Typography', 'fieldday'), //'scheme' => Typography::TYPOGRAPHY_1, 'selector' => '{{WRAPPER}} .membership_section span', ] ); $this->add_responsive_control( 'align', [ 'label' => __('Alignment', 'elementor'), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __('Left', 'elementor'), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => __('Center', 'elementor'), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => __('Right', 'elementor'), 'icon' => 'eicon-text-align-right', ], 'justify' => [ 'title' => __('Justified', 'elementor'), 'icon' => 'eicon-text-align-justify', ], ], 'selectors' => [ '{{WRAPPER}} .km_featured_membershipsession_content' => 'text-align: {{VALUE}};', ], ] ); $this->end_controls_section(); } private function membershipList() { $membership = fieldday()->api->homeMemberActivities(); return $membership->data; } private function displayFeatureImage($session) { $featuredImg = fieldday()->engine->getValue('image', $session, false); $thumburl = fieldday()->engine->getValue('thumbnail', $featuredImg, false); if ($thumburl) { return wp_sprintf('