Plantilla original
git-svn-id: https://192.168.0.254/svn/Proyectos.Mushi_Web/trunk@4 be4d90b4-1c1e-b94a-a93f-fa0693deb923
32
src/404.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* 404 ( Not fount page )
|
||||||
|
*/
|
||||||
|
get_header();
|
||||||
|
|
||||||
|
global $gdl_admin_translator;
|
||||||
|
if( $gdl_admin_translator == 'enable' ){
|
||||||
|
$translator_404_title = get_option(THEME_SHORT_NAME.'_404_title', 'Sorry');
|
||||||
|
$translator_404_content = get_option(THEME_SHORT_NAME.'_404_content', 'The page you are finding seem doesn\'t exist.');
|
||||||
|
}else{
|
||||||
|
$translator_404_title = __('Sorry','gdl_front_end');
|
||||||
|
$translator_404_content = __('The page you are finding seem doesn\'t exist.','gdl_front_end');
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
||||||
|
<div class="page-wrapper">
|
||||||
|
<div class="sixteen columns mt20">
|
||||||
|
<div class="message-box-wrapper red">
|
||||||
|
<div class="message-box-title">
|
||||||
|
<?php echo $translator_404_title; ?>
|
||||||
|
</div>
|
||||||
|
<div class="message-box-content">
|
||||||
|
<?php echo $translator_404_content; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php get_footer();?>
|
||||||
56
src/archive.php
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?php get_header(); ?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sidebar = get_option(THEME_SHORT_NAME.'_search_archive_sidebar','no-sidebar');
|
||||||
|
$sidebar_class = '';
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar"){
|
||||||
|
$sidebar_class = "sidebar-included " . $sidebar;
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$sidebar_class = "both-sidebar-included";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
||||||
|
<div class="page-wrapper archive-wrapper">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$left_sidebar = "Search/Archive Left Sidebar";
|
||||||
|
$right_sidebar = "Search/Archive Right Sidebar";
|
||||||
|
$num_excerpt = get_option(THEME_SHORT_NAME.'_search_archive_num_excerpt', 200);
|
||||||
|
|
||||||
|
// 1: full-width 2: one-sidebar 3: both-sidebar
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
||||||
|
$image_size = "570x230";
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$image_size = "460x172";
|
||||||
|
}else{
|
||||||
|
$image_size = "870x270";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div class='gdl-page-float-left'>";
|
||||||
|
|
||||||
|
echo "<div class='gdl-page-item'>";
|
||||||
|
|
||||||
|
echo '<div id="blog-item-holder" class="blog-item-holder">';
|
||||||
|
|
||||||
|
gdl_print_blog_full('sixteen columns', $image_size, '2', $num_excerpt);
|
||||||
|
|
||||||
|
echo "</div>"; // blog-item-holder
|
||||||
|
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
|
pagination();
|
||||||
|
|
||||||
|
echo "</div>"; // gdl-page-item
|
||||||
|
|
||||||
|
get_sidebar('left');
|
||||||
|
|
||||||
|
echo "</div>"; // gdl-page-float-left
|
||||||
|
|
||||||
|
get_sidebar('right');
|
||||||
|
?>
|
||||||
|
<br class="clear">
|
||||||
|
</div>
|
||||||
|
</div> <!-- content-wrapper -->
|
||||||
|
|
||||||
|
<?php get_footer(); ?>
|
||||||
99
src/comments.php
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
<!-- Check Authorize -->
|
||||||
|
<?php
|
||||||
|
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
||||||
|
die ('Please do not load this page directly. Thanks!');
|
||||||
|
if (post_password_required()){
|
||||||
|
?> <p class="nopassword">This post is password protected. Enter the password to view comments.</p> <?php
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!-- Comment List -->
|
||||||
|
<?php if ( have_comments() ) : ?>
|
||||||
|
<div id="comments" class="comment-title gdl-link-title gdl-title"><?php comments_number('No Comment', 'One Comment', '% Comments' );?></div>
|
||||||
|
<ol class="comment-list">
|
||||||
|
<?php wp_list_comments(array('callback' => 'get_comment_list')); ?>
|
||||||
|
</ol>
|
||||||
|
<!-- Comment Navigation -->
|
||||||
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
||||||
|
<br>
|
||||||
|
<div class="comments-navigation">
|
||||||
|
<div class="previous"> <?php previous_comments_link('Older Comments'); ?> </div>
|
||||||
|
<div class="next"> <?php next_comments_link('Newer Comments'); ?> </div>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<!-- Comment Form -->
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Translator words
|
||||||
|
global $gdl_admin_translator;
|
||||||
|
if( $gdl_admin_translator == 'enable' ){
|
||||||
|
$translator_leave_reply = get_option(THEME_SHORT_NAME.'_translator_leave_reply', 'Leave a Reply');
|
||||||
|
}else{
|
||||||
|
$translator_leave_reply = __('Leave a Reply','gdl_front_end');
|
||||||
|
}
|
||||||
|
|
||||||
|
$comment_form = array(
|
||||||
|
'fields' => apply_filters( 'comment_form_default_fields', array(
|
||||||
|
'author' => '<div class="comment-form-author">' .
|
||||||
|
'<input id="author" name="author" type="text" value="' .
|
||||||
|
esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1" />' .
|
||||||
|
'<label for="author">' . __( 'Name', 'gdl_front_end' ) . '</label> ' .
|
||||||
|
( $req ? '<span class="required">*</span>' : '' ) .
|
||||||
|
'<div class="clear"></div>' .
|
||||||
|
'</div><!-- #form-section-author .form-section -->',
|
||||||
|
'email' => '<div class="comment-form-email">' .
|
||||||
|
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2" />' .
|
||||||
|
'<label for="email">' . __( 'Email', 'gdl_front_end' ) . '</label> ' .
|
||||||
|
( $req ? '<span class="required">*</span>' : '' ) .
|
||||||
|
'<div class="clear"></div>' .
|
||||||
|
'</div><!-- #form-section-email .form-section -->',
|
||||||
|
'url' => '<div class="comment-form-url">' .
|
||||||
|
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" />' .
|
||||||
|
'<label for="url">' . __( 'Website', 'gdl_front_end' ) . '</label>' .
|
||||||
|
'<div class="clear"></div>' .
|
||||||
|
'</div><!-- #form-section-url .form-section -->' ) ),
|
||||||
|
'comment_field' => '<div class="comment-form-comment">' .
|
||||||
|
'<textarea id="comment" name="comment" aria-required="true"></textarea>' .
|
||||||
|
'</div><!-- #form-section-comment .form-section -->',
|
||||||
|
'comment_notes_before' => '',
|
||||||
|
'comment_notes_after' => '',
|
||||||
|
'title_reply' => $translator_leave_reply,
|
||||||
|
);
|
||||||
|
comment_form($comment_form, $post->ID);
|
||||||
|
|
||||||
|
/*
|
||||||
|
$defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array(
|
||||||
|
'author' => '<p class="comment-form-author">' .
|
||||||
|
'<label for="author">' . __( 'Name' ) . '</label> ' .
|
||||||
|
( $req ? '<span class="required">*</span>' : '' ) .
|
||||||
|
'<input id="author" name="author" type="text" value="' .
|
||||||
|
esc_attr( $commenter['comment_author'] ) . '" size="30" tabindex="1"' . $aria_req . ' />' .
|
||||||
|
'</p><!-- #form-section-author .form-section -->',
|
||||||
|
'email' => '<p class="comment-form-email">' .
|
||||||
|
'<label for="email">' . __( 'Email' ) . '</label> ' .
|
||||||
|
( $req ? '<span class="required">*</span>' : '' ) .
|
||||||
|
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" tabindex="2"' . $aria_req . ' />' .
|
||||||
|
'</p><!-- #form-section-email .form-section -->',
|
||||||
|
'url' => '<p class="comment-form-url">' .
|
||||||
|
'<label for="url">' . __( 'Website' ) . '</label>' .
|
||||||
|
'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" tabindex="3" />' .
|
||||||
|
'</p><!-- #form-section-url .form-section -->' ) ),
|
||||||
|
'comment_field' => '<p class="comment-form-comment">' .
|
||||||
|
'<label for="comment">' . __( 'Comment' ) . '</label>' .
|
||||||
|
'<textarea id="comment" name="comment" cols="45" rows="8" tabindex="4" aria-required="true"></textarea>' .
|
||||||
|
'</p><!-- #form-section-comment .form-section -->',
|
||||||
|
'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
|
||||||
|
'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),
|
||||||
|
'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email is <em>never</em> published nor shared.' ) . ( $req ? __( ' Required fields are marked <span class="required">*</span>' ) : '' ) . '</p>',
|
||||||
|
'comment_notes_after' => '<dl class="form-allowed-tags"><dt>' . __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:' ) . '</dt> <dd><code>' . allowed_tags() . '</code></dd></dl>',
|
||||||
|
'id_form' => 'commentform',
|
||||||
|
'id_submit' => 'submit',
|
||||||
|
'title_reply' => __( 'Leave a Reply' ),
|
||||||
|
'title_reply_to' => __( 'Leave a Reply to %s' ),
|
||||||
|
'cancel_reply_link' => __( 'Cancel reply' ),
|
||||||
|
'label_submit' => __( 'Post Comment' ),
|
||||||
|
);
|
||||||
|
|
||||||
|
*/
|
||||||
|
?>
|
||||||
58
src/footer.php
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<div class="clear"></div>
|
||||||
|
<div class="content-bottom-gimmick"></div>
|
||||||
|
</div> <!-- container -->
|
||||||
|
<div class="footer-wrapper">
|
||||||
|
<div class="footer-blank-space"></div>
|
||||||
|
<?php $gdl_show_footer = get_option(THEME_SHORT_NAME.'_show_footer','enable'); ?>
|
||||||
|
|
||||||
|
<div class="container mt0">
|
||||||
|
<!-- Get Footer Widget -->
|
||||||
|
<?php if( $gdl_show_footer == 'enable' ){ ?>
|
||||||
|
<div class="footer-widget-wrapper">
|
||||||
|
<?php
|
||||||
|
$gdl_footer_class = array(
|
||||||
|
'footer-style1'=>array('1'=>'four columns', '2'=>'four columns', '3'=>'four columns', '4'=>'four columns'),
|
||||||
|
'footer-style2'=>array('1'=>'eight columns', '2'=>'four columns', '3'=>'four columns', '4'=>'display-none'),
|
||||||
|
'footer-style3'=>array('1'=>'four columns', '2'=>'four columns', '3'=>'eight columns', '4'=>'display-none'),
|
||||||
|
'footer-style4'=>array('1'=>'one-third column', '2'=>'one-third column', '3'=>'one-third column', '4'=>'display-none'),
|
||||||
|
'footer-style5'=>array('1'=>'two-thirds column', '2'=>'one-third column', '3'=>'display-none', '4'=>'display-none'),
|
||||||
|
'footer-style6'=>array('1'=>'one-third column', '2'=>'two-thirds column', '3'=>'display-none', '4'=>'display-none'),
|
||||||
|
);
|
||||||
|
$gdl_footer_style = get_option(THEME_SHORT_NAME.'_footer_style', 'footer-style1');
|
||||||
|
|
||||||
|
for( $i=1 ; $i<=4; $i++ ){
|
||||||
|
echo '<div class="' . $gdl_footer_class[$gdl_footer_style][$i] . ' mb0">';
|
||||||
|
dynamic_sidebar('Footer ' . $i);
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<br class="clear">
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php $gdl_show_copyright = get_option(THEME_SHORT_NAME.'_show_copyright','enable'); ?>
|
||||||
|
|
||||||
|
<!-- Get Copyright Text -->
|
||||||
|
<?php if( $gdl_show_copyright == 'enable' ){ ?>
|
||||||
|
<div class="copyright-wrapper gdl-divider">
|
||||||
|
<div class="copyright-left">
|
||||||
|
<?php echo get_option(THEME_SHORT_NAME.'_copyright_left_area') ?>
|
||||||
|
</div>
|
||||||
|
<div class="copyright-right">
|
||||||
|
<?php echo get_option(THEME_SHORT_NAME.'_copyright_right_area') ?>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
</div> <!-- container-wrapper -->
|
||||||
|
</div><!-- footer-wrapper -->
|
||||||
|
</div> <!-- body-wrapper -->
|
||||||
|
|
||||||
|
<?php wp_footer(); ?>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
<?php include ( TEMPLATEPATH."/javascript/cufon-replace.php" ); ?>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
85
src/functions.php
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Goodlayers Function File
|
||||||
|
* ---------------------------------------------------------------------
|
||||||
|
* This file include all of important function and features of the theme
|
||||||
|
* to make it available for later use.
|
||||||
|
* ---------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
// constants
|
||||||
|
define('THEME_SHORT_NAME','grc');
|
||||||
|
define('THEME_FULL_NAME','Grand College');
|
||||||
|
define('GOODLAYERS_PATH', get_template_directory_uri());
|
||||||
|
define('FONT_SAMPLE_TEXT', 'Sample Font'); // sample font text of the goodlayers backoffice panel
|
||||||
|
|
||||||
|
$gdl_icon_type = get_option(THEME_SHORT_NAME.'_icon_type','dark');
|
||||||
|
$gdl_footer_icon_type = get_option(THEME_SHORT_NAME.'_footer_icon_type','dark');
|
||||||
|
|
||||||
|
$gdl_admin_translator = get_option(THEME_SHORT_NAME.'_enable_admin_translator','enable');
|
||||||
|
//$gdl_is_responsive = get_option(THEME_SHORT_NAME.'_enable_responsive','disable');
|
||||||
|
//$gdl_is_responsive = ($gdl_is_responsive == 'enable')? true: false;
|
||||||
|
$gdl_is_responsive = false;
|
||||||
|
|
||||||
|
$default_post_sidebar = get_option(THEME_SHORT_NAME.'_default_post_sidebar','post-no-sidebar');
|
||||||
|
$default_post_sidebar = str_replace('post-', '', $default_post_sidebar);
|
||||||
|
$default_post_left_sidebar = get_option(THEME_SHORT_NAME.'_default_post_left_sidebar','');
|
||||||
|
$default_post_right_sidebar = get_option(THEME_SHORT_NAME.'_default_post_right_sidebar','');
|
||||||
|
|
||||||
|
include_once('search-custom.php');
|
||||||
|
|
||||||
|
include_once('include/include-script.php'); // include all javascript and style in to the theme
|
||||||
|
include_once('include/plugin/utility.php'); // utility function
|
||||||
|
include_once('include/function-regist.php'); // registered wordpress function
|
||||||
|
include_once('include/goodlayers-option.php'); // goodlayers panel
|
||||||
|
include_once('include/plugin/fontloader.php'); // load necessary font
|
||||||
|
include_once('include/plugin/shortcode-generator.php'); // shortcode
|
||||||
|
include_once('include/plugin/twitter-shortcode.php'); // twitter shortcode
|
||||||
|
|
||||||
|
// dashboard option
|
||||||
|
include_once('include/meta-template.php'); // template for post portfolio and gallery
|
||||||
|
include_once('include/post-option.php'); // meta of post post_type
|
||||||
|
include_once('include/page-option.php'); // meta of page post_type
|
||||||
|
include_once('include/portfolio-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/testimonial-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/course-option.php'); // meta of course post_type
|
||||||
|
include_once('include/price-table-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/gallery-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/personnal-option.php'); // meta of portfolio post_type
|
||||||
|
|
||||||
|
// exterior plugins
|
||||||
|
include_once('include/plugin/really-simple-captcha/really-simple-captcha.php'); // capcha comment plugin class
|
||||||
|
include_once('include/plugin/filosofo-image/filosofo-custom-image-sizes.php'); // Custom image size plugin
|
||||||
|
include_once('include/plugin/dropdown-menus.php'); // Custom dropdown menu
|
||||||
|
|
||||||
|
if(!is_admin()){
|
||||||
|
include_once('include/plugin/misc.php'); // misc function to use at font-end
|
||||||
|
include_once('include/plugin/page-item.php'); // organize page item element
|
||||||
|
include_once('include/plugin/blog-item.php'); // organize page item element
|
||||||
|
include_once('include/plugin/comment.php'); // function to get list of comment
|
||||||
|
include_once('include/plugin/pagination/pagination.php'); // page divider plugin
|
||||||
|
include_once('include/plugin/social-shares.php'); // page divider plugin
|
||||||
|
|
||||||
|
include_once('include/plugin/really-simple-captcha/cbnet-really-simple-captcha-comments.php'); // capcha comment plugin
|
||||||
|
}
|
||||||
|
|
||||||
|
// include custom widget
|
||||||
|
include_once('include/plugin/custom-widget/custom-blog-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/custom-port-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/custom-port-widget-2.php');
|
||||||
|
include_once('include/plugin/custom-widget/popular-post-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/contact-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/flickr-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/twitter-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/personnal-widget.php');
|
||||||
|
|
||||||
|
// Add Another theme support
|
||||||
|
if ( ! isset( $content_width ) ) $content_width = 980;
|
||||||
|
|
||||||
|
add_theme_support( 'automatic-feed-links' );
|
||||||
|
|
||||||
|
// remove admin bar
|
||||||
|
// add_filter('show_admin_bar', '__return_false');
|
||||||
|
|
||||||
|
?>
|
||||||
193
src/header.php
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<!--[if lt IE 7 ]><html class="ie ie6" lang="es"> <![endif]-->
|
||||||
|
<!--[if IE 7 ]><html class="ie ie7" lang="es"> <![endif]-->
|
||||||
|
<!--[if IE 8 ]><html class="ie ie8" lang="es"> <![endif]-->
|
||||||
|
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<!-- Basic Page Needs
|
||||||
|
================================================== -->
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
<!-- CSS
|
||||||
|
================================================== -->
|
||||||
|
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
|
||||||
|
|
||||||
|
<?php global $gdl_is_responsive ?>
|
||||||
|
<?php if( $gdl_is_responsive ){ ?>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
|
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/skeleton-responsive.css">
|
||||||
|
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/layout-responsive.css">
|
||||||
|
<?php }else{ ?>
|
||||||
|
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/skeleton.css">
|
||||||
|
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/layout.css">
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/ie-style.php?path=<?php echo GOODLAYERS_PATH; ?>" type="text/css" media="screen, projection" />
|
||||||
|
<style type="text/css">
|
||||||
|
div.social-icon{
|
||||||
|
background-color: <?php echo get_option(THEME_SHORT_NAME.'_main_navigation_background', '#66a3bf'); ?> !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<![endif]-->
|
||||||
|
<!--[if IE 7]>
|
||||||
|
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/ie7-style.css" />
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Favicon
|
||||||
|
================================================== -->
|
||||||
|
<?php
|
||||||
|
if(get_option( THEME_SHORT_NAME.'_enable_favicon','disable') == "enable"){
|
||||||
|
$gdl_favicon = get_option(THEME_SHORT_NAME.'_favicon_image');
|
||||||
|
if( $gdl_favicon ){
|
||||||
|
$gdl_favicon = wp_get_attachment_image_src($gdl_favicon, 'full');
|
||||||
|
echo '<link rel="shortcut icon" href="' . $gdl_favicon[0] . '" type="image/x-icon" />';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- Start WP_HEAD
|
||||||
|
================================================== -->
|
||||||
|
|
||||||
|
<?php wp_head(); ?>
|
||||||
|
|
||||||
|
<!-- FB Thumbnail
|
||||||
|
================================================== -->
|
||||||
|
<?php
|
||||||
|
if( is_single() ){
|
||||||
|
$thumbnail_id = get_post_meta($post->ID,'post-option-inside-thumbnial-image', true);
|
||||||
|
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , '150x150' );
|
||||||
|
echo '<link rel="image_src" href="' . $thumbnail[0] . '" />';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php
|
||||||
|
$background_style = get_option(THEME_SHORT_NAME.'_background_style', 'Pattern');
|
||||||
|
if($background_style == 'Custom Image'){
|
||||||
|
$random_bg = rand(1, 5);
|
||||||
|
$background_id = get_option(THEME_SHORT_NAME.'_background_custom_'.$random_bg);
|
||||||
|
if(!empty($background_id)){
|
||||||
|
$background_image = wp_get_attachment_image_src( $background_id, 'full' );
|
||||||
|
echo '<div id="custom-full-background">';
|
||||||
|
echo '<img src="' . $background_image[0] . '" alt="" />';
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="body-wrapper">
|
||||||
|
|
||||||
|
|
||||||
|
<?php $gdl_enable_top_navigation = get_option(THEME_SHORT_NAME.'_enable_top_navigation');
|
||||||
|
if ( $gdl_enable_top_navigation == '' || $gdl_enable_top_navigation == 'enable' ){ ?>
|
||||||
|
|
||||||
|
<div class="top-navigation container">
|
||||||
|
<div class="top-navigation-wrapper">
|
||||||
|
<?php
|
||||||
|
$top_navigation_right_text = get_option(THEME_SHORT_NAME.'_top_navigation_right_text');
|
||||||
|
if( $top_navigation_right_text ){
|
||||||
|
$top_navigation_right_icon = wp_get_attachment_image_src(get_option(THEME_SHORT_NAME.'_top_navigation_right_icon'), 'full');
|
||||||
|
echo '<div class="top-navigation-right">';
|
||||||
|
if( !empty($top_navigation_right_icon) ){
|
||||||
|
echo '<img src="' . $top_navigation_right_icon[0] . '" class="top-navigation-right-icon" alt="" />';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $top_navigation_right_text;
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="top-navigation-left">
|
||||||
|
<?php wp_nav_menu( array( 'theme_location' => 'top_menu' ) ); ?>
|
||||||
|
<br class="clear">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="header-wrapper">
|
||||||
|
<div class="inner-header-wrapper">
|
||||||
|
<!-- Get Logo -->
|
||||||
|
<div class="logo-wrapper">
|
||||||
|
<?php
|
||||||
|
echo '<a href="' . home_url( '/' ) . '">';
|
||||||
|
$logo_attachment = wp_get_attachment_image_src(get_option(THEME_SHORT_NAME.'_logo'), 'full');
|
||||||
|
if( !empty($logo_attachment) ){
|
||||||
|
$logo_attachment = $logo_attachment[0];
|
||||||
|
}else{
|
||||||
|
$logo_attachment = GOODLAYERS_PATH . '/images/default-logo.png';
|
||||||
|
}
|
||||||
|
echo '<img src="' . $logo_attachment . '" alt="logo"/>';
|
||||||
|
echo '</a>';
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Get Search -->
|
||||||
|
<?php if(get_option(THEME_SHORT_NAME.'_enable_top_search','enable') == 'enable'){?>
|
||||||
|
<div class="search-wrapper"><?php get_search_form(); ?></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<br class="clear">
|
||||||
|
</div> <!-- Inner header wrapper -->
|
||||||
|
<!-- Navigation -->
|
||||||
|
<div class="sixteen columns mb0">
|
||||||
|
<?php
|
||||||
|
if( $gdl_is_responsive ){
|
||||||
|
dropdown_menu( array('dropdown_title' => '-- Main Menu --', 'indent_string' => '- ', 'indent_after' => '','container' => 'div', 'container_class' => 'responsive-menu-wrapper', 'theme_location'=>'main_menu') );
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<div class="navigation-wrapper">
|
||||||
|
<!-- Get Navigation -->
|
||||||
|
<?php wp_nav_menu( array('container' => 'div', 'container_class' => 'menu-wrapper', 'container_id' => 'main-superfish-wrapper', 'menu_class'=> 'sf-menu', 'theme_location' => 'main_menu' ) ); ?>
|
||||||
|
|
||||||
|
<div class="social-wrapper">
|
||||||
|
<div class="social-icon-wrapper">
|
||||||
|
<?php
|
||||||
|
$social_icon_type = get_option(THEME_SHORT_NAME.'_social_icon_type','light');
|
||||||
|
$gdl_social_icon = array(
|
||||||
|
'delicious'=> array('name'=>THEME_SHORT_NAME.'_delicious', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/delicious.png'),
|
||||||
|
'deviantart'=> array('name'=>THEME_SHORT_NAME.'_deviantart', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/deviantart.png'),
|
||||||
|
'digg'=> array('name'=>THEME_SHORT_NAME.'_digg', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/digg.png'),
|
||||||
|
'facebook' => array('name'=>THEME_SHORT_NAME.'_facebook', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/facebook.png'),
|
||||||
|
'flickr' => array('name'=>THEME_SHORT_NAME.'_flickr', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/flickr.png'),
|
||||||
|
'lastfm'=> array('name'=>THEME_SHORT_NAME.'_lastfm', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/lastfm.png'),
|
||||||
|
'linkedin' => array('name'=>THEME_SHORT_NAME.'_linkedin', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/linkedin.png'),
|
||||||
|
'picasa'=> array('name'=>THEME_SHORT_NAME.'_picasa', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/picasa.png'),
|
||||||
|
'rss'=> array('name'=>THEME_SHORT_NAME.'_rss', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/rss.png'),
|
||||||
|
'stumble-upon'=> array('name'=>THEME_SHORT_NAME.'_stumble_upon', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/stumble-upon.png'),
|
||||||
|
'tumblr'=> array('name'=>THEME_SHORT_NAME.'_tumblr', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/tumblr.png'),
|
||||||
|
'twitter' => array('name'=>THEME_SHORT_NAME.'_twitter', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/twitter.png'),
|
||||||
|
'vimeo' => array('name'=>THEME_SHORT_NAME.'_vimeo', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/vimeo.png'),
|
||||||
|
'youtube' => array('name'=>THEME_SHORT_NAME.'_youtube', 'url'=> GOODLAYERS_PATH.'/images/icon/' . $social_icon_type . '/social/youtube.png')
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach( $gdl_social_icon as $social_name => $social_icon ){
|
||||||
|
|
||||||
|
$social_link = get_option($social_icon['name']);
|
||||||
|
if( !empty($social_link) ){
|
||||||
|
|
||||||
|
echo '<div class="social-icon"><a href="' . $social_link . '">' ;
|
||||||
|
echo '<img src="' . $social_icon['url'] . '" alt="' . $social_name . '"/>';
|
||||||
|
echo '</a></div>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br class="clear">
|
||||||
|
</div> <!-- header-wrapper -->
|
||||||
|
|
||||||
BIN
src/images/anything-slider/bg_control_nav_custom.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/images/anything-slider/bg_direction_nav_custom.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
src/images/anything-slider/bg_direction_nav_custom2.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/images/default-logo.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/images/flex-slider/bg_control_nav_custom.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/images/flex-slider/bg_direction_nav_custom.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
src/images/flex-slider/bg_direction_nav_custom2.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/images/footer-bg.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/images/gradient-bottom4-32px.png
Normal file
|
After Width: | Height: | Size: 968 B |
BIN
src/images/gradient-top-32px.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/gradient-top3-32px.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/gradient-top4-32px.png
Normal file
|
After Width: | Height: | Size: 967 B |
BIN
src/images/icon/dark/arrow-left.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/images/icon/dark/arrow-right.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/images/icon/dark/arrow4.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/images/icon/dark/author.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/dark/calendar.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/images/icon/dark/comment.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/dark/content-slider-nav.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/dark/find-17px.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/left-cross-5px.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/images/icon/dark/link-small.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/minus-24px.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/images/icon/dark/navigation-20px.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/images/icon/dark/plus-24px.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/images/icon/dark/quotes-18px.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/dark/slideshow-navigation.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
src/images/icon/dark/social/delicious-share.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/delicious.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/images/icon/dark/social/deviantart.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/digg-share.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/images/icon/dark/social/digg.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/facebook-share.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/images/icon/dark/social/facebook.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/images/icon/dark/social/flickr.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/google-share.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/images/icon/dark/social/lastfm.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/images/icon/dark/social/linkedin-share.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/images/icon/dark/social/linkedin.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/my-space-share.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/images/icon/dark/social/picasa.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/images/icon/dark/social/reddit-share.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
src/images/icon/dark/social/rss.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/skype.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/images/icon/dark/social/social-icon/delicious.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/images/icon/dark/social/social-icon/deviantart.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/digg.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/facebook.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/images/icon/dark/social/social-icon/flickr.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/lastfm.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/linkedin.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/picasa.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/rss.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/stumble-upon.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/tumblr.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/images/icon/dark/social/social-icon/twitter.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/vimeo.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-icon/youtube.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-share/delicious-share.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/images/icon/dark/social/social-share/digg-share.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
src/images/icon/dark/social/social-share/facebook-share.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
src/images/icon/dark/social/social-share/google-share.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/images/icon/dark/social/social-share/linkedin-share.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src/images/icon/dark/social/social-share/my-space-share.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
src/images/icon/dark/social/social-share/reddit-share.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/images/icon/dark/social/social-share/stumble-upon-share.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
src/images/icon/dark/social/social-share/twitter-share.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
src/images/icon/dark/social/social-share2/delicious-share.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/social-share2/digg-share.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/images/icon/dark/social/social-share2/facebook-share.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/images/icon/dark/social/social-share2/google-share.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/images/icon/dark/social/social-share2/linkedin-share.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/images/icon/dark/social/social-share2/myspace-share.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/images/icon/dark/social/social-share2/reddit-share.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
src/images/icon/dark/social/social-share2/stumbleupon-share.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/images/icon/dark/social/social-share2/twitter-share.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/stumble-upon-share.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
src/images/icon/dark/social/stumble-upon.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/tumblr.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/twitter-share.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/images/icon/dark/social/twitter.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/vimeo.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/social/youtube.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/images/icon/dark/tag.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/dark/twitter-shortcode-nav.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/dark/twitter-shortcode.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/images/icon/light/arrow-left.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/icon/light/arrow-right.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/icon/light/arrow4.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/icon/light/author.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/icon/light/blog-date-bg.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/images/icon/light/calendar.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src/images/icon/light/combobox-button.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
src/images/icon/light/comment.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |