function nebula_is_option_enabled($option = false) { $option = str_replace(array(' ', '_'), '', $option); switch ($option) { case 'adminbar': return nebula_option('nebula_admin_bar', 'enabled'); break; case 'authors': case 'author': case 'authorbios': return !nebula_option('nebula_author_bios', 'disabled'); break; case 'displayfeatures': case 'display': return !nebula_option('nebula_ga_displayfeatures', 'disabled'); break; case 'linkid': case 'enhancedlinkattribution': return !nebula_option('nebula_ga_displayfeatures', 'disabled'); break; case 'comments': return !nebula_option('nebula_comments', 'disabled'); break; case 'wireframing': return !nebula_option('nebula_wireframing', 'disabled'); break; default: return false; break; } return false; }
function nebula_console_warnings($console_warnings = array()) { if (is_dev() && nebula_option('nebula_admin_notices')) { //If search indexing is disabled if (get_option('blog_public') == 0) { if (is_site_live()) { $console_warnings[] = array('error', 'Search Engine Visibility is currently disabled!'); } elseif (!nebula_is_option_enabled('wireframing')) { $console_warnings[] = array('warn', 'Search Engine Visibility is currently disabled.'); } } if (is_site_live() && nebula_is_option_enabled('wireframing')) { $console_warnings[] = array('error', 'Wireframing mode is still enabled!'); } //If no Google Analytics tracking ID if (empty($GLOBALS['ga'])) { $console_warnings[] = array('error', 'No Google Analytics tracking ID!'); } //If there are warnings, send them to the console. if (!empty($console_warnings)) { echo '<script>'; foreach ($console_warnings as $console_warning) { if (is_string($console_warning)) { $console_warning = array($console_warning); } if (!in_array($console_warning[0], array('log', 'warn', 'error'))) { $warn_level = 'log'; $the_warning = $console_warning[0]; } else { $warn_level = $console_warning[0]; $the_warning = $console_warning[1]; } echo 'console.' . $warn_level . '("Nebula: ' . $the_warning . '");'; } echo '</script>'; } } }
<?php $debug_class = is_debug() ? 'debug' : ''; ?> <!doctype html <?php echo nebula_option('nebula_appcache_manifest') ? 'manifest="' . get_template_directory_uri() . '/includes/manifest.appcache"' : ''; ?> > <!--[if lt IE 7]><html <?php language_attributes(); ?> class="<?php echo $debug_class; ?> no-js ie ie6 lt-ie7 lte-ie7 lt-ie8 lte-ie8 lt-ie9 lte-ie9 lt-ie10"><![endif]--> <!--[if IE 7]><html <?php language_attributes(); ?> class="<?php echo $debug_class; ?> no-js ie ie7 lte-ie7 lt-ie8 lte-ie8 lt-ie9 lte-ie9 lt-ie10"><![endif]--> <!--[if IE 8]><html <?php language_attributes(); ?> class="<?php echo $debug_class; ?> no-js ie ie8 lte-ie8 lt-ie9 lte-ie9 lt-ie10"><![endif]--> <!--[if IE 9]><html <?php language_attributes();
}; return now.getFullYear() + '-' + pad(now.getMonth()+1) + '-' + pad(now.getDate()) + 'T' + pad(now.getHours()) + ':' + pad(now.getMinutes()) + ':' + pad(now.getSeconds()) + '.' + pad(now.getMilliseconds()) + dif + pad(tzo/60) + ':' + pad(tzo%60); } </script> <noscript><img src="<?php echo ga_UTM_gif(); //Track users who disable JavaScript. ?> " width="1" height="1" style="display: none;" /></noscript> <?php } ?> <?php if (nebula_option('nebula_facebook_custom_audience_pixel_id')) { ?> <script> !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','//connect.facebook.net/en_US/fbevents.js'); fbq('init', '<?php echo get_option('nebula_facebook_custom_audience_pixel_id'); ?> '); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<?php
} if (nebula_option('nebula_cd_timestamp')) { echo 'ga("set", gaCustomDimensions["timestamp"], isoTimestamp());'; } if (nebula_option('nebula_cd_weather')) { echo 'ga("set", gaCustomDimensions["weather"], "' . nebula_weather('conditions') . '");'; } if (nebula_option('nebula_cd_temperature')) { $temp_round = floor(nebula_weather('temperature') / 5) * 5; $temp_range = strval($temp_round) . '°F - ' . strval($temp_round + 4) . '°F'; echo 'ga("set", gaCustomDimensions["temperature"], "' . $temp_range . '");'; } ?> <?php if (nebula_option('nebula_cd_adblocker')) { //Our local show_ads.js only assigns adsEnabled variable to true. Best synchronous method of ad block detection. ?> var adBlockUser = '******'; if ( window.adsEnabled === undefined ){ adBlockUser = '******'; } ga('set', gaCustomDimensions['adblocker'], adBlockUser); <?php } ?> if ( jQuery('.notable-form').is('*') ){ ga('set', gaCustomMetrics['notableFormViews'], 1); }
function enqueue_nebula_frontend() { global $upload_dir, $localize_bloginfo, $localize_postinfo, $localize_clientinfo, $localize_nebula_options; //Stylesheets wp_enqueue_style('nebula-normalize'); wp_enqueue_style('nebula-gumby'); wp_enqueue_style('nebula-mmenu'); //wp_enqueue_style('nebula-animate_css'); wp_enqueue_style('nebula-jquery_ui'); wp_enqueue_style('nebula-font_awesome'); wp_enqueue_style('nebula-google_font'); wp_enqueue_style('nebula-main'); if (!nebula_option('nebula_wireframing', 'disabled')) { wp_enqueue_style('nebula-wireframing'); wp_enqueue_script('nebula-wireframing'); } //Scripts wp_enqueue_script('jquery'); wp_enqueue_script('nebula-jquery_ui'); //wp_enqueue_script('swfobject'); //wp_enqueue_script('hoverIntent'); //wp_enqueue_script('nebula-modernizr_dev'); wp_enqueue_script('nebula-modernizr'); wp_enqueue_script('nebula-mmenu'); //wp_enqueue_script('nebula-doubletaptogo'); wp_enqueue_script('nebula-headroom'); wp_enqueue_script('nebula-gumby'); wp_enqueue_script('nebula-main'); wp_localize_script('nebula-main', 'bloginfo', $localize_bloginfo); wp_localize_script('nebula-main', 'postinfo', $localize_postinfo); wp_localize_script('nebula-main', 'clientinfo', $localize_clientinfo); wp_localize_script('nebula-main', 'nebula_options', $localize_nebula_options); //Conditionals if (is_debug()) { //When ?debug query string is used wp_enqueue_script('nebula-performance_timing'); //wp_enqueue_script('nebula-mmenu_debugger'); } if (nebula_is_browser('ie', '9', '<=')) { //Old IE wp_enqueue_script('nebula-respond'); wp_enqueue_script('nebula-html5shiv'); //wp_deregister_script('jquery'); //Uncomment the next jQuery lines if WordPress bundles jQuery 2.0+ (currently bundles jQuery 1.11.2) //wp_enqueue_script('nebula-jquery_old'); //Uncomment the next jQuery lines if WordPress bundles jQuery 2.0+ (currently bundles jQuery 1.11.2) } if (!empty($GLOBALS['ga']) && nebula_option('nebula_cd_adblocker')) { wp_enqueue_script('nebula-adblockcheck'); //Detect if user is blocking ads. If the custom dimension is active- removing this line will cause false positives. } if (is_page_template('tpl-search.php') || is_page(9999)) { //Form pages (that use selects) or Advanced Search Template. The Chosen library is also dynamically loaded in main.js. wp_enqueue_style('nebula-chosen'); wp_enqueue_script('nebula-chosen'); } if (is_page(9999)) { //Datatables pages. The Datatables library is also dynamically loaded in main.js wp_enqueue_style('nebula-datatables'); wp_enqueue_script('nebula-datatables'); } if (is_page(9999)) { //Twitter pages (conditional may need to change depending on type of page it's used on) wp_enqueue_script('nebula-twitter'); //wp_enqueue_script('nebula-moment'); //Uncomment if using moment.js instead of Date.parse() for times. } if (nebula_is_desktop()) { //Desktop traffic only //wp_enqueue_script('nebula-skrollr'); } }
function nebula_render_scss($specific_scss = null, $child = false) { $override = apply_filters('pre_nebula_render_scss', false, $specific_scss, $child); if ($override !== false) { return $override; } if (nebula_option('nebula_scss', 'enabled') && (isset($_GET['sass']) || isset($_GET['scss']) || $_GET['settings-updated'] == 'true') && (is_dev() || is_client())) { $specific_scss = 'all'; } $theme_directory = get_template_directory(); $theme_directory_uri = get_template_directory_uri(); if ($child) { $theme_directory = get_stylesheet_directory(); $theme_directory_uri = get_stylesheet_directory_uri(); } $stylesheets_directory = $theme_directory . '/stylesheets'; $stylesheets_directory_uri = $theme_directory_uri . '/stylesheets'; require_once get_template_directory() . '/includes/libs/scssphp/scss.inc.php'; //SCSSPHP is a compiler for SCSS 3.x $scss = new \Leafo\ScssPhp\Compiler(); $scss->addImportPath($stylesheets_directory . '/scss/partials/'); if (nebula_option('nebula_minify_css', 'enabled') && !is_debug()) { $scss->setFormatter('Leafo\\ScssPhp\\Formatter\\Compressed'); //Minify CSS (while leaving "/*!" comments for WordPress). } else { $scss->setFormatter('Leafo\\ScssPhp\\Formatter\\Compact'); //Compact, but readable, CSS lines if (is_debug()) { $scss->setLineNumberStyle(\Leafo\ScssPhp\Compiler::LINE_COMMENTS); //Adds line number reference comments in the rendered CSS file for debugging. } } if (empty($specific_scss) || $specific_scss == 'all') { //Partials $latest_partial = 0; foreach (glob($stylesheets_directory . '/scss/partials/*') as $partial_file) { if (filemtime($partial_file) > $latest_partial) { $latest_partial = filemtime($partial_file); } } //Combine Developer Stylesheets if (nebula_option('nebula_dev_stylesheets')) { nebula_combine_dev_stylesheets($stylesheets_directory, $stylesheets_directory_uri); } //Compile each SCSS file foreach (glob($stylesheets_directory . '/scss/*.scss') as $file) { //@TODO "Nebula" 0: Change to glob_r() but will need to create subdirectories if they don't exist. $file_path_info = pathinfo($file); if (is_file($file) && $file_path_info['extension'] == 'scss' && $file_path_info['filename'][0] != '_') { //If file exists, and has .scss extension, and doesn't begin with "_". $file_counter++; $css_filepath = $file_path_info['filename'] == 'style' ? $theme_directory . '/style.css' : $stylesheets_directory . '/css/' . $file_path_info['filename'] . '.css'; if (!file_exists($css_filepath) || filemtime($file) > filemtime($css_filepath) || $latest_partial > filemtime($css_filepath) || is_debug() || $specific_scss == 'all') { //If .css file doesn't exist, or is older than .scss file (or any partial), or is debug mode, or forced ini_set('memory_limit', '512M'); //Increase memory limit for this script. //@TODO "Nebula" 0: Is this the best thing to do here? Other options? WP_Filesystem(); global $wp_filesystem; $existing_css_contents = file_exists($css_filepath) ? $wp_filesystem->get_contents($css_filepath) : ''; if (!strpos(strtolower($existing_css_contents), 'scss disabled')) { //If the correlating .css file doesn't contain a comment to prevent overwriting $this_scss_contents = $wp_filesystem->get_contents($file); //Copy SCSS file contents $compiled_css = $scss->compile($this_scss_contents); //Compile the SCSS $enhanced_css = nebula_scss_variables($compiled_css); //Compile server-side variables into SCSS $wp_filesystem->put_contents($css_filepath, $enhanced_css); //Save the rendered CSS. } } } } if (!$child && is_child_theme()) { //If not in the second (child) pass, and is a child theme. nebula_render_scss($specific_scss, true); //Re-run on child theme stylesheets } } else { if (file_exists($specific_scss)) { //If $specific_scss is a filepath WP_Filesystem(); global $wp_filesystem; $scss_contents = $wp_filesystem->get_contents($specific_scss); $compiled_css = $scss->compile($scss_contents); //Compile the SCSS $enhanced_css = nebula_scss_variables($compiled_css); //Compile server-side variables into SCSS $wp_filesystem->put_contents(str_replace('.scss', '.css', $specific_scss), $enhanced_css); //Save the rendered CSS in the same directory. } else { //If $scss_file is raw SCSS string $compiled_css = $scss->compile($specific_scss); return nebula_scss_variables($compiled_css); //Return the rendered CSS } } }
<div class="entry-content"> <?php echo nebula_the_excerpt('Read More »', 70, 1); ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . 'Pages:', 'after' => '</div>')); //@TODO "Nebula" 0: Pagenavi ?> </div> <?php } ?> </article> <?php if (nebula_option('nebula_comments', 'disabled')) { ?> <div id="nebulacommentswrapper"> <?php comments_template('', true); ?> </div><!--/nebulacommentswrapper--> <?php } ?> <?php } } ?> <?php
function nebula_sass_manual_trigger() { if (nebula_option('nebula_scss', 'enabled') && (isset($_GET['sass']) || isset($_GET['scss']) || $_GET['settings-updated'] == 'true') && (is_dev() || is_client())) { nebula_render_scss('all'); //Re-render all SCSS files. return true; } else { return false; } }
function dashboard_developer_info() { do_action('nebula_developer_info'); $domain_exp_detected = whois_info('expiration'); $domain_exp_unix = strtotime(trim($domain_exp_detected)); $domain_exp = date("F j, Y", $domain_exp_unix); $domain_exp_style = $domain_exp_unix < strtotime('+1 month') ? 'color: red; font-weight: bold;' : 'color: inherit;'; $domain_exp_html = $domain_exp_unix > strtotime('March 27, 1986') ? ' <small style="' . $domain_exp_style . '">(Expires: ' . $domain_exp . ')</small>' : ''; $domain_registrar_url = whois_info('registrar_url'); $domain_registrar = whois_info('registrar'); $domain_reseller = whois_info('reseller'); //Construct Registrar info to be echoed if ($domain_registrar_url && strlen($domain_registrar_url) < 70) { $domain_registrar_html = $domain_registrar && strlen($domain_registrar) < 70 ? '<li><i class="fa fa-info-circle fa-fw"></i> Registrar: <strong><a href="//' . trim($domain_registrar_url) . '" target="_blank">' . $domain_registrar . '</a></strong>' : ''; } else { $domain_registrar_html = $domain_registrar && strlen($domain_registrar) < 70 ? '<li><i class="fa fa-info-circle fa-fw"></i> Registrar: <strong>' . trim($domain_registrar) . '</strong>' : ''; } if (trim($domain_registrar_html) != '' && $domain_reseller && strlen($domain_reseller) < 70) { $domain_registrar_html .= ' <small>(via ' . trim($domain_reseller) . ')</small></li>'; } else { $domain_registrar_html .= '</li>'; } if (nebula_option('nebula_domain_exp', 'enabled')) { if (get_option('nebula_domain_expiration_last') == 'Never' || get_option('nebula_domain_expiration_last') < strtotime('-2 weeks')) { if ($domain_exp != 'December 31, 1969' && $domain_exp_unix > strtotime("3/27/1986")) { if ($domain_exp_unix < strtotime('+1 week')) { //If domain is expiring within a week, email all admin users. $adminUsers = get_users(array('role' => 'Administrator')); $exp_notice_to = ''; $i = 0; $exp_notice_to = array(); foreach ($adminUsers as $adminUser) { array_push($exp_notice_to, $adminUsers[$i]->user_email); $i++; } $exp_notice_subject = 'Domain expiration detection of ' . $domain_exp . ' for ' . nebula_url_components('domain') . ' (via ' . get_bloginfo('name') . ')!'; $exp_notice_message = "Your domain " . nebula_url_components('domain') . " expires on " . $domain_exp . "! The detected registrar is: " . $domain_registrar . "(" . $domain_registrar_url . ") (However, the actual reseller may be different). This notice was triggered because the expiration date is within 1 week. It has been sent to all administrators of " . get_bloginfo('name') . " (" . home_url('/') . "), and will only be sent once!"; wp_mail($exp_notice_to, $exp_notice_subject, $exp_notice_message); update_option('nebula_domain_expiration_last', date('U')); } } } } //Get last modified filename and date $dir = glob_r(get_template_directory() . '/*'); $last_date = 0; $skip_files = array('dev.css', 'dev.scss', '/cache/', '/includes/data/', 'manifest.json'); //Files or directories to skip. Be specific! foreach ($dir as $file) { if (is_file($file)) { $mod_date = filemtime($file); if ($mod_date > $last_date && !contains($file, $skip_files)) { $last_date = $mod_date; $last_filename = basename($file); $last_file_path = str_replace(get_template_directory(), '', dirname($file)) . '/' . $last_filename; } } } $nebula_size = foldersize(get_template_directory()); $upload_dir = wp_upload_dir(); $uploads_size = foldersize($upload_dir['basedir']); $secureServer = ''; if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { $secureServer = '<small class="secured-connection"><i class="fa fa-lock fa-fw"></i>Secured Connection</small>'; } function top_domain_name($url) { $alldomains = explode(".", $url); return $alldomains[count($alldomains) - 2] . "." . $alldomains[count($alldomains) - 1]; } if (function_exists('gethostname')) { set_error_handler(function () { /* ignore errors */ }); $dnsrecord = dns_get_record(top_domain_name(gethostname()), DNS_NS) ? dns_get_record(top_domain_name(gethostname()), DNS_NS) : ''; restore_error_handler(); } function initial_install_date() { $nebula_initialized = get_option('nebula_initialized'); if (!empty($nebula_initialized) && $nebula_initialized < getlastmod()) { $install_date = '<strong>' . date('F j, Y', $nebula_initialized) . '</strong> <small>@</small> <strong>' . date('g:ia', $nebula_initialized) . '</strong> <small>(Nebula Init)</small>'; } else { //Use the last modified time of the admin page itself $install_date = '<strong>' . date("F j, Y", getlastmod()) . '</strong> <small>@</small> <strong>' . date("g:ia", getlastmod()) . '</strong> <small>(WP Detect)</small>'; } return $install_date; } if (strpos(strtolower(PHP_OS), 'linux') !== false) { $php_os_icon = 'fa-linux'; } else { if (strpos(strtolower(PHP_OS), 'windows') !== false) { $php_os_icon = 'fa-windows'; } else { $php_os_icon = 'fa-upload'; } } if (function_exists('wp_max_upload_size')) { $upload_max = '<small>(Max upload: <strong>' . strval(round((int) wp_max_upload_size() / (1024 * 1024))) . 'mb</strong>)</small>'; } else { if (ini_get('upload_max_filesize')) { $upload_max = '<small>(Max upload: <strong>' . ini_get('upload_max_filesize') . '</strong>)</small>'; } else { $upload_max = ''; } } if (function_exists('mysqli_connect')) { $mysqli_connect = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD); $mysql_version = mysqli_get_server_info($mysqli_connect); } $safe_mode = ini_get('safe_mode') ? '<small><strong><em>Safe Mode</em></strong></small>' : ''; echo '<div id="testloadcon" style="pointer-events: none; opacity: 0; visibility: hidden; display: none;"></div>'; echo '<script id="testloadscript"> jQuery(window).on("load", function(){ jQuery(".loadtime").css("visibility", "visible"); beforeLoad = (new Date()).getTime(); var iframe = document.createElement("iframe"); iframe.style.width = "1200px"; iframe.style.height = "0px"; jQuery("#testloadcon").append(iframe); iframe.src = "' . home_url('/') . '"; jQuery("#testloadcon iframe").on("load", function(){ stopTimer(); }); }); function stopTimer(){ var afterLoad = (new Date()).getTime(); var result = (afterLoad - beforeLoad)/1000; jQuery(".loadtime").html(result + " seconds"); if ( result > 5 ){ jQuery(".slowicon").addClass("fa-warning"); } jQuery(".serverdetections .fa-spin, #testloadcon, #testloadscript").remove(); } </script>'; echo '<ul class="serverdetections">'; /* if ( is_debug() ){ echo '<li style="color: red;"><i class="fa fa-exclamation-triangle fa-fw"></i> <strong>Warning:</strong> WP_DEBUG is Enabled!</li>'; } */ echo '<li><i class="fa fa-info-circle fa-fw"></i> <a href="http://whois.domaintools.com/' . $_SERVER['SERVER_NAME'] . '" target="_blank" title="WHOIS Lookup">Domain</a>: <strong>' . nebula_url_components('domain') . '</strong>' . $domain_exp_html . '</li>'; echo $domain_registrar_html; if (function_exists('gethostname')) { echo '<li><i class="fa fa-hdd-o fa-fw"></i> Host: <strong>' . top_domain_name(gethostname()) . '</strong>'; if (!empty($dnsrecord[0]['target'])) { echo ' <small>(' . top_domain_name($dnsrecord[0]['target']) . ')</small>'; } echo '</li>'; } echo '<li><i class="fa fa-upload fa-fw"></i> Server IP: <strong><a href="http://whatismyipaddress.com/ip/' . $_SERVER['SERVER_ADDR'] . '" target="_blank">' . $_SERVER['SERVER_ADDR'] . '</a></strong> ' . $secureServer . '</li>'; echo '<li><i class="fa ' . $php_os_icon . ' fa-fw"></i> Server OS: <strong>' . PHP_OS . '</strong> <small>(' . $_SERVER['SERVER_SOFTWARE'] . ')</small></li>'; $php_version_color = 'inherit'; $php_version_info = ''; $php_version_cursor = 'normal'; $php_version_lifecycle = nebula_php_version_support(); if ($php_version_lifecycle['lifecycle'] == 'security') { $php_version_color = '#ca8038'; $php_version_info = 'This version is nearing end of life. Security updates end on ' . date('F j, Y', $php_version_lifecycle['security']) . '.'; $php_version_cursor = 'help'; } elseif ($php_version_lifecycle['lifecycle'] == 'end') { $php_version_color = '#ca3838'; $php_version_info = 'This version no longer receives security updates! End of life occurred on ' . date('F j, Y', $php_version_lifecycle['end']) . '.'; $php_version_cursor = 'help'; } echo '<li><i class="fa fa-wrench fa-fw"></i> PHP Version: <strong style="color: ' . $php_version_color . '; cursor: ' . $php_version_cursor . ';" title="' . $php_version_info . '">' . PHP_VERSION . '</strong> ' . $safe_mode . '</li>'; echo '<li><i class="fa fa-cogs fa-fw"></i> PHP Memory Limit: <strong>' . WP_MEMORY_LIMIT . '</strong> ' . $safe_mode . '</li>'; echo !empty($mysql_version) ? '<li><i class="fa fa-database fa-fw"></i> MySQL Version: <strong>' . $mysql_version . '</strong></li>' : ''; echo '<li><i class="fa fa-code"></i> Theme directory size: <strong>' . round($nebula_size / 1048576, 2) . 'mb</strong> </li>'; echo '<li><i class="fa fa-picture-o"></i> Uploads directory size: <strong>' . round($uploads_size / 1048576, 2) . 'mb</strong> ' . $upload_max . '</li>'; echo '<li><i class="fa fa-clock-o fa-fw"></i> <span title="' . get_home_url() . '" style="cursor: help;">Homepage</span> load time: <a href="http://developers.google.com/speed/pagespeed/insights/?url=' . home_url('/') . '" target="_blank" title="Time is specific to your current environment and therefore may be faster or slower than average."><strong class="loadtime" style="visibility: hidden;"><i class="fa fa-spinner fa-fw fa-spin"></i></strong></a> <i class="slowicon fa" style="color: maroon;"></i></li>'; echo '<li><i class="fa fa-calendar-o fa-fw"></i> Initial Install: ' . initial_install_date() . '</li>'; echo '<li><i class="fa fa-calendar fa-fw"></i> Last modified: <strong>' . date("F j, Y", $last_date) . '</strong> <small>@</small> <strong>' . date("g:ia", $last_date) . '</strong> <small title="' . $last_file_path . '" style="cursor: help;">(' . $last_filename . ')</small></li>'; $scss_last_processed = get_option('nebula_scss_last_processed') ? '<strong>' . date("F j, Y", get_option('nebula_scss_last_processed')) . '</strong> <small>@</small> <strong>' . date("g:i:sa", get_option('nebula_scss_last_processed')) . '</strong>' : '<strong>Never</strong>'; echo '<li><i class="fa fa-paint-brush fa-fw"></i> SCSS Last Processed: ' . $scss_last_processed . '</li>'; echo '</ul>'; echo '<i id="searchprogress" class="fa fa-search fa-fw"></i> <form id="theme" class="searchfiles"><input class="findterm" type="text" placeholder="Search files" /><select class="searchdirectory">'; if (is_child_theme()) { echo '<option value="parent">Parent Theme</option><option value="child">Child Theme</option>'; } else { echo '<option value="theme">Theme</option>'; } echo '<option value="plugins">Plugins</option><option value="uploads">Uploads</option></select><input class="searchterm button button-primary" type="submit" value="Search" /></form><br />'; echo '<div class="search_results"></div>'; }
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?> /stylesheets/css/wireframing.css" /> <?php if (nebula_option('nebula_wireframing', 'disabled')) { //If wireframing is Disabled or Default. ?> <p style="background: maroon; color: #fff; padding: 10px 15px;"><strong>Warning:</strong> Wireframing is currently <strong>disabled</strong> in this instance of WordPress. JavaScript functions will not work unless it is re-enabled on the Nebula Options page.</p> <?php } ?> <div class="row" style="background: #0098d7; color: #fff; padding: 10px 15px;"> <div class="sixteen columns"> <h2 style="color: #fff;">Components</h2> <p>Components are the containers of either a single element, a group of elements, or even markup and elements. Elements can be custom Nebula wireframing functions, custom Nebula functions, or custom code of your own.</p> </div><!--/columns--> </div><!--/row--> <br /><br /> <hr /> <br /><br /> <!-- Component --> <div class="row"> <div class="sixteen columns"> <h2><strong>Component</strong></h2> <p>The <?php echo do_shortcode('[code]fpo_component()[/code]');