Initial commit: Atomaste website
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* About Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'about' ) ) { ?>
|
||||
<section id="about-section" class="featured-page wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<?php dynamic_sidebar( 'about' ); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* Blog Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
/** Load default theme options */
|
||||
$default_options = rara_business_default_theme_options();
|
||||
|
||||
$show_blog = get_theme_mod( 'ed_blog_section', $default_options['ed_blog_section'] );
|
||||
$title_blog = get_theme_mod( 'blog_title', $default_options['blog_title'] );
|
||||
$subtitle = get_theme_mod( 'blog_description', $default_options['blog_description'] );
|
||||
$hide_date = get_theme_mod( 'ed_post_date_meta', $default_options['ed_post_date_meta'] );
|
||||
$hide_author = get_theme_mod( 'ed_post_author_meta', $default_options['ed_post_author_meta'] );
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'post',
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => 6,
|
||||
'ignore_sticky_posts' => true
|
||||
);
|
||||
|
||||
$qry = new WP_Query( $args );
|
||||
|
||||
if( ( $qry->have_posts() || $title_blog || $subtitle ) && $show_blog ){ ?>
|
||||
<section id="blog-section" class="blog-section wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<?php if( $title_blog || $subtitle ){ ?>
|
||||
<header class="section-header">
|
||||
<section class="widget widget_text">
|
||||
<?php
|
||||
if( $title_blog ) echo '<h2 class="widget-title">' . esc_html( $title_blog ) . '</h2>';
|
||||
if( $subtitle ) echo '<div class="textwidget">' . wpautop( wp_kses_post( $subtitle ) ) . '</div>';
|
||||
?>
|
||||
</section>
|
||||
</header>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( $qry->have_posts() ){?>
|
||||
<div class="grid">
|
||||
<?php while( $qry->have_posts() ){ $qry->the_post(); ?>
|
||||
<article class="blog-post" itemscope itemtype="https://schema.org/Blog">
|
||||
<a href="<?php the_permalink(); ?>" class="post-thumbnail">
|
||||
<?php
|
||||
if( has_post_thumbnail() ){
|
||||
the_post_thumbnail( 'rara-business-blog', 'itemprop=image' );
|
||||
}else{
|
||||
echo '<img src="'. esc_url( get_template_directory_uri().'/images/rara-business-blog.jpg' ) .'" alt="'. the_title_attribute( 'echo=0' ) .'">';
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<h3 class="entry-title" itemprop="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
if( ! $hide_date ) rara_business_posted_on();
|
||||
if( ! $hide_author ) rara_business_posted_by();
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
</article>
|
||||
<?php } wp_reset_postdata(); ?>
|
||||
</div>
|
||||
<div class="blog-more">
|
||||
<?php
|
||||
$post_page = get_option( 'page_for_posts' );
|
||||
if ( $post_page && $post_page > 0 ) {
|
||||
echo '<a href="'. esc_url( get_permalink( $post_page ) ) .'" class="btn-readmore">'. esc_html__( 'View All Blog', 'rara-business' ) .'</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Feature Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'choose-us' ) ) { ?>
|
||||
<section id="choose-us" class="our-features wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<div class="features-content">
|
||||
<div class="grid">
|
||||
<?php dynamic_sidebar( 'choose-us' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Clients Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'client' ) ){ ?>
|
||||
<section id="client-section" class="our-clients">
|
||||
<div class="container">
|
||||
<?php dynamic_sidebar( 'client' ); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* Call To Action Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'cta' ) ) { ?>
|
||||
<section id="cta-section" class="cta wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<?php dynamic_sidebar( 'cta' ); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* FAQ's Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'faq' ) ){ ?>
|
||||
<section id="faq-section" class="faq-section wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<?php dynamic_sidebar( 'faq' ); ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* Portfolio Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
/** Load default theme options */
|
||||
$default_options = rara_business_default_theme_options();
|
||||
|
||||
$show_portfolio = get_theme_mod( 'ed_portfolio_section', $default_options['ed_portfolio_section'] );
|
||||
$portfolio_title = get_theme_mod( 'portfolio_title', $default_options['portfolio_title'] );
|
||||
$subtitle = get_theme_mod( 'portfolio_description', $default_options['portfolio_description'] );
|
||||
$no_of_portfolio = get_theme_mod( 'portfolio_no_of_posts', $default_options['portfolio_no_of_posts'] );
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'rara-portfolio',
|
||||
'post_status' => 'publish',
|
||||
'posts_per_page' => 10,
|
||||
);
|
||||
|
||||
$qry = new WP_Query( $args );
|
||||
|
||||
if( ( $portfolio_title || $subtitle || ( $qry->have_posts() && $no_of_portfolio > 0 ) ) && $show_portfolio ){ ?>
|
||||
<section id="portfolio-section" class="portfolio wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<?php if( $portfolio_title || $subtitle ){ ?>
|
||||
<div class="container">
|
||||
<section class="widget widget_text">
|
||||
<?php
|
||||
if( $portfolio_title ) echo '<h2 class="widget-title">' . esc_html( $portfolio_title ) . '</h2>';
|
||||
if( $subtitle ) echo '<div class="textwidget">' . wpautop( wp_kses_post( $subtitle ) ) . '</div>';
|
||||
?>
|
||||
</section>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( $qry->have_posts() && $no_of_portfolio > 0 ){ ?>
|
||||
<div class="portfolio-holder">
|
||||
<?php
|
||||
rara_business_get_portfolio_buttons( $no_of_portfolio, true );
|
||||
rara_business_get_portfolios( $no_of_portfolio );
|
||||
?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Services Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'services' ) ){ ?>
|
||||
<section id="services-section" class="our-services wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s" itemscope itemtype="https://schema.org/Service">
|
||||
<div class="container">
|
||||
<div class="grid">
|
||||
<?php dynamic_sidebar( 'services' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Stats Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'stats' ) ) { ?>
|
||||
<section id="stats-section" class="our-stats wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<div class="grid">
|
||||
<?php dynamic_sidebar( 'stats' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Team Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'team' ) ) { ?>
|
||||
<section id="team-section" class="our-team wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<div class="grid">
|
||||
<?php dynamic_sidebar( 'team' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Testimonial Section
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
if( is_active_sidebar( 'testimonial' ) ) { ?>
|
||||
<section id="testimonial-section" class="our-testimonial wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s">
|
||||
<div class="container">
|
||||
<div class="grid">
|
||||
<?php dynamic_sidebar( 'testimonial' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
Reference in New Issue
Block a user