Initial commit: Atomaste website
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying a message that posts cannot be found
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<section class="no-results not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'rara-business' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<?php
|
||||
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
|
||||
<p><?php
|
||||
printf(
|
||||
wp_kses(
|
||||
/* translators: 1: link to WP admin new post page. */
|
||||
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'rara-business' ),
|
||||
array(
|
||||
'a' => array(
|
||||
'href' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
esc_url( admin_url( 'post-new.php' ) )
|
||||
);
|
||||
?></p>
|
||||
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
|
||||
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'rara-business' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
else : ?>
|
||||
|
||||
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'rara-business' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
endif; ?>
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .no-results -->
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying page content in page.php
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* @hooked rara_business_post_thumbnail - 15
|
||||
* @hooked rara_business_entry_content - 20
|
||||
* @hooked rara_business_entry_footer - 25
|
||||
*/
|
||||
do_action( 'rara_business_page_entry_content' );
|
||||
?>
|
||||
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying results in search pages
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php
|
||||
/**
|
||||
* @hooked rara_business_post_thumbnail - 15
|
||||
* @hooked rara_business_entry_header - 20
|
||||
* @hooked rara_business_entry_content - 25
|
||||
* @hooked rara_business_entry_footer - 30
|
||||
*/
|
||||
do_action( 'rara_business_post_entry_content' );
|
||||
?>
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying posts
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="https://schema.org/Blog">
|
||||
|
||||
<?php
|
||||
/**
|
||||
* @hooked rara_business_entry_header - 15
|
||||
* @hooked rara_business_post_thumbnail - 20
|
||||
* @hooked rara_business_entry_content - 25
|
||||
* @hooked rara_business_entry_footer - 30
|
||||
*/
|
||||
do_action( 'rara_business_posts_entry_content' );
|
||||
?>
|
||||
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying portfolio taxonomy
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package Rara_Business
|
||||
*/
|
||||
|
||||
$terms = get_the_terms( get_the_ID(), 'rara_portfolio_categories' );
|
||||
$slug = '';
|
||||
$n = '';
|
||||
$i = 0;
|
||||
if( $terms ){
|
||||
foreach( $terms as $t ){
|
||||
$i++;
|
||||
$slug .= $t->slug;
|
||||
$n .= '#'.$t->name;
|
||||
if( count( $terms ) > $i ){
|
||||
$slug .= ' ';
|
||||
$n .= ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<div class="element-item">
|
||||
<div class="img-holder">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php
|
||||
if( has_post_thumbnail() ){
|
||||
the_post_thumbnail( 'rara-business-portfolio' );
|
||||
}else{
|
||||
echo '<img src="'. esc_url( get_template_directory_uri().'/images/rara-business-portfolio.jpg' ) .'" alt="'. the_title_attribute( 'echo=0' ) .'">';
|
||||
}
|
||||
?>
|
||||
</a>
|
||||
<div class="text-holder">
|
||||
<div class="text">
|
||||
<?php
|
||||
the_title( '<h3 class="title">', '</h3>' );
|
||||
if( $n ) echo '<p>'. esc_html( $n ) .'</p>';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
Reference in New Issue
Block a user