Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/www/curators/wp-content/plugins/select-core/shortcodes/process/ |
Upload File : |
<?php
namespace MixtapeQode\Modules\Shortcodes\Process;
use MixtapeQode\Modules\Shortcodes\Lib\ShortcodeInterface;
class ProcessHolder implements ShortcodeInterface {
private $base;
public function __construct() {
$this->base = 'qodef_process_holder';
add_action('vc_before_init', array($this, 'vcMap'));
}
public function getBase() {
return $this->base;
}
public function vcMap() {
vc_map(array(
'name' => esc_html__('Process', 'mixtapewp'),
'base' => $this->getBase(),
'as_parent' => array('only' => 'qodef_process_item'),
'content_element' => true,
'show_settings_on_create' => true,
'category' => esc_html__('by SELECT', 'mixtapewp'),
'icon' => 'icon-wpb-process-holder extended-custom-icon',
'js_view' => 'VcColumnView',
'params' => array(
array(
'type' => 'dropdown',
'param_name' => 'number_of_items',
'heading' => esc_html__('Number of Process Items', 'mixtapewp'),
'value' => array(
esc_html__('Three', 'mixtapewp') => 'three',
esc_html__('Four', 'mixtapewp') => 'four',
esc_html__('Five', 'mixtapewp') => 'five'
),
'admin_label' => true,
'description' => ''
)
)
));
}
public function render($atts, $content = null) {
$default_atts = array(
'number_of_items' => 'three'
);
$params = shortcode_atts($default_atts, $atts);
$params['content'] = $content;
$params['holder_classes'] = array(
'qodef-process-holder',
'qodef-process-holder-items-'.$params['number_of_items']
);
return qodef_core_get_shortcode_template_part('templates/process-holder-template', 'process', '', $params);
}
}