=> G5P()->pluginUrl('assets/images/theme-options/blog-large-image.png'), ), 'medium-image' => array( 'label' => esc_html__('Medium Image', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-medium-image.png'), ), 'medium-image-2' => array( 'label' => esc_html__('Medium Image 2', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-medium-image-2.png'), ), 'grid' => array( 'label' => esc_html__('Grid', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-grid.png'), ), 'grid-2' => array( 'label' => esc_html__('Grid 2', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-grid-2.png'), ), 'tall-1' => array( 'label' => esc_html__('Tall 1', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-tall-1.png'), ), 'tall-2' => array( 'label' => esc_html__('Tall 2', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-tall-2.png'), ), 'tall-3' => array( 'label' => esc_html__('Tall 3', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/blog-tall-3.png'), ), )); if ($inherit) { $config = array( '-1' => array( 'label' => esc_html__('Default', 'ruby-build-framework'), 'img' => G5P()->pluginUrl('assets/images/theme-options/default.png'), ), ) + $config; } return $config; } public function get_column_responsive($dependency = array()) { $responsive = array( array( 'type' => 'dropdown', 'heading' => esc_html__('Large Devices', 'ruby-build-framework'), 'description' => esc_html__('Browser Width >= 1200px', 'ruby-build-framework'), 'param_name' => 'columns', 'value' => G5P()->settings()->get_post_columns(), 'std' => 3, 'group' => esc_html__('Responsive', 'ruby-build-framework'), 'dependency' => $dependency ), array( 'type' => 'dropdown', 'heading' => esc_html__('Medium Devices', 'ruby-build-framework'), 'param_name' => 'columns_md', 'description' => esc_html__('Browser Width < 1200px', 'ruby-build-framework'), 'value' => G5P()->settings()->get_post_columns(), 'std' => 2, 'group' => esc_html__('Responsive', 'ruby-build-framework'), 'dependency' => $dependency ), array( 'type' => 'dropdown', 'heading' => esc_html__('Small Devices', 'ruby-build-framework'), 'param_name' => 'columns_sm', 'description' => esc_html__('Browser Width < 992px', 'ruby-build-framework'), 'value' => G5P()->settings()->get_post_columns(), 'std' => 2, 'group' => esc_html__('Responsive', 'ruby-build-framework'), 'dependency' => $dependency ), array( 'type' => 'dropdown', 'heading' => esc_html__('Extra Small Devices', 'ruby-build-framework'), 'param_name' => 'columns_xs', 'description' => esc_html__('Browser Width < 768px', 'ruby-build-framework'), 'value' => G5P()->settings()->get_post_columns(), 'std' => 1, 'group' => esc_html__('Responsive', 'ruby-build-framework'), 'dependency' => $dependency ), array( 'type' => 'dropdown', 'heading' => esc_html__('Extra Extra Small Devices', 'ruby-build-framework'), 'param_name' => 'columns_mb', 'description' => esc_html__('Browser Width < 600px', 'ruby-build-framework'), 'value' => G5P()->settings()->get_post_columns(), 'std' => 1, 'group' => esc_html__('Responsive', 'ruby-build-framework'), 'dependency' => $dependency ) ); return $responsive; } /** * @param array $args * @return array */ public function vc_map_add_autoplay_enable($args = array()) { $default = array( 'type' => 'gsf_switch', 'heading' => esc_html__('Autoplay Enable', 'ruby-build-framework'), 'param_name' => 'autoplay', 'std' => '', 'edit_field_class' => 'vc_col-sm-6 vc_column' ); $default = array_merge($default, $args); return $default; } /** * @param array $args * @return array */ public function vc_map_add_autoplay_timeout($args = array()) { $default = array( 'type' => 'gsf_number', 'heading' => esc_html__('Autoplay Timeout', 'ruby-build-framework'), 'param_name' => 'autoplay_timeout', 'std' => '5000', 'edit_field_class' => 'vc_col-sm-6 vc_column', 'dependency' => array('element' => 'autoplay', 'value' => 'on') ); $default = array_merge($default, $args); return $default; } } }