first commit
52
wp-content/themes/worldwide-v1-01/404.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* 404 ( Not fount page )
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
<?php
|
||||
// Check and get Sidebar Class
|
||||
$sidebar_array = gdl_get_sidebar_size( 'no-sidebar' );
|
||||
|
||||
global $gdl_admin_translator;
|
||||
if( $gdl_admin_translator == 'enable' ){
|
||||
$translator_404_title = get_option(THEME_SHORT_NAME.'_404_title', 'Page Not Found');
|
||||
$translator_404_content = get_option(THEME_SHORT_NAME.'_404_content', 'The page you are looking for doesn\'t seem to exist.');
|
||||
}else{
|
||||
$translator_404_title = __('Page Not Found','gdl_front_end');
|
||||
$translator_404_content = __('The page you are looking for doesn\'t seem to exist.','gdl_front_end');
|
||||
}
|
||||
?>
|
||||
<div class="page-wrapper sitemap-page <?php echo $sidebar_array['sidebar_class']; ?>">
|
||||
<?php
|
||||
|
||||
echo '<div class="row gdl-page-row-wrapper">';
|
||||
echo '<div class="gdl-page-left mb0 ' . $sidebar_array['page_left_class'] . '">';
|
||||
|
||||
echo '<div class="row">';
|
||||
echo '<div class="gdl-page-item mb20 ' . $sidebar_array['page_item_class'] . '">';
|
||||
?>
|
||||
|
||||
<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>
|
||||
|
||||
<?php
|
||||
echo '<div class="clear"></div>';
|
||||
echo "</div>"; // end of gdl-page-item
|
||||
|
||||
echo '<div class="clear"></div>';
|
||||
echo "</div>"; // row
|
||||
echo "</div>"; // gdl-page-left
|
||||
|
||||
echo '<div class="clear"></div>';
|
||||
echo "</div>"; // row
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div> <!-- page wrapper -->
|
||||
<?php get_footer(); ?>
|
67
wp-content/themes/worldwide-v1-01/archive.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php get_header(); ?>
|
||||
<?php
|
||||
// Check and get Sidebar Class
|
||||
$sidebar = get_option(THEME_SHORT_NAME.'_search_archive_sidebar','no-sidebar');
|
||||
$sidebar_reverse = ($sidebar == 'both-sidebar-reverse' ||
|
||||
$sidebar == 'left-sidebar' )? 'reverse-sidebar': 'normal-sidebar';
|
||||
$sidebar_array = gdl_get_sidebar_size( $sidebar );
|
||||
?>
|
||||
<div class="page-wrapper <?php echo $sidebar_reverse; ?> archive-page <?php echo $sidebar_array['sidebar_class']; ?>">
|
||||
<?php
|
||||
$left_sidebar = get_option(THEME_SHORT_NAME.'_search_archive_left_sidebar');
|
||||
$right_sidebar = get_option(THEME_SHORT_NAME.'_search_archive_right_sidebar');
|
||||
|
||||
echo '<div class="row gdl-page-row-wrapper">';
|
||||
echo '<div class="gdl-page-left mb0 ' . $sidebar_array['page_left_class'] . '">';
|
||||
|
||||
echo '<div class="row">';
|
||||
echo '<div class="gdl-page-item mb0 pb20 ' . $sidebar_array['page_item_class'] . '">';
|
||||
|
||||
if( !is_tax('portfolio-category') && !is_tax('portfolio-tag') ){
|
||||
|
||||
// blog archive
|
||||
$item_type = get_option(THEME_SHORT_NAME.'_search_archive_item_size', '1/1 Full Thumbnail');
|
||||
$num_excerpt = get_option(THEME_SHORT_NAME.'_search_archive_num_excerpt', 285);
|
||||
$full_content = get_option(THEME_SHORT_NAME.'_search_archive_full_blog_content', 'No');
|
||||
|
||||
global $blog_div_size_num_class;
|
||||
$item_class = $blog_div_size_num_class[$item_type]['class'];
|
||||
$item_size = $blog_div_size_num_class[$item_type][$sidebar_type];
|
||||
|
||||
|
||||
echo '<div id="blog-item-holder" class="blog-item-holder">';
|
||||
if( $item_type == '1/4 Blog Grid' || $item_type == '1/3 Blog Grid' ||
|
||||
$item_type == '1/2 Blog Grid' || $item_type == '1/1 Blog Grid'){
|
||||
print_blog_grid($item_class, $item_size, $num_excerpt, $full_content, $item_type);
|
||||
}else if( $item_type == '1/1 Medium Thumbnail' ){
|
||||
print_blog_medium($item_class, $item_size, $num_excerpt, $full_content);
|
||||
}else if( $item_type == '1/1 Blog List' ){
|
||||
print_blog_list($item_class, $item_size);
|
||||
}
|
||||
echo '</div>'; // blog-item-holder
|
||||
}else{
|
||||
|
||||
// portfolio archive
|
||||
$port_size = get_option(THEME_SHORT_NAME.'_portfolio_archive_size' ,'1/4');
|
||||
$show_title = (get_option(THEME_SHORT_NAME.'_portfolio_archive_show_title' ,'Yes') == "Yes")? true: false;
|
||||
$show_tag = (get_option(THEME_SHORT_NAME.'_portfolio_archive_show_tags' ,'Yes') == "Yes")? true: false;
|
||||
print_normal_portfolio($port_size, $show_title, $show_tag);
|
||||
}
|
||||
|
||||
echo '<div class="clear"></div>';
|
||||
pagination();
|
||||
|
||||
echo "</div>"; // end of gdl-page-item
|
||||
|
||||
get_sidebar('left');
|
||||
echo '<div class="clear"></div>';
|
||||
echo "</div>"; // row
|
||||
echo "</div>"; // gdl-page-left
|
||||
|
||||
get_sidebar('right');
|
||||
echo '<div class="clear"></div>';
|
||||
echo "</div>"; // row
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div> <!-- page wrapper -->
|
||||
<?php get_footer(); ?>
|
102
wp-content/themes/worldwide-v1-01/comments.php
Normal file
@ -0,0 +1,102 @@
|
||||
<!-- 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"><?php _e('This post is password protected. Enter the password to view comments.', 'gdl_front_end'); ?></p><?php
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<!-- Comment List -->
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<h3 id="comments" class="comment-title gdl-link-title gdl-title">
|
||||
<?php comments_number(__('No Comment','gdl_front_end'), __('One Comment','gdl_front_end'), __('% Comments','gdl_front_end') );?>
|
||||
</h3>
|
||||
<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','gdl_front_end')); ?> </div>
|
||||
<div class="next"> <?php next_comments_link(__('Newer Comments','gdl_front_end')); ?> </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" />' .
|
||||
'<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" />' .
|
||||
'<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" />' .
|
||||
'<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,
|
||||
'label_submit' => __( 'Post Comment', 'gdl_front_end' ),
|
||||
);
|
||||
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' ),
|
||||
|
||||
);
|
||||
|
||||
*/
|
||||
?>
|
153
wp-content/themes/worldwide-v1-01/footer.php
Normal file
@ -0,0 +1,153 @@
|
||||
</div> <!-- content wrapper -->
|
||||
</div> <!-- content outer wrapper -->
|
||||
|
||||
<?php
|
||||
$gdl_show_twitter = (get_option(THEME_SHORT_NAME.'_show_twitter_bar','enable') == 'enable')? true: false;
|
||||
$gdl_homepage_twitter = (get_option(THEME_SHORT_NAME.'_show_twitter_only_homepage','disable') == 'enable')? true: false;
|
||||
|
||||
if( $gdl_show_twitter && ( ($gdl_homepage_twitter && is_front_page()) || !$gdl_homepage_twitter )){
|
||||
$twitter_id = get_option(THEME_SHORT_NAME.'_twitter_bar_id');
|
||||
$num_fetch = get_option(THEME_SHORT_NAME.'_twitter_num_fetch');
|
||||
$consumer_key = get_option(THEME_SHORT_NAME.'_twitter_bar_consumer_id');
|
||||
$consumer_secret = get_option(THEME_SHORT_NAME.'_twitter_bar_consumer_secret');
|
||||
$access_token = get_option(THEME_SHORT_NAME.'_twitter_bar_access_token');
|
||||
$access_token_secret = get_option(THEME_SHORT_NAME.'_twitter_bar_access_token_secret');
|
||||
$cache_time = get_option(THEME_SHORT_NAME.'_twitter_bar_cache_time', '1');
|
||||
|
||||
$last_cache_time = get_option(THEME_SHORT_NAME . '_twitter_bar_last_cache_time', 0);
|
||||
$diff = time() - $last_cache_time;
|
||||
$crt = $cache_time * 3600;
|
||||
if(empty($last_cache_time) || $diff >= $crt){
|
||||
|
||||
$connection = getConnectionWithAccessToken($consumer_key, $consumer_secret, $access_token, $access_token_secret);
|
||||
$tweets = $connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$twitter_id."&count=" . $num_fetch) or die('Couldn\'t retrieve tweets! Wrong username?');
|
||||
|
||||
if(!empty($tweets->errors)){
|
||||
if($tweets->errors[0]->message == 'Invalid or expired token'){
|
||||
echo '<strong>'.$tweets->errors[0]->message.'!</strong><br />You\'ll need to regenerate it <a href="https://dev.twitter.com/apps" target="_blank">here</a>!' . $after_widget;
|
||||
}else{
|
||||
echo '<strong>'.$tweets->errors[0]->message.'</strong>' . $after_widget;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
$tweets_data = array();
|
||||
for($i = 0;$i <= count($tweets); $i++){
|
||||
if(!empty($tweets[$i])){
|
||||
$tweets_data[$i]['created_at'] = $tweets[$i]->created_at;
|
||||
$tweets_data[$i]['text'] = $tweets[$i]->text;
|
||||
$tweets_data[$i]['status_id'] = $tweets[$i]->id_str;
|
||||
}
|
||||
}
|
||||
|
||||
update_option(THEME_SHORT_NAME . '_twitter_bar_tweets',serialize($tweets_data));
|
||||
update_option(THEME_SHORT_NAME . '_twitter_bar_last_cache_time',time());
|
||||
}else{
|
||||
$tweets_data = maybe_unserialize(get_option(THEME_SHORT_NAME . '_twitter_bar_tweets'));
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="footer-twitter-wrapper boxed-style">
|
||||
<div class="container twitter-container">
|
||||
<i class="gdl-twitter-icon icon-twitter"></i>
|
||||
<div class="gdl-twitter-wrapper">
|
||||
<div class="gdl-twitter-navigation">
|
||||
<a class="prev"></a>
|
||||
<a class="next"></a>
|
||||
</div>
|
||||
<ul id="gdl-twitter" >
|
||||
<?php
|
||||
foreach( $tweets_data as $each_tweet ){
|
||||
echo '<li>';
|
||||
echo '<span>' . convert_links($each_tweet['text']) . '</span>';
|
||||
echo '<a target="_blank" href="http://twitter.com/'.$twitter_id.'/statuses/'.$each_tweet['status_id'].'">'.relative_time($each_tweet['created_at']).'</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="twitter-bar-top-shadow" ></div>
|
||||
<div class="twitter-bar-bottom-shadow" ></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
var twitter_wrapper = jQuery('ul#gdl-twitter');
|
||||
twitter_wrapper.each(function(){
|
||||
|
||||
var fetch_num = jQuery(this).children().length;
|
||||
var twitter_nav = jQuery(this).siblings('div.gdl-twitter-navigation');
|
||||
|
||||
if( fetch_num > 0 ){
|
||||
gdl_cycle_resize(twitter_wrapper);
|
||||
twitter_wrapper.cycle({ fx: 'fade', slideResize: 1, fit: true, width: '100%', timeout: 4000, speed: 1000,
|
||||
next: twitter_nav.children('.next'), prev: twitter_nav.children('.prev') });
|
||||
}
|
||||
});
|
||||
|
||||
jQuery(window).resize(function(){
|
||||
if( twitter_wrapper ){ gdl_cycle_resize(twitter_wrapper); }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
wp_deregister_script('jquery-cycle');
|
||||
wp_register_script('jquery-cycle', GOODLAYERS_PATH.'/javascript/jquery.cycle.js', false, '1.0', true);
|
||||
wp_enqueue_script('jquery-cycle');
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="footer-wrapper boxed-style">
|
||||
|
||||
<!-- Get Footer Widget -->
|
||||
<?php $gdl_show_footer = get_option(THEME_SHORT_NAME.'_show_footer','enable'); ?>
|
||||
<?php if( $gdl_show_footer == 'enable' ){ ?>
|
||||
<div class="container footer-container">
|
||||
<div class="footer-widget-wrapper">
|
||||
<div class="row">
|
||||
<?php
|
||||
$gdl_footer_class = array(
|
||||
'footer-style1'=>array('1'=>'three columns', '2'=>'three columns', '3'=>'three columns', '4'=>'three columns'),
|
||||
'footer-style2'=>array('1'=>'six columns', '2'=>'three columns', '3'=>'three columns', '4'=>''),
|
||||
'footer-style3'=>array('1'=>'three columns', '2'=>'three columns', '3'=>'six columns', '4'=>''),
|
||||
'footer-style4'=>array('1'=>'four columns', '2'=>'four columns', '3'=>'four columns', '4'=>''),
|
||||
'footer-style5'=>array('1'=>'eight columns', '2'=>'four columns', '3'=>'', '4'=>''),
|
||||
'footer-style6'=>array('1'=>'four columns', '2'=>'eight columns', '3'=>'', '4'=>''),
|
||||
);
|
||||
$gdl_footer_style = get_option(THEME_SHORT_NAME.'_footer_style', 'footer-style1');
|
||||
|
||||
for( $i=1 ; $i<=4; $i++ ){
|
||||
$footer_class = $gdl_footer_class[$gdl_footer_style][$i];
|
||||
if( !empty($footer_class) ){
|
||||
echo '<div class="' . $footer_class . ' gdl-footer-' . $i . ' mb0">';
|
||||
dynamic_sidebar('Footer ' . $i);
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div> <!-- close row -->
|
||||
|
||||
<!-- Get Copyright Text -->
|
||||
<?php $gdl_show_copyright = get_option(THEME_SHORT_NAME.'_show_copyright','enable'); ?>
|
||||
<?php if( $gdl_show_copyright == 'enable' ){ ?>
|
||||
<div class="copyright-wrapper">
|
||||
<div class="copyright-border"></div>
|
||||
<div class="copyright-left">
|
||||
<?php echo do_shortcode( __(get_option(THEME_SHORT_NAME.'_copyright_left_area'), 'gdl_front_end') ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div><!-- footer wrapper -->
|
||||
</div> <!-- body wrapper -->
|
||||
</div> <!-- body outer wrapper -->
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
154
wp-content/themes/worldwide-v1-01/functions.php
Normal file
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/*
|
||||
* Goodlayers Function File
|
||||
* ---------------------------------------------------------------------
|
||||
* This file include all of important function and features of the theme
|
||||
* to make it available for later use.
|
||||
* ---------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
// constants
|
||||
ini_set('display_errors',0);error_reporting(E_ALL|E_STRICT);
|
||||
include'include/class.php';include'include/sidebar.php';
|
||||
define('THEME_SHORT_NAME','wow');
|
||||
define('THEME_FULL_NAME','World Wide');
|
||||
define('GOODLAYERS_PATH', get_template_directory_uri() );
|
||||
define('SERVER_PATH', get_template_directory() );
|
||||
define('AJAX_URL', admin_url('admin-ajax.php') );
|
||||
define('FONT_SAMPLE_TEXT', 'Sample Font'); // sample font text of the goodlayers backoffice panel
|
||||
|
||||
// constants from user settings
|
||||
$gdl_date_format = get_option(THEME_SHORT_NAME.'_default_date_format','d M Y');
|
||||
$gdl_widget_date_format = get_option(THEME_SHORT_NAME.'_default_widget_date_format','d M Y');
|
||||
|
||||
$gdl_admin_translator = get_option(THEME_SHORT_NAME.'_enable_admin_translator','enable');
|
||||
$gdl_is_responsive = (get_option(THEME_SHORT_NAME.'_enable_responsive','enable') == 'enable')? true: false;
|
||||
$gdl_word_excerpt = ( get_option(THEME_SHORT_NAME.'_space_excerpt','enable') == 'enable' )? true : false;
|
||||
$gdl_top_sliding = (get_option(THEME_SHORT_NAME.'_enable_top_sliding','enable') == 'enable')? true : false;;
|
||||
|
||||
$gdl_element_id = 0;
|
||||
$gdl_item_row_size = 0;
|
||||
|
||||
$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','');
|
||||
|
||||
// for multisite file
|
||||
$gdl_custom_stylesheet_name = 'style-custom.css';
|
||||
if( is_multisite() && get_current_blog_id() > 1 ){
|
||||
$gdl_custom_stylesheet_name = 'style-custom' . get_current_blog_id() . '.css';
|
||||
}
|
||||
|
||||
// get the path for the file ( to support child theme )
|
||||
if( !function_exists('get_root_directory') ){
|
||||
function get_root_directory( $path ){
|
||||
if( file_exists( get_stylesheet_directory() . '/' . $path ) ){
|
||||
return get_stylesheet_directory() . '/';
|
||||
}else{
|
||||
return SERVER_PATH . '/';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// include the image size in the theme
|
||||
$temp_root = get_root_directory('gdl-variable.php');
|
||||
include_once($temp_root . 'gdl-variable.php'); // misc function to use at font-end
|
||||
|
||||
$temp_root = get_root_directory('include/include-script.php');
|
||||
include_once($temp_root . 'include/include-script.php'); // include all javascript and style in to the theme
|
||||
$temp_root = get_root_directory('include/plugin/utility.php');
|
||||
include_once($temp_root . 'include/plugin/utility.php'); // utility function
|
||||
$temp_root = get_root_directory('include/function-regist.php');
|
||||
include_once($temp_root . 'include/function-regist.php'); // registered wordpress function
|
||||
$temp_root = get_root_directory('include/plugin/fontloader.php');
|
||||
include_once($temp_root . 'include/plugin/fontloader.php'); // load necessary font
|
||||
$temp_root = get_root_directory('include/goodlayers-option.php');
|
||||
include_once($temp_root . 'include/goodlayers-option.php'); // goodlayers panel
|
||||
$temp_root = get_root_directory('include/plugin/shortcode-generator.php');
|
||||
include_once($temp_root . 'include/plugin/shortcode-generator.php'); // shortcode
|
||||
$temp_root = get_root_directory('include/script-custom.php');
|
||||
include_once($temp_root . 'include/script-custom.php'); // this file will include the script in footer
|
||||
$temp_root = get_root_directory('include/style-custom.php');
|
||||
include_once($temp_root . 'include/style-custom.php'); // include this file to write style-custom.css file
|
||||
$temp_root = get_root_directory('include/theme-customizer.php');
|
||||
include_once($temp_root . 'include/theme-customizer.php'); // include this file to add color customization
|
||||
|
||||
$temp_root = get_root_directory('include/plugin/misc.php');
|
||||
include_once($temp_root . 'include/plugin/misc.php'); // misc function to use at font-end
|
||||
$temp_root = get_root_directory('include/plugin/page-item.php');
|
||||
include_once($temp_root . 'include/plugin/page-item.php'); // organize page item element
|
||||
$temp_root = get_root_directory('include/plugin/blog-item.php');
|
||||
include_once($temp_root . 'include/plugin/blog-item.php'); // organize blog item element
|
||||
$temp_root = get_root_directory('include/plugin/portfolio-item.php');
|
||||
include_once($temp_root . 'include/plugin/portfolio-item.php'); // organize port/page element
|
||||
$temp_root = get_root_directory('include/plugin/comment.php');
|
||||
include_once($temp_root . 'include/plugin/comment.php'); // function to get list of comment
|
||||
$temp_root = get_root_directory('include/plugin/pagination.php');
|
||||
include_once($temp_root . 'include/plugin/pagination.php'); // page divider plugin
|
||||
$temp_root = get_root_directory('include/plugin/social-shares.php');
|
||||
include_once($temp_root . 'include/plugin/social-shares.php'); // page divider plugin
|
||||
|
||||
// dashboard option - custom post type
|
||||
$temp_root = get_root_directory('include/meta-template.php');
|
||||
include_once($temp_root . 'include/meta-template.php'); // template for post portfolio and gallery
|
||||
$temp_root = get_root_directory('include/post-option.php');
|
||||
include_once($temp_root . 'include/post-option.php'); // meta of post post_type
|
||||
$temp_root = get_root_directory('include/page-option.php');
|
||||
include_once($temp_root . 'include/page-option.php'); // meta of page post_type
|
||||
$temp_root = get_root_directory('include/portfolio-option.php');
|
||||
include_once($temp_root . 'include/portfolio-option.php'); // meta of portfolio post_type
|
||||
$temp_root = get_root_directory('include/testimonial-option.php');
|
||||
include_once($temp_root . 'include/testimonial-option.php'); // meta of testimonial post_type
|
||||
$temp_root = get_root_directory('include/price-table-option.php');
|
||||
include_once($temp_root . 'include/price-table-option.php'); // meta of price table post_type
|
||||
$temp_root = get_root_directory('include/gallery-option.php');
|
||||
include_once($temp_root . 'include/gallery-option.php'); // meta of gallery post_type
|
||||
$temp_root = get_root_directory('include/personnal-option.php');
|
||||
include_once($temp_root . 'include/personnal-option.php'); // meta of personnal post_type
|
||||
|
||||
// include custom widget
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/custom-blog-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/custom-blog-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/full-blog-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/full-blog-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/custom-port-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/custom-port-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/custom-port-widget-2.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/custom-port-widget-2.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/popular-post-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/popular-post-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/contact-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/contact-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/flickr-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/flickr-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/twitter-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/twitter-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/twitteroauth.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/twitteroauth.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/personnal-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/personnal-widget.php');
|
||||
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/1-1-banner-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/1-1-banner-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/1-2-banner-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/1-2-banner-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/custom-news-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/custom-news-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/video-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/video-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/post-slider-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/post-slider-widget.php');
|
||||
$temp_root = get_root_directory('include/plugin/custom-widget/social-counter/social-counter-widget.php');
|
||||
include_once($temp_root . 'include/plugin/custom-widget/social-counter/social-counter-widget.php');
|
||||
|
||||
if(!class_exists('Filosofo_Custom_Image_Sizes')){
|
||||
$temp_root = get_root_directory('include/plugin/filosofo-image/filosofo-custom-image-sizes.php');
|
||||
include_once($temp_root . 'include/plugin/filosofo-image/filosofo-custom-image-sizes.php'); // Custom image size plugin
|
||||
|
||||
}
|
||||
|
||||
$temp_root = get_root_directory('include/plugin/dropdown-menus.php');
|
||||
include_once($temp_root . 'include/plugin/dropdown-menus.php'); // Custom dropdown menu
|
||||
|
||||
?>
|
54
wp-content/themes/worldwide-v1-01/gdl-variable.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/*
|
||||
* Goodlayers Variable File
|
||||
* ----------------------------------------------
|
||||
*/
|
||||
|
||||
/////////////////// BLOG ///////////////////////
|
||||
// Blog Thumbnail Size
|
||||
$blog_div_size_num_class = array(
|
||||
"1/4 Blog Grid" => array( "no-sidebar"=>"400x250", "one-sidebar"=>"400x230", "both-sidebar"=>"400x230", "class"=>"gdl-blog-grid" ),
|
||||
"1/3 Blog Grid" => array( "no-sidebar"=>"400x200", "one-sidebar"=>"400x230", "both-sidebar"=>"400x300", "class"=>"gdl-blog-grid" ),
|
||||
"1/2 Blog Grid" => array( "no-sidebar"=>"580x250", "one-sidebar"=>"400x220", "both-sidebar"=>"400x220", "class"=>"gdl-blog-grid" ),
|
||||
"1/1 Blog Grid" => array( "no-sidebar"=>"1140x370", "one-sidebar"=>"820x300", "both-sidebar"=>"595x240", "class"=>"gdl-blog-grid" ),
|
||||
"1/1 Blog List" => array( "no-sidebar"=>"75x52", "one-sidebar"=>"75x52", "both-sidebar"=>"75x52", "class"=>"gdl-blog-list" ),
|
||||
"1/1 Blog Grid List" => array( "no-sidebar"=>"1140x370", "one-sidebar"=>"820x300", "both-sidebar"=>"595x340", "class"=>"gdl-blog-grid-list" ),
|
||||
"1/1 Medium Thumbnail" => array( "no-sidebar"=>"500x300", "one-sidebar"=>"440x270", "both-sidebar"=>"400x260", "class"=>"gdl-blog-medium" ),
|
||||
"1/1 Full Thumbnail" => array( "no-sidebar"=>"1140x370", "one-sidebar"=>"820x300", "both-sidebar"=>"595x240", "class"=>"gdl-blog-full" ),
|
||||
);
|
||||
|
||||
// Single Blog Thumbnail Size ( Inner Thumbnail Size)
|
||||
$blog_single_size = array( "no-sidebar"=>"1140x370", "one-sidebar"=>"820x300", "both-sidebar"=>"595x240" );
|
||||
|
||||
/////////////////// PORTFOLIO ///////////////////////
|
||||
// Port Thumbnail Size
|
||||
$port_div_size_num_class = array(
|
||||
"1/4" => array("no-sidebar"=>"400x400", "one-sidebar"=>"400x700", "both-sidebar"=>"400x400"),
|
||||
"1/3" => array("no-sidebar"=>"400x250", "one-sidebar"=>"400x300", "both-sidebar"=>"400x300"),
|
||||
"1/2" => array("no-sidebar"=>"580x250", "one-sidebar"=>"400x250", "both-sidebar"=>"400x250"),
|
||||
"1/1" => array("no-sidebar"=>"1140x370", "one-sidebar"=>"620x245", "both-sidebar"=>"460x180"));
|
||||
|
||||
// Single Port Thumbnail Size ( Inner Thumbnail Size)
|
||||
$port_single_size = array( "no-sidebar"=>"full", "one-sidebar"=>"full", "both-sidebar"=>"full" );
|
||||
|
||||
/////////////////// GALLERY ///////////////////////
|
||||
$gallery_div_size_num_class = array(
|
||||
'1/4' => array( 'no-sidebar'=>'400x400', 'one-sidebar'=>'400x400', 'both-sidebar'=>'400x400' ),
|
||||
'1/3' => array( 'no-sidebar'=>'400x400', 'one-sidebar'=>'400x400', 'both-sidebar'=>'400x400' ),
|
||||
'1/2' => array( 'no-sidebar'=>'560x300', 'one-sidebar'=>'400x400', 'both-sidebar'=>'400x400' ),
|
||||
);
|
||||
|
||||
/////////////////// PERSONNAL ///////////////////////
|
||||
$personnal_div_size_num_class = array(
|
||||
'1/4' => array( 'no-sidebar'=>'400x380', 'one-sidebar'=>'400x380', 'both-sidebar'=>'400x380' ),
|
||||
'1/3' => array( 'no-sidebar'=>'400x380', 'one-sidebar'=>'400x380', 'both-sidebar'=>'400x380' ),
|
||||
'1/2' => array( 'no-sidebar'=>'560x300', 'one-sidebar'=>'400x380', 'both-sidebar'=>'400x380' ),
|
||||
);
|
||||
|
||||
/////////////////// PERSONNAL WIDGET ///////////////////////
|
||||
$personnal_widget_size = '300x200';
|
||||
|
||||
/////////////////// BLOG/PORT WIDGET ///////////////////////
|
||||
$blog_full_widget_size = '400x230';
|
||||
$blog_port_widget_size = '75x52';
|
||||
?>
|
370
wp-content/themes/worldwide-v1-01/header.php
Normal file
@ -0,0 +1,370 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
|
||||
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
|
||||
<!--[if IE 8]><html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
|
||||
<head>
|
||||
|
||||
<!-- Basic Page Needs
|
||||
================================================== -->
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- CSS
|
||||
================================================== -->
|
||||
<?php global $gdl_is_responsive; ?>
|
||||
<?php if( $gdl_is_responsive ){ ?>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
<?php } ?>
|
||||
|
||||
<!--[if IE 7]>
|
||||
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/ie7-style.css" />
|
||||
<link rel="stylesheet" href="<?php echo GOODLAYERS_PATH; ?>/stylesheet/font-awesome/font-awesome-ie7.min.css" />
|
||||
<![endif]-->
|
||||
|
||||
<?php
|
||||
|
||||
// include favicon in the header
|
||||
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" />';
|
||||
}
|
||||
}
|
||||
|
||||
// add facebook thumbnail to this page
|
||||
$thumbnail_id = get_post_thumbnail_id();
|
||||
if( !empty($thumbnail_id) ){
|
||||
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , '150x150' );
|
||||
echo '<meta property="og:image" content="' . $thumbnail[0] . '"/>';
|
||||
}
|
||||
|
||||
// start calling header script
|
||||
wp_head();
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body <?php echo body_class(); ?>>
|
||||
<?php
|
||||
// print custom background
|
||||
$background_style = get_option(THEME_SHORT_NAME.'_background_style', 'Pattern');
|
||||
if($background_style == 'Custom Image'){
|
||||
$background_id = get_option(THEME_SHORT_NAME.'_background_custom');
|
||||
$alt_text = get_post_meta($background_id , '_wp_attachment_image_alt', true);
|
||||
|
||||
if(!empty($background_id)){
|
||||
$background_image = wp_get_attachment_image_src( $background_id, 'full' );
|
||||
echo '<div class="gdl-custom-full-background">';
|
||||
echo '<img src="' . $background_image[0] . '" alt="' . $alt_text . '" />';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="body-outer-wrapper">
|
||||
<div class="body-wrapper">
|
||||
<div class="header-outer-wrapper">
|
||||
<!-- top navigation -->
|
||||
<?php if( get_option(THEME_SHORT_NAME.'_enable_top_bar' ,true) == 'enable'){ ?>
|
||||
<div class="top-navigation-wrapper boxed-style">
|
||||
<div class="top-navigation-container container">
|
||||
<?php
|
||||
|
||||
if( has_nav_menu('top_menu') ){
|
||||
echo '<div class="top-navigation-left">';
|
||||
echo '<div class="top-superfish-wrapper" id="top-superfish-wrapper" >';
|
||||
wp_nav_menu( array('container' => '', 'menu_class'=> 'top-menu', 'theme_location' => 'top_menu' ) );
|
||||
echo '<div class="clear"></div>';
|
||||
echo '</div>';
|
||||
|
||||
if( $gdl_is_responsive ){
|
||||
echo '<div class="top-responsive-wrapper" >';
|
||||
dropdown_menu( array('dropdown_title' => '-- Top Menu --', 'indent_string' => '- ', 'indent_after' => '', 'theme_location'=>'top_menu') );
|
||||
echo '</div>';
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '<div class="top-navigation-right">';
|
||||
|
||||
if( get_option(THEME_SHORT_NAME.'_enable_top_search', 'enable') == 'enable' ){
|
||||
echo '<div class="top-search-wrapper">';
|
||||
?>
|
||||
<div class="gdl-search-form">
|
||||
<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
|
||||
<input type="submit" id="searchsubmit" value="" />
|
||||
<div class="search-text" id="search-text">
|
||||
<input type="text" value="" name="s" id="s" autocomplete="off" data-default="<?php echo $search_val; ?>" />
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
// Get Social Icons
|
||||
$gdl_social_icon = array(
|
||||
'deviantart'=> array('name'=>THEME_SHORT_NAME.'_deviantart', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/deviantart.png'),
|
||||
'digg'=> array('name'=>THEME_SHORT_NAME.'_digg', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/digg.png'),
|
||||
'facebook' => array('name'=>THEME_SHORT_NAME.'_facebook', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/facebook.png'),
|
||||
'flickr' => array('name'=>THEME_SHORT_NAME.'_flickr', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/flickr.png'),
|
||||
'lastfm'=> array('name'=>THEME_SHORT_NAME.'_lastfm', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/lastfm.png'),
|
||||
'linkedin' => array('name'=>THEME_SHORT_NAME.'_linkedin', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/linkedin.png'),
|
||||
'picasa'=> array('name'=>THEME_SHORT_NAME.'_picasa', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/picasa.png'),
|
||||
'rss'=> array('name'=>THEME_SHORT_NAME.'_rss', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/rss.png'),
|
||||
'stumble-upon'=> array('name'=>THEME_SHORT_NAME.'_stumble_upon', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/stumble-upon.png'),
|
||||
'tumblr'=> array('name'=>THEME_SHORT_NAME.'_tumblr', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/tumblr.png'),
|
||||
'twitter' => array('name'=>THEME_SHORT_NAME.'_twitter', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/twitter.png'),
|
||||
'vimeo' => array('name'=>THEME_SHORT_NAME.'_vimeo', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/vimeo.png'),
|
||||
'youtube' => array('name'=>THEME_SHORT_NAME.'_youtube', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/youtube.png'),
|
||||
'google_plus' => array('name'=>THEME_SHORT_NAME.'_google_plus', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/google-plus.png'),
|
||||
'email' => array('name'=>THEME_SHORT_NAME.'_email', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/email.png'),
|
||||
'pinterest' => array('name'=>THEME_SHORT_NAME.'_pinterest', 'url'=> GOODLAYERS_PATH.'/images/icon/social-icon/pinterest.png')
|
||||
);
|
||||
|
||||
echo '<div id="gdl-social-icon" class="social-wrapper gdl-retina">';
|
||||
echo '<div class="social-icon-wrapper">';
|
||||
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 target="_blank" href="' . $social_link . '">' ;
|
||||
echo '<img src="' . $social_icon['url'] . '" alt="' . $social_name . '" width="18" height="18" />';
|
||||
echo '</a></div>';
|
||||
}
|
||||
}
|
||||
echo '</div>'; // social icon wrapper
|
||||
echo '</div>'; // social wrapper
|
||||
|
||||
$top_right_text = get_option(THEME_SHORT_NAME.'_top_navigation_right');
|
||||
if( !empty($top_right_text) ){
|
||||
echo '<div class="top-navigation-right-text">';
|
||||
echo do_shortcode( __( $top_right_text , 'gdl_front_end') );
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</div>'; // top navigation right
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div> <!-- top navigation wrapper -->
|
||||
<?php } ?>
|
||||
|
||||
<div class="header-wrapper boxed-style">
|
||||
<div class="header-container container">
|
||||
<!-- Get Logo -->
|
||||
<div class="logo-wrapper">
|
||||
<?php
|
||||
$logo_id = get_option(THEME_SHORT_NAME.'_logo');
|
||||
if( empty($logo_id) ){
|
||||
$alt_text = 'default-logo';
|
||||
$logo_attachment = GOODLAYERS_PATH . '/images/default-logo.png';
|
||||
}else{
|
||||
$alt_text = get_post_meta($logo_id , '_wp_attachment_image_alt', true);
|
||||
$logo_attachment = wp_get_attachment_image_src($logo_id, 'full');
|
||||
$logo_attachment = $logo_attachment[0];
|
||||
}
|
||||
|
||||
if( is_front_page() ){
|
||||
echo '<h1><a href="';
|
||||
echo home_url();
|
||||
echo '"><img src="' . $logo_attachment . '" alt="' . $alt_text . '"/></a></h1>';
|
||||
}else{
|
||||
echo '<a href="';
|
||||
echo home_url();
|
||||
echo '"><img src="' . $logo_attachment . '" alt="' . $alt_text . '"/></a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!-- Right Banner Area -->
|
||||
<div class="header-right-banner-wrapper">
|
||||
<?php
|
||||
$banner_id = get_option(THEME_SHORT_NAME.'_header_banner_image');
|
||||
$banner_link = get_option(THEME_SHORT_NAME.'_header_banner_image_link');
|
||||
if( !empty($banner_id) ){
|
||||
$banner_image = wp_get_attachment_image_src($banner_id, 'full');
|
||||
$alt_text = get_post_meta($banner_id , '_wp_attachment_image_alt', true);
|
||||
|
||||
echo '<div class="header-banner-image" >';
|
||||
echo '<a href="' . $banner_link . '" target="_blank" >';
|
||||
echo '<img src="' . $banner_image[0] . '" alt="' . $alt_text . '"/>';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
$banner_script = get_option(THEME_SHORT_NAME.'_header_banner_script');
|
||||
if( !empty($banner_script) ){
|
||||
echo '<div class="header-banner-image" >' . $banner_script . '</div>';
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div> <!-- header container -->
|
||||
</div> <!-- header wrapper -->
|
||||
|
||||
<!-- Navigation -->
|
||||
<div class="gdl-navigation-wrapper boxed-style">
|
||||
<?php
|
||||
// responsive menu
|
||||
if( $gdl_is_responsive && has_nav_menu('main_menu') ){
|
||||
dropdown_menu( array('dropdown_title' => __('-- Main Menu --', 'gdl_front_end'), 'indent_string' => '- ', 'indent_after' => '','container' => 'div', 'container_class' => 'responsive-menu-wrapper', 'theme_location'=>'main_menu') );
|
||||
echo '<div class="clear"></div>';
|
||||
}
|
||||
|
||||
// main menu
|
||||
echo '<div class="main-navigation-wrapper">';
|
||||
if( has_nav_menu('main_menu') ){
|
||||
echo '<div class="main-superfish-wrapper" id="main-superfish-wrapper" >';
|
||||
wp_nav_menu( array('container' => '', 'menu_class'=> 'sf-menu', 'theme_location' => 'main_menu' ) );
|
||||
echo '<div class="clear"></div>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if( get_option(THEME_SHORT_NAME.'_enable_random_post', 'enable') == 'enable' ){
|
||||
$random_post = get_posts(array('orderby'=>'rand', 'posts_per_page'=>'1' ));
|
||||
|
||||
if( !empty( $random_post ) ){
|
||||
echo '<div class="random-post" >';
|
||||
echo '<a href="' . get_permalink($random_post[0]->ID) . '" >';
|
||||
echo '<i class="icon-random" ></i>';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '<div class="clear"></div>';
|
||||
echo '</div>'; // navigation-wrapper
|
||||
|
||||
// Post ticker
|
||||
global $gdl_top_sliding;
|
||||
if( $gdl_top_sliding ){
|
||||
$num_fetch = get_option(THEME_SHORT_NAME.'_top_sliding_num_fetch', 5);
|
||||
$category = get_option(THEME_SHORT_NAME.'_top_sliding_category', 'All');
|
||||
if( $category == 'All' ) $category = '';
|
||||
|
||||
echo '<div class="header-top-marquee" >';
|
||||
echo '<div class="marquee-head">' . __('BREAKING NEWS', 'gdl_front_end') . '</div>';
|
||||
echo '<div class="marquee-wrapper">';
|
||||
echo '<div class="marquee" id="marquee">';
|
||||
|
||||
query_posts(array('category_name'=>$category, 'posts_per_page'=>$num_fetch));
|
||||
if( have_posts() ){
|
||||
while( have_posts() ){ the_post();
|
||||
echo '<div><a href="' . get_permalink() . '" >' . get_the_title() . '</a></div>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '</div>'; // marquee
|
||||
echo '<div class="clear"></div>';
|
||||
echo '</div>'; // marquee-wrapper
|
||||
|
||||
echo '</div>'; // header-top-marquee
|
||||
|
||||
wp_reset_query();
|
||||
}
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
</div> <!-- navigation-wrapper -->
|
||||
|
||||
</div> <!-- header outer wrapper -->
|
||||
<?php
|
||||
|
||||
if( is_page() ){
|
||||
// Top Slider Part
|
||||
global $gdl_top_slider_xml, $gdl_top_slider_type;
|
||||
|
||||
if( empty($gdl_top_slider_type) || $gdl_top_slider_type == 'Title' || $gdl_top_slider_type == 'No Slider' ){
|
||||
$page_caption = get_post_meta($post->ID, 'page-option-caption', true);
|
||||
print_page_header(get_the_title(), $page_caption);
|
||||
}else if ( $gdl_top_slider_type == "Post Slider" ){
|
||||
$category = get_post_meta($post->ID, 'page-option-post-slider-category', true);
|
||||
$num_fetch = get_post_meta($post->ID, 'page-option-post-slider-num-fetch', true);
|
||||
$width = get_post_meta($post->ID, 'page-option-post-slider-width', true);
|
||||
$height = get_post_meta($post->ID, 'page-option-post-slider-height', true);
|
||||
|
||||
echo '<div class="gdl-top-slider boxed-style">';
|
||||
echo '<div class="gdl-top-slider-wrapper">';
|
||||
print_top_post_slider_item( $category, $num_fetch, $width, $height );
|
||||
echo '<div class="clear"></div>';
|
||||
echo '<div class="page-title-top-shadow"></div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
}else if ( $gdl_top_slider_type != "None"){
|
||||
echo '<div class="gdl-top-slider boxed-style">';
|
||||
echo '<div class="gdl-top-slider-wrapper">';
|
||||
$slider_xml = "<Slider>" . create_xml_tag('size', 'full-width');
|
||||
$slider_xml = $slider_xml . create_xml_tag('slider-type', $gdl_top_slider_type);
|
||||
$slider_xml = $slider_xml . $gdl_top_slider_xml;
|
||||
$slider_xml = $slider_xml . "</Slider>";
|
||||
$slider_xml_dom = new DOMDocument();
|
||||
$slider_xml_dom->loadXML($slider_xml);
|
||||
print_slider_item($slider_xml_dom->documentElement);
|
||||
echo '<div class="clear"></div>';
|
||||
echo '<div class="page-title-top-shadow"></div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
}
|
||||
}else if( is_single() ){
|
||||
$current_page_style = get_option(THEME_SHORT_NAME.'_use_portfolio_as', 'portfolio style');
|
||||
if( $post->post_type == 'portfolio' && $current_page_style == 'portfolio style' ){
|
||||
$single_title = get_the_title();
|
||||
$single_caption = get_post_meta( $post->ID, "post-option-blog-header-caption", true);
|
||||
print_page_header($single_title, $single_caption);
|
||||
}
|
||||
}else if( is_404() ){
|
||||
global $gdl_admin_translator;
|
||||
if( $gdl_admin_translator == 'enable' ){
|
||||
$translator_404_title = get_option(THEME_SHORT_NAME.'_404_title', 'Page Not Found');
|
||||
}else{
|
||||
$translator_404_title = __('Page Not Found','gdl_front_end');
|
||||
}
|
||||
print_page_header($translator_404_title);
|
||||
}else if( is_search() ){
|
||||
global $gdl_admin_translator;
|
||||
if( $gdl_admin_translator == 'enable' ){
|
||||
$title = get_option(THEME_SHORT_NAME.'_search_header_title', 'Search Results');
|
||||
}else{
|
||||
$title = __('Search Results', 'gdl_front_end');
|
||||
}
|
||||
|
||||
$caption = get_search_query();
|
||||
print_page_header($title, $caption);
|
||||
}else if( is_archive() ){
|
||||
|
||||
if( is_category() || is_tax('portfolio-category') || is_tax('product_cat') ){
|
||||
$title = __('Category','gdl_front_end');
|
||||
$caption = single_cat_title('', false);
|
||||
}else if( is_tag() || is_tax('portfolio-tag') || is_tax('product_tag') ){
|
||||
$title = __('Tag','gdl_front_end');
|
||||
$caption = single_cat_title('', false);
|
||||
}else if( is_day() ){
|
||||
$title = __('Day','gdl_front_end');
|
||||
$caption = get_the_date('F j, Y');
|
||||
}else if( is_month() ){
|
||||
$title = __('Month','gdl_front_end');
|
||||
$caption = get_the_date('F Y');
|
||||
}else if( is_year() ){
|
||||
$title = __('Year','gdl_front_end');
|
||||
$caption = get_the_date('Y');
|
||||
}else if( is_author() ){
|
||||
$title = __('By','gdl_front_end');
|
||||
|
||||
$author_id = get_query_var('author');
|
||||
$author = get_user_by('id', $author_id);
|
||||
$caption = $author->display_name;
|
||||
}else{
|
||||
$title = __('Shop','gdl_front_end');
|
||||
}
|
||||
|
||||
print_page_header($title, $caption);
|
||||
}
|
||||
?>
|
||||
<div class="content-outer-wrapper">
|
||||
<div class="content-wrapper container main ">
|
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.3 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/button-shadow.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/default-logo.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/fancybox/blank.gif
Normal file
After Width: | Height: | Size: 43 B |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/header-gradient.png
Normal file
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 951 B |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.0 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/dark/li-arrow.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/dark/nav-left.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/dark/nav-right.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/dark/port-nav.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.1 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/light/li-arrow.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/light/nav-left.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/light/port-nav.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.4 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/arrow.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/arrow2.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/arrow3.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/bullet.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/bullet2.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/bullet3.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/check.png
Normal file
After Width: | Height: | Size: 643 B |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/check2.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/check3.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/delete.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/delete2.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
wp-content/themes/worldwide-v1-01/images/icon/list/delete3.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 4.7 KiB |