Skip to content

Commit 9e50fa9

Browse files
Initial setup - current theme not legal
1 parent 5e50157 commit 9e50fa9

File tree

898 files changed

+161025
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

898 files changed

+161025
-0
lines changed

.DS_Store

10 KB
Binary file not shown.

404.php

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
3+
//set the template id, used to get the template specific settings
4+
$template_id = '404';
5+
6+
td_global::$current_template = $template_id;
7+
8+
td_global::$load_featured_img_from_template = 'full';
9+
10+
//prepare the loop variables
11+
global $loop_module_id, $loop_sidebar_position;
12+
$loop_sidebar_position = 'no_sidebar';
13+
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
14+
15+
16+
17+
18+
get_header();
19+
20+
?>
21+
<div class="td-main-content-wrap">
22+
<div class="td-container">
23+
<div class="td-pb-row">
24+
<div class="td-pb-span12">
25+
<div class="td-404-title">
26+
<?php _etd('Ooops... Error 404', TD_THEME_NAME); ?>
27+
</div>
28+
29+
<div class="td-404-sub-title">
30+
<?php _etd('Sorry, but the page you are looking for doesn_t exist.', TD_THEME_NAME); ?>
31+
</div>
32+
33+
<div class="td-404-sub-sub-title">
34+
<?php _etd('You can go to the', ''); ?>
35+
<a href="<?php echo esc_url(home_url( '/' )); ?>"><?php _etd('HOMEPAGE', TD_THEME_NAME); ?></a>
36+
37+
</div>
38+
39+
40+
<h4 class="block-title"><span><?php echo __td('OUR LATEST POSTS', TD_THEME_NAME)?></span></h4>
41+
42+
<?php
43+
44+
45+
$args = array(
46+
'post_type'=> 'post',
47+
'showposts' => 6
48+
);
49+
query_posts($args);
50+
51+
52+
$td_loop_block_module = td_util::get_option('tds_404_page_layout');
53+
//$td_loop_block_module
54+
55+
56+
locate_template('loop.php', true);
57+
//get_template_part('category', 'slider');
58+
wp_reset_query();
59+
60+
?>
61+
</div>
62+
</div> <!-- /.td-pb-row -->
63+
</div> <!-- /.td-container -->
64+
</div> <!-- /.td-main-content-wrap -->
65+
66+
<?php
67+
get_footer();
68+
?>

archive.php

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?php
2+
/* ----------------------------------------------------------------------------
3+
the archive(s) template
4+
*/
5+
6+
get_header();
7+
8+
9+
//set the template id, used to get the template specific settings
10+
$template_id = 'archive';
11+
12+
//prepare the loop variables
13+
global $loop_module_id, $loop_sidebar_position, $part_cur_auth_obj;
14+
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
15+
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
16+
17+
// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
18+
$td_sidebar_position = '';
19+
if($loop_sidebar_position == 'sidebar_left') {
20+
$td_sidebar_position = 'td-sidebar-left';
21+
}
22+
23+
//read the current author object - used by here in title and by /parts/author-header.php
24+
$part_cur_auth_obj = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
25+
26+
27+
//prepare the archives page title
28+
if (is_day()) {
29+
$td_archive_title = __td('Daily Archives:', TD_THEME_NAME). ' ' . get_the_date();
30+
} elseif (is_month()) {
31+
$td_archive_title = __td('Monthly Archives:', TD_THEME_NAME) . ' ' . get_the_date('F Y');
32+
} elseif (is_year()) {
33+
$td_archive_title = __td('Yearly Archives:', TD_THEME_NAME) . ' ' . get_the_date('Y');
34+
} else {
35+
$td_archive_title = __td('Archives', TD_THEME_NAME);
36+
}
37+
?>
38+
<div class="td-main-content-wrap">
39+
<div class="td-container <?php echo $td_sidebar_position; ?>">
40+
<div class="td-crumb-container">
41+
<?php echo td_page_generator::get_archive_breadcrumbs(); // get the breadcrumbs - /includes/wp_booster/td_page_generator.php ?>
42+
</div>
43+
<div class="td-pb-row">
44+
<?php
45+
switch ($loop_sidebar_position) {
46+
default:
47+
?>
48+
<div class="td-pb-span8 td-main-content">
49+
<div class="td-ss-main-content">
50+
<div class="td-page-header">
51+
<h1 itemprop="name" class="entry-title td-page-title">
52+
<span><?php echo $td_archive_title; ?></span>
53+
</h1>
54+
</div>
55+
56+
<?php locate_template('loop.php', true);?>
57+
58+
<?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
59+
</div>
60+
</div>
61+
62+
<div class="td-pb-span4 td-main-sidebar">
63+
<div class="td-ss-main-sidebar">
64+
<?php get_sidebar(); ?>
65+
</div>
66+
</div>
67+
<?php
68+
break;
69+
70+
case 'sidebar_left':
71+
?>
72+
<div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content">
73+
<div class="td-ss-main-content">
74+
<div class="td-page-header">
75+
<h1 itemprop="name" class="entry-title td-page-title">
76+
<span><?php echo $td_archive_title; ?></span>
77+
</h1>
78+
</div>
79+
80+
<?php locate_template('loop.php', true);?>
81+
82+
<?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
83+
</div>
84+
</div>
85+
<div class="td-pb-span4 td-main-sidebar">
86+
<div class="td-ss-main-sidebar">
87+
<?php get_sidebar(); ?>
88+
</div>
89+
</div>
90+
<?php
91+
break;
92+
93+
case 'no_sidebar':
94+
?>
95+
<div class="td-pb-span12 td-main-content">
96+
<div class="td-ss-main-content">
97+
<div class="td-page-header">
98+
<h1 itemprop="name" class="entry-title td-page-title">
99+
<span><?php echo $td_archive_title; ?></span>
100+
</h1>
101+
</div>
102+
<?php locate_template('loop.php', true);?>
103+
104+
<?php echo td_page_generator::get_pagination(); // get the pagination - /includes/wp_booster/td_page_generator.php ?>
105+
</div>
106+
</div>
107+
<?php
108+
break;
109+
}
110+
?>
111+
</div> <!-- /.td-pb-row -->
112+
</div> <!-- /.td-container -->
113+
</div> <!-- /.td-main-content-wrap -->
114+
115+
<?php
116+
get_footer();

