Файловый менеджер - Редактировать - /home/digitalm/birramastro/wp-content/plugins/lt-ext/shortcodes/gallery/gallery.php
Назад
<?php if ( ! defined( 'ABSPATH' ) ) die( 'Forbidden' ); /** * Shortcode Gallery */ // Shortcode fields configuration if ( !function_exists( 'ltx_vc_gallery_params' ) ) { function ltx_vc_gallery_params() { $cat = ltxGetGalleryPosts(); $fields = array( array( "param_name" => "layout", "heading" => esc_html__("Layout", 'lt-ext'), "std" => "masonry", "value" => array( esc_html__('Small Images', 'lt-ext') => 'grid', esc_html__('Large Images', 'lt-ext') => 'grid-big', ), "type" => "dropdown" ), array( "param_name" => "cat", "heading" => esc_html__("Gallery", 'lt-ext'), "value" => $cat, "type" => "dropdown" ), array( "param_name" => "limit", "heading" => esc_html__("Limit", 'lt-ext'), "std" => "8", "admin_label" => true, "type" => "textfield" ), ); return $fields; } } // Add Wp Shortcode if ( !function_exists( 'like_sc_gallery' ) ) { function like_sc_gallery($atts, $content = null) { $atts = like_sc_atts_parse('like_sc_gallery', $atts, array_merge( array( 'limit' => '8', 'cat' => '', 'layout' => 'grid', ), array_fill_keys(array_keys(ltx_vc_default_params()), null) ) ); return like_sc_output('gallery', $atts, $content); } if (ltx_vc_inited()) add_shortcode("like_sc_gallery", "like_sc_gallery"); } // Adding shortcode to VC if (!function_exists('ltx_vc_gallery_add')) { function ltx_vc_gallery_add() { vc_map( array( "base" => "like_sc_gallery", "name" => esc_html__("Gallery Photos", 'lt-ext'), "description" => esc_html__("Last photos from LTx Gallery", 'lt-ext'), "class" => "like_sc_gallery", "icon" => ltxGetPluginUrl('/shortcodes/gallery/gallery.png'), "show_settings_on_create" => true, "category" => esc_html__('LTX-Themes', 'lt-ext'), 'content_element' => true, "params" => array_merge( ltx_vc_gallery_params(), ltx_vc_default_params() ) ) ); } if (ltx_vc_inited()) add_action('vc_before_init', 'ltx_vc_gallery_add', 30); }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка