Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'after_setup_theme', 'et_setup_theme' );
- if ( ! function_exists( 'et_setup_theme' ) ){
- function et_setup_theme(){
- global $themename, $shortname;
- $themename = "Webly";
- $shortname = "Webly";
- require_once(TEMPLATEPATH . '/epanel/custom_functions.php');
- require_once(TEMPLATEPATH . '/includes/functions/comments.php');
- require_once(TEMPLATEPATH . '/includes/functions/sidebars.php');
- load_theme_textdomain('Webly',get_template_directory().'/lang');
- require_once(TEMPLATEPATH . '/epanel/options_webly.php');
- require_once(TEMPLATEPATH . '/epanel/core_functions.php');
- require_once(TEMPLATEPATH . '/epanel/post_thumbnails_webly.php');
- include(TEMPLATEPATH . '/includes/widgets.php');
- require_once(TEMPLATEPATH . '/includes/additional_functions.php');
- }
- }
- add_action('wp_head','et_portfoliopt_additional_styles',100);
- function et_portfoliopt_additional_styles(){ ?>
- <style type="text/css">
- #et_pt_portfolio_gallery { margin-left: -10px; }
- .et_pt_portfolio_item { margin-left: 11px; }
- .et_portfolio_small { margin-left: 0px !important; }
- .et_portfolio_small .et_pt_portfolio_item { margin-left: 26px !important; }
- .et_portfolio_large { margin-left: -12px !important; }
- .et_portfolio_large .et_pt_portfolio_item { margin-left: 13px !important; }
- </style>
- <?php }
- function register_main_menus() {
- register_nav_menus(
- array(
- 'primary-menu' => __( 'Primary Menu' ),
- 'footer-menu' => __( 'Footer Menu' )
- )
- );
- }
- if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );
- // add Home link to the custom menu WP-Admin page
- function et_add_home_link( $args ) {
- $args['show_home'] = true;
- return $args;
- }
- add_filter( 'wp_page_menu_args', 'et_add_home_link' );
- add_action('wp_head','et_add_meta_javascript');
- function et_add_meta_javascript(){
- global $shortname;
- echo '<!-- used in scripts -->';
- echo '<meta name="et_featured_auto_speed" content="'.get_option($shortname.'_slider_autospeed').'" />';
- echo '<meta name="et_featured_slider_effect" content="'.get_option($shortname.'_slider_effect').'" />';
- $disable_toptier = get_option($shortname.'_disable_toptier') == 'on' ? 1 : 0;
- echo '<meta name="et_disable_toptier" content="'.$disable_toptier.'" />';
- $featured_slider_auto = get_option($shortname.'_slider_auto') == 'on' ? 1 : 0;
- echo '<meta name="et_featured_slider_auto" content="'.$featured_slider_auto.'" />';
- $featured_slider_pause = get_option($shortname.'_pause_hover') == 'on' ? 1 : 0;
- echo '<meta name="et_featured_slider_pause" content="'.$featured_slider_pause.'" />';
- }
- if ( ! function_exists( 'et_list_pings' ) ){
- function et_list_pings($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment; ?>
- <li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> - <?php comment_excerpt(); ?>
- <?php }
- } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement