HEX
Server: Apache
System: Linux webm020.cluster128.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: thanexcelr (29537)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/thanexcelr/www/wp-content/plugins/2j-slideshow/inc/options/size.php
<?php
/*  
 * 2J SlideShow		http://2joomla.net/wordpress
 * Version:           1.3.12 - 85273
 * Author:            2J Team (c)
 * Author URI:        http://2joomla.net/wordpress
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Date:              Sat, 28 Jan 2017 14:08:08 GMT
 */

$size_metabox = new_cmb2_box( array(
    'id' 			=> TWOJ_SLIDESHOW_PREFIX . 'size_metabox',
    'title' 		=> __('Size Slideshow' , 'twoj_slideshow' ),
    'object_types' 	=> array( TWOJ_SLIDESHOW_TYPE_POST ),
    'cmb_styles' 	=> false,
    'show_names'	=> false,
    'context' 		=> 'normal',
    'priority' 		=> 'high',
    'closed'        => twoj_slideshow_set_checkbox_default_for_new_post(0),
));

$size_metabox->add_field( array('type' => 'toolbox'));

$size_metabox->add_field( array(
	'name' 			=> __('Size ', 'twoj_slideshow'),
	'id' 			=> TWOJ_SLIDESHOW_PREFIX . 'size',
	'type' 			=> 'multisize',
	'default'		=> array( 'width'=> 100, 'widthType'=>'1', 'height'=> '', 'heightType'=>'0'),
	'bootstrap_style'=> 1,
	'before_row' 	=> ' <br />
<div class="twoj_block">'
	//'level'			=> !TWOJ_SLIDESHOW_PRO,	
));

$size_metabox->add_field( array(
	'name' 			=> __('Min Size ', 'twoj_slideshow'),
	'id' 			=> TWOJ_SLIDESHOW_PREFIX . 'minsize',
	'type' 			=> 'multisize',
	'default'		=> array( 'width'=> 300, 'widthType'=>'0', 'height'=> '', 'heightType'=>'0'),
	'bootstrap_style'=> 1,
	//'level'			=> !TWOJ_SLIDESHOW_PRO,	
));

$size_metabox->add_field( array(
	'name' 			=> __('Max Size ', 'twoj_slideshow'),
	'id' 			=> TWOJ_SLIDESHOW_PREFIX . 'maxsize',
	'type' 			=> 'multisize',
	'default'		=> array( 'width'=> 100, 'widthType'=>'1', 'height'=> '', 'heightType'=>'0'),
	'bootstrap_style'=> 1,
	//'level'			=> !TWOJ_SLIDESHOW_PRO,
	
));

$size_metabox->add_field( array(
    'name'    => __('Ratio','twoj_slideshow'),
    'default' => '800/600',
    'small'   => 1,
    'id'	  => TWOJ_SLIDESHOW_PREFIX .'ratio',
    'type'    => 'twojtext',
    'desc' 	  => '[ example 4/3 or 16/9]'
));

$size_metabox->add_field( array(
    'name'    	=> __(' Image Fit','twoj_slideshow'),
    'default' 	=> 'contain',
    'options'	=> array( 
    		'contain' 	=> 'contain' , 
    		'cover'		=> 'cover' , 
    		'scaledown' => 'scaledown' ,
    		'none' 		=> 'none' ,
    	),
    'id'	  	=> TWOJ_SLIDESHOW_PREFIX .'fit',
    'type'    	=> 'twojselectbutton',
));

$size_metabox->add_field( array(
	'name' 			=> __('Images Space', 'twoj_slideshow' ),
	'id' 			=> TWOJ_SLIDESHOW_PREFIX . 'margin',
	'type' 			=> 'slider',
	'bootstrap_style'=> 1,
	'default'		=> twoj_slideshow_set_checkbox_default_for_new_post(2),
	'min'			=> 0,
	'max'			=> 200,
	'addons'		=> 'px.',
));

$size_metabox->add_field( array(
	'name' 			=> __('Thumb Space', 'twoj_slideshow' ),
	'id' 			=> TWOJ_SLIDESHOW_PREFIX . 'thumbmargin',
	'type' 			=> 'slider',
	'bootstrap_style'=> 1,
	'default'		=> twoj_slideshow_set_checkbox_default_for_new_post(2),
	'min'			=> 0,
	'max'			=> 50,
	'addons'		=> 'px.',
	'after_row' 	=> '
</div>',
));