/
/
home
/
melaqxso
/
public_html
/
wp-content
/
plugins
/
hub-core
/
shortcodes
/
milestone
Server: server63.web-hosting.com (198.54.116.184)
You: 216.73.216.61
PHP 7.4.33
Dir:
/home/melaqxso/public_html/wp-content/plugins/hub-core/shortcodes/milestone
Edit:
/home/melaqxso/public_html/wp-content/plugins/hub-core/shortcodes/milestone/liquid-milestone.php
<?php /** * Shortcode Milestone */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly /** * LD_Shortcode */ class LD_Milestone extends LD_Shortcode { /** * [__construct description] * @method __construct */ public function __construct() { // Properties $this->slug = 'ld_milestone'; $this->title = esc_html__( 'Milestone box', 'landinghub-core' ); $this->icon = 'la la-list-ol'; $this->description = esc_html__( 'Create milestone box.', 'landinghub-core' ); parent::__construct(); } public function get_params() { $params = array( array( 'id' => 'title', 'edit_field_class' => 'vc_column-with-padding vc_col-sm-6', ), array( 'type' => 'textfield', 'param_name' => 'date', 'heading' => esc_html__( 'Date/Time', 'landinghub-core' ), 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'textarea_html', 'param_name' => 'content', 'heading' => esc_html__( 'Text', 'landinghub-core' ), 'holder' => 'div', ), ); $design = array( array( 'type' => 'liquid_colorpicker', 'param_name' => 'primary_color', 'only_solid' => true, 'heading' => esc_html__( 'Primary Color', 'landinghub-core' ), 'description' => esc_html__( 'Pick a custom color for the date/time color', 'landinghub-core' ), 'group' => esc_html__( 'Design Options', 'landinghub-core' ), ) ); $this->params = array_merge( $params, $design ); $this->add_extras(); } protected function get_title() { if( empty( $this->atts[ 'title' ] ) ) { return; } printf( '<h5 class="text-uppercase">%s</h5>', esc_html( $this->atts['title'] ) ); } protected function get_content() { // check if( empty( $this->atts['content'] ) ) { return ''; } $content = ld_helper()->do_the_content( $this->atts['content'] ); echo $content; } protected function get_time() { if( empty( $this->atts[ 'date' ] ) ) { return; } printf( '<div class="liquid-milestone-time h3 mt-0"><span>%s</span></div>', esc_html( $this->atts['date'] ) ); } protected function generate_css() { extract( $this->atts ); $elements = array(); $id = '.' . $this->get_id(); if( ! empty( $primary_color ) ) { $elements[ liquid_implode( '%1$s .liquid-milestone-time' ) ]['color'] = esc_attr( $primary_color ); } $this->dynamic_css_parser( $id, $elements ); } } new LD_Milestone;
Ukuran: 2.4 KB