/* Add theme related links to theme customizer */ (function($) { if ('undefined' !== typeof fc_benews_links) { // Add Upgrade Notice upgrade = $('') .attr('href', fc_benews_links.upgradeURL) .attr('target', '_blank') .text(fc_benews_links.upgradeLabel); $('.preview-notice').append(upgrade); // Theme Links box = $(''); title = $('') .text(fc_benews_links.title); themePage = $('') .attr('href', fc_benews_links.themeURL) .attr('target', '_blank') .text(fc_benews_links.themeLabel); themeDocu = $('') .attr('href', fc_benews_links.docsURL) .attr('target', '_blank') .text(fc_benews_links.docsLabel); themeSupport = $('') .attr('href', fc_benews_links.supportURL) .attr('target', '_blank') .text(fc_benews_links.supportLabel); themeRate = $('') .attr('href', fc_benews_links.rateURL) .attr('target', '_blank') .text(fc_benews_links.rateLabel); // Add Theme Links links = box.append(title).append(themePage).append(themeDocu).append(themeSupport).append(themeRate); setTimeout(function() { $('#accordion-panel-mh_theme_options .control-panel-content').append(links); }, 2000); // Remove accordion click event $('.be-upgrade-link, .be-theme-link').on('click', function(e) { e.stopPropagation(); }); } })(jQuery);