-
Notifications
You must be signed in to change notification settings - Fork 0
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 af8d184
Showing
7 changed files
with
233 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,32 @@ | ||
<?php | ||
/** | ||
* Website Footer Assastment | ||
* | ||
* @author Ricko | ||
* @subpackage Core | ||
* @version 1.0.0 | ||
*/ | ||
|
||
// Do not allow directly accessing this file. | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit( 'Direct script access denied.' ); | ||
} ?> | ||
|
||
<footer id="footer" role="contentinfo"> | ||
</footer> | ||
|
||
<script> | ||
jQuery(document).ready(function(){ | ||
jQuery('#home').append('target edit 1<br>'); | ||
}); | ||
jQuery(document).ready(function(){ | ||
jQuery('#sample-page-1').append('target edit 2<br>'); | ||
}); | ||
jQuery(document).ready(function(){ | ||
jQuery('#sample-page-2').append('target edit 3<br>'); | ||
}); | ||
</script> | ||
|
||
<?php wp_footer(); ?> | ||
</body> | ||
</html> |
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,30 @@ | ||
<?php | ||
/** | ||
* Main Theme Functions File | ||
* | ||
* Extra files & functions are hooked here. | ||
* | ||
* @author Ricko | ||
* @subpackage Core | ||
* @version 1.0.0 | ||
*/ | ||
|
||
// Do not allow directly accessing this file. | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit( 'Dont do that !!!.' ); | ||
} | ||
|
||
|
||
function register_my_menu() { | ||
register_nav_menu('header-menu',__( 'Header Menu' )); | ||
} | ||
add_action( 'init', 'register_my_menu' ); | ||
|
||
function register_my_menus() { | ||
register_nav_menus( | ||
array( | ||
'header-menu' => __( 'Header Menu' ), | ||
) | ||
); | ||
} | ||
add_action( 'init', 'register_my_menus' ); |
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,35 @@ | ||
<?php | ||
/** | ||
* Website Header Assastment | ||
* | ||
* @author Ricko | ||
* @subpackage Core | ||
* @version 1.0.0 | ||
*/ | ||
|
||
// Do not allow directly accessing this file. | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit( 'Direct script access denied.' ); | ||
} | ||
?> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#" itemscope="" itemtype="http://schema.org/blog" <?php language_attributes(); ?>> | ||
<head profile="http://gmpg.org/xfn/11"> | ||
<?php wp_head(); ?> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> | ||
</head> | ||
|
||
<body id="<?php body_css_id(); ?>" <?php body_class(); ?>> | ||
|
||
<div id="page"> | ||
|
||
<header id="header" role="banner"> | ||
|
||
<div class="hgroup"> | ||
<div class="group"> | ||
<nav class="nav" role="navigation"><?php wp_nav_menu(array('theme_location'=>'header-menu','container'=>false)); ?></nav> | ||
<div class="clear"></div> | ||
</div> | ||
</div> | ||
</header> |
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,66 @@ | ||
<?php | ||
/** | ||
* main template | ||
* | ||
* @author Ricko | ||
* @subpackage Core | ||
* @version 1.0.0 | ||
*/ | ||
|
||
// Do not allow directly accessing this file. | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit( 'Direct script access denied.' ); | ||
} | ||
|
||
get_header(); ?> | ||
|
||
<div role="main"> | ||
<div class="link-back"> | ||
<a title="Back" href="javascript:history.go(-1)"><i class="fa fa-arrow-left"></i></i> Back</a> | ||
</div> | ||
|
||
<?php if ( is_home() && ! is_front_page() ) : ?> | ||
<header id="lead"> | ||
<div class="group"> | ||
<h1 class="page-title screen-reader-text"> | ||
<span class="the-title"><?php single_post_title(); ?></span> | ||
</h1> | ||
</div> | ||
</header> | ||
<?php endif; ?> | ||
|
||
<section class="blog_wrap"> | ||
<article id="entry"> | ||
|
||
<div id="post-entry" class="index borderbox left"> | ||
|
||
<?php if (have_posts()) : | ||
|
||
$i = 0; while (have_posts()) : the_post(); $i++; | ||
get_template_part( 'template-parts/content', 'blog' ); | ||
endwhile; ?> | ||
|
||
<div class="post-nav"> | ||
<p class="left"><?php previous_posts_link('<span class="aquo">«</span> Previous Entries') ?></p> | ||
<p class="right"><?php next_posts_link('Next Entries <span class="aquo">»</span>','') ?></p> | ||
<div class="clear"></div> | ||
</div> | ||
|
||
<?php // If no content, include the "No posts found" template. | ||
else : | ||
get_template_part( 'template-parts/content', 'none' ); | ||
endif; ?> | ||
|
||
</div><!-- .post-entry --> | ||
|
||
<?php get_sidebar(); ?> | ||
|
||
</article> | ||
</section><!-- .blog_wrap --> | ||
|
||
</div> | ||
|
||
<?php get_footer(); | ||
|
||
|
||
/* Omit closing PHP tag to avoid "Headers already sent" issues. */ |
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,9 @@ | ||
<?php | ||
get_header(); | ||
?> | ||
|
||
<div role="main"> | ||
|
||
</div> | ||
|
||
<?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,24 @@ | ||
<?php | ||
/** | ||
* The template for the sidebar containing the main widget area | ||
* | ||
* @author Ricko | ||
* @subpackage Core | ||
* @version 1.0.0 | ||
*/ | ||
|
||
// Do not allow directly accessing this file. | ||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit( 'Direct script access denied.' ); | ||
} | ||
|
||
if ( is_active_sidebar( 'blog-sidebar' ) ) : ?> | ||
|
||
<aside id="sidebar" class="sidebar borderbox right" role="complementary"> | ||
<?php if (is_home() || is_category() || is_archive() || is_tag() || is_search() || is_single() || is_date()) dynamic_sidebar('blog-sidebar'); ?> | ||
</aside> | ||
<p>X</p> | ||
|
||
<div class="clear"></div> | ||
|
||
<?php endif; ?> |
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,37 @@ | ||
/* | ||
Theme Name: Assesment 2 Ricko | ||
Theme URI: http://rickostefan.com/ | ||
Description: Ricko Theme | ||
Author: Ricko Stefan | ||
Author URI: - | ||
Version: 1.0.0 | ||
Tags: - | ||
*/ | ||
|
||
/* Add a black background color to the top navigation */ | ||
.topnav { | ||
background-color: #333; | ||
overflow: hidden; | ||
} | ||
|
||
/* Style the links inside the navigation bar */ | ||
.topnav a { | ||
float: left; | ||
color: #f2f2f2; | ||
text-align: center; | ||
padding: 14px 16px; | ||
text-decoration: none; | ||
font-size: 17px; | ||
} | ||
|
||
/* Change the color of links on hover */ | ||
.topnav a:hover { | ||
background-color: #ddd; | ||
color: black; | ||
} | ||
|
||
/* Add a color to the active/current link */ | ||
.topnav a.active { | ||
background-color: #4CAF50; | ||
color: white; | ||
} |