| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/plugins/visualcomposer/visualcomposer/Helpers/Hub/ |
Upload File : |
<?php
namespace VisualComposer\Helpers\Hub;
if (!defined('ABSPATH')) {
header('Status: 403 Forbidden');
header('HTTP/1.1 403 Forbidden');
exit;
}
use VisualComposer\Framework\Illuminate\Support\Helper;
class Groups implements Helper
{
public function getGroups()
{
return [
'Basic' => [
'title' => 'Basic',
'categories' => [
'Row',
'Text block',
// 'Single image',
'Empty Space',
'Feature',
'Feature section',
'Hero section',
// BC:
'Basic Button',
'Outline Button',
'WordPress Basic',
'Widgetized Sidebar',
'Basic Call To Action',
'FAQ Toggle',
'Separator',
'Social Profile Icons',
'Misc Basic',
'Simple Image Slider',
'Message Box Basic',
'Social Videos',
],
'elements' => [
'basicButton',
'outlineButton',
'singleImage',
'shortcode',
'wpWidgetsCustom',
'wpWidgetsDefault',
'widgetizedSidebar',
'callToAction',
'faqToggle',
'separator',
'socialProfileIcons',
'rawHtml',
'rawJs',
'globalTemplate',
'simpleContactForm',
'basicMenu',
'icon',
'imageGallery',
'imageMasonryGallery',
'simpleImageSlider',
'messageBox',
'youtubePlayer',
'vimeoPlayer',
],
],
'Media' => [
'title' => 'Media',
'categories' => [
'Single image',
'Image gallery',
'Videos',
// BC:
'Banner Element',
'Giphy',
'Images',
'Instagram Image',
'Flip Box',
'Icon Hover Box',
'Tall Hover Box',
'Image Masonry Gallery',
'Image sliders',
'Multiple Image Collage',
'Simple Image Slider',
'Image Galleries',
'Timeline Slideshow',
'Social Videos',
],
'elements' => [
'bannerElement',
'instagramImage',
'flipBox',
'iconHoverBox',
'tallHoverBox',
'simpleImageSlider',
'timelineSlideshow',
],
],
'Buttons' => [
'title' => 'Buttons',
'categories' => [
'Button',
// BC:
'Basic Button',
'Buttons',
'Button Group',
'Outline Button',
],
'elements' => [],
],
'E-Commerce' => [
'title' => 'E-Commerce',
'categories' => [
'WooCommerce',
'Pricing table',
],
'elements' => [],
],
'Containers' => [
'title' => 'Containers',
'categories' => [
'Row',
'Column',
'Section',
'Accordions',
'Tabs',
],
'elements' => [],
],
'Theme Builder' => [
'title' => 'Theme Builder',
'categories' => [
'Theme Builder',
],
'elements' => [],
],
'Social' => [
'title' => 'Social',
'categories' => [
'Maps',
'Social',
// BC:
'Add To Any Share Buttons',
'Instagram Image',
'Social Profile Icons',
],
'elements' => [
'addToAnyShareButtons',
],
],
'Integrations' => [
'title' => 'Integrations',
'categories' => [
'Maps',
// BC:
'Soundcloud Player',
'Giphy',
],
'elements' => [
'giphy',
'soundcloudPlayer',
'advancedCustomFields',
'calderaForms',
'captainForm',
'contactForm7',
'enviraGallery',
'essentialGrid',
'eventOnCalendar',
'gravityForms',
'gutenberg',
'mailChimpForWordPress',
'layerSlider',
'nextGenGallery',
'wpDataTables',
'ninjaForms',
'sliderRevolution',
'translatePressLanguageSwitcher',
'wpForms',
'hubSpotForms',
],
],
'Menus' => [
'title' => 'Menus',
'categories' => [
// BC
'Menus',
'Link Dropdown',
],
'elements' => [
'basicMenu',
'sandwichMenu',
'sandwichSideMenu',
'sidebarMenu',
'verticalSandwichMenu',
'linkDropdown',
],
],
'Post Grids' => [
'title' => 'Post Grids',
'categories' => [
'Grids',
],
'elements' => [],
],
];
}
public function setGroups($groups = [])
{
$optionHelper = vchelper('Options');
return $optionHelper->set('hubGroups', $groups);
}
public function updateGroup($key, $prev, $new, $merged)
{
$dataHelper = vchelper('Data');
if (!empty($prev)) {
if (isset($new['categories']) && is_array($new['categories']) && isset($prev['categories'])) {
$merged['categories'] = array_values(
$dataHelper->arrayDeepUnique(array_merge($prev['categories'], $new['categories']))
);
}
}
return $merged;
}
}