| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/front-page.php.tar |
home/xbodynamge/lebauwcentre/wp-content/themes/zerif-lite/front-page.php 0000644 00000006270 15111735742 0022534 0 ustar 00 <?php
/**
* Main front page file
*
* @package zerif-lite
*/
get_header();
// If static page is front-page, get it's template.
if ( get_option( 'show_on_front' ) == 'page' ) {
$zerif_keep_old_fp_template = get_theme_mod( 'zerif_keep_old_fp_template' );
if ( ! $zerif_keep_old_fp_template ) {
// For users who had previously installed 1.8.5 or less. Keep the old settings.
if ( zerif_check_if_old_version_of_theme() ) {
include( get_page_template() );
} else {
// For new users add the frontpage template for every static page
get_template_part( 'content', 'frontpage' );
}
} else {
include( get_page_template() );
}
} else {
// For users who had previously installed 1.8.5 or less. Keep the old settings.
if ( zerif_check_if_old_version_of_theme() ) {
get_template_part( 'content', 'frontpage' );
} else {
// For new users. Display the correct WordPress content.
if ( ! zerif_check_if_old_version_of_theme() ) {
$blog_header_title = get_theme_mod( 'zerif_blog_header_title', esc_html__( 'Blog', 'zerif-lite' ) );
$blog_header_subtitle = get_theme_mod( 'zerif_blog_header_subtitle', esc_html__( 'Zerif supports a custom frontpage', 'zerif-lite' ) );
if ( ! empty( $blog_header_title ) || ! empty( $blog_header_subtitle ) ) {
echo '<div class="blog-header-wrap">';
echo '<div class="blog-header-content-wrap">';
if ( ! empty( $blog_header_title ) ) {
echo '<h1 class="intro-text">' . esc_html( $blog_header_title ) . '</h1>';
}
if ( ! empty( $blog_header_subtitle ) ) {
echo '<p class="blog-header-subtitle">' . esc_html( $blog_header_subtitle ) . '</p>';
}
echo '</div>';
echo '</div>';
}
}
?>
<div class="clear"></div>
</header> <!-- / END HOME SECTION -->
<?php zerif_after_header_trigger(); ?>
<div id="content" class="site-content blog-site-content">
<div class="container">
<div class="content-left-wrap col-md-9">
<div id="primary" class="content-area">
<main id="main" class="site-main" itemscope itemtype="http://schema.org/Blog">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
/**
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
endwhile;
echo get_the_posts_navigation(
array(
/* translators: Newer posts arrow */
'next_text' => sprintf( __( 'Newer posts %s', 'zerif-lite' ), '<span class="meta-nav">→</span>' ),
/* translators: Older posts arrow */
'prev_text' => sprintf( __( '%s Older posts', 'zerif-lite' ), '<span class="meta-nav">←</span>' ),
)
);
else :
get_template_part( 'content', 'none' );
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .content-left-wrap -->
<?php zerif_sidebar_trigger(); ?>
</div><!-- .container -->
<?php
}
}
get_footer(); ?>
home/xbodynamge/www/wp-content/themes/zerif-lite/front-page.php 0000644 00000006270 15111757702 0020700 0 ustar 00 <?php
/**
* Main front page file
*
* @package zerif-lite
*/
get_header();
// If static page is front-page, get it's template.
if ( get_option( 'show_on_front' ) == 'page' ) {
$zerif_keep_old_fp_template = get_theme_mod( 'zerif_keep_old_fp_template' );
if ( ! $zerif_keep_old_fp_template ) {
// For users who had previously installed 1.8.5 or less. Keep the old settings.
if ( zerif_check_if_old_version_of_theme() ) {
include( get_page_template() );
} else {
// For new users add the frontpage template for every static page
get_template_part( 'content', 'frontpage' );
}
} else {
include( get_page_template() );
}
} else {
// For users who had previously installed 1.8.5 or less. Keep the old settings.
if ( zerif_check_if_old_version_of_theme() ) {
get_template_part( 'content', 'frontpage' );
} else {
// For new users. Display the correct WordPress content.
if ( ! zerif_check_if_old_version_of_theme() ) {
$blog_header_title = get_theme_mod( 'zerif_blog_header_title', esc_html__( 'Blog', 'zerif-lite' ) );
$blog_header_subtitle = get_theme_mod( 'zerif_blog_header_subtitle', esc_html__( 'Zerif supports a custom frontpage', 'zerif-lite' ) );
if ( ! empty( $blog_header_title ) || ! empty( $blog_header_subtitle ) ) {
echo '<div class="blog-header-wrap">';
echo '<div class="blog-header-content-wrap">';
if ( ! empty( $blog_header_title ) ) {
echo '<h1 class="intro-text">' . esc_html( $blog_header_title ) . '</h1>';
}
if ( ! empty( $blog_header_subtitle ) ) {
echo '<p class="blog-header-subtitle">' . esc_html( $blog_header_subtitle ) . '</p>';
}
echo '</div>';
echo '</div>';
}
}
?>
<div class="clear"></div>
</header> <!-- / END HOME SECTION -->
<?php zerif_after_header_trigger(); ?>
<div id="content" class="site-content blog-site-content">
<div class="container">
<div class="content-left-wrap col-md-9">
<div id="primary" class="content-area">
<main id="main" class="site-main" itemscope itemtype="http://schema.org/Blog">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
/**
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
endwhile;
echo get_the_posts_navigation(
array(
/* translators: Newer posts arrow */
'next_text' => sprintf( __( 'Newer posts %s', 'zerif-lite' ), '<span class="meta-nav">→</span>' ),
/* translators: Older posts arrow */
'prev_text' => sprintf( __( '%s Older posts', 'zerif-lite' ), '<span class="meta-nav">←</span>' ),
)
);
else :
get_template_part( 'content', 'none' );
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .content-left-wrap -->
<?php zerif_sidebar_trigger(); ?>
</div><!-- .container -->
<?php
}
}
get_footer(); ?>
home/xbodynamge/crosstraining/wp-content/themes/twentyseventeen/front-page.php 0000604 00000002747 15112277725 0024142 0 ustar 00 <?php
/**
* The front page template file
*
* If the user has selected a static page for their homepage, this is what will
* appear.
* Learn more: https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php // Show the selected frontpage content.
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/page/content', 'front-page' );
endwhile;
else :
get_template_part( 'template-parts/post/content', 'none' );
endif; ?>
<?php
// Get each of our panels and show the post data.
if ( 0 !== twentyseventeen_panel_count() || is_customize_preview() ) : // If we have pages to show.
/**
* Filter number of front page sections in Twenty Seventeen.
*
* @since Twenty Seventeen 1.0
*
* @param int $num_sections Number of front page sections.
*/
$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
global $twentyseventeencounter;
// Create a setting and control for each of the sections available in the theme.
for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
$twentyseventeencounter = $i;
twentyseventeen_front_page_section( null, $i );
}
endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here. ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer();
home/xbodynamge/www/wp-content/themes/responsiveboat/front-page.php 0000604 00000037712 15112303323 0021655 0 ustar 00 <?php
get_header();
if ( get_option( 'show_on_front' ) == 'page' ) {
echo '</header>';
echo '<div id="content" class="site-content">';
echo '<div class="container">';
echo '<div class="content-left-wrap col-md-12">';
echo '<div id="primary" class="content-area">';
echo '<main id="main" class="site-main" role="main">';
while (have_posts()) : the_post();
get_template_part('content', 'page');
endwhile;
echo '</main>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
}
else {
$responsiveboat_parent_theme = get_template();
if( !empty($responsiveboat_parent_theme) && ($responsiveboat_parent_theme == 'zerif-pro') ):
if(isset($_POST['submitted']) && !defined('PIRATE_FORMS_VERSION') && !shortcode_exists( 'pirate_forms' ) ) :
/* recaptcha */
$zerif_contactus_sitekey = get_theme_mod('zerif_contactus_sitekey');
$zerif_contactus_secretkey = get_theme_mod('zerif_contactus_secretkey');
$zerif_contactus_recaptcha_show = get_theme_mod('zerif_contactus_recaptcha_show');
if( isset($zerif_contactus_recaptcha_show) && $zerif_contactus_recaptcha_show != 1 && !empty($zerif_contactus_sitekey) && !empty($zerif_contactus_secretkey) ) :
$captcha;
if( isset($_POST['g-recaptcha-response']) ){
$captcha=$_POST['g-recaptcha-response'];
}
if( !$captcha ){
$hasError = true;
}
$response = wp_remote_get( "https://www.google.com/recaptcha/api/siteverify?secret=".$zerif_contactus_secretkey."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR'] );
if($response['body'].success==false) {
$hasError = true;
}
endif;
/* name */
if(trim($_POST['myname']) === ''):
$nameError = __('* Please enter your name.','responsiveboat');
$hasError = true;
else:
$name = trim($_POST['myname']);
endif;
/* email */
if(trim($_POST['myemail']) === ''):
$emailError = __('* Please enter your email address.','responsiveboat');
$hasError = true;
elseif (!preg_match("/^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,4}$/i", trim($_POST['myemail']))) :
$emailError = __('* You entered an invalid email address.','responsiveboat');
$hasError = true;
else:
$email = trim($_POST['myemail']);
endif;
/* subject */
if(trim($_POST['mysubject']) === ''):
$subjectError = __('* Please enter a subject.','responsiveboat');
$hasError = true;
else:
$subject = trim($_POST['mysubject']);
endif;
/* message */
if(trim($_POST['mymessage']) === ''):
$messageError = __('* Please enter a message.','responsiveboat');
$hasError = true;
else:
$message = stripslashes(trim($_POST['mymessage']));
endif;
/* send the email */
if(!isset($hasError)):
$zerif_contactus_email = get_theme_mod('zerif_contactus_email');
if( empty($zerif_contactus_email) ):
$emailTo = get_theme_mod('zerif_email');
else:
$emailTo = $zerif_contactus_email;
endif;
if(isset($emailTo) && $emailTo != ""):
if( empty($subject) ):
$subject = 'From '.$name;
endif;
$body = "Name: $name \n\nEmail: $email \n\n Subject: $subject \n\n Message: $message";
/* FIXED HEADERS FOR EMAIL NOT GOING TO SPAM */
$zerif_admin_email = get_option( 'admin_email' );
$zerif_sitename = strtolower( $_SERVER['SERVER_NAME'] );
function zerif_is_localhost() {
$zerif_server_name = strtolower( $_SERVER['SERVER_NAME'] );
return in_array( $zerif_server_name, array( 'localhost', '127.0.0.1' ) );
}
if ( zerif_is_localhost() ) {
$headers = 'From: '.$name.' <'.$zerif_admin_email.'>' . "\r\n" . 'Reply-To: ' . $email;
} else {
if ( substr( $zerif_sitename, 0, 4 ) == 'www.' ) {
$zerif_sitename = substr( $zerif_sitename, 4 );
}
$headers = 'From: '.$name.' <wordpress@'.$zerif_sitename.'>' . "\r\n" . 'Reply-To: ' . $email;
}
wp_mail($emailTo, $subject, $body, $headers);
$emailSent = true;
else:
$emailSent = false;
endif;
endif;
endif;
/* BIG TITLE SECTION */
get_template_part( 'sections/big_title' );
?>
</header> <!-- / END HOME SECTION -->
<div id="content" class="site-content">
<?php
$section1 = get_theme_mod('section1','our_focus');
$section2 = get_theme_mod('section2','bottom_ribbon');
$section3 = get_theme_mod('section3','portofolio');
$section4 = get_theme_mod('section4','about_us');
$section5 = get_theme_mod('section5','our_team');
$section6 = get_theme_mod('section6','testimonials');
$section7 = get_theme_mod('section7','right_ribbon');
$section8 = get_theme_mod('section8','contact_us');
$section9 = get_theme_mod('section9','map');
$section10 = get_theme_mod('section10','packages');
$section11 = get_theme_mod('section11','subscribe');
$section12 = get_theme_mod('section12','latest_news');
$sections[0] = $section1;
$sections[1] = $section2;
$sections[2] = $section3;
$sections[3] = $section4;
$sections[4] = $section5;
$sections[5] = $section6;
$sections[6] = $section7;
$sections[7] = $section8;
$sections[8] = $section9;
$sections[9] = $section10;
$sections[10] = $section11;
$sections[11] = $section12;
for ($i = 0; $i < 12; $i++):
if( !empty($sections[$i]) ):
switch ( $sections[$i] ) {
case "our_focus":
/* OUR FOCUS SECTION */
get_template_part( 'sections/our_focus' );
break;
case "portofolio":
/* PORTFOLIO */
get_template_part( 'sections/portfolio' );
break;
case "about_us":
/* ABOUT YOU */
$rb_aboutyou_show = get_theme_mod('rb_aboutyou_show');
if( isset($rb_aboutyou_show) && $rb_aboutyou_show != 1 ):
get_template_part( 'sections/about_you' );
endif;
break;
case "our_team":
/* OUR TEAM */
get_template_part( 'sections/our_team' );
break;
case "latest_news":
/* LATEST NEWS */
get_template_part( 'sections/latest_news' );
break;
case "testimonials":
/* TESTIMONIALS */
get_template_part( 'sections/testimonials' );
break;
case "bottom_ribbon":
/* RIBBON WITH BOTTOM BUTTON */
get_template_part( 'sections/ribbon_with_bottom_button' );
break;
case "right_ribbon":
/* RIBBON WITH RIGHT SIDE BUTTON */
get_template_part( 'sections/ribbon_with_right_button' );
break;
case "packages":
/* PACKAGES */
get_template_part( 'sections/packages' );
break;
case "map":
/* GOOGLE MAP */
$zerif_googlemap_show = get_theme_mod('zerif_googlemap_show');
if( !empty($zerif_googlemap_show) ):
get_template_part( 'sections/google_map' );
endif;
break;
case "subscribe":
/* SUBSCRIBE */
get_template_part( 'sections/subscribe' );
break;
case "contact_us":
/* CONTACT US */
global $wp_customize;
$zerif_contactus_show = get_theme_mod('zerif_contactus_show');
if( isset($zerif_contactus_show) && $zerif_contactus_show != 1 ):
?>
<section class="contact-us" id="contact">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header">
<?php
$zerif_contactus_title = get_theme_mod('zerif_contactus_title','Get in touch');
if ( !empty($zerif_contactus_title) ):
echo '<h2 class="white-text">'.$zerif_contactus_title.'</h2>';
elseif ( isset( $wp_customize ) ):
echo '<h2 class="white-text zerif_hidden_if_not_customizer"></h2>';
endif;
$zerif_contactus_subtitle = get_theme_mod('zerif_contactus_subtitle');
if( !empty($zerif_contactus_subtitle) ):
echo '<h6 class="white-text">'.$zerif_contactus_subtitle.'</h6>';
elseif ( isset( $wp_customize ) ):
echo '<h6 class="white-text zerif_hidden_if_not_customizer">'.$zerif_contactus_subtitle.'</h6>';
endif;
?>
</div>
<!-- / END SECTION HEADER -->
<?php
if ( defined('PIRATE_FORMS_VERSION') && shortcode_exists( 'pirate_forms' ) ):
echo '<div class="row">';
echo do_shortcode('[pirate_forms]');
echo '</div>';
else:
?>
<!-- CONTACT FORM-->
<div class="row">
<?php
if(isset($emailSent) && $emailSent == true) :
echo '<p class="error white-text error_thanks">'.__('Thanks, your email was sent successfully!','responsiveboat').'</p>';
elseif(isset($_POST['submitted'])):
echo '<p class="error white-text error_sorry">'.__('Sorry, an error occured. The email could not be sent.','responsiveboat').'</p>';
endif;
if(isset($nameError) && $nameError != '') :
echo '<p class="error white-text">'.$nameError.'</p>';
endif;
if(isset($emailError) && $emailError != '') :
echo '<p class="error white-text">'.$emailError.'</p>';
endif;
if(isset($subjectError) && $subjectError != '') :
echo '<p class="error white-text">'.$subjectError.'</p>';
endif;
if(isset($messageError) && $messageError != '') :
echo '<p class="error white-text">'.$messageError.'</p>';
endif;
?>
<form role="form" method="POST" action="" onSubmit="this.scrollPosition.value=(document.body.scrollTop || document.documentElement.scrollTop)" class="contact-form">
<input type="hidden" name="scrollPosition">
<input type="hidden" name="submitted" id="submitted" value="true" />
<div class="col-lg-4 col-sm-4 zerif-rtl-contact-name" data-scrollreveal="enter left after 0s over 1s">
<?php $zerif_contactus_name_placeholder = get_theme_mod('zerif_contactus_name_placeholder','Your Name'); ?>
<input type="text" name="myname" placeholder="<?php if(!empty($zerif_contactus_name_placeholder)) echo $zerif_contactus_name_placeholder; ?>" class="form-control input-box" value="<?php if(isset($_POST['myname'])) echo esc_attr($_POST['myname']);?>">
</div>
<div class="col-lg-4 col-sm-4 zerif-rtl-contact-email" data-scrollreveal="enter left after 0s over 1s">
<?php $zerif_contactus_email_placeholder = get_theme_mod('zerif_contactus_email_placeholder','Your Email'); ?>
<input type="email" name="myemail" placeholder="<?php if(!empty($zerif_contactus_email_placeholder)) echo $zerif_contactus_email_placeholder; ?>" class="form-control input-box" value="<?php if(isset($_POST['myemail'])) echo is_email($_POST['myemail']) ? $_POST['myemail'] : ""; ?>">
</div>
<div class="col-lg-4 col-sm-4 zerif-rtl-contact-subject" data-scrollreveal="enter left after 0s over 1s">
<?php $zerif_contactus_subject_placeholder = get_theme_mod('zerif_contactus_subject_placeholder','Subject'); ?>
<input type="text" name="mysubject" placeholder="<?php if(!empty($zerif_contactus_subject_placeholder)) echo $zerif_contactus_subject_placeholder; ?>" class="form-control input-box" value="<?php if(isset($_POST['mysubject'])) echo esc_attr($_POST['mysubject']);?>">
</div>
<div class="col-lg-12 col-sm-12" data-scrollreveal="enter right after 0s over 1s">
<?php $zerif_contactus_message_placeholder = get_theme_mod('zerif_contactus_message_placeholder','Your Message'); ?>
<textarea name="mymessage" class="form-control textarea-box" placeholder="<?php if(!empty($zerif_contactus_message_placeholder)) echo $zerif_contactus_message_placeholder; ?>"><?php if(isset($_POST['mymessage'])) { echo stripslashes($_POST['mymessage']); } ?></textarea>
</div>
<?php
$zerif_contactus_button_label = get_theme_mod('zerif_contactus_button_label','Send Message');
if( !empty($zerif_contactus_button_label) ):
echo '<button class="btn btn-primary custom-button red-btn" type="submit" data-scrollreveal="enter left after 0s over 1s">'.$zerif_contactus_button_label.'</button>';
elseif ( isset( $wp_customize ) ):
echo '<button class="btn btn-primary custom-button red-btn zerif_hidden_if_not_customizer" type="submit" data-scrollreveal="enter left after 0s over 1s"></button>';
endif;
?>
<?php
$zerif_contactus_sitekey = get_theme_mod('zerif_contactus_sitekey');
$zerif_contactus_secretkey = get_theme_mod('zerif_contactus_secretkey');
$zerif_contactus_recaptcha_show = get_theme_mod('zerif_contactus_recaptcha_show');
if( isset($zerif_contactus_recaptcha_show) && $zerif_contactus_recaptcha_show != 1 && !empty($zerif_contactus_sitekey) && !empty($zerif_contactus_secretkey) ) :
echo '<div class="g-recaptcha zerif-g-recaptcha" data-sitekey="' . $zerif_contactus_sitekey . '"></div>';
endif;
?>
</form>
</div>
<!-- / END CONTACT FORM-->
<?php
endif;
?>
</div> <!-- / END CONTAINER -->
</section> <!-- / END CONTACT US SECTION-->
<?php
endif;
break;
}
endif;
endfor;
echo '</div><!-- .site-content -->';
/* other theme then Zerif PRO */
else:
$zerif_bigtitle_show = get_theme_mod('zerif_bigtitle_show');
if( isset($zerif_bigtitle_show) && $zerif_bigtitle_show != 1 ):
include get_stylesheet_directory() . "/sections/big_title.php";
endif;
?>
</header> <!-- / END HOME SECTION -->
<div id="content" class="site-content">
<?php
/* OUR FOCUS SECTION */
$zerif_ourfocus_show = get_theme_mod('zerif_ourfocus_show');
if( isset($zerif_ourfocus_show) && $zerif_ourfocus_show != 1 ):
include get_template_directory() . "/sections/our_focus.php";
endif;
/* RIBBON WITH BOTTOM BUTTON */
include get_template_directory() . "/sections/ribbon_with_bottom_button.php";
/* ABOUT YOU */
$rb_aboutyou_show = get_theme_mod('rb_aboutyou_show');
if( isset($rb_aboutyou_show) && $rb_aboutyou_show != 1 ):
include get_stylesheet_directory() . "/sections/about_you.php";
endif;
/* OUR TEAM */
$zerif_ourteam_show = get_theme_mod('zerif_ourteam_show');
if( isset($zerif_ourteam_show) && $zerif_ourteam_show != 1 ):
include get_template_directory() . "/sections/our_team.php";
endif;
/* TESTIMONIALS */
$zerif_testimonials_show = get_theme_mod('zerif_testimonials_show');
if( isset($zerif_testimonials_show) && $zerif_testimonials_show != 1 ):
include get_stylesheet_directory() . "/sections/testimonials.php";
endif;
/* RIBBON WITH RIGHT SIDE BUTTON */
include get_template_directory() . "/sections/ribbon_with_right_button.php";
/* LATEST NEWS */
$zerif_latestnews_show = get_theme_mod('zerif_latestnews_show');
if( isset($zerif_latestnews_show) && $zerif_latestnews_show != 1 ):
include get_stylesheet_directory() . "/sections/latest_news.php";
endif;
endif;
}
get_footer(); ?>