Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
start_controls_section( 'general_style_section', array( 'label' => esc_html__( 'General', 'woodmart' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); $this->add_control( 'css_classes', array( 'type' => 'wd_css_class', 'default' => 'wd-page-title-el', 'prefix_class' => '', ) ); $this->add_control( 'full_width', array( 'label' => esc_html__( 'Full width', 'woodmart' ), 'type' => Controls_Manager::SWITCHER, 'default' => '', ) ); $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { $settings = wp_parse_args( $this->get_settings_for_display(), array( 'enable_title' => 'yes', 'enable_breadcrumbs' => 'yes', 'enable_categories' => 'yes', 'full_width' => '', ) ); $title_classes = ''; if ( $settings['full_width'] ) { $title_classes .= ' wd-section-stretch'; } Builder_Data::get_instance()->set_data( 'builder', true ); Builder_Data::get_instance()->set_data( 'title_classes', $title_classes ); Builder_Data::get_instance()->set_data( 'layout_id', get_the_ID() ); Main::setup_preview(); woodmart_enqueue_inline_style( 'el-page-title-builder' ); if ( is_product_taxonomy() || is_shop() || is_product_category() || is_product_tag() || woodmart_is_product_attribute_archive() ) { woodmart_enqueue_inline_style( 'woo-shop-page-title' ); if ( ! woodmart_get_opt( 'shop_title' ) ) { woodmart_enqueue_inline_style( 'woo-shop-opt-without-title' ); } if ( woodmart_get_opt( 'shop_categories' ) ) { woodmart_enqueue_inline_style( 'shop-title-categories' ); woodmart_enqueue_inline_style( 'woo-categories-loop-nav-mobile-accordion' ); } } woodmart_page_title(); Main::restore_preview(); } } // Register the widget only once. Plugin::instance()->widgets_manager->register( new Page_Title() ); } // End if class_exists check.
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)