PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-pro
/
modules
/
elementor
/
includes
/
Widgets
<?php namespace WeDevs\DokanPro\Modules\Elementor\Widgets; use WeDevs\DokanPro\Modules\Elementor\Traits\PositionControls; use Elementor\Widget_Heading; class StoreName extends Widget_Heading { use PositionControls; /** * Widget name * * @since 2.9.11 * * @return string */ public function get_name() { return 'dokan-store-name'; } /** * Widget title * * @since 2.9.11 * * @return string */ public function get_title() { return __( 'Store Name', 'dokan' ); } /** * Widget icon class * * @since 2.9.11 * * @return string */ public function get_icon() { return 'eicon-site-title'; } /** * Widget categories * * @since 2.9.11 * * @return array */ public function get_categories() { return [ 'dokan-store-elements-single' ]; } /** * Widget keywords * * @since 2.9.11 * * @return array */ public function get_keywords() { return [ 'dokan', 'store', 'vendor', 'name', 'heading' ]; } /** * Register widget controls * * @since 2.9.11 * * @return void */ protected function _register_controls() { parent::_register_controls(); $this->update_control( 'title', [ 'dynamic' => [ 'default' => dokan_elementor()->elementor()->dynamic_tags->tag_data_to_tag_text( null, 'dokan-store-name-tag' ), ], ], [ 'recursive' => true, ] ); $this->update_control( 'header_size', [ 'default' => 'h1', ] ); $this->remove_control( 'link' ); $this->add_position_controls(); } /** * Set wrapper classes * * @since 2.9.11 * * @return void */ protected function get_html_wrapper_class() { return parent::get_html_wrapper_class() . ' dokan-store-name elementor-page-title elementor-widget-' . parent::get_name(); } /** * Frontend render method * * @since 2.9.11 * * @return void */ protected function render() { $this->add_render_attribute( 'title', 'class', [ 'entry-title' ] ); parent::render(); } /** * Elementor builder content template * * @since 2.9.11 * * @return void */ protected function _content_template() { ?> <# settings.link = {url: ''}; view.addRenderAttribute( '_wrapper', 'class', [ 'dokan-store-name' ] ); view.addRenderAttribute( 'title', 'class', [ 'entry-title' ] ); #> <?php parent::_content_template(); } /** * Render widget plain content * * @since 2.9.11 * * @return void */ public function render_plain_content() {} }
[+]
..
[-] StoreTabItems.php
[edit]
[-] StoreSocialProfile.php
[edit]
[-] StoreFollowButton.php
[edit]
[-] StoreTabContents.php
[edit]
[-] StoreLiveChatButton.php
[edit]
[-] StoreInfo.php
[edit]
[-] StoreShareButton.php
[edit]
[-] StoreProfilePicture.php
[edit]
[-] StoreCoupons.php
[edit]
[-] StoreVacationMessage.php
[edit]
[-] StoreBanner.php
[edit]
[-] StoreSupportButton.php
[edit]
[-] StoreName.php
[edit]