initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework gallery config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Gallery', 'your-textdomain-here' ),
|
||||
'id' => 'media-gallery',
|
||||
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/gallery.html" target="_blank">https://devs.redux.io/core-fields/gallery.html</a>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-gallery',
|
||||
'type' => 'gallery',
|
||||
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Silence is golden.
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
echo null;
|
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework media config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Media', 'your-textdomain-here' ),
|
||||
'id' => 'media-media',
|
||||
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/media.html" target="_blank">https://devs.redux.io/core-fields/media.html</a>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-media',
|
||||
'type' => 'media',
|
||||
'url' => true,
|
||||
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
|
||||
'compiler' => 'true',
|
||||
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
'preview_size' => 'full',
|
||||
),
|
||||
array(
|
||||
'id' => 'media-no-url',
|
||||
'type' => 'media',
|
||||
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
'url' => false,
|
||||
'preview' => true,
|
||||
),
|
||||
array(
|
||||
'id' => 'media-no-preview',
|
||||
'type' => 'media',
|
||||
'preview' => false,
|
||||
'title' => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
'hint' => array(
|
||||
'title' => esc_html__( 'Test Hint', 'your-textdomain-here' ),
|
||||
'content' => wp_kses_post( 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML-based text you like here.' ),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-random-upload',
|
||||
'type' => 'media',
|
||||
'title' => esc_html__( 'Upload Anything - Disabled Mode', 'your-textdomain-here' ),
|
||||
'full_width' => true,
|
||||
|
||||
// Can be set to false to allow any media type, or can also be set to any mime type.
|
||||
'mode' => false,
|
||||
|
||||
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-media-filter',
|
||||
'type' => 'media',
|
||||
'url' => true,
|
||||
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
|
||||
'compiler' => true,
|
||||
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
'preview_size' => 'full',
|
||||
'default' => array(
|
||||
'url' => 'https://s.wordpress.org/style/images/codeispoetry.png',
|
||||
'filter' => array(
|
||||
'grayscale' => array(
|
||||
'checked' => true,
|
||||
'value' => 50,
|
||||
),
|
||||
),
|
||||
),
|
||||
'filter' => array(
|
||||
'grayscale' => true,
|
||||
'blur' => true,
|
||||
'sepia' => true,
|
||||
'saturate' => true,
|
||||
'opacity' => true,
|
||||
'brightness' => true,
|
||||
'contrast' => true,
|
||||
'hue-rotate' => true,
|
||||
'invert' => true,
|
||||
),
|
||||
'output' => array( '.header-image img, .site-logo, .wp-block-site-logo' ),
|
||||
),
|
||||
array(
|
||||
'id' => 'media-no-url-filter',
|
||||
'type' => 'media',
|
||||
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
|
||||
'url' => false,
|
||||
'filter' => array(
|
||||
'grayscale' => true,
|
||||
'blur' => true,
|
||||
),
|
||||
'preview' => true,
|
||||
'preview_size' => 'full',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Multi-Media Sample config.
|
||||
*
|
||||
* For full documentation, please visit: http:https://devs.redux.io/
|
||||
*
|
||||
* @package Redux
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Multi Media', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/multi-media.html" target="_blank">https://devs.redux.io/premium/multi-media.html</a>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-multi-media',
|
||||
'type' => 'multi_media',
|
||||
'title' => esc_html__( 'Multi Media Selector', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Alternative media field which allows for multi selections', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'max_file_limit has been set to 5.', 'your-textdomain-here' ),
|
||||
'max_file_upload' => 5,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework slides config.
|
||||
* For full documentation, please visit: http://devs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'Slides', 'your-textdomain-here' ),
|
||||
'id' => 'additional-slides',
|
||||
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/slides.html" target="_blank">https://devs.redux.io/core-fields/slides.html</a>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-slides',
|
||||
'type' => 'slides',
|
||||
'title' => esc_html__( 'Slides Options', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
|
||||
'desc' => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
|
||||
'placeholder' => array(
|
||||
'title' => esc_html__( 'This is a title', 'your-textdomain-here' ),
|
||||
'description' => esc_html__( 'Description Here', 'your-textdomain-here' ),
|
||||
'url' => esc_html__( 'Give us a link!', 'your-textdomain-here' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
Reference in New Issue
Block a user