-
+
-
diff --git a/assets/css/mt-admin-styles.css b/assets/css/mt-admin-styles.css
index d6edbd6..d842d2d 100644
--- a/assets/css/mt-admin-styles.css
+++ b/assets/css/mt-admin-styles.css
@@ -1,4 +1,4 @@
-.mt-meta-options-wrap .ui-button {
+.sad-meta-options-wrap .ui-button {
margin: 0;
border-radius: 0;
border: none;
@@ -7,11 +7,11 @@
box-shadow: none
}
-.mt-meta-options-wrap .ui-button-text {
+.sad-meta-options-wrap .ui-button-text {
padding: 0
}
-.mt-meta-options-wrap img {
+.sad-meta-options-wrap img {
box-sizing: border-box;
max-width: 100%;
height: auto;
@@ -19,22 +19,22 @@
border: 4px solid transparent
}
-.mt-meta-options-wrap img:focus,
-.mt-meta-options-wrap img:hover {
+.sad-meta-options-wrap img:focus,
+.sad-meta-options-wrap img:hover {
border-color: #ddd
}
-.mt-meta-options-wrap .ui-state-active img {
+.sad-meta-options-wrap .ui-state-active img {
border-color: #00a0d2
}
-.mt-clearfix:after,
-.mt-clearfix:before {
+.sad-clearfix:after,
+.sad-clearfix:before {
content: '';
display: table
}
-.mt-clearfix:after {
+.sad-clearfix:after {
clear: both
}
diff --git a/assets/css/mt-customizer-styles.css b/assets/css/mt-customizer-styles.css
index 5a7a4a7..cb5de6e 100644
--- a/assets/css/mt-customizer-styles.css
+++ b/assets/css/mt-customizer-styles.css
@@ -1,25 +1,25 @@
-/**
+/**
* Customizer styles
*
*/
-.customize-control-mt-toggle label {
+.customize-control-sad-toggle label {
display: flex;
flex-wrap: wrap;
}
-.customize-control-mt-toggle label .customize-control-title {
+.customize-control-sad-toggle label .customize-control-title {
width: calc(100% - 55px);
}
-.customize-control-mt-toggle label .description {
+.customize-control-sad-toggle label .description {
order: 99;
}
-.customize-control-mt-toggle input[type=checkbox] {
+.customize-control-sad-toggle input[type=checkbox] {
display: none;
}
-.customize-control-mt-toggle .switch {
+.customize-control-sad-toggle .switch {
border: 1px solid rgba(0, 0, 0, .1);
display: inline-block;
width: 35px;
@@ -33,8 +33,8 @@
transition: background 350ms ease;
}
-.customize-control-mt-toggle .switch:after,
-.customize-control-mt-toggle .switch:before {
+.customize-control-sad-toggle .switch:after,
+.customize-control-sad-toggle .switch:before {
content: "";
display: block;
width: 20px;
@@ -46,51 +46,51 @@
transition: all 350ms cubic-bezier(0, .95, .38, .98), background 150ms ease;
}
-.customize-control-mt-toggle .switch:before {
+.customize-control-sad-toggle .switch:before {
background: rgba(0, 0, 0, .2);
transform: translate3d(0, -50%, 0) scale(0);
}
-.customize-control-mt-toggle .switch:after {
+.customize-control-sad-toggle .switch:after {
background: #999;
border: 1px solid rgba(0, 0, 0, .1);
transform: translate3d(0, -50%, 0);
}
-.customize-control-mt-toggle .switch:active:before {
+.customize-control-sad-toggle .switch:active:before {
transform: translate3d(0, -50%, 0) scale(3);
}
-.customize-control-mt-toggle input:checked+.switch {
+.customize-control-sad-toggle input:checked+.switch {
background: rgba(52, 152, 222, .3);
}
-.customize-control-mt-toggle input:checked+.switch:before {
+.customize-control-sad-toggle input:checked+.switch:before {
background: rgba(52, 152, 222, .075);
transform: translate3d(100%, -50%, 0) scale(1);
}
-.customize-control-mt-toggle input:checked+.switch:after {
+.customize-control-sad-toggle input:checked+.switch:after {
background: #3498de;
transform: translate3d(100%, -50%, 0);
}
-.customize-control-mt-toggle input:checked+.switch:active:before {
+.customize-control-sad-toggle input:checked+.switch:active:before {
background: rgba(52, 152, 222, .075);
transform: translate3d(100%, -50%, 0) scale(3);
}
-.customize-control-mt-radio-image>.image {
+.customize-control-sad-radio-image>.image {
display: flex;
flex-wrap: wrap;
}
-.customize-control-mt-radio-image label {
+.customize-control-sad-radio-image label {
position: relative;
display: inline-block;
}
-.customize-control-mt-radio-image label .image-label {
+.customize-control-sad-radio-image label .image-label {
display: none;
position: absolute;
top: 0;
@@ -101,7 +101,7 @@
font-weight: 700;
}
-.customize-control-mt-radio-image label .image-label .inner {
+.customize-control-sad-radio-image label .image-label .inner {
width: 100%;
height: 100%;
text-align: center;
@@ -109,25 +109,25 @@
vertical-align: middle;
}
-.customize-control-mt-radio-image label:hover .image-label {
+.customize-control-sad-radio-image label:hover .image-label {
display: block;
}
-.customize-control-mt-radio-image input {
+.customize-control-sad-radio-image input {
display: none;
}
-.customize-control-mt-radio-image input img {
+.customize-control-sad-radio-image input img {
border: 1px solid transparent;
}
-.customize-control-mt-radio-image input:checked+label img {
+.customize-control-sad-radio-image input:checked+label img {
-webkit-box-shadow: 0 0 5px 2px rgba(0, 0, 0, .25);
box-shadow: 0 0 5px 2px rgba(0, 0, 0, .25);
border: 1px solid #3498db;
}
-.customize-control-mt-radio-image input+label .image-clickable {
+.customize-control-sad-radio-image input+label .image-clickable {
position: absolute;
top: 0;
bottom: 0;
@@ -151,15 +151,15 @@
border: 1px solid #3498db;
}
-.customize-control-mt-radio-image input+label .image-clickable {
+.customize-control-sad-radio-image input+label .image-clickable {
margin: 0;
border-radius: 0;
border: none;
background: 0 0;
}
-.customize-control-mt-radio-image input+label .image-clickable,
-.customize-control-mt-radio-image input:checked+label img {
+.customize-control-sad-radio-image input+label .image-clickable,
+.customize-control-sad-radio-image input:checked+label img {
box-sizing: border-box;
max-width: 100%;
height: auto;
@@ -167,54 +167,54 @@
border: 3px solid transparent;
}
-.customize-control-mt-radio-image input+label .image-clickable:focus,
-.customize-control-mt-radio-image input+label .image-clickable:hover {
+.customize-control-sad-radio-image input+label .image-clickable:focus,
+.customize-control-sad-radio-image input+label .image-clickable:hover {
border-color: #ddd;
}
-.customize-control-mt-radio-image input:checked+label img {
+.customize-control-sad-radio-image input:checked+label img {
border-color: #00a0d2;
display: block
}
-.customize-control-mt-radio-image .image label {
+.customize-control-sad-radio-image .image label {
margin-right: 10px;
}
-.customize-control-mt-radio-image input:checked+label img {
+.customize-control-sad-radio-image input:checked+label img {
box-shadow: none;
}
-.customize-control-mt-radio-image>.image {
+.customize-control-sad-radio-image>.image {
display: block;
}
-.mt-clearfix:after,
-.mt-clearfix:before {
+.sad-clearfix:after,
+.sad-clearfix:before {
content: "";
display: table;
}
-.mt-clearfix:after {
+.sad-clearfix:after {
clear: both;
}
-.mt-repeater-field-control {
+.sad-repeater-field-control {
background: #fff;
margin-bottom: 12px;
display: block;
}
-.mt-repeater-footer {
+.sad-repeater-footer {
margin-top: 15px;
text-align: right;
}
-.mt-repeater-field-control:first-child .mt-repeater-footer {
+.sad-repeater-field-control:first-child .sad-repeater-footer {
display: none;
}
-.mt-repeater-field-title {
+.sad-repeater-field-title {
padding: 13px 15px;
line-height: 1;
overflow: hidden;
@@ -228,7 +228,7 @@
border-bottom: 0;
}
-.mt-repeater-field-title:after {
+.sad-repeater-field-title:after {
content: "\f142";
font: 400 20px/1 dashicons;
position: absolute;
@@ -242,11 +242,11 @@
cursor: pointer;
}
-.mt-repeater-field-control.expanded .mt-repeater-field-title:after {
+.sad-repeater-field-control.expanded .sad-repeater-field-title:after {
content: "\f140"
}
-.mt-repeater-fields {
+.sad-repeater-fields {
padding: 0 10px 10px;
border-top: none;
line-height: 16px;
@@ -255,19 +255,19 @@
display: none;
}
-.mt-repeater-fields .customize-control-title {
+.sad-repeater-fields .customize-control-title {
margin-top: 10px
}
-.mt-repeater-field-control.expanded .mt-repeater-fields {
+.sad-repeater-field-control.expanded .sad-repeater-fields {
display: block;
}
-.mt-reapeater-add-control-field {
+.sad-reapeater-add-control-field {
float: right;
}
-.mt-reapeater-add-add-control-field:before {
+.sad-reapeater-add-add-control-field:before {
content: "\f132";
display: inline-block;
position: relative;
@@ -277,11 +277,11 @@
vertical-align: middle;
}
-.mt-repeater-type-icon {
+.sad-repeater-type-icon {
overflow: hidden;
}
-.mt-repeater-selected-icon {
+.sad-repeater-selected-icon {
background: #f6f6f6;
height: 45px;
line-height: 45px;
@@ -293,7 +293,7 @@
font-size: 28px;
}
-.mt-repeater-selected-icon span {
+.sad-repeater-selected-icon span {
position: absolute;
background: #f6f6f6;
right: -45px;
@@ -304,15 +304,15 @@
font-size: 20px;
}
-.mt-repeater-selected-icon i {
+.sad-repeater-selected-icon i {
margin-top: 3%;
}
-.mt-repeater-selected-icon span i {
+.sad-repeater-selected-icon span i {
margin-top: 24%;
}
-.mt-repeater-icon-list {
+.sad-repeater-icon-list {
height: 215px;
overflow-y: scroll;
font-size: 18px;
@@ -327,7 +327,7 @@
-webkit-box-sizing: border-box;
}
-.mt-repeater-icon-list li {
+.sad-repeater-icon-list li {
float: left;
margin: 4% 3% 0;
height: 40px;
@@ -337,23 +337,23 @@
border: 1px solid #eee;
}
-.mt-repeater-icon-list li:hover {
+.sad-repeater-icon-list li:hover {
background: #333;
border: 1px solid #333;
color: #fff;
}
-.mt-repeater-icon-list li.icon-active {
+.sad-repeater-icon-list li.icon-active {
background: #0073aa;
border: 1px solid #0073aa;
color: #fff;
}
-.customize-control-mt-repeater .mt-limit-msg {
+.customize-control-sad-repeater .sad-limit-msg {
display: none;
}
-.customize-control-mt-repeater span.mt-limit-msg:nth-of-type(2) {
+.customize-control-sad-repeater span.sad-limit-msg:nth-of-type(2) {
display: block;
background: #fff;
padding: 10px 15px;
diff --git a/assets/css/mt-responsive.css b/assets/css/mt-responsive.css
index b9f30ee..7768376 100644
--- a/assets/css/mt-responsive.css
+++ b/assets/css/mt-responsive.css
@@ -1,6 +1,6 @@
-@media (max-width:1400px) {
+@media (max-width:1400px) {
- .mt-container,
+ .sad-container,
.site-layout--boxed #page {
width: 1200px
}
@@ -15,7 +15,7 @@
#colophon .widget .widget-title,
#secondary .widget .widget-title,
- .mt-related-post-title {
+ .sad-related-post-title {
font-size: 17px
}
@@ -23,24 +23,24 @@
margin-bottom: 0
}
- .single .mt-related-posts-wrapper .entry-title {
+ .single .sad-related-posts-wrapper .entry-title {
font-size: 19px
}
- .mt-form-close {
+ .sad-form-close {
font-size: 50px
}
}
@media (max-width:1200px) {
- .mt-container,
+ .sad-container,
.site-layout--boxed #page {
width: auto;
margin: 0 2%
}
- .site-layout--boxed .mt-container {
+ .site-layout--boxed .sad-container {
padding: 0 10px
}
@@ -48,7 +48,7 @@
position: relative
}
- .mt-follow-title {
+ .sad-follow-title {
display: none
}
@@ -88,7 +88,7 @@
width: 30%
}
- .top-featured-post-wrap .mt-post-content {
+ .top-featured-post-wrap .sad-post-content {
width: 66%
}
@@ -105,20 +105,20 @@
margin-right: 28px
}
- #mt-scrollup {
+ #sad-scrollup {
right: 10px
}
#colophon .widget .widget-title,
#secondary .widget .widget-title,
- .mt-related-post-title {
+ .sad-related-post-title {
font-size: 14px
}
#colophon .widget .widget-title::before,
#secondary .widget .widget-title::before,
.features-post-title::before,
- .mt-related-post-title::before {
+ .sad-related-post-title::before {
height: 2px;
top: 7px
}
@@ -137,7 +137,7 @@
margin-bottom: 0
}
- .mt-menu-search .mt-form-wrap .search-form .search-field {
+ .sad-menu-search .sad-form-wrap .search-form .search-field {
height: 54px;
font-size: 20px
}
@@ -191,7 +191,7 @@
display: block
}
- .mt-social-menu-wrapper {
+ .sad-social-menu-wrapper {
position: relative
}
@@ -211,7 +211,7 @@
z-index: 9999
}
- #site-navigation .mt-container {
+ #site-navigation .sad-container {
border: none;
padding: 0
}
@@ -334,13 +334,13 @@
display: none
}
- .mt-archive--block-grid-style article,
- .mt-archive--masonry-style #mt-masonry article {
+ .sad-archive--block-grid-style article,
+ .sad-archive--masonry-style #sad-masonry article {
width: 97%
}
- .no-sidebar.mt-archive--block-grid-style article,
- .no-sidebar.mt-archive--masonry-style #mt-masonry article {
+ .no-sidebar.sad-archive--block-grid-style article,
+ .no-sidebar.sad-archive--masonry-style #sad-masonry article {
width: 47%
}
@@ -372,11 +372,11 @@
font-size: 12px
}
- .mt-author-bio {
+ .sad-author-bio {
font-size: 13px
}
- .single .mt-related-posts-wrapper .entry-title {
+ .single .sad-related-posts-wrapper .entry-title {
font-size: 15px
}
@@ -442,14 +442,14 @@
margin-right: -3%
}
- .top-featured-post-wrap .mt-single-post-wrap {
+ .top-featured-post-wrap .sad-single-post-wrap {
width: 47%;
float: left;
margin-bottom: 3%;
margin-right: 3%
}
- #top-footer.footer-column-four .mt-footer-widget {
+ #top-footer.footer-column-four .sad-footer-widget {
width: 47%
}
}
@@ -487,16 +487,16 @@
width: 100%
}
- .mt-menu-search .mt-form-wrap .search-form .search-submit {
+ .sad-menu-search .sad-form-wrap .search-form .search-submit {
padding: 16px 46px
}
- .mt-menu-search .mt-form-wrap .search-form .search-field {
+ .sad-menu-search .sad-form-wrap .search-form .search-field {
height: 48px;
font-size: 18px
}
- .mt-form-close {
+ .sad-form-close {
font-size: 40px
}
@@ -535,7 +535,7 @@
height: 450px
}
- .mt-live-link {
+ .sad-live-link {
float: none;
margin: 0 auto;
display: block;
@@ -552,7 +552,7 @@
margin-top: -50px;
}
- .logged-in .is-sticky .mt-social-menu-wrapper {
+ .logged-in .is-sticky .sad-social-menu-wrapper {
top: 0 !important;
}
@@ -560,20 +560,20 @@
margin-right: 0
}
- .top-featured-post-wrap .mt-single-post-wrap {
+ .top-featured-post-wrap .sad-single-post-wrap {
width: 100%;
margin-right: 0
}
.archive-grid-post-wrapper,
- .mt-archive--masonry-style .sophia-after-dark-content-masonry {
+ .sad-archive--masonry-style .sophia-after-dark-content-masonry {
margin-left: 0
}
- .mt-archive--block-grid-style article,
- .mt-archive--masonry-style #mt-masonry article,
- .no-sidebar.mt-archive--block-grid-style article,
- .no-sidebar.mt-archive--masonry-style #mt-masonry article {
+ .sad-archive--block-grid-style article,
+ .sad-archive--masonry-style #sad-masonry article,
+ .no-sidebar.sad-archive--block-grid-style article,
+ .no-sidebar.sad-archive--masonry-style #sad-masonry article {
width: 100%;
margin-left: 0
}
@@ -590,17 +590,17 @@
padding: 28px 0
}
- .mt-related-posts-wrapper {
+ .sad-related-posts-wrapper {
margin-left: 0
}
- .mt-related-posts-wrapper article {
+ .sad-related-posts-wrapper article {
margin-left: 0;
margin-right: 0;
width: 100%
}
- .mt-related-posts-wrapper .post-cats-list a {
+ .sad-related-posts-wrapper .post-cats-list a {
margin-top: 10px
}
@@ -632,13 +632,13 @@
font-size: 28px
}
- #top-footer.footer-column-three .mt-footer-widget {
+ #top-footer.footer-column-three .sad-footer-widget {
width: 97%
}
}
@media (max-width:480px) {
- .mt-social-icon-wrap li {
+ .sad-social-icon-wrap li {
margin-right: 8px
}
@@ -650,11 +650,11 @@
margin-top: 10px
}
- .mt-social-wrapper {
+ .sad-social-wrapper {
margin: 12px 0 12px
}
- .mt-search-icon {
+ .sad-search-icon {
font-size: 14px;
margin: 12px 0 12px 8px
}
@@ -664,15 +664,15 @@
margin-bottom: 0
}
- .single .mt-author-box .mt-author-info .mt-author-name {
+ .single .sad-author-box .sad-author-info .sad-author-name {
font-size: 18px
}
- .mt-author-bio {
+ .sad-author-bio {
font-size: 12px
}
- .mt-author-meta {
+ .sad-author-meta {
font-size: 13px
}
@@ -715,8 +715,8 @@
font-size: 20px
}
- #top-footer.footer-column-four .mt-footer-widget,
- #top-footer.footer-column-two .mt-footer-widget {
+ #top-footer.footer-column-four .sad-footer-widget,
+ #top-footer.footer-column-two .sad-footer-widget {
width: 97%
}
}
\ No newline at end of file
diff --git a/assets/js/mt-admin-scripts.js b/assets/js/mt-admin-scripts.js
index 09e59ab..0782439 100644
--- a/assets/js/mt-admin-scripts.js
+++ b/assets/js/mt-admin-scripts.js
@@ -1,4 +1,4 @@
-/**
+/**
* Image uploader functions
*/
@@ -51,9 +51,9 @@ jQuery(($) => {
'use strict';
// Initialize jQuery UI buttonset for radio image controls
- $('.mt-meta-options-wrap .buttonset').buttonset();
+ $('.sad-meta-options-wrap .buttonset').buttonset();
// Initialize image upload/delete functionality
- initUploadMediaImage('.mt-upload-button');
- initDeleteMediaImage('.mt-delete-button');
+ initUploadMediaImage('.sad-upload-button');
+ initDeleteMediaImage('.sad-delete-button');
});
\ No newline at end of file
diff --git a/assets/js/mt-custom-scripts.js b/assets/js/mt-custom-scripts.js
index 681b1b9..c7e08aa 100644
--- a/assets/js/mt-custom-scripts.js
+++ b/assets/js/mt-custom-scripts.js
@@ -1,4 +1,4 @@
-jQuery(document).ready(function($) {
+jQuery(document).ready(function($) {
"use strict";
@@ -26,10 +26,10 @@ jQuery(document).ready(function($) {
/**
* Header Search script
*/
- const $searchIcon = $('.mt-menu-search .mt-search-icon');
+ const $searchIcon = $('.sad-menu-search .sad-search-icon');
$searchIcon.click(function() {
- $('.mt-form-wrap').toggleClass('search-activate').find('.search-field').focus();
- const $element = $('.mt-form-wrap.search-activate');
+ $('.sad-form-wrap').toggleClass('search-activate').find('.search-field').focus();
+ const $element = $('.sad-form-wrap.search-activate');
if ($element.length) {
$(document).on('keydown', function(e) {
const focusable = $element.find('input, button, [href], select, textarea, [tabindex]:not([tabindex="-1"])');
@@ -57,9 +57,9 @@ jQuery(document).ready(function($) {
}
}
- $('.mt-form-wrap .mt-form-close').click(function() {
- $('.mt-form-wrap').toggleClass('search-activate');
- $(this).parents('.mt-menu-search').find('.mt-search-icon a').focus();
+ $('.sad-form-wrap .sad-form-close').click(function() {
+ $('.sad-form-wrap').toggleClass('search-activate');
+ $(this).parents('.sad-menu-search').find('.sad-search-icon a').focus();
});
/**
@@ -68,7 +68,7 @@ jQuery(document).ready(function($) {
$(document).on('keydown', function(event) {
if (event.keyCode === 27) {
event.preventDefault();
- $('.mt-menu-search .mt-form-wrap').removeClass('search-activate');
+ $('.sad-menu-search .sad-form-wrap').removeClass('search-activate');
}
});
@@ -84,7 +84,7 @@ jQuery(document).ready(function($) {
*/
if (sophia_after_darkObject.menu_sticky === 'on') {
const wpAdminBar = $('#wpadminbar').length ? $('#wpadminbar') : 0;
- $(".mt-social-menu-wrapper").sticky({
+ $(".sad-social-menu-wrapper").sticky({
topSpacing: wpAdminBar.length ? wpAdminBar.height() : 0
});
}
@@ -94,13 +94,13 @@ jQuery(document).ready(function($) {
*/
$(window).scroll(function() {
if ($(this).scrollTop() > 1000) {
- $('#mt-scrollup').fadeIn('slow');
+ $('#sad-scrollup').fadeIn('slow');
} else {
- $('#mt-scrollup').fadeOut('slow');
+ $('#sad-scrollup').fadeOut('slow');
}
});
- $('#mt-scrollup').click(function() {
+ $('#sad-scrollup').click(function() {
$("html, body").animate({
scrollTop: 0
}, 600);
@@ -128,14 +128,14 @@ jQuery(document).ready(function($) {
}
initializeSlider('.front-slider');
- initializeSlider('.mt-gallery-slider', false);
+ initializeSlider('.sad-gallery-slider', false);
/**
* Responsive menu
*/
- $('.mt-social-menu-wrapper .menu-toggle').click(function() {
+ $('.sad-social-menu-wrapper .menu-toggle').click(function() {
$('#site-navigation').toggleClass('isActive').slideToggle('slow');
- const $element = $('.mt-header-menu-wrap');
+ const $element = $('.sad-header-menu-wrap');
if ($element.length) {
$(document).on('keydown', function(e) {
if ($('#site-navigation.isActive').length) {
diff --git a/assets/js/mt-customizer-controls.js b/assets/js/mt-customizer-controls.js
index 5f12803..ea4db5d 100644
--- a/assets/js/mt-customizer-controls.js
+++ b/assets/js/mt-customizer-controls.js
@@ -1,6 +1,6 @@
-( function( api ) {
+( function( api ) {
- api.sectionConstructor['mt-upsell'] = api.Section.extend( {
+ api.sectionConstructor['sad-upsell'] = api.Section.extend( {
// No events for this type of section.
attachEvents: function () {},
@@ -13,7 +13,7 @@
} )( wp.customize );
-wp.customize.controlConstructor['mt-toggle'] = wp.customize.Control.extend({
+wp.customize.controlConstructor['sad-toggle'] = wp.customize.Control.extend({
ready: function(){
'use strict';
@@ -37,12 +37,12 @@ jQuery(document).ready(function($) {
* Function for repeater field
*/
function sophia_after_dark_refresh_repeater_values(){
- $(".mt-repeater-field-control-wrap").each(function(){
+ $(".sad-repeater-field-control-wrap").each(function(){
var values = [];
var $this = $(this);
- $this.find(".mt-repeater-field-control").each(function(){
+ $this.find(".sad-repeater-field-control").each(function(){
var valueToPush = {};
$(this).find('[data-name]').each(function(){
@@ -55,21 +55,21 @@ jQuery(document).ready(function($) {
values.push(valueToPush);
});
- $this.next('.mt-repeater-collector').val(JSON.stringify(values)).trigger('change');
+ $this.next('.sad-repeater-collector').val(JSON.stringify(values)).trigger('change');
});
}
- $('#customize-theme-controls').on('click','.mt-repeater-field-title',function(){
+ $('#customize-theme-controls').on('click','.sad-repeater-field-title',function(){
$(this).next().slideToggle();
- $(this).closest('.mt-repeater-field-control').toggleClass('expanded');
+ $(this).closest('.sad-repeater-field-control').toggleClass('expanded');
});
- $('#customize-theme-controls').on('click', '.mt-repeater-field-close', function(){
- $(this).closest('.mt-repeater-fields').slideUp();;
- $(this).closest('.mt-repeater-field-control').toggleClass('expanded');
+ $('#customize-theme-controls').on('click', '.sad-repeater-field-close', function(){
+ $(this).closest('.sad-repeater-fields').slideUp();;
+ $(this).closest('.sad-repeater-field-control').toggleClass('expanded');
});
- $("body").on("click",'.mt-repeater-add-control-field', function(){
+ $("body").on("click",'.sad-repeater-add-control-field', function(){
var fLimit = $(this).parent().find('.field-limit').val();
var fCount = $(this).parent().find('.field-count').val();
@@ -77,14 +77,14 @@ jQuery(document).ready(function($) {
fCount++;
$(this).parent().find('.field-count').val(fCount);
} else {
- $(this).before('Only '+fLimit+' repeater field will be permitted.');
+ $(this).before('Only '+fLimit+' repeater field will be permitted.');
return;
}
var $this = $(this).parent();
if(typeof $this != 'undefined') {
- var field = $this.find(".mt-repeater-field-control:first").clone();
+ var field = $this.find(".sad-repeater-field-control:first").clone();
if(typeof field != 'undefined'){
field.find("input[type='text'][data-name]").each(function(){
@@ -112,10 +112,10 @@ jQuery(document).ready(function($) {
}
});
- field.find(".mt-repeater-icon-list").each(function(){
+ field.find(".sad-repeater-icon-list").each(function(){
var defaultValue = $(this).next('input[data-name]').attr('data-default');
$(this).next('input[data-name]').val(defaultValue);
- $(this).prev('.mt-repeater-selected-icon').children('i').attr('class','').addClass(defaultValue);
+ $(this).prev('.sad-repeater-selected-icon').children('i').attr('class','').addClass(defaultValue);
$(this).find('li').each(function(){
var icon_class = $(this).find('i').attr('class');
@@ -127,9 +127,9 @@ jQuery(document).ready(function($) {
});
});
- field.find('.mt-repeater-fields').show();
- $this.find('.mt-repeater-field-control-wrap').append(field);
- field.addClass('expanded').find('.mt-repeater-fields').show();
+ field.find('.sad-repeater-fields').show();
+ $this.find('.sad-repeater-field-control-wrap').append(field);
+ field.addClass('expanded').find('.sad-repeater-fields').show();
$('.accordion-section-content').animate({ scrollTop: $this.height() }, 1000);
sophia_after_dark_refresh_repeater_values();
}
@@ -138,9 +138,9 @@ jQuery(document).ready(function($) {
return false;
});
- $("#customize-theme-controls").on("click", ".mt-repeater-field-remove",function(){
+ $("#customize-theme-controls").on("click", ".sad-repeater-field-remove",function(){
if( typeof $(this).parent() != 'undefined'){
- $(this).closest('.mt-repeater-field-control').slideUp('normal', function(){
+ $(this).closest('.sad-repeater-field-control').slideUp('normal', function(){
$(this).remove();
sophia_after_dark_refresh_repeater_values();
});
@@ -156,7 +156,7 @@ jQuery(document).ready(function($) {
/**
* Drag and drop to change order
*/
- $(".mt-repeater-field-control-wrap").sortable({
+ $(".sad-repeater-field-control-wrap").sortable({
orientation: "vertical",
update: function( event, ui ) {
sophia_after_dark_refresh_repeater_values();
@@ -169,11 +169,11 @@ jQuery(document).ready(function($) {
var mtFrame;
//Add image
- $('.customize-control-mt-repeater').on( 'click', '.mt-upload-button', function( event ){
+ $('.customize-control-sad-repeater').on( 'click', '.sad-upload-button', function( event ){
event.preventDefault();
- var imgContainer = $(this).closest('.mt-fields-wrap').find( '.thumbnail-image'),
- placeholder = $(this).closest('.mt-fields-wrap').find( '.placeholder'),
+ var imgContainer = $(this).closest('.sad-fields-wrap').find( '.thumbnail-image'),
+ placeholder = $(this).closest('.sad-fields-wrap').find( '.placeholder'),
imgIdInput = $(this).siblings('.upload-id');
mtFrame = wp.media({
@@ -195,10 +195,10 @@ jQuery(document).ready(function($) {
});
// DELETE IMAGE LINK
- $('.customize-control-mt-repeater').on( 'click', '.mt-delete-button', function( event ){
+ $('.customize-control-sad-repeater').on( 'click', '.sad-delete-button', function( event ){
event.preventDefault();
- var imgContainer = $(this).closest('.mt-fields-wrap').find( '.thumbnail-image'),
- placeholder = $(this).closest('.mt-fields-wrap').find( '.placeholder'),
+ var imgContainer = $(this).closest('.sad-fields-wrap').find( '.thumbnail-image'),
+ placeholder = $(this).closest('.sad-fields-wrap').find( '.placeholder'),
imgIdInput = $(this).siblings('.upload-id');
imgContainer.find('img').remove();
placeholder.removeClass('hidden');
@@ -208,15 +208,15 @@ jQuery(document).ready(function($) {
/**
* Repeater icon selector
*/
- $('body').on('click', '.mt-repeater-icon-list li', function(){
+ $('body').on('click', '.sad-repeater-icon-list li', function(){
var icon_class = $(this).find('i').attr('class');
$(this).addClass('icon-active').siblings().removeClass('icon-active');
- $(this).parent('.mt-repeater-icon-list').prev('.mt-repeater-selected-icon').children('i').attr('class','').addClass(icon_class);
- $(this).parent('.mt-repeater-icon-list').next('input').val(icon_class).trigger('change');
+ $(this).parent('.sad-repeater-icon-list').prev('.sad-repeater-selected-icon').children('i').attr('class','').addClass(icon_class);
+ $(this).parent('.sad-repeater-icon-list').next('input').val(icon_class).trigger('change');
sophia_after_dark_refresh_repeater_values();
});
- $('body').on('click', '.mt-repeater-selected-icon', function(){
+ $('body').on('click', '.sad-repeater-selected-icon', function(){
$(this).next().slideToggle();
});
});
\ No newline at end of file
diff --git a/functions.php b/functions.php
index 30439c9..755ea06 100644
--- a/functions.php
+++ b/functions.php
@@ -1,4 +1,4 @@
-
+
@@ -57,7 +57,7 @@ get_header();
-
+
-
+
-
+
diff --git a/inc/customizer/mt-customizer-custom-classes.php b/inc/customizer/mt-customizer-custom-classes.php
index dee4afb..98b1f29 100644
--- a/inc/customizer/mt-customizer-custom-classes.php
+++ b/inc/customizer/mt-customizer-custom-classes.php
@@ -1,4 +1,4 @@
-
-
-
+
-
-
sophia_after_dark_box_label ); ?>
-+- +
sophia_after_dark_box_label ); ?>
+$field ) { $class = isset( $field['class'] ) ? $field['class'] : ''; ?> -+ - +
-
sophia_after_dark_get_fields(); ?>