replace all mt- to sad-
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Sophia After Dark include the Customizer custom classes of customizer fields.
|
||||
*
|
||||
@ -27,7 +27,7 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'mt-toggle';
|
||||
public $type = 'sad-toggle';
|
||||
|
||||
public $tooltip = '';
|
||||
|
||||
@ -85,7 +85,7 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'mt-radio-image';
|
||||
public $type = 'sad-radio-image';
|
||||
|
||||
public $tooltip = '';
|
||||
|
||||
@ -155,7 +155,7 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'mt-repeater';
|
||||
public $type = 'sad-repeater';
|
||||
|
||||
public $sophia_after_dark_box_label = '';
|
||||
|
||||
@ -196,14 +196,14 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
</span>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="mt-repeater-field-control-wrap">
|
||||
<ul class="sad-repeater-field-control-wrap">
|
||||
<?php $this->sophia_after_dark_get_fields(); ?>
|
||||
</ul>
|
||||
|
||||
<input type="hidden" <?php $this->link(); ?> class="mt-repeater-collector" value="<?php echo esc_attr( $this->value() ); ?>" />
|
||||
<input type="hidden" <?php $this->link(); ?> class="sad-repeater-collector" value="<?php echo esc_attr( $this->value() ); ?>" />
|
||||
<input type="hidden" name="<?php echo esc_attr( $repeater_id ).'_count'; ?>" class="field-count" value="<?php echo absint( $field_count ); ?>">
|
||||
<input type="hidden" name="field_limit" class="field-limit" value="6">
|
||||
<button type="button" class="button mt-repeater-add-control-field"><?php echo esc_html( $this->sophia_after_dark_box_add_control ); ?></button>
|
||||
<button type="button" class="button sad-repeater-add-control-field"><?php echo esc_html( $this->sophia_after_dark_box_add_control ); ?></button>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -214,14 +214,14 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
if ( is_array( $values ) ) {
|
||||
foreach( $values as $value ) {
|
||||
?>
|
||||
<li class="mt-repeater-field-control">
|
||||
<h3 class="mt-repeater-field-title"><?php echo esc_html( $this->sophia_after_dark_box_label ); ?></h3>
|
||||
<div class="mt-repeater-fields">
|
||||
<li class="sad-repeater-field-control">
|
||||
<h3 class="sad-repeater-field-title"><?php echo esc_html( $this->sophia_after_dark_box_label ); ?></h3>
|
||||
<div class="sad-repeater-fields">
|
||||
<?php
|
||||
foreach ( $fields as $key => $field ) {
|
||||
$class = isset( $field['class'] ) ? $field['class'] : '';
|
||||
?>
|
||||
<div class="mt-repeater-field mt-repeater-type-<?php echo esc_attr( $field['type'] ).' '.esc_attr( $class ); ?>">
|
||||
<div class="sad-repeater-field sad-repeater-type-<?php echo esc_attr( $field['type'] ).' '.esc_attr( $class ); ?>">
|
||||
|
||||
<?php
|
||||
$label = isset( $field['label'] ) ? $field['label'] : '';
|
||||
@ -263,7 +263,7 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
*/
|
||||
case 'icon':
|
||||
$sophia_after_dark_fork_awesome_icon_array = sophia_after_dark_fork_awesome_icon_array();
|
||||
echo '<div class="mt-repeater-selected-icon"><i class="'.esc_attr( $new_value ).'"></i><span><i class="fa fa-angle-down"></i></span></div><ul class="mt-repeater-icon-list mt-clearfix">';
|
||||
echo '<div class="sad-repeater-selected-icon"><i class="'.esc_attr( $new_value ).'"></i><span><i class="fa fa-angle-down"></i></span></div><ul class="sad-repeater-icon-list sad-clearfix">';
|
||||
foreach ( $sophia_after_dark_fork_awesome_icon_array as $sophia_after_dark_fork_awesome_icon ) {
|
||||
$icon_class = $new_value == $sophia_after_dark_fork_awesome_icon ? 'icon-active' : '';
|
||||
echo '<li class='.esc_attr( $icon_class ).'><i class="'.esc_attr( $sophia_after_dark_fork_awesome_icon ).'"></i></li>';
|
||||
@ -276,7 +276,7 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
*/
|
||||
case 'social_icon':
|
||||
$sophia_after_dark_fork_awesome_social_icon_array = sophia_after_dark_fork_awesome_social_icon_array();
|
||||
echo '<div class="mt-repeater-selected-icon"><i class="'.esc_attr( $new_value ).'"></i><span><i class="fa fa-angle-down"></i></span></div><ul class="mt-repeater-icon-list mt-clearfix">';
|
||||
echo '<div class="sad-repeater-selected-icon"><i class="'.esc_attr( $new_value ).'"></i><span><i class="fa fa-angle-down"></i></span></div><ul class="sad-repeater-icon-list sad-clearfix">';
|
||||
foreach ( $sophia_after_dark_fork_awesome_social_icon_array as $sophia_after_dark_fork_awesome_icon ) {
|
||||
$icon_class = $new_value == $sophia_after_dark_fork_awesome_icon ? 'icon-active' : '';
|
||||
echo '<li class='.esc_attr( $icon_class ).'><i class="'.esc_attr( $sophia_after_dark_fork_awesome_icon ).'"></i></li>';
|
||||
@ -335,9 +335,9 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
if ( $new_value ) {
|
||||
$image_class = ' hidden';
|
||||
}
|
||||
echo '<div class="mt-fields-wrap"><div class="attachment-media-view"><div class="placeholder'. esc_attr( $image_class ).'">';
|
||||
echo '<div class="sad-fields-wrap"><div class="attachment-media-view"><div class="placeholder'. esc_attr( $image_class ).'">';
|
||||
esc_html_e( 'No image selected', 'sophia-after-dark' );
|
||||
echo '</div><div class="thumbnail thumbnail-image"><img src="'.esc_url( $new_value ).'" style="max-width:100%;"/></div><div class="actions mt-clearfix"><button type="button" class="button mt-delete-button align-left">'. esc_html( $remove_btn_label ) .'</button><button type="button" class="button mt-upload-button alignright">'. esc_html( $upload_btn_label ) .'</button><input data-default="'.esc_attr( $default ).'" class="upload-id" data-name="'.esc_attr( $key ).'" type="hidden" value="'.esc_attr( $new_value ).'"/></div></div></div>';
|
||||
echo '</div><div class="thumbnail thumbnail-image"><img src="'.esc_url( $new_value ).'" style="max-width:100%;"/></div><div class="actions sad-clearfix"><button type="button" class="button sad-delete-button align-left">'. esc_html( $remove_btn_label ) .'</button><button type="button" class="button sad-upload-button alignright">'. esc_html( $upload_btn_label ) .'</button><input data-default="'.esc_attr( $default ).'" class="upload-id" data-name="'.esc_attr( $key ).'" type="hidden" value="'.esc_attr( $new_value ).'"/></div></div></div>';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -347,10 +347,10 @@ if ( ! function_exists( 'sophia_after_dark_register_custom_controls' ) ) :
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="mt-clearfix mt-repeater-footer">
|
||||
<div class="sad-clearfix sad-repeater-footer">
|
||||
<div class="alignright">
|
||||
<a class="mt-repeater-field-remove" href="#remove"><?php esc_html_e( 'Delete', 'sophia-after-dark' ) ?></a> |
|
||||
<a class="mt-repeater-field-close" href="#close"><?php esc_html_e( 'Close', 'sophia-after-dark' ) ?></a>
|
||||
<a class="sad-repeater-field-remove" href="#remove"><?php esc_html_e( 'Delete', 'sophia-after-dark' ) ?></a> |
|
||||
<a class="sad-repeater-field-close" href="#close"><?php esc_html_e( 'Close', 'sophia-after-dark' ) ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Sophia After Dark manage the Customizer options of design settings panel.
|
||||
*
|
||||
@ -58,7 +58,7 @@ function sophia_after_dark_customize_design_panels_sections_register( $wp_custom
|
||||
*/
|
||||
$wp_customize->add_setting( 'sophia_after_dark_archive_style',
|
||||
array(
|
||||
'default' => 'mt-archive--masonry-style',
|
||||
'default' => 'sad-archive--masonry-style',
|
||||
'sanitize_callback' => 'sanitize_key',
|
||||
)
|
||||
);
|
||||
@ -70,8 +70,8 @@ function sophia_after_dark_customize_design_panels_sections_register( $wp_custom
|
||||
'settings' => 'sophia_after_dark_archive_style',
|
||||
'priority' => 10,
|
||||
'choices' => array(
|
||||
'mt-archive--block-grid-style' => get_template_directory_uri() . '/assets/images/archive-block-grid.png',
|
||||
'mt-archive--masonry-style' => get_template_directory_uri() . '/assets/images/archive-masonry.png',
|
||||
'sad-archive--block-grid-style' => get_template_directory_uri() . '/assets/images/archive-block-grid.png',
|
||||
'sad-archive--masonry-style' => get_template_directory_uri() . '/assets/images/archive-masonry.png',
|
||||
),
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Sophia After Dark Theme Customizer
|
||||
*
|
||||
@ -78,25 +78,25 @@ add_action( 'customize_preview_init', 'sophia_after_dark_customize_preview_js' )
|
||||
*/
|
||||
function sophia_after_dark_customize_backend_scripts() {
|
||||
global $sophia_after_dark_theme_version;
|
||||
wp_enqueue_style( 'sophia-after-dark--admin-customizer-style', get_template_directory_uri() . '/assets/css/mt-customizer-styles.css', array(), esc_attr( esc_attr( $sophia_after_dark_theme_version ) ) );
|
||||
wp_enqueue_style( 'sophia-after-dark--admin-customizer-style', get_template_directory_uri() . '/assets/css/sad-customizer-styles.css', array(), esc_attr( esc_attr( $sophia_after_dark_theme_version ) ) );
|
||||
wp_enqueue_style( 'jquery-ui', esc_url( get_template_directory_uri() . '/assets/css/jquery-ui.css' ) );
|
||||
wp_enqueue_script( 'sophia-after-dark--admin-customizer-script', get_template_directory_uri() . '/assets/js/mt-customizer-controls.js', array( 'jquery', 'customize-controls' ), esc_attr( $sophia_after_dark_theme_version ), true );
|
||||
wp_enqueue_script( 'sophia-after-dark--admin-customizer-script', get_template_directory_uri() . '/assets/js/sad-customizer-controls.js', array( 'jquery', 'customize-controls' ), esc_attr( $sophia_after_dark_theme_version ), true );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'sophia_after_dark_customize_backend_scripts', 10 );
|
||||
|
||||
/**
|
||||
* Add Kirki required file for custom fields
|
||||
*/
|
||||
#require get_template_directory() . '/inc/customizer/mt-customizer-additional-open-graph.php';
|
||||
#require get_template_directory() . '/inc/customizer/sad-customizer-additional-open-graph.php';
|
||||
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-custom-classes.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-panels.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-sanitize.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-callback.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-custom-classes.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-panels.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-sanitize.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-callback.php';
|
||||
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-general-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-header-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-front-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-additional-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-design-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/mt-customizer-footer-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-general-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-header-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-front-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-additional-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-design-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-footer-panel-options.php';
|
Reference in New Issue
Block a user