mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-28 22:04:49 +08:00
Initial commit
This commit is contained in:
commit
b0607606ae
369 changed files with 85494 additions and 0 deletions
30
functions/kirki/modules/icons/icons.js
Normal file
30
functions/kirki/modules/icons/icons.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* global kirkiIcons */
|
||||
jQuery( document ).ready( function() {
|
||||
|
||||
'use strict';
|
||||
|
||||
if ( ! _.isUndefined( kirkiIcons.section ) ) {
|
||||
|
||||
// Parse sections and add icons.
|
||||
_.each( kirkiIcons.section, function( icon, sectionID ) {
|
||||
|
||||
// Add icons in list.
|
||||
jQuery( '#accordion-section-' + sectionID + ' > h3' ).addClass( 'dashicons-before ' + icon );
|
||||
|
||||
// Add icons on titles when a section is open.
|
||||
jQuery( '#sub-accordion-section-' + sectionID + ' .customize-section-title > h3' ).append( '<span class="dashicons ' + icon + '" style="float:left;padding-right:.1em;padding-top:2px;"></span>' );
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
if ( ! _.isUndefined( kirkiIcons.panel ) ) {
|
||||
|
||||
_.each( kirkiIcons.panel, function( icon, panelID ) {
|
||||
|
||||
// Add icons in lists & headers.
|
||||
jQuery( '#accordion-panel-' + panelID + ' > h3, #sub-accordion-panel-' + panelID + ' .panel-title' ).addClass( 'dashicons-before ' + icon );
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue