Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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' ).prepend( '<span class="' + icon + '" style="padding-right:.2em;"></span>' );
- // Add icons on titles when a section is open.
- jQuery( '#sub-accordion-section-' + sectionID + ' .customize-section-title > h3' ).append( '<span class="' + icon + '" style="padding-right:.2em; padding-top: 2px; float:left;"></span>' );
- } );
- }
- if ( ! _.isUndefined( kirkiIcons.panel ) ) {
- _.each( kirkiIcons.panel, function( icon, panelID ) {
- // Add icons in lists & headers.
- jQuery( '#sub-accordion-panel-' + panelID + ' .panel-title' ).prepend( '<span class="' + icon + '" style="padding-right:.2em; padding-top: 2px;"></span>' );
- // Add icons on titles when a panel is open.
- jQuery( '#accordion-panel-' + panelID + ' > h3' ).prepend( '<span class="' + icon + '" style="padding-right:.2em;"></span>' );
- } );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement