-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f9606aa
Showing
76 changed files
with
14,850 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (not found) | ||
* | ||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page | ||
* | ||
* @package San_WP_Bootstrap | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section id="primary" class="content-area col-sm-12 col-lg-8"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<section class="error-404 not-found"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'san-wp-bootstrap' ); ?></h1> | ||
</header><!-- .page-header --> | ||
|
||
<div class="page-content"> | ||
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'san-wp-bootstrap' ); ?></p> | ||
|
||
</div><!-- .page-content --> | ||
</section><!-- .error-404 --> | ||
|
||
</main><!-- #main --> | ||
</section><!-- #primary --> | ||
|
||
<?php | ||
get_sidebar(); | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages | ||
* | ||
* With sidebar | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package San_WP_Bootstrap | ||
*/ | ||
|
||
get_header(); | ||
|
||
// $adsense = "1"; // 0 - For unactivate , 1 - For activate | ||
// $ads_client_id = " "; // Publisher ID | ||
// $ads_slot_id = " "; // Slot ID | ||
// $ads_format = "auto";// ADS format - auto (This ad unit can automatically adjust the size of space available on the page.) | ||
// $ads_responsive="true"; | ||
|
||
?> | ||
<div class="container"> | ||
<div class="row"> | ||
|
||
<section id="primary" class="content-area col-sm-12 col-lg-8"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<div class="single-ads" id="singleAds"> | ||
<div class="single-ads-title">advertisement</div> | ||
<div class="single-ads-script"> | ||
<div class="example-ads" style="background:#cecece"></div> <!-- delete this line after fiil adsense code --> | ||
<!-- <?php if($adsense == 1){ | ||
echo "<script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script> | ||
<ins class=\"adsbygoogle\" | ||
style=\"display:block\" | ||
data-ad-client=\"{$ads_client_id}\" | ||
data-ad-slot=\"{$ads_slot_id}\" | ||
data-ad-format=\"{$ads_format}\" | ||
data-full-width-responsive=\"{$ads_responsive}\"></ins> | ||
<script> | ||
(adsbygoogle = window.adsbygoogle || []).push({}); | ||
</script>"; | ||
} | ||
?> --> | ||
</div> | ||
</div><!-- end single ads custom --> | ||
|
||
<?php | ||
if ( have_posts() ) : ?> | ||
|
||
<header class="page-header"> | ||
<?php | ||
the_archive_title( '<h1 class="page-title">', '</h1>' ); | ||
the_archive_description( '<div class="archive-description">', '</div>' ); | ||
?> | ||
</header><!-- .page-header --> | ||
|
||
<?php | ||
/* Start the Loop */ | ||
while ( have_posts() ) : the_post(); | ||
|
||
/* | ||
* Include the Post-Format-specific template for the content. | ||
* If you want to override this in a child theme, then include a file | ||
* called content-___.php (where ___ is the Post Format name) and that will be used instead. | ||
*/ | ||
get_template_part( 'template-parts/content','archive'); | ||
|
||
endwhile; | ||
|
||
the_posts_navigation(); | ||
|
||
else : | ||
|
||
get_template_part( 'template-parts/content', 'none' ); | ||
|
||
endif; ?> | ||
|
||
</main><!-- #main --> | ||
</section><!-- #primary --> | ||
|
||
<?php | ||
get_sidebar(); | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
/** | ||
* The template for displaying archive pages | ||
* | ||
* With post card style | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package San_WP_Bootstrap | ||
*/ | ||
|
||
get_header(); | ||
|
||
// $adsense = "1"; // 0 - For unactivate , 1 - For activate | ||
// $ads_client_id = " "; // Publisher ID | ||
// $ads_slot_id = " "; // Slot ID | ||
// $ads_format = "auto";// ADS format - auto (This ad unit can automatically adjust the size of space available on the page.) | ||
// $ads_responsive="true"; | ||
|
||
?> | ||
<div class="container"> | ||
<div class="col"> | ||
|
||
<section id="primary" class="container content-area col-sm-12 col-lg"> | ||
<main id="main" class="site-main" role="main"> | ||
|
||
<!--<div class="single-ads" id="singleAds"> | ||
<div class="single-ads-title">advertisement</div> | ||
<div class="single-ads-script"> | ||
<div class="example-ads" style="background:#cecece"></div> delete this line after fiil adsense code --> | ||
<!-- <?php if($adsense == 1){ | ||
echo "<script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script> | ||
<ins class=\"adsbygoogle\" | ||
style=\"display:block\" | ||
data-ad-client=\"{$ads_client_id}\" | ||
data-ad-slot=\"{$ads_slot_id}\" | ||
data-ad-format=\"{$ads_format}\" | ||
data-full-width-responsive=\"{$ads_responsive}\"></ins> | ||
<script> | ||
(adsbygoogle = window.adsbygoogle || []).push({}); | ||
</script>"; | ||
} | ||
?> --> | ||
<!--</div> | ||
</div> end single ads custom --> | ||
|
||
<?php | ||
if ( have_posts() ) : ?> | ||
|
||
<header class="page-header"> | ||
<?php | ||
|
||
// the_archive_title( '<h1 class="page-title">', '</h1>' ); | ||
|
||
echo '<h1 class="page-title">' . single_cat_title( '', false ) . '</h1>'; | ||
|
||
the_archive_description( '<div class="archive-description">', '</div>' ); | ||
|
||
|
||
?> | ||
</header><!-- .page-header --> | ||
|
||
<?php | ||
/* Start the Loop */ | ||
while ( have_posts() ) : the_post(); | ||
|
||
/* | ||
* Include the Post-Format-specific template for the content. | ||
* If you want to override this in a child theme, then include a file | ||
* called content-___.php (where ___ is the Post Format name) and that will be used instead. | ||
*/ | ||
get_template_part( 'template-parts/content','archive'); | ||
|
||
endwhile; | ||
|
||
the_posts_navigation(); | ||
|
||
else : | ||
|
||
get_template_part( 'template-parts/content', 'none' ); | ||
|
||
endif; ?> | ||
|
||
</main><!-- #main --> | ||
</section><!-- #primary --> | ||
|
||
<?php | ||
// get_sidebar(); | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Template Name: Blank with Container | ||
*/ | ||
|
||
get_header(); | ||
?> | ||
<section id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
<div class="container"> | ||
<?php | ||
while ( have_posts() ) : the_post(); | ||
get_template_part( 'template-parts/content', 'notitle' ); | ||
endwhile; // End of the loop. | ||
?> | ||
</div> | ||
</main><!-- #main --> | ||
</section><!-- #primary --> | ||
|
||
<?php | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* Template Name: Blank without Container | ||
*/ | ||
|
||
get_header(); | ||
?> | ||
<section id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
<?php | ||
while ( have_posts() ) : the_post(); | ||
get_template_part( 'template-parts/content', 'notitle' ); | ||
endwhile; // End of the loop. | ||
?> | ||
</main><!-- #main --> | ||
</section><!-- #primary --> | ||
|
||
<?php | ||
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?php | ||
/** | ||
* The template for displaying comments | ||
* | ||
* This is the template that displays the area of the page that contains both the current comments | ||
* and the comment form. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package SAN_WP_Bootstrap | ||
*/ | ||
|
||
/* | ||
* If the current post is protected by a password and | ||
* the visitor has not yet entered the password we will | ||
* return early without loading the comments. | ||
*/ | ||
if ( post_password_required() ) { | ||
return; | ||
} | ||
?> | ||
|
||
<div id="comments" class="comments-area"> | ||
|
||
<?php comment_form( $args = array( | ||
'id_form' => 'commentform', // that's the wordpress default value! delete it or edit it ;) | ||
'id_submit' => 'commentsubmit', | ||
'title_reply' => __( 'Leave a Reply', 'san-wp-bootstrap' ), // that's the wordpress default value! delete it or edit it ;) | ||
/* translators: 1: Reply Specific User */ | ||
'title_reply_to' => __( 'Leave a Reply to %s', 'san-wp-bootstrap' ), // that's the wordpress default value! delete it or edit it ;) | ||
'cancel_reply_link' => __( 'Cancel Reply', 'san-wp-bootstrap' ), // that's the wordpress default value! delete it or edit it ;) | ||
'label_submit' => __( 'Post Comment', 'san-wp-bootstrap' ), // that's the wordpress default value! delete it or edit it ;) | ||
|
||
'comment_field' => '<p><textarea placeholder="Start typing..." id="comment" class="form-control" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', | ||
|
||
'comment_notes_after' => '<p class="form-allowed-tags">' . | ||
__( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'san-wp-bootstrap' ) . | ||
'</p><div class="alert alert-info">' . allowed_tags() . '</div>' | ||
|
||
// So, that was the needed stuff to have bootstrap basic styles for the form elements and buttons | ||
|
||
// Basically you can edit everything here! | ||
// Checkout the docs for more: http://codex.wordpress.org/Function_Reference/comment_form | ||
// Another note: some classes are added in the bootstrap-wp.js - ckeck from line 1 | ||
|
||
)); | ||
|
||
?> | ||
|
||
<?php | ||
// You can start editing here -- including this comment! | ||
if ( have_comments() ) : ?> | ||
|
||
<h2 class="comments-title"> | ||
|
||
<?php | ||
$comments_number = get_comments_number(); | ||
if ( '1' === $comments_number ) { | ||
printf( | ||
/* translators: 1: title. */ | ||
esc_html__( 'One thought on “%1$s”', 'san-wp-bootstrap' ), | ||
'<span>' . esc_html(get_the_title()) . '</span>' | ||
); | ||
} else { | ||
printf( // WPCS: XSS OK. | ||
/* translators: 1: comment count number, 2: title. */ | ||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $underscore_comment_count, 'comments title', 'san-wp-bootstrap' ) ), | ||
esc_html( number_format_i18n( $underscore_comment_count ) ), | ||
'<span>' . esc_html( get_the_title() ) . '</span>' | ||
); | ||
} | ||
?> | ||
</h2><!-- .comments-title --> | ||
|
||
|
||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> | ||
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> | ||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'san-wp-bootstrap' ); ?></h2> | ||
<div class="nav-links"> | ||
|
||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'san-wp-bootstrap' ) ); ?></div> | ||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'san-wp-bootstrap' ) ); ?></div> | ||
|
||
</div><!-- .nav-links --> | ||
</nav><!-- #comment-nav-above --> | ||
<?php endif; // Check for comment navigation. ?> | ||
|
||
<ul class="comment-list"> | ||
<?php | ||
wp_list_comments( array( | ||
'callback' => 'san_wp_bootstrap_comment', | ||
'avatar_size' => 30, | ||
'fallback_cb' => 'san_wp_bootstrap_chillhoodcomm::fallback', | ||
'walker' => new san_wp_bootstrap_chillhoodcomm | ||
)); | ||
?> | ||
</ul><!-- .comment-lisssssst --> | ||
|
||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> | ||
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> | ||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'san-wp-bootstrap' ); ?></h2> | ||
<div class="nav-links"> | ||
|
||
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'san-wp-bootstrap' ) ); ?></div> | ||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'san-wp-bootstrap' ) ); ?></div> | ||
|
||
</div><!-- .nav-links --> | ||
</nav><!-- #comment-nav-below --> | ||
<?php | ||
endif; // Check for comment navigation. | ||
|
||
endif; // Check for have_comments(). | ||
|
||
|
||
// If comments are closed and there are comments, let's leave a little note, shall we? | ||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> | ||
|
||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'san-wp-bootstrap' ); ?></p> | ||
<?php | ||
endif; ?> | ||
|
||
</div><!-- #comments --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
h1 { | ||
font-size: 90px !important; | ||
} |
Oops, something went wrong.