芝麻web文件管理V1.00
编辑当前文件:/home/provyohx/public_html/components__c0c73d1/com_sppagebuilder/addons/image/admin.php
'content', 'addon_name' => 'image', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_DESC'), 'category' => 'Media', 'icon' => '
', 'settings' => [ 'content' => [ 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_CONTENT'), 'fields' => [ 'image' => [ 'type' => 'media', 'hide_alt_text' => true, 'std' => [ 'src' => 'https://sppagebuilder.com/addons/image/image1.jpg', 'height' => '', 'width' => '', 'alt' => '' ], ], 'image_2x' => [ 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_IMAGE_2X_TEXT'), 'desc' => Text::_('COM_SPPAGEBUILDER_GLOBAL_IMAGE_2X_TEXT_DESC'), 'type' => 'media', 'hide_preview' => true, 'hide_alt_text' => true, 'std' => [ 'src' => '', 'height' => '', 'width' => '', ], ], 'alt_text' => [ 'type' => 'text', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_ALT_TEXT'), 'desc' => Text::_('COM_SPPAGEBUILDER_GLOBAL_ALT_TEXT_DESC'), 'std' => 'Image', 'inline' => true, ], 'image_title' => [ 'type' => 'text', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_TITLE'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_TITLE_DESC'), 'std' => '', ], 'image_fit' => [ 'type' => 'select', 'title' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT'), 'std' => '', 'desc' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT_DESC'), 'values' => [ 'none' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT_NONE'), 'cover' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT_COVER'), 'contain' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT_CONTAIN'), 'fill' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT_FILL'), 'scale-down' => Text::_('COM_SPPAGEBUILDER_COLLECTION_THUMBNAIL_IMAGE_FIT_SCALE_DOWN'), ], ], 'position' => [ 'type' => 'alignment', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_ALIGNMENT'), 'responsive' => true, 'available_options' => ['left', 'center', 'right'], ], ], ], 'image_shape' => [ 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_SHAPE'), 'fields' => [ 'is_image_shape_enabled' => [ 'type' => 'checkbox', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_SHAPE'), 'std' => 0, 'is_header' => 1 ], 'image_shape' => [ 'type' => 'image_shape', 'columns' => 3, 'values' => [ 'circle' => ['svg' => '
'], 'quarter_slice' => ['svg' => '
'], 'half_circle' => ['svg' => '
'], 'bevel' => ['svg' => '
'], 'star' => ['svg' => '
'], 'pentagon' => ['svg' => '
'], 'right_point' => ['svg' => '
'], 'triangle' => ['svg' => '
'], 'trapezoid' => ['svg' => '
'], 'right_chevron' => ['svg' => '
'], 'right_arrow' => ['svg' => '
'], 'rabbet' => ['svg' => '
'], ], 'std' => '', 'depends' => [ ['is_image_shape_enabled', '=', 1] ] ], 'image_shape_scale' => [ 'type' => 'slider', 'title' => 'Scale Shape', 'min' => 0, 'max' => 10, 'step' => 0.1, 'std' => 1.2, 'depends' => [ ['is_image_shape_enabled', '=', 1], ['image_shape', '!=', ''], ['image_shape', '!=', 'circle'], ['image_shape', '!=', 'quarter_slice'], ['image_shape', '!=', 'half_circle'], ['image_shape', '!=', 'bevel'], ['image_shape', '!=', 'star'], ['image_shape', '!=', 'pentagon'], ['image_shape', '!=', 'right_point'], ['image_shape', '!=', 'triangle'], ['image_shape', '!=', 'trapezoid'], ['image_shape', '!=', 'right_chevron'], ['image_shape', '!=', 'right_arrow'], ['image_shape', '!=', 'rabbet'], ] ], ], ], 'effects' => [ 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_EFFECTS'), 'fields' => [ 'is_effects_enabled' => [ 'type' => 'checkbox', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_EFFECTS'), 'std' => 0, 'is_header' => 1 ], 'image_effects' => [ 'type' => 'effects', 'depends' => [ ['is_effects_enabled', '=', 1] ] ], ], ], 'options' => [ 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_OPTIONS'), 'fields' => [ 'image_width' => [ 'type' => 'slider', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_WIDTH'), 'max' => 2000, 'min' => 0, 'responsive' => true, ], 'image_height' => [ 'type' => 'slider', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_HEIGHT'), 'max' => 2000, 'min' => 0, 'responsive' => true, ], 'border_radius' => [ 'type' => 'advancedslider', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_RADIUS'), 'std' => 0, 'max' => 1200, 'depends' => [ ['image_shape', '!=', 'quarter_slice'], ['image_shape', '!=', 'half_circle'], ] ], 'fetch_priority' => [ 'type' => 'select', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_FETCH_PRIORITY'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_FETCH_PRIORITY_DESC'), 'std' => '', 'values' => [ 'high' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_FETCH_PRIORITY_HIGH'), 'low' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_FETCH_PRIORITY_LOW'), ] ], 'open_lightbox' => [ 'type' => 'checkbox', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_OPEN_LIGHTBOX'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_OPEN_LIGHTBOX_DESC'), 'std' => 0, ], 'overlay_color' => [ 'type' => 'color', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_OVERLAY'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_OVERLAY_DESC'), 'std' => 'rgba(119, 219, 31, .5)', 'depends' => [['open_lightbox', '!=', 0]], ], 'is_zoom_enabled' => [ 'type' => 'checkbox', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_ZOOM'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_ZOOM_DESC'), 'std' => 0, ], 'zoom_scale' => [ 'type' => 'slider', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_SCALE'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_IMAGE_ZOOM_SCALE_DESC'), 'min' => 0, 'std' => '1.2', 'depends' => [ ['is_zoom_enabled', '=', 1] ] ], 'link' => [ 'type' => 'link', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_LINK'), 'desc' => Text::_('COM_SPPAGEBUILDER_GLOBAL_LINK_DESC'), 'std' => '', 'depends' => [['open_lightbox', '!=', 1]], ], ], ], 'title' => [ 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_TITLE'), 'fields' => [ 'title' => [ 'type' => 'text', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_TITLE'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_TITLE_DESC'), ], 'heading_selector' => [ 'type' => 'headings', 'title' => Text::_('COM_SPPAGEBUILDER_ADDON_HEADINGS'), 'desc' => Text::_('COM_SPPAGEBUILDER_ADDON_HEADINGS_DESC'), 'std' => 'h3', ], 'title_typography' => [ 'type' => 'typography', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_TYPOGRAPHY'), 'fallbacks' => [ 'font' => 'title_font_family', 'size' => 'title_fontsize', 'line_height' => 'title_lineheight', 'letter_spacing' => 'title_letterspace', 'uppercase' => 'title_font_style.uppercase', 'italic' => 'title_font_style.italic', 'underline' => 'title_font_style.underline', 'weight' => 'title_font_style.weight', ], ], 'title_text_color' => [ 'type' => 'color', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_COLOR'), ], 'title_position' => [ 'type' => 'select', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_POSITION'), 'values' => [ 'top' => 'Top', 'bottom' => 'Bottom', ], 'std' => 'top', ], 'title_margin_top' => [ 'type' => 'slider', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_MARGIN_TOP'), 'max' => 400, 'responsive' => true, ], 'title_margin_bottom' => [ 'type' => 'slider', 'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_MARGIN_BOTTOM'), 'max' => 400, 'responsive' => true, ], ], ], ], ]);