first commit
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework ACE editor config.
|
||||
* For full documentation, please visit: http://docs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'ACE Editor', 'your-textdomain-here' ),
|
||||
'id' => 'editor-ace',
|
||||
'subsection' => true,
|
||||
'desc' => esc_html__( 'For full documentation on the this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.redux.io/core/fields/ace-editor/" target="_blank">docs.redux.io/core/fields/ace-editor/</a>',
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-ace-editor-css',
|
||||
'type' => 'ace_editor',
|
||||
'title' => esc_html__( 'CSS Code', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Paste your CSS code here.', 'your-textdomain-here' ),
|
||||
'mode' => 'css',
|
||||
'theme' => 'monokai',
|
||||
'desc' => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
|
||||
'default' => '#header{
|
||||
margin: 0 auto;
|
||||
}',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-ace-editor-js',
|
||||
'type' => 'ace_editor',
|
||||
'title' => esc_html__( 'JS Code', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Paste your JS code here.', 'your-textdomain-here' ),
|
||||
'mode' => 'javascript',
|
||||
'theme' => 'chrome',
|
||||
'desc' => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
|
||||
'default' => 'jQuery(document).ready(function(){\n\n});',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-ace-editor-php',
|
||||
'type' => 'ace_editor',
|
||||
'full_width' => true,
|
||||
'title' => esc_html__( 'PHP Code', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Paste your PHP code here.', 'your-textdomain-here' ),
|
||||
'mode' => 'php',
|
||||
'theme' => 'chrome',
|
||||
'desc' => 'Possible modes can be found at <a href="//ace.c9.io" target="_blank">ace.c9.io/</a>.',
|
||||
'default' => '<?php
|
||||
echo "PHP String";',
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Silence is golden.
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
echo null;
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* Redux Framework WordPress editor config.
|
||||
* For full documentation, please visit: http://docs.redux.io/
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
Redux::set_section(
|
||||
$opt_name,
|
||||
array(
|
||||
'title' => esc_html__( 'WordPress Editor', 'your-textdomain-here' ),
|
||||
'id' => 'editor-wordpress',
|
||||
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.redux.io/core/fields/editor/" target="_blank">docs.redux.io/core/fields/editor/</a>',
|
||||
'subsection' => true,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => 'opt-editor',
|
||||
'type' => 'editor',
|
||||
'title' => esc_html__( 'Editor', 'your-textdomain-here' ),
|
||||
'subtitle' => esc_html__( 'Use any of the features of WordPress editor inside your panel!', 'your-textdomain-here' ),
|
||||
'default' => 'Powered by Redux Framework.',
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-editor-tiny',
|
||||
'type' => 'editor',
|
||||
'title' => esc_html__( 'Editor w/o Media Button', 'your-textdomain-here' ),
|
||||
'default' => 'Powered by Redux Framework.',
|
||||
'args' => array(
|
||||
'wpautop' => false,
|
||||
'media_buttons' => false,
|
||||
'textarea_rows' => 5,
|
||||
'teeny' => false,
|
||||
'quicktags' => false,
|
||||
),
|
||||
),
|
||||
array(
|
||||
'id' => 'opt-editor-full',
|
||||
'type' => 'editor',
|
||||
'title' => esc_html__( 'Editor - Full Width', 'your-textdomain-here' ),
|
||||
'full_width' => true,
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user