-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
executable file
·33 lines (28 loc) · 1.04 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Archive
* @author Jegbagus
*/
if(!jisAjax()) {
get_header();
} else {
get_template_part('includes/page-common');
}
$jdata->blogLayout = j_get_option('blog_layout' , JEG_DEFAULT_LAYOUT);
$jdata->blogSidebar = j_get_option('blog_sidebar' , jegGenId(JEG_DEFAULT_SIDEBAR));
$jdata->hideMeta = j_get_option('blog_hidemeta' , 0);
$jdata->excludeCategory = j_get_option('blog_exclude' );
$jdata->blogTitle = "";
if (function_exists('is_tag') && is_tag()) {
$jdata->blogTitle = sprintf( j__('tag_archive_for_lang') , single_tag_title('', false) );
} elseif (is_category()){
$jdata->blogTitle = sprintf( j__('post_filled_under_lang') , single_cat_title('', false) );
} elseif (is_author()){
$jdata->blogTitle = sprintf( j__('post_written_by_lang') , get_userdata(get_query_var('author'))->display_name );
} elseif (is_archive()) {
$jdata->blogTitle = sprintf( j__('date_archive_lang'), wp_title('', false)) ;
}
get_template_part( "includes/page-template" );
if(!jisAjax()) {
get_footer();
}