/home/techb158/balacoffee.com/wp-content/plugins/coming-soon/app/backwards
Edit: /home/techb158/balacoffee.com/wp-content/plugins/coming-soon/app/backwards/csp4-functions.php (14205B)
get_error_message();
exit();
}
if ( empty( $_GET['cs_preview'] ) ) {
$_GET['cs_preview'] = false;
}
// Check if Preview
$is_preview = false;
if ( ( isset( $_GET['cs_preview'] ) && $_GET['cs_preview'] == 'true' ) ) {
$is_preview = true;
}
// Exit if a custom login page
if ( empty( $disable_default_excluded_urls ) ) {
if ( preg_match( '/login|admin|dashboard|account/i', $_SERVER['REQUEST_URI'] ) > 0 && $is_preview == false ) {
return false;
}
}
// Check if user is logged in.
if ( $is_preview === false ) {
if ( is_user_logged_in() ) {
return false;
}
}
// set headers
if ( $status == '2' ) {
header( 'HTTP/1.1 503 Service Temporarily Unavailable' );
header( 'Status: 503 Service Temporarily Unavailable' );
header( 'Retry-After: 86400' ); // retry in a day
$csp4_maintenance_file = WP_CONTENT_DIR . '/maintenance.php';
if ( ! empty( $enable_maintenance_php ) and file_exists( $csp4_maintenance_file ) ) {
include_once $csp4_maintenance_file;
exit();
}
}
// Prevetn Plugins from caching
// Disable caching plugins. This should take care of:
// - W3 Total Cache
// - WP Super Cache
// - ZenCache (Previously QuickCache)
if ( ! defined( 'DONOTCACHEPAGE' ) ) {
define( 'DONOTCACHEPAGE', true );
}
if ( ! defined( 'DONOTCDN' ) ) {
define( 'DONOTCDN', true );
}
if ( ! defined( 'DONOTCACHEDB' ) ) {
define( 'DONOTCACHEDB', true );
}
if ( ! defined( 'DONOTMINIFY' ) ) {
define( 'DONOTMINIFY', true );
}
if ( ! defined( 'DONOTCACHEOBJECT' ) ) {
define( 'DONOTCACHEOBJECT', true );
}
//ob_end_clean();
nocache_headers();
// render template tags
if ( empty( $html ) ) {
$template = file_get_contents( SEEDPROD_PLUGIN_PATH . 'app/backwards/themes/default/index.php' );
$template_tags = array(
'{Title}' => seedprod_lite_seed_csp4_title(),
'{MetaDescription}' => seedprod_lite_seed_csp4_metadescription(),
'{Privacy}' => seedprod_lite_seed_csp4_privacy(),
'{Favicon}' => seedprod_lite_seed_csp4_favicon(),
'{CustomCSS}' => seedprod_lite_seed_csp4_customcss(),
'{Head}' => seedprod_lite_seed_csp4_head(),
'{Footer}' => seedprod_lite_seed_csp4_footer(),
'{Logo}' => seedprod_lite_seed_csp4_logo(),
'{Headline}' => seedprod_lite_seed_csp4_headline(),
'{Description}' => seedprod_lite_seed_csp4_description(),
'{Credit}' => seedprod_lite_seed_csp4_credit(),
'{Append_HTML}' => seed_csp4_append_html(),
);
echo strtr( $template, $template_tags );
} else {
echo $html;
}
exit();
}
}
// Template Tags
if ( ! function_exists( 'seedprod_lite_seed_csp4_title' ) ) {
function seedprod_lite_seed_csp4_title() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $seo_title ) ) {
$output = esc_html( $seo_title );
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_metadescription' ) ) {
function seedprod_lite_seed_csp4_metadescription() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $seo_description ) ) {
$output = '
';
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_privacy' ) ) {
function seedprod_lite_seed_csp4_privacy() {
$output = '';
if ( get_option( 'blog_public' ) == 0 ) {
$output = "
";
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_favicon' ) ) {
function seedprod_lite_seed_csp4_favicon() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $favicon ) ) {
$output .= "\n";
$output .= '
';
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_customcss' ) ) {
function seedprod_lite_seed_csp4_customcss() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $custom_css ) ) {
$output = '';
}
return $output;
}
}
if ( ! function_exists( 'seed_csp4_head' ) ) {
function seedprod_lite_seed_csp4_head() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
// CSS
$output = '';
$output .= "\n";
$output .= '
' . "\n";
$output .= '
' . "\n";
if ( is_rtl() ) {
$output .= '
' . "\n";
}
$output .= '' . "\n";
// Javascript
$output .= "\n";
$include_url = includes_url();
$last = $include_url[ strlen( $include_url ) - 1 ];
if ( $last != '/' ) {
$include_url = $include_url . '/';
}
if ( empty( $enable_wp_head_footer ) ) {
$output .= '' . "\n";
}
$output .= '' . "\n";
// Header Scripts
if ( ! empty( $header_scripts ) ) {
$output .= "\n";
$output .= $header_scripts;
}
// Google Analytics
if ( ! empty( $ga_analytics ) ) {
$output .= "\n";
$output .= $ga_analytics;
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_get_font_family' ) ) {
function seedprod_lite_seed_csp4_get_font_family( $font ) {
$fonts = array();
$fonts['_arial'] = 'Helvetica, Arial, sans-serif';
$fonts['_arial_black'] = 'Arial Black, Arial Black, Gadget, sans-serif';
$fonts['_georgia'] = 'Georgia,serif';
$fonts['_helvetica_neue'] = '"Helvetica Neue", Helvetica, Arial, sans-serif';
$fonts['_impact'] = 'Charcoal,Impact,sans-serif';
$fonts['_lucida'] = 'Lucida Grande,Lucida Sans Unicode, sans-serif';
$fonts['_palatino'] = 'Palatino,Palatino Linotype, Book Antiqua, serif';
$fonts['_tahoma'] = 'Geneva,Tahoma,sans-serif';
$fonts['_times'] = 'Times,Times New Roman, serif';
$fonts['_trebuchet'] = 'Trebuchet MS, sans-serif';
$fonts['_verdana'] = 'Verdana, Geneva, sans-serif';
if ( ! empty( $fonts[ $font ] ) ) {
$font_family = $fonts[ $font ];
} else {
$font_family = 'Helvetica Neue, Arial, sans-serif';
}
echo $font_family;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_footer' ) ) {
function seedprod_lite_seed_csp4_footer() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $bg_cover ) ) {
$output .= '';
}
if ( ! empty( $footer_scripts ) ) {
$output .= "\n";
$output .= $footer_scripts;
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_logo' ) ) {
function seedprod_lite_seed_csp4_logo() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $logo ) ) {
$output .= "
 . ")
";
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_headline' ) ) {
function seedprod_lite_seed_csp4_headline() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $headline ) ) {
$output .= '
' . wp_kses(
$headline,
array(
'a' => array(
'href' => array(),
'title' => array(),
),
'br' => array(),
'em' => array(),
'strong' => array(),
)
) . '
';
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_description' ) ) {
function seedprod_lite_seed_csp4_description() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $description ) ) {
if ( has_shortcode( $description, 'rafflepress' ) ) {
$output .= '
' . do_shortcode( shortcode_unautop( wpautop( convert_chars( wptexturize( $description ) ) ) ) ) . '
';
} else {
$output .= '
' . shortcode_unautop( wpautop( convert_chars( wptexturize( $description ) ) ) ) . '
';
}
}
return $output;
}
}
if ( ! function_exists( 'seed_csp4_append_html' ) ) {
function seed_csp4_append_html() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $append_html ) ) {
$output .= '
' . $append_html . '
';
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_credit' ) ) {
function seedprod_lite_seed_csp4_credit() {
$o = seedprod_lite_seed_csp4_get_settings();
extract( $o );
$output = '';
if ( ! empty( $footer_credit ) ) {
$output = '
';
$output .= '

';
$output .= '
';
}
return $output;
}
}
if ( ! function_exists( 'seedprod_lite_seed_csp4_get_settings' ) ) {
function seedprod_lite_seed_csp4_get_settings() {
$s1 = get_option( 'seed_csp4_settings_content' );
$s2 = get_option( 'seed_csp4_settings_design' );
$s3 = get_option( 'seed_csp4_settings_advanced' );
if ( empty( $s1 ) ) {
$s1 = array();
}
if ( empty( $s2 ) ) {
$s2 = array();
}
if ( empty( $s3 ) ) {
$s3 = array();
}
$settings = $s1 + $s2 + $s3;
return apply_filters( 'seedprod_lite_seed_csp4_get_settings', $settings );
}
}