/* * Customizer-controls.js * * Add Theme Page, Theme Documentation and Rate this theme quick links to theme options panel in customizer * */ ( function( $ ) { // Add Theme Links if ('undefined' !== typeof anderson_theme_links) { // Theme Links Wrapper box = $('') .css({ 'margin-top' : '14px', 'padding' : '2px 14px 14px', 'line-height': '2', 'font-size' : '14px', 'clear' : 'both' }); title = $('

').text(anderson_theme_links.title).css({ 'margin-bottom' : '4px' }); // Theme Links themePage = $('') .attr('href', anderson_theme_links.themeURL) .attr('target', '_blank') .text(anderson_theme_links.themeLabel) .css({ 'display' : 'block' }); themeDocu = $('') .attr('href', anderson_theme_links.docuURL) .attr('target', '_blank') .text(anderson_theme_links.docuLabel) .css({ 'display' : 'block' }); rateTheme = $('') .attr('href', anderson_theme_links.rateURL) .attr('target', '_blank') .text(anderson_theme_links.rateLabel) .css({ 'display' : 'block' }); // Add Links to Box content = box.append(title).append(themePage).append(themeDocu).append(rateTheme); setTimeout(function () { $('#accordion-panel-anderson_panel_options .control-panel-content').append(content); }, 2000); // Remove accordion click event $('.anderson-theme-links a').on('click', function(e) { e.stopPropagation(); }); } } )( jQuery );