Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 1.75 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. add_action( 'after_setup_theme', 'et_setup_theme' )
  3. if ( ! function_exists('et_setup_theme') {
  4.         function et_setup_theme {
  5.                 require_once(TEMPLATEPATH . '/epanel/custom_functions.php'){
  6.  
  7.                 require_once(TEMPLATEPATH . '/includes/functions/comments.php'{
  8.  
  9.                 require_once(TEMPLATEPATH . '/includes/functions/sidebars.php'{
  10.  
  11.                 load_theme_textdomain('TheSource',get_template_directory().'/lang'{
  12.  
  13.                 require_once(TEMPLATEPATH . '/epanel/options_thesource.php'{
  14.  
  15.                 require_once(TEMPLATEPATH . '/epanel/core_functions.php'{
  16.  
  17.                 require_once(TEMPLATEPATH . '/epanel/post_thumbnails_thesource.php'{
  18.  
  19.                 include(TEMPLATEPATH . '/includes/widgets.php'{
  20.         }
  21. }
  22.  
  23. add_action('wp_head','et_portfoliopt_additional_styles',100){
  24. function et_portfoliopt_additional_styles(){ ?>
  25.         <style type="text/css">
  26.                 #et_pt_portfolio_gallery { margin-left: 2px; }
  27.                 .et_pt_portfolio_item { margin-left: 11px; }
  28.                 .et_portfolio_small { margin-left: -14px !important; }
  29.                 .et_portfolio_small .et_pt_portfolio_item { margin-left: 22px !important; }
  30.                 .et_portfolio_large { margin-left: -12px !important; }
  31.                 .et_portfolio_large .et_pt_portfolio_item { margin-left: 13px !important; }
  32.         </style>
  33. <?php }
  34.  
  35. function register_main_menus() {
  36.    register_nav_menus(
  37.       array(
  38.          'primary-menu' => __( 'Primary Menu' ),
  39.          'secondary-menu' => __( 'Secondary Menu' ),
  40.                  'footer-menu' => __( 'Footer Menu' ),
  41.       )
  42.    );
  43. };
  44. if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );
  45.  
  46. if ( ! function_exists( 'et_list_pings' ) ){
  47.         function et_list_pings($comment, $args, $depth) {
  48.                 $GLOBALS['comment'] = $comment; ?>
  49.                 <li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> - <?php comment_excerpt(); ?>
  50.         <?php }
  51. } ?>