<?php
if( ! defined( 'ABSPATH' ) ) { die(); }
global $avia_config;
/**
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();
$title = __( 'Blog - Latest News', 'avia_framework' ); //default blog title
$t_link = home_url( '/' );
$t_sub = '';
if( avia_get_option( 'frontpage' ) && $new = avia_get_option( 'blogpage' ) )
{
$title = get_the_title( $new ); //if the blog is attached to a page use this title
$t_link = get_permalink( $new );
$t_sub = avia_post_meta( $new, 'subtitle' );
}
if( get_post_meta( get_the_ID(), 'header', true ) != 'no' )
{
echo avia_title( array( 'heading' => 'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub ) );
}
do_action( 'ava_after_main_title' );
?>
<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
<div class='container template-blog template-single-blog '>
<main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper( array( 'context' => 'content', 'post_type' => 'post' ) );?>>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*
*/
get_template_part( 'includes/loop', 'index' );
$blog_disabled = ( avia_get_option('disable_blog') == 'disable_blog' ) ? true : false;
if( ! $blog_disabled )
{
//show related posts based on tags if there are any
get_template_part( 'includes/related-posts' );
//wordpress function that loads the comments template "comments.php"
comments_template();
}
?>
<!--end content-->
</main>
<?php
$avia_config['currently_viewing'] = 'blog';
//get the sidebar
get_sidebar();
?>
</div><!--end container-->
</div><!-- close default .container_wrap element -->
<?php
get_footer();
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| config-bbpress/ | 2023-02-04 23:45 | 64.06 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-events-calendar/ | 2023-02-04 23:45 | 76.56 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-gravityforms/ | 2023-02-04 23:46 | 7.87 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-gutenberg/ | 2023-02-04 23:46 | 132.44 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-instagram-feed/ | 2023-02-04 23:45 | 49.49 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-layerslider/ | 2023-02-04 23:45 | 9.65 MB | 76129f60960:kunden | dxwrx-rx-r | |
| config-leaflet-maps/ | 2023-02-04 23:45 | 2.78 MB | 76129f60960:kunden | dxwrx-rx-r | |
| config-menu-exchange/ | 2023-02-04 23:45 | 997 B | 76129f60960:kunden | dxwrx-rx-r | |
| config-pojo-accessibility/ | 2023-02-04 23:45 | 5.64 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-rank-math/ | 2023-02-04 23:46 | 4.58 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-relevanssi/ | 2023-02-04 23:45 | 3.53 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-templatebuilder/ | 2023-02-04 23:46 | 6.24 MB | 76129f60960:kunden | dxwrx-rx-r | |
| config-woocommerce/ | 2023-02-04 23:46 | 413.12 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-wordpress-seo/ | 2023-02-04 23:45 | 13.43 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-wp-accessibility/ | 2023-02-04 23:45 | 5.2 KB | 76129f60960:kunden | dxwrx-rx-r | |
| config-wpml/ | 2023-02-04 23:45 | 99.13 KB | 76129f60960:kunden | dxwrx-rx-r | |
| css/ | 2023-02-04 23:45 | 437.77 KB | 76129f60960:kunden | dxwrx-rx-r | |
| dev/ | 2023-02-04 23:46 | 342.69 KB | 76129f60960:kunden | dxwrx-rx-r | |
| framework/ | 2023-02-04 23:45 | 2.09 MB | 76129f60960:kunden | dxwrx-rx-r | |
| images/ | 2023-02-04 23:45 | 3.46 MB | 76129f60960:kunden | dxwrx-rx-r | |
| includes/ | 2023-02-04 23:45 | 808.55 KB | 76129f60960:kunden | dxwrx-rx-r | |
| js/ | 2023-02-04 23:45 | 435.67 KB | 76129f60960:kunden | dxwrx-rx-r | |
| lang/ | 2023-02-04 23:46 | 39.06 MB | 76129f60960:kunden | dxwrx-rx-r | |
| 404.php | 2023-02-04 23:45 | 1.25 KB | 76129f60960:kunden | -xw-x----- | |
| archive.php | 2023-02-04 23:45 | 2.91 KB | 76129f60960:kunden | -xw-x----- | |
| author.php | 2023-02-04 23:45 | 2.02 KB | 76129f60960:kunden | -xw-x----- | |
| comments.php | 2023-02-04 23:45 | 5.75 KB | 76129f60960:kunden | -xw-x----- | |
| config-include.php | 2023-02-04 23:45 | 1.57 KB | 76129f60960:kunden | -xw-x----- | |
| footer.php | 2023-02-04 23:45 | 9.66 KB | 76129f60960:kunden | -xw-x----- | |
| forum.php | 2023-02-04 23:45 | 1.77 KB | 76129f60960:kunden | -xw-x----- | |
| functions-enfold.php | 2023-02-04 23:45 | 72.07 KB | 76129f60960:kunden | -xw-x----- | |
| functions.php | 2023-02-04 23:45 | 36.13 KB | 76129f60960:kunden | -xw-x----- | |
| header.php | 2023-02-04 23:45 | 8.11 KB | 76129f60960:kunden | -xw-x----- | |
| index.php | 2023-02-04 23:45 | 2.52 KB | 76129f60960:kunden | -xw-x----- | |
| page.php | 2023-02-04 23:45 | 1.37 KB | 76129f60960:kunden | -xw-x----- | |
| screenshot.png | 2023-02-04 23:45 | 144.35 KB | 76129f60960:kunden | -xw-x----- | |
| search.php | 2023-02-04 23:45 | 1.75 KB | 76129f60960:kunden | -xw-x----- | |
| searchform.php | 2023-02-04 23:45 | 1.32 KB | 76129f60960:kunden | -xw-x----- | |
| sidebar.php | 2023-02-04 23:45 | 4.29 KB | 76129f60960:kunden | -xw-x----- | |
| single-portfolio.php | 2023-02-04 23:45 | 1.29 KB | 76129f60960:kunden | -xw-x----- | |
| single.php | 2023-02-04 23:45 | 1.99 KB | 76129f60960:kunden | -xw-x----- | |
| style.css | 2023-02-04 23:45 | 1.1 KB | 76129f60960:kunden | -xw-x----- | |
| tag.php | 2023-02-04 23:45 | 5.87 KB | 76129f60960:kunden | -xw-x----- | |
| taxonomy-portfolio_entries.php | 2023-02-04 23:45 | 1.38 KB | 76129f60960:kunden | -xw-x----- | |
| template-archives.php | 2023-02-04 23:45 | 7.14 KB | 76129f60960:kunden | -xw-x----- | |
| template-blank.php | 2023-02-04 23:45 | 654 B | 76129f60960:kunden | -xw-x----- | |
| template-builder.php | 2023-02-04 23:45 | 4.91 KB | 76129f60960:kunden | -xw-x----- | |
| theme.json | 2023-02-04 23:45 | 3.26 KB | 76129f60960:kunden | -xw-x----- | |
| wpml-config.xml | 2023-02-04 23:45 | 3.69 KB | 76129f60960:kunden | -xw-x----- | |