https://t.me/AnonymousX5
Server : Apache/2
System : Linux vps.sdns.vn 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64
User : phatdatpq ( 1022)
PHP Version : 7.2.34
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/phatdatpq/public_html/wp-content/themes/flatsome/inc/builder/core/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/phatdatpq/public_html/wp-content/themes/flatsome/inc/builder/core/shortcodes/gallery.php
<?php

$size_names = apply_filters( 'image_size_names_choose', array(
	'thumbnail' => __( 'Thumbnail' ),
	'medium' => __( 'Medium' ),
	'large' => __( 'Large' ),
	'full' => __( 'Full Size' ),
) );

add_ux_builder_shortcode( 'gallery', array(
    'name' => __( 'WP Gallery','ux-builder'),
    'image' => '',
    'category' => __( 'Content' ),
    'presets' => array(
        array(
            'name' => __( 'Default' ),
            'content' => '[gallery]'
        ),
    ),

    'options' => array(
      /*'id' => array(
        'type' => 'select',
        'heading' => __( 'Post' ),
        'descrition' => __( 'The gallery will display images which are attached to that post.' ),
        'config' => array(
          'placeholder' => __( 'Select..' ),
          'postSelect' => array(),
        )
      ), */
      'ids' => array(
        'type' => 'gallery',
        'heading' => __( 'Images' ),
      ),
      'orderby' => array(
        'type' => 'select',
        'heading' => __( 'Order by' ),
        'default' => 'menu_order',
        'options' => array(
          'menu_order' => __( 'Custom' ),
          'title' => __( 'Image title' ),
          'ID' => __( 'Image ID' ),
          'post_date' => __( 'Date/time' ),
          'rand' => __( 'Randomly' ),
        ),
      ),
      'order' => array(
        'type' => 'select',
        'heading' => __( 'Sort order' ),
        'default' => 'ASC',
        'options' => array(
          'ASC' => __( 'Ascending' ),
          'DESC' => __( 'Descending' ),
        ),
      ),
      'columns' => array(
        'type' => 'select',
        'heading' => __( 'Columns' ),
        'default' => '3',
        'options' => array(
          '1' => __( '1' ),
          '2' => __( '2' ),
          '3' => __( '3' ),
          '4' => __( '4' ),
          '5' => __( '5' ),
          '6' => __( '6' ),
          '7' => __( '7' ),
          '8' => __( '8' ),
         ),
      ),
      'size' => array(
        'type' => 'select',
        'heading' => __( 'Image size' ),
        'default' => 'thumbnail',
        'options' => $size_names,
      ),
      'link' => array(
        'type' => 'select',
        'heading' => __( 'Link to' ),
        'default' => 'post',
        'options' => array(
          'post' => __( 'Attachment page' ),
          'file' => __( 'Media file' ),
          'none' => __( 'None' ),
        ),
      ),
      'itemtag' => array(
        'type' => 'textfield',
        'heading' => __( 'Item tag' ),
        'placeholder' => 'dl',
      ),
      'icontag' => array(
        'type' => 'textfield',
        'heading' => __( 'Icon tag' ),
        'placeholder' => 'dt',
      ),
      'captiontag' => array(
        'type' => 'textfield',
        'heading' => __( 'Caption tag' ),
        'placeholder' => 'dd',
      ),
      'include' => array(
        'type' => 'textfield',
        'heading' => __( 'Include IDs' ),
      ),
      'exclude' => array(
        'type' => 'textfield',
        'heading' => __( 'Exclude IDs' ),
      ),
    ),
) );

https://t.me/AnonymousX5 - 2025