Last active
December 24, 2015 19:19
-
-
Save sophy/6849539 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Directory: languages/ | |
# Copyright (C) 2013 the WordPress team | |
# This file is distributed under the GNU General Public License v2 or later. | |
msgid "" | |
msgstr "" | |
"Project-Id-Version: Angnkor 1.0\n" | |
"POT-Creation-Date: 2013-10-13 18:14:18+00:00\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" | |
"Content-Transfer-Encoding: 8bit\n" | |
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n" | |
"Last-Translator: Sophy Prak <sophy.prak@gmail.com>\n" | |
"Language-Team: Khmer <LL@li.org>\n" | |
#: functions.php:19 | |
msgid "Navigation Menu" | |
msgstr "" |
This file contains hidden or 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
# Directory: languages/ | |
# Copyright (C) 2013 the WordPress team | |
# This file is distributed under the GNU General Public License v2 or later. | |
msgid "" | |
msgstr "" | |
"Project-Id-Version: Angnkor 1.0\n" | |
"POT-Creation-Date: 2013-10-13 18:14:18+00:00\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" | |
"Content-Transfer-Encoding: 8bit\n" | |
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n" | |
"Last-Translator: Sophy Prak <sophy.prak@gmail.com>\n" | |
"Language-Team: English <LL@li.org>\n" | |
#: functions.php:19 | |
msgid "Navigation Menu" | |
msgstr "មេនុយ នាវីងែត" |
This file contains hidden or 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
<?php | |
/* | |
* Sets up the theme and provides some helper functions, which are used in the | |
* theme as custom template tags. Others are attached to action and filter | |
* hooks in WordPress to change core functionality. | |
*/ | |
function angkor_setup() { | |
/* | |
* Makes Angkor available for translation. | |
* | |
* Translations can be added to the /languages/ directory. | |
* If you're building a theme based on Angkor, use a find and | |
* replace to change 'angkor' to the name of your theme in all | |
* template files. | |
*/ | |
load_theme_textdomain( 'angkor', get_template_directory() . '/languages' ); | |
// This theme uses wp_nav_menu() in one location. | |
register_nav_menu( 'primary', __( 'Navigation Menu', 'angkor' ) ); | |
add_post_type_support('page', 'excerpt'); | |
} | |
add_action( 'after_setup_theme', 'angkor_setup' ); | |
?> |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Angkor Theme</title> | |
<link rel="stylesheet" href="<?php echo get_stylesheet_uri() ?>"> | |
</head> | |
<body> | |
<header class="site-header"> | |
Site Header | |
</header> | |
<nav class="site-nav"> | |
<?php | |
// Reference: http://codex.wordpress.org/Function_Reference/wp_nav_menu | |
wp_nav_menu( | |
array( | |
'theme_location' => 'primary', | |
'container' => false, | |
'menu_id' => 'mainMenu', | |
'menu_class' => 'main-menu custom-menu' | |
)); | |
?> | |
</nav> | |
<div class="main-content"> |
This file contains hidden or 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
<?php get_header() ?> | |
<section class="main-section"> | |
<?php if ( have_posts() ) : ?> | |
<?php while (have_posts()): the_post() ?> | |
<article class="post"> | |
<h2> | |
<a href="<?php the_permalink() ?>"> | |
<?php the_title(); ?> | |
</a> | |
</h2> | |
<div class="post-content"> | |
<?php the_excerpt() ?> | |
</div> | |
</article> | |
<?php endwhile; ?> | |
<div class="nav-links"> | |
<?php if ( get_next_posts_link() ) : ?> | |
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'angkor' ) ); ?></div> | |
<?php endif; ?> | |
<?php if ( get_previous_posts_link() ) : ?> | |
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'angkor' ) ); ?></div> | |
<?php endif; ?> | |
</div><!-- .nav-links --> | |
<?php endif; ?> | |
</section> | |
<?php get_sidebar() ?> | |
<?php get_footer(); |
This file contains hidden or 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
<?php | |
/* | |
* Template Name: Jobs Display | |
*/ | |
get_header() | |
?> | |
<div class="jobs-list " style="width: 30%; float: left"> | |
<ul> | |
<?php | |
$jobs = get_posts(array('category_name' => 'jobs')); | |
foreach ( $jobs as $post ) : setup_postdata( $post ); ?> | |
<li> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> | |
</li> | |
<?php | |
endforeach; | |
wp_reset_postdata(); | |
?> | |
</ul> | |
</div> | |
<div class="main-job" style="width: 70%; float: right"> | |
<?php | |
query_posts( array ( | |
'category_name' => 'jobs', | |
'posts_per_page' => 1 | |
)); | |
?> | |
<?php | |
while (have_posts()): | |
the_post(); | |
?> | |
<h2><?php echo the_title() ?></h2> | |
<p><?php the_content(); ?></p> | |
<?php | |
endwhile; | |
?> | |
<?php | |
wp_reset_query(); | |
?> | |
</div> | |
<?php get_footer(); |
This file contains hidden or 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
<?php | |
/* | |
* Template Name: Page Service | |
*/ | |
?> | |
<?php get_header() ?> | |
<section class="full-page"> | |
<?php if ( have_posts() ) : ?> | |
<?php while (have_posts()): the_post() ?> | |
<article class="post"> | |
<h2> | |
<a href="<?php the_permalink() ?>"> | |
<?php the_title(); ?> | |
</a> | |
</h2> | |
<div class="post-content"> | |
<?php the_content() ?> | |
</div> | |
</article> | |
<?php endwhile; ?> | |
<div class="nav-links"> | |
</div><!-- .nav-links --> | |
<?php endif; ?> | |
</section> | |
<?php get_footer(); |
This file contains hidden or 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
<?php get_header() ?> | |
<section class="main-section"> | |
<?php if ( have_posts() ) : ?> | |
<h3 class="pagetitle"><?php _e( 'Search Results', 'angkor' ) ?></h3> | |
<?php while (have_posts()): the_post() ?> | |
<article class="post"> | |
<h2> | |
<a href="<?php the_permalink() ?>"> | |
<?php the_title(); ?> | |
</a> | |
</h2> | |
<div class="post-content"> | |
<?php the_excerpt() ?> | |
</div> | |
</article> | |
<?php endwhile; ?> | |
<div class="nav-links"> | |
<?php if ( get_next_posts_link() ) : ?> | |
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'angkor' ) ); ?></div> | |
<?php endif; ?> | |
<?php if ( get_previous_posts_link() ) : ?> | |
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'angkor' ) ); ?></div> | |
<?php endif; ?> | |
</div><!-- .nav-links --> | |
<?php else : ?> | |
<h2 class="center"><?php _e( 'No posts found. Try a different search?', 'cc' ) ?></h2> | |
<?php locate_template( array( '/searchform.php'), true ) ?> | |
<?php endif; ?> | |
</section> | |
<?php get_sidebar() ?> | |
<?php get_footer(); |
This file contains hidden or 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
<?php get_header() ?> | |
<section class="main-section"> | |
<?php if ( have_posts() ) : ?> | |
<?php while (have_posts()): the_post() ?> | |
<article class="post"> | |
<h2> | |
<a href="<?php the_permalink() ?>"> | |
<?php the_title(); ?> | |
</a> | |
</h2> | |
<div class="post-content"> | |
<?php the_content() ?> | |
</div> | |
</article> | |
<?php endwhile; ?> | |
<?php comments_template(); ?> | |
<div class="nav-links"> | |
</div><!-- .nav-links --> | |
<?php endif; ?> | |
</section> | |
<?php get_sidebar() ?> | |
<?php get_footer(); |
This file contains hidden or 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
/* | |
Theme Name: Angkor Theme | |
Author: Sophy | |
Author URI: http://wordpress.org/ | |
Version: 1.0 | |
Description: Theme description here | |
*/ | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
.site-header, | |
.site-nav, | |
.main-content, | |
.site-footer { | |
width: 980px; | |
margin: 0 auto; | |
} | |
.site-header { | |
height: 80px; | |
background: #ccc; | |
} | |
.site-nav { | |
height: 35px; | |
background: #ededed; | |
margin-bottom: 20px; | |
margin-top: 20px; | |
} | |
.main-content { | |
overflow: hidden; | |
} | |
.main-section { | |
float: left; | |
width: 700px; | |
margin-right: 20px; | |
background: #ededed; | |
min-height: 350px; | |
} | |
.sidebar-right { | |
background: #ccc; | |
width: 260px; | |
float: right; | |
min-height: 350px; | |
} | |
.site-footer { | |
height: 35px; | |
background: #ccc; | |
margin-top: 20px; | |
} | |
/** MENU **/ | |
.custom-menu{ | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
} | |
.custom-menu > li { | |
float: left; | |
margin-right: 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment