mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-28 01:57:51 +08:00
Initial commit
This commit is contained in:
commit
b0607606ae
369 changed files with 85494 additions and 0 deletions
36
functions/kirki/controls/views/code.php
Normal file
36
functions/kirki/controls/views/code.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
/**
|
||||
* Customizer controls underscore.js template.
|
||||
*
|
||||
* @package Kirki
|
||||
* @subpackage Controls
|
||||
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
* @since 3.0.17
|
||||
*/
|
||||
|
||||
?>
|
||||
<#
|
||||
data = _.defaults( data, {
|
||||
id: '',
|
||||
label: '',
|
||||
description: '',
|
||||
input_attrs: {}
|
||||
});
|
||||
<# var elementIdPrefix = 'el' + String( Math.random() ); #>
|
||||
<div class="kirki-input-container" data-id="{{ data.id }}">
|
||||
<# if ( data.label ) { #>
|
||||
<label for="{{ elementIdPrefix }}_editor" class="customize-control-title">
|
||||
{{{ data.label }}}
|
||||
</label>
|
||||
<# } #>
|
||||
<# if ( data.description ) { #>
|
||||
<span class="description customize-control-description">{{{ data.description }}}</span>
|
||||
<# } #>
|
||||
<div class="customize-control-notifications-container"></div>
|
||||
<textarea id="{{ elementIdPrefix }}_editor"
|
||||
<# _.each( _.extend( { 'class': 'code' }, data.input_attrs ), function( value, key ) { #>
|
||||
{{{ key }}}="{{ value }}"
|
||||
<# }); #>
|
||||
></textarea>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue