function bean_createaccount_admin_notice() { global $pagenow; if ($pagenow == 'index.php') { if (bean_theme_supports('plugins', 'notice')) { global $current_user; $user_id = $current_user->ID; if (!get_user_meta($user_id, 'bean_createaccount_ignore_notice')) { echo '<div class="updated bean-plugin-notification">'; echo '<p>'; printf(__('<a target="_blank" href="http://themebeans.com/register/?level=2/?ref=theme_notice_createaccount">Create a free ThemeBeans account</a> to access all our free themes and plugins. <a class="dismiss-notice" href="%1$s">Dismiss</a>'), '?bean_createaccount_ignore=0'); echo '</p>'; echo "</div>"; } } //END if( bean_theme_supports( 'plugins', 'notice' )) } //END if (( $pagenow == 'index.php' )) }
function check_for_update() { //CHECKS THE THEME FUNCTIONS FILE TO SEE IF UPDATES IS ENABLED if (bean_theme_supports('primary', 'updates')) { $theme = wp_get_theme($this->theme_slug); $update_data = get_transient($this->response_key); if (false === $update_data) { $failed = false; if (empty($this->license)) { return false; } $api_params = array('edd_action' => 'get_version', 'license' => $this->license, 'name' => $this->item_name, 'slug' => $this->theme_slug, 'author' => $this->author, 'url' => home_url()); $response = wp_remote_post($this->remote_api_url, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params)); // make sure the response was successful if (is_wp_error($response) || 200 != wp_remote_retrieve_response_code($response)) { $failed = true; } $update_data = json_decode(wp_remote_retrieve_body($response)); if (!is_object($update_data)) { $failed = true; } // if the response failed, try again in 30 minutes if ($failed) { $data = new stdClass(); $data->new_version = $this->version; set_transient($this->response_key, $data, strtotime('+30 minutes')); return false; } // if the status is 'ok', return the update arguments if (!$failed) { $update_data->sections = maybe_unserialize($update_data->sections); set_transient($this->response_key, $update_data, strtotime('+12 hours')); } } if (version_compare($this->version, $update_data->new_version, '>=')) { return false; } return (array) $update_data; } //if( bean_theme_supports( 'primary', 'updates' ) ) { }
function bean_license_admin_notice() { global $pagenow; if ($pagenow == 'index.php') { if (bean_theme_supports('plugins', 'notice')) { global $current_user; $user_id = $current_user->ID; if (!get_user_meta($user_id, 'bean_license_ignore_notice')) { echo '<div class="updated bean-license-notification">'; echo '<p>'; echo '<a href="' . admin_url('/themes.php?page=themebeans-license') . '/">Enter your theme license key</a>'; echo ' to recieve updates & support for ' . BEAN_THEME_NAME . '. '; printf(__('<a class="dismiss-notice" href="%1$s">Dismiss</a>'), '?bean_license_ignore=0'); echo "</p>"; echo "</div>"; } } //END if( bean_theme_supports( 'plugins', 'notice' )) } //END if (( $pagenow == 'index.php' )) }
function bean_plugin_admin_notice() { global $pagenow; if ($pagenow == 'index.php') { if (bean_theme_supports('plugins', 'notice')) { global $current_user; $user_id = $current_user->ID; if (!get_user_meta($user_id, 'bean_plugin_ignore_notice')) { echo '<div class="updated bean-plugin-notification">'; echo '<p>'; echo '' . BEAN_THEME_NAME . ' is compatible with the ThemeBeans '; //PLUGIN LIST if (bean_theme_supports('plugins', 'portfolio')) { echo '<a href=" ' . BEAN_PORTFOLIO_PLUGIN_URL . ' " target="blank">Portfolio</a>'; echo ', '; } if (bean_theme_supports('plugins', 'twitter')) { echo '<a href="' . BEAN_TWEETS_PLUGIN_URL . '" target="blank">Twitter</a>'; echo ', '; } if (bean_theme_supports('plugins', 'instagram')) { echo '<a href="' . BEAN_INSTAGRAM_PLUGIN_URL . '" target="blank">Instagram</a>'; echo ', '; } if (bean_theme_supports('plugins', '500px')) { echo '<a href="' . BEAN_500PX_PLUGIN_URL . '" target="blank">500px</a>'; echo ', '; } if (bean_theme_supports('plugins', 'dribbble')) { echo '<a href="' . BEAN_DRIBBBLE_PLUGIN_URL . '" target="blank">Dribbble</a>'; echo ', '; } if (bean_theme_supports('plugins', 'social')) { echo '<a href="' . BEAN_SOCIAL_PLUGIN_URL . '" target="blank">Social</a>'; echo ', '; } if (bean_theme_supports('plugins', 'pricingtables')) { echo '<a href="' . BEAN_PRICINGTABLES_PLUGIN_URL . '" target="blank">Pricing Tables</a>'; echo ', '; } if (bean_theme_supports('plugins', 'registry')) { echo '<a href="' . BEAN_REGISTRY_PLUGIN_URL . '" target="blank">Registry</a>'; echo ', '; } if (bean_theme_supports('plugins', 'modals')) { echo '<a href="' . BEAN_MODALS_PLUGIN_URL . '" target="blank">Modals</a>'; echo ', '; } if (bean_theme_supports('plugins', 'team')) { echo '<a href="' . BEAN_TEAM_PLUGIN_URL . '" target="blank">Team</a>'; echo ', '; } if (bean_theme_supports('plugins', 'testimonials')) { echo '<a href="' . BEAN_TESTIMONIALS_PLUGIN_URL . '" target="blank">Testimonials</a>'; echo ', '; } //THIS ONE REMAINS LAST if (bean_theme_supports('plugins', 'shortcodes')) { echo '& <a href="' . BEAN_SHORTCODES_PLUGIN_URL . '" target="blank">Shortcodes</a>'; echo ' '; } printf(__('WordPress Plugins. <a class="dismiss-notice" href="%1$s">Dismiss</a>'), '?bean_plugin_ignore=0'); echo "</p>"; echo "</div>"; } } //END if( bean_theme_supports( 'plugins', 'notice' )) } //END if (( $pagenow == 'index.php' )) }
} elseif ($theme_title_clean == 'Koi') { $download_id = '21061'; } elseif ($theme_title_clean == 'Grille') { $download_id = '20784'; } elseif ($theme_title_clean == 'Macho') { $download_id = '54570'; } elseif ($theme_title_clean == 'Execute') { $download_id = '54571'; } elseif ($theme_title_clean == 'Trim') { $download_id = '54568'; } elseif ($theme_title_clean == 'Spaces') { $download_id = '53734'; } elseif ($theme_title_clean == 'Forte') { $download_id = '56148'; } elseif ($theme_title_clean == 'Bricks') { $download_id = '65497'; } else { $download_id = ''; } // CHECKOUT URLS if ($license) { define('LICENSE_CHECKOUT_URL', 'http://themebeans.com/checkout/?edd_license_key=' . $license . '&download_id=' . $download_id . ''); } else { define('LICENSE_CHECKOUT_URL', 'http://themebeans.com/?edd_action=add_to_cart&download_id=' . $download_id . ''); } // LICENSE REQEUST URLS if (bean_theme_supports('shop', 'tf')) { define('LICENSE_REQUEST_URL', 'http://themebeans.com/themeforest'); } else { define('LICENSE_REQUEST_URL', 'http://themebeans.com/themeforest'); }
function bean_admin_styles() { //DISPLAY META STYLESHEET IF TRUE if (bean_theme_supports('primary', 'meta')) { wp_enqueue_style('wp-color-picker'); wp_enqueue_style('bean-meta-css', BEAN_FRAMEWORK_CSS_URL . '/bean-meta.css'); } //DISPLAY ADMIN STYLESHEET IF TRUE (CUSTOM CSS TO MAKE THINGS LOOK A BIT BETTER) if (bean_theme_supports('primary', 'adminstyles')) { wp_enqueue_style('bean-admin-css', BEAN_FRAMEWORK_CSS_URL . '/bean-admin.css'); } }
&summary=<?php echo get_the_excerpt(); ?> &source=<?php echo home_url(); ?> " class="linkedin" target="blank"></a> </div> <div class="next"><?php next_post_link('%link', '<span class="title">%title</span><span class="arrow"></span>'); ?> </div> </div><!-- END .entry-navigation --> <?php //COMMENTS if (bean_theme_supports('comments', 'posts')) { bean_comments_start(); comments_template('', true); bean_comments_end(); } //RELATED POSTS if (true) { $terms = get_the_terms($post->ID, 'category'); if ($terms && !is_wp_error($terms)) { get_template_part('content', 'post-related'); } } } } get_footer();
function edd_themebeans_theme_license_page() { $license = get_option('edd_themebeans_theme_license_key'); $status = get_option('edd_themebeans_theme_license_key_status'); $theme = wp_get_theme(); $name = $theme->get('Name'); $name = str_replace("Child", "", $name); $name = preg_replace('/\\s+/', '', $name); ?> <div class="wrap"> <h2><?php _e('Theme License', 'bean'); ?> </h2> <p><?php _e('In order to access support and updates for ' . $name . ' WordPress theme, you will need to enter a valid license key. Need help finding your license key? <a href="http://themebeans.com/support/locating-your-license-key/">Click here for instructions →</a>', 'bean'); ?> </p> <br/> <form method="post" action="options.php"> <?php settings_fields('edd_themebeans_theme_license'); ?> <h3 style="font-size: 15px; font-weight: 600; color: #222; margin-bottom: 10px;"><?php _e('Details', 'bean'); ?> </h3> <p><?php _e('It is important to keep your license up to date in order to continue getting updates for ' . $name . ' and support for any issues you may encounter. Renewing your license grants you access to support and updates for another year, including all updates for bug fixes and feature introductions.', 'bean'); ?> </p> <?php if (false !== $license) { ?> <?php if ($status !== false && $status == 'valid') { ?> <?php wp_nonce_field('edd_sample_nonce', 'edd_sample_nonce'); ?> <p><?php _e('Don't let your license expire. Renew your license and <strong>Save 30%</strong> right off!', 'bean'); ?> </p> <?php } ?> <?php } ?> <?php //PHP PULL CONTENTS $jsonaddress = 'http://demo.themebeans.com/wp-content/themes/' . strtolower($name) . '/changelog.txt'; $version = @file_get_contents($jsonaddress, NULL, NULL, 0, 5); $theme = wp_get_theme($name); $your_version = $theme->get('Version'); ?> <br/> <h3 style="font-size: 15px; font-weight: 600; color: #222; margin-bottom: 10px;"><?php _e('' . $name . ' Info', 'bean'); ?> </h3> <p style="line-height:24px;"> <strong><?php _e('Your Version:', 'bean'); ?> </strong> <?php echo nl2br($your_version); ?> <br/> <strong><?php _e('Current Version:', 'bean'); ?> </strong> <?php echo nl2br($version); ?> <a href="<?php echo BEAN_THEME_CHANGELOG_URL; ?> " target="_blank"> (changelog)</a><br/> <strong><?php _e('License Key:', 'bean'); ?> </strong> <?php echo $license; ?> <br/> <strong><?php _e('Status:', 'bean'); ?> </strong> <span style="text-transform: capitalize;"><?php echo $status; ?> </span> </p> <br/> <h3 style="font-size: 15px; font-weight: 600; color: #222; margin-bottom: 10px;"><?php _e('License Key', 'bean'); ?> </h3> <input id="edd_themebeans_theme_license_key" name="edd_themebeans_theme_license_key" type="text" class="regular-text" value="<?php echo esc_attr($license); ?> " /> <?php if (false !== $license) { ?> <?php if ($status !== false && $status == 'valid') { ?> <?php wp_nonce_field('edd_sample_nonce', 'edd_sample_nonce'); ?> <input type="submit" class="button-secondary" name="edd_theme_license_deactivate" value="<?php _e('Deactivate', 'bean'); ?> "/> <span style="color:#FFF; position: relative; top: -2px; background-color: #3bc492; padding: 4px 8px 6px;; border-radius: 2px; "><?php _e('Active'); ?> </span> <p><a href="<?php echo LICENSE_CHECKOUT_URL; ?> " target="_blank"><?php _e('Renew your license for ' . $name . '', 'bean'); ?> →</a></p> <?php } else { wp_nonce_field('edd_sample_nonce', 'edd_sample_nonce'); ?> <input type="submit" class="button-secondary" name="edd_theme_license_activate" value="<?php _e('Activate', 'bean'); ?> "/> <?php if (bean_theme_supports('shop', 'tf')) { ?> <p><?php _e('Did you purchase ' . $name . ' from ThemeForest? <a href="' . LICENSE_REQUEST_URL . '" target="_blank">Request a license key today →</a> ', 'bean'); ?> </p> <?php } elseif (bean_theme_supports('shop', 'cm')) { ?> <p><?php _e('Did you purchase ' . $name . ' from Creative Market? <a href="' . LICENSE_REQUEST_URL . '" target="_blank">Request a license key today →</a> ', 'bean'); ?> </p> <?php } else { ?> <p><?php _e('Need a license key for ' . $name . '? ', 'bean'); ?> <a href="<?php echo LICENSE_CHECKOUT_URL; ?> " target="_blank"><?php _e('Get one today →', 'bean'); ?> </a></p> <?php } ?> <?php } ?> <?php } ?> <?php submit_button(); ?> </form> <?php }
function bean_debug_footer_css() { // only proceed if the current user's capabilities include 'manage_options' if (!current_user_can('manage_options')) { return; } if (bean_theme_supports('debug', 'footer') or bean_theme_supports('debug', 'queries')) { ?> <style> #bean-debug-footer, #bean-debug-queries { background-color: #222; bottom: 0; color: #FFF; font-size: 14px; font-family: "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif; height: 60px; line-height: 60px; padding: 0 30px; position: fixed; width: 100%; z-index: 9999; } #bean-debug-footer.debug-both { bottom: 32px; } /* DEBUG BAR TYPOGRAPHY */ #bean-debug-footer span { font-weight: bold; } #bean-debug-footer span.debug-detail { color: #858585; font-size: 13px; font-weight: normal; } #bean-debug-footer ul li { display: inline-block; line-height: 60px; margin-right: 15px; } #bean-debug-footer ul li:last-child { margin-right: 0px; } #bean-debug-footer ul li a.bean-changelog { background: #383838; border-radius: 2px; color: #FFF; font-size: 13px; padding: 4px 8px; } #bean-debug-footer ul li a.bean-changelog:hover { background: #414141; } #bean-debug-footer .server-details { text-align: right; } /* QUERIES BAR */ #bean-debug-queries { background-color: #161616; box-shadow: none; color: #858585; font-size: 13px; height: 32px; line-height: 34px; padding: 0 30px; text-align: center; }</style> <?php } //END if( bean_theme_supports( 'debug', 'footer' ) OR bean_theme_supports( 'debug', 'queries' ) }
<?php /** * This file contains the primary footer debug module. * * * @package WordPress * @subpackage Bean Framework * @author ThemeBeans * @since Bean Framework 2.0 */ //ADD A CLASS, JUST IN CASE BOTH BARS ARE ENABLED if (bean_theme_supports('debug', 'footer') && bean_theme_supports('debug', 'queries')) { $debugclass = 'debug-both'; } else { $debugclass = ''; } ?> <div id="bean-debug-footer" class="<?php echo esc_html($debugclass); ?> "> <div class="four columns"> <ul class="theme-details"> <li><?php _e('<span>Theme:</span> <span class="debug-detail">' . BEAN_THEME_NAME . ' v' . BEAN_THEME_VER . '</span>', 'bean'); ?> </li> <li><a class="bean-changelog" target="_blank" href="<?php echo strtolower(BEAN_THEME_CHANGELOG_URL);
/* LOAD FUNCTIONS /*===================================================================*/ // MEDIA FUNCTIONS require BEAN_FUNCTIONS_DIR . '/media.php'; // LOAD POST LIKES include BEAN_FUNCTIONS_DIR . '/bean-likes.php'; // LOAD WIDGETS if (bean_theme_supports('primary', 'widgets')) { include BEAN_WIDGETS_DIR . '/widget-flickr.php'; include BEAN_WIDGETS_DIR . '/widget-video.php'; } // THEME META if (is_admin()) { if (bean_theme_supports('primary', 'meta')) { require_once BEAN_INC_DIR . '/meta/meta-page.php'; require_once BEAN_INC_DIR . '/meta/meta-post.php'; require_once BEAN_INC_DIR . '/meta/meta-team.php'; } } // META SCRIPT if (bean_theme_supports('primary', 'meta')) { function bean_admin_meta_js() { wp_enqueue_script('admin-meta', BEAN_INC_URL . '/meta/js/meta.js', 'jquery', '1.0', true); } add_action('admin_enqueue_scripts', 'bean_admin_meta_js'); } // CUSTOMIZER FONTS if (bean_theme_supports('primary', 'customizer') && bean_theme_supports('primary', 'fonts')) { require_once BEAN_FUNCTIONS_DIR . '/bean-fonts.php'; }
function Bean_Customize_Variables() { //COLOR VARIABLES $wrapper_background_color = get_theme_mod('wrapper_background_color', '#FFF'); $theme_accent_color = get_theme_mod('theme_accent_color', '#F54452'); //TYPOGRAPHY VARIABLES $type_select_logo = get_theme_mod('type_select_logo'); $logo_size = get_theme_mod('type_slider_logo_size'); $logo_lineheight = get_theme_mod('type_slider_logo_lineheight'); $logo_letterspacing = get_theme_mod('type_slider_logo_letterspacing'); $type_select_primary_headings = get_theme_mod('type_select_primary_headings'); $type_select_secondary_headings = get_theme_mod('type_select_secondary_headings'); $type_select_body = get_theme_mod('type_select_body'); $type_select_body_sec = get_theme_mod('type_select_body_sec'); ?> <style><?php /*===================================================================*/ /* THEME CUSTOMIZER COLORS/STYLES /*===================================================================*/ $customizations = ' body, #theme-wrapper { background-color:' . $wrapper_background_color . '!important; } a { color:' . $theme_accent_color . '; } .cats, .team-member h6 a:hover, #wp-calendar tbody a, .index-pagination a:hover, .widget_bean_tweets a.button:hover, p a:hover, h1 a:hover, .author-tag, .a-link:hover, .widget a:hover, .widget li a:hover, #filter li a.active, #filter li a.hover, .entry-meta a:hover, .pagination a:hover, header ul li a:hover, footer ul li a:hover, .single-price .price, .entry-title a:hover, .comment-meta a:hover, h2.entry-title a:hover, li.current-menu-item a, .comment-author a:hover, .products li h2 a:hover, .entry-link a.link:hover, .team-content h3 a:hover, .archives-list li a:hover, .site-description a:hover, .bean-tabs > li.active > a, .bean-panel-title > a:hover, .grid-item .entry-meta a:hover, .bean-tabs > li.active > a:hover, .bean-tabs > li.active > a:focus, #cancel-comment-reply-link:hover, .shipping-calculator-button:hover, .single-product ul.tabs li a:hover, .grid-item.post .entry-meta a:hover, .single-product ul.tabs li.active a, .single-portfolio .sidebar-right a.url, .grid-item.portfolio .entry-meta a:hover, .portfolio.grid-item span.subtext a:hover, .sidebar .widget_bean_tweets .button:hover, .entry-content .portfolio-social li a:hover, header ul > .sfHover > a.sf-with-ul, .product-content h2 a:hover, #cancel-comment:hover, .hidden-sidebar.dark .widget_bean_tweets .button:hover, .entry-content .wp-playlist-dark .wp-playlist-playing .wp-playlist-caption, .entry-content .wp-playlist-light .wp-playlist-playing .wp-playlist-caption, .entry-content .wp-playlist-dark .wp-playlist-playing .wp-playlist-item-title, .entry-content .wp-playlist-light .wp-playlist-playing .wp-playlist-item-title { color:' . $theme_accent_color . '!important; } .onsale, .new-tag, .bean-btn, .bean-shot, .btn:hover, .button:hover, div.jp-play-bar, .flickr_badge_image, div.jp-volume-bar-value, .btn[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, input[type="submit"]:hover, .rcp-access-btns .btn.rcp-subscribe, .button[type="submit"]:hover, #load-more:hover .overlay h5, .sidebar-btn .menu-icon:hover, .widget .buttons .checkout.button, .side-menu .sidebar-btn .menu-icon, .dark_style .sidebar-btn .menu-icon, .comment-form-rating p.stars a.active, .dark_style .masonry-item .overlay-arrow, table.cart td.actions .checkout-button.button, .subscribe .mailbag-wrap input[type="submit"]:hover, .page-template-template-landing-php #load-more:hover, .entry-content .mejs-controls .mejs-time-rail span.mejs-time-current { background-color:' . $theme_accent_color . '; } .entry-content .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current { background:' . $theme_accent_color . '; } .bean-btn { border: 1px solid ' . $theme_accent_color . '!important; } .bean-quote, .instagram_badge_image, .bean500px_badge_image, .products li a.added_to_cart, .single_add_to_cart_button.button, .btn:hover, .button:hover, .btn[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, input[type="submit"]:hover, .button[type="submit"]:hover, .dark_style.side-menu .sidebar-btn .menu-icon:hover { background-color:' . $theme_accent_color . '!important; } '; //GRID FILTERS $css_filter_style = get_theme_mod('post_css_filter'); if ($css_filter_style != '') { switch ($css_filter_style) { case 'none': // DO NOTHING break; case 'grayscale': echo 'article .background-video, article .post-cover { filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); filter:gray; -webkit-filter:grayscale(100%);-moz-filter: grayscale(100%);-o-filter: grayscale(100%);}'; break; case 'sepia': echo 'article .background-video, article .post-cover { -webkit-filter: sepia(50%); }'; break; case 'saturation': echo 'article .background-video, article .post-cover { -webkit-filter: saturate(150%); }'; break; } } //PAGE TEXT ALIGNMENT $page_text_align = get_post_meta(get_the_ID(), '_bean_page_text_align', true); if ($page_text_align) { echo '.entry-content {text-align:' . $page_text_align . '!important;}'; } /*===================================================================*/ /* BEAN PRICING TABLE PLUGIN, IF ACTIVATED /*===================================================================*/ include_once ABSPATH . 'wp-admin/includes/plugin.php'; if (is_plugin_active('bean-pricingtables/bean-pricingtables.php')) { echo '.bean-pricing-table .pricing-column li span {color:' . $theme_accent_color . '!important;}#powerTip,.bean-pricing-table .pricing-highlighted{background-color:' . $theme_accent_color . '!important;}#powerTip:after {border-color:' . $theme_accent_color . ' transparent!important; }'; } /*===================================================================*/ /* CUSTOM FONTS - ONLY IF ENABLED /*===================================================================*/ if (bean_theme_supports('primary', 'fonts')) { if ($type_select_primary_headings != 'default') { //DEFAULT IS COURIER $headings_output = ' h1, h5 { font-family: ' . $type_select_primary_headings . '!important; }'; } else { $headings_output = ''; } if ($type_select_secondary_headings != 'default') { //DEFAULT IS HELVETICA $headings_sec_output = ' .onsale { font-family: ' . $type_select_secondary_headings . '!important; }'; } else { $headings_sec_output = ''; } if ($type_select_body != 'default') { //DEFAULT IS COURIER $body_output = 'p, body { font-family: ' . $type_select_body . '!important; }'; } else { $body_output = ''; } //LOGO FONTS $custom_fonts_output = 'h1.logo_text { font-size: ' . $logo_size . 'px!important; line-height: ' . $logo_lineheight . 'px!important; letter-spacing: ' . $logo_letterspacing . 'px!important; } '; if ($type_select_logo != 'default') { $logo_output = 'h1.logo_text { font-family: ' . $type_select_logo . '!important; }'; } else { $logo_output = ''; } //COMPILE FOR OUTPUT $customfonts = $logo_output . $custom_fonts_output . $body_output . $headings_sec_output . $headings_output; } else { $customfonts = ''; } //END if( bean_theme_supports( 'primary', 'fonts' )) /*===================================================================*/ /* CUSTOM CSS /*===================================================================*/ $customcss = get_theme_mod('bean_tools_css'); /*===================================================================*/ /* FINAL OUTPUT /*===================================================================*/ //COMBINE THE VARIABLES FROM ABOVE $customizer_final_output = $customfonts . $customizations . $customcss; $final_output = preg_replace('#/\\*.*?\\*/#s', '', $customizer_final_output); $final_output = preg_replace('/\\s*([{}|:;,])\\s+/', '$1', $final_output); $final_output = preg_replace('/\\s\\s+(.*)/', '$1', $final_output); echo $final_output; ?> </style> <?php }