attachment.php

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?php
2+
/* ----------------------------------------------------------------------------
3+
the attachment template
4+
*/
5+
6+
get_header();
7+
8+
9+
//set the template id, used to get the template specific settings
10+
$template_id = 'attachment';
11+
12+
//prepare the loop variables
13+
global $loop_sidebar_position;
14+
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
15+
16+
// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
17+
$td_sidebar_position = '';
18+
if($loop_sidebar_position == 'sidebar_left') {
19+
$td_sidebar_position = 'td-sidebar-left';
20+
}
21+
?>
22+
23+
<div class="td-main-content-wrap">
24+
<div class="td-container <?php echo $td_sidebar_position; ?>">
25+
<div class="td-crumb-container">
26+
<?php
27+
if (!empty($post->post_parent) and !empty($post->post_title)) {
28+
echo td_page_generator::get_attachment_breadcrumbs($post->post_parent, $post->post_title);
29+
}
30+
?>
31+
</div>
32+
<div class="td-pb-row">
33+
<?php
34+
switch ($loop_sidebar_position) {
35+
default:
36+
?>
37+
<div class="td-pb-span8 td-main-content">
38+
<div class="td-ss-main-content">
39+
<?php
40+
if (is_single()) {?>
41+
<h1 itemprop="name" class="entry-title td-page-title">
42+
<span><?php the_title(); ?></span>
43+
</h1><?php
44+
} else {?>
45+
<h1 itemprop="name" class="entry-title td-page-title">
46+
<a itemprop="url" href="<?php ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
47+
</h1><?php
48+
}
49+
50+
get_template_part('loop', 'attachment');
51+
?>
52+
<div class="td-attachment-prev"><?php previous_image_link(); ?></div>
53+
<div class="td-attachment-next"><?php next_image_link(); ?></div>
54+
</div>
55+
</div>
56+
<div class="td-pb-span4 td-main-sidebar">
57+
<div class="td-ss-main-sidebar">
58+
<?php get_sidebar(); ?>
59+
</div>
60+
</div>
61+
<?php
62+
break;
63+
64+
case 'sidebar_left':
65+
?>
66+
<div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>">
67+
<div class="td-ss-main-content">
68+
<?php
69+
if (is_single()) {?>
70+
<h1 itemprop="name" class="entry-title td-page-title">
71+
<span><?php the_title(); ?></span>
72+
</h1><?php
73+
} else {?>
74+
<h1 itemprop="name" class="entry-title td-page-title">
75+
<a itemprop="url" href="<?php ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
76+
</h1><?php
77+
}
78+
79+
get_template_part('loop', 'attachment');
80+
?>
81+
<div class="td-attachment-prev"><?php previous_image_link(); ?></div>
82+
<div class="td-attachment-next"><?php next_image_link(); ?></div>
83+
</div>
84+
</div>
85+
<div class="td-pb-span4 td-main-sidebar">
86+
<div class="td-ss-main-sidebar">
87+
<?php get_sidebar(); ?>
88+
</div>
89+
</div>
90+
<?php
91+
break;
92+
93+
case 'no_sidebar':
94+
?>
95+
<div class="td-pb-span12 td-main-content">
96+
<div class="td-ss-main-content">
97+
<?php
98+
if (is_single()) {?>
99+
<h1 itemprop="name" class="entry-title td-page-title">
100+
<span><?php the_title(); ?></span>
101+
</h1><?php
102+
} else {?>
103+
<h1 itemprop="name" class="entry-title td-page-title">
104+
<a itemprop="url" href="<?php ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
105+
</h1><?php
106+
}
107+
108+
get_template_part('loop', 'attachment');
109+
?>
110+
<div class="td-attachment-prev"><?php previous_image_link(); ?></div>
111+
<div class="td-attachment-next"><?php next_image_link(); ?></div>
112+
</div>
113+
</div>
114+
<?php
115+
break;
116+
}
117+
?>
118+
</div> <!-- /.td-pb-row -->
119+
</div> <!-- /.td-container -->
120+
</div> <!-- /.td-main-content-wrap -->
121+
122+
<?php
123+
get_footer();
124+
?>

0 commit comments

Comments
 (0)