first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-08 12:19:53 -04:00
commit 7c8c8b1c76
4586 changed files with 2050693 additions and 0 deletions
@@ -0,0 +1,54 @@
<?php
/**
* Editor control class.
*
* @package OceanWP WordPress theme
* @subpackage Controls
* @see https://github.com/justintadlock/butterbean
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
/**
* Editor control class.
*
* @since 1.0.0
* @access public
*/
class OceanWP_ButterBean_Control_Editor extends ButterBean_Control {
/**
* The type of control.
*
* @since 1.0.0
* @access public
* @var string
*/
public $type = 'editor';
/**
* Adds custom data to the json array. This data is passed to the Underscore template.
*
* @return void
*/
public function to_json() {
parent::to_json();
$this->json['value'] = $this->get_value();
}
/**
* Gets the attributes for the control.
* Sets the new id attribute, as it's required for TinyMCE to function properly.
* Sets new class .tinymce for easier js initialization.
*
* @return array
*/
public function get_attr() {
$this->attr = parent::get_attr();
$this->attr['class'] = 'tinymce';
$this->attr['id'] = $this->get_field_name();
return $this->attr;
}
}
@@ -0,0 +1,13 @@
<div class="oceanwp-mb-desc">
<# if ( data.label ) { #>
<span class="butterbean-label">{{ data.label }}</span>
<# } #>
<# if ( data.description ) { #>
<span class="butterbean-description">{{{ data.description }}}</span>
<# } #>
</div>
<div class="oceanwp-mb-field">
<textarea {{{ data.attr }}}>{{{ data.value }}}</textarea>
</div>