Soporte » Buscar » Resultados de búsqueda para 'woocommerce email'

Viendo 15 resultados - del 301 al 315 (de un total de 318)
    • Hola a todos, me está ocurriendo algo extraño cuando aplico cupones de descuento en woocommerce y no veo que a nadie más le ocurra.

      Cuando aplico un cupón, por ejemplo del 5% sobre el total del carrito lo hace correctamente en la página del carro de compra y en la del checkout, pero cuando finalizo la compra esa cantidad de descuento aparece modificada en la página resumen del pedido, y en el email que se envía al cliente.

      Aclarar que realmente al cliente se le hace el descuento correctamente pero al aparecer un numero erróneo puede generar confusiones y malos entendidos.

      He hecho muchos números y es como si al descuento sobre el total del carrito después le sumara la diferencia entre los IVAS de antes y después de hacer el descuento. No se si me estoy explicando bien, perdonad.

      Muchas gracias por adelantado, no suelo preguntar pero es que esta vez me está volviendo loco el asunto.

      Saludos

    Iniciador del debate WebSolutions ABA

    (@websolutions-aba)

    Solucionado,a medias,pero suficiente.Tras el pago el estado del pedido en Woocommerce continúa pendiente de pago,pero por lo menos se envían email a cliente y administrador de forma automática,que es lo que me preocupaba de cara a generar confianza al cliente.

    Simplemente añadí el siguiente código al archivo funtions.php del tema activo:

    // Workaround for the mysterious bug in Woocommerce that prevents order emails
    // from being sent.

    add_action( ‘woocommerce_thankyou’, ‘order_email_workaround’ );

    function order_email_workaround ($order_id) {
    global $woocommerce;
    $mailer = $woocommerce->mailer();
    // Email customer with order-processing receipt
    $email = $mailer->emails[‘WC_Email_Customer_Processing_Order’];
    $email->trigger( $order_id );
    // Email admin with new order email
    $email = $mailer->emails[‘WC_Email_New_Order’];
    $email->trigger( $order_id );
    }

    add_action( ‘woocommerce_payment_complete’, ‘order_complete_email_workaround’ );

    function order_complete_email_workaround ($order_id) {
    global $woocommerce;
    $mailer = $woocommerce->mailer();
    $email = $mailer->emails[‘WC_Email_Customer_Completed_order’];
    $email->trigger( $order_id );
    }

    • Buenas tardes
      Tengo instalada WP 4.1.1 con Woocommerce 2.3.5 y «Pasarela de pago CECABANK». El problema es el siguiente: al realizar un pedido, no sé envia ningún email ni al administrador ni al cliente. En el cms de wordpress aparece el pedido con el estado «pendiente». Es raro porque el proceso de pago se ha completado.Manualmente puedo modificar estado y enviar los correos.

      No sé si sabréis por qué ocurre esto. Muchas gracias. Un saludo

    • Usando WooCommerce, para vender instrumentales únicas a grupos que las quieran usar en sus temas, uno de los primeros problemas es que mediante Paypal Sandbox el proceso de compra queda en Espera.

      Pero ese no es el problema (sé que puede suceder por usar un correo de facturación distinto al de Paypal, y también creo que en Paypal normal esto no sucederá). Tengo que marcar el pedido como completado, y entonces envía los enlaces de descarga al email, etc.

      Configurado como producto «Virtual», «Descargable», límite de 1 descarga del archivo, gestión de Stock activada y a sólo una unidad en Stock, mi intención es que sólo se venda 1 vez y el artículo quede como Vendido.

      Pero al finalizar la compra y realizar la descarga. El producto sigue en Stock. He probado con varios productos de prueba, pero pasa lo mismo en todos.

      He imaginado que es debido a que es «Virtual», y que por ello no atiende a que se agote el stock… Pero espero que no sea así.

      Muchas gracias por su atención. Saludos.

    • Hola a todos, tengo montado un ecommerce con woocommerce pero este no envía los emails al efectuar la compra, además el contact form7 tampoco envía los correos. La web está subida al servidor.

      Sabeis a que puede ser debido?

      Gracias

    • Buenas a todos,
      He montado una pequeña tienda con Woocommerce que ha demostrado funcionar correctamente hasta que realicé un pedido de prueba, pero real, y observé que el cliente no recibía ningún email de confirmación de pedido.

      Entrando en las opciones del pedido hay una zona en la parte superior derecha que permite reenviar emails. Al utilizar por ejemplo la acción de enviar un email para el estado «Procesando tu pedido» recibo el siguiente mensaje de error por parte de mi hosting:

      [midominio.com] [Wed Nov 26 08:16:21 2014] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: post.php, referer: http://midominio.com/wp-admin/post.php?post=1026&action=edit
      Error 500: Script Execution Failure

      Me he puesto en contacto con soporte de Hosting. Ellos mismos reprodujeron el error pero no supieron resolverlo.

      Estoy usando WP 4.0.1 y Woocommerce 2.2.8. Gracias al foro ya he probado cosas como desactivar todos los plugins menos el de woocommerce, he establecido a 96M el límite de memoria de WP y asignado permisos 755 a varios ficheros post.php. Nada de esto ha funcionado.

      Agradecería que alguien pudiera encaminarme porque ahora mismo estoy perdido.

    Moderador José Arcos

    (@josearcos)

    El camino más rápido es un email de verificación, puedes hacerlo con este plugin: woocommerce email verification.
    Espero que te ayude.

    • Hola.

      Estoy creando una tienda online con el plugin Woocommerce y el tema Virtue. He seleccionado que todo aquel que quiera comprar debe primero registrarse en la página, para lo cual se le asigna por defecto el perfil «customer» de Woocommerce.

      Vengo observando lo que parece ser nuevos usuarios que se registran en mi página a modo de «spam». Claro, resulta que Woocommerce sólo solicita una dirección de email y una contraseña sin ninguna confirmación posterior desde el email para darse de alta, como podéis ver en el siguiente enlace de mi web:

      http://www.slonya.es/mi-cuenta/

      Me gustaría saber si existe un plugin, o cómo debo editar la plantilla [woocommerce_my_account] para poder exigir más datos a los usuarios a la hora de registrarse, como pudieran ser sus nombres y apellidos y su dirección, o exigirles una confirmación de su alta por medio de un enlace enviado a su email, de tal forma que yo pudiera eliminar los que no confirmen su alta.

      Muchas gracias por adelantado!

    • Hola a todos/as

      Me avisa un cliente que al realizar un pedido, poner sus datos y seleccionar método de pago, la web se queda cargando. No le llega ningún email de pedido.

      A mi tampoco me llega el aviso del pedido, aunque si voy a la administración de pedidos de woocommerce sí me aparece el pedido.

      He mirado si es por culpa de algún plugin pero ya no sé qué más hacer. Parece estar todo correcto.

      ¿Alguna idea de qué puede dar este fallo?

      Versión de woocommerce: 2.2.7

    Iniciador del debate chrilow

    (@chrilow)

    <?php
    
    // Buscador de primera letra
    
    add_filter('posts_search', 'search_title');
    
    function search_title($search) {
    
      preg_match('/letra-([^%]+)/', $search, $m);
    
      if (isset($m[1])) {
    
        if($m[1] == '09') return " AND wp_posts.post_title REGEXP '^[0-9]' AND (wp_posts.post_password = '') ";
    
        return " AND wp_posts.post_title LIKE '$m[1]%' AND (wp_posts.post_password = '') ";
    
      } else {
    
        return $search;
    
      }
    
    }
    
    /*= Load Files
    
     *=============================================================================*/
    
    // Load the functions
    
    require_once( trailingslashit(get_template_directory()) . 'functions/helpers.php' );
    
    require_once( trailingslashit( get_template_directory() ) . 'functions/plugins-compat.php' );
    
    require_once( trailingslashit( get_template_directory() ) . 'functions/video-functions.php' );
    
    // Load the widgets
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-posts.php' );
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-related-posts.php' ); 
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-user-bio.php' ); 
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-single-post-stats.php' ); 
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-comments.php' ); 
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-ad.php' ); 
    
    require_once( trailingslashit( get_template_directory() ) . 'widgets/widget-tweets/widget-tweets.php' ); 
    
    // Load the admin functions
    
    if(is_admin()) {
    
    	require_once( trailingslashit( get_template_directory() ). 'admin/panel.php');
    
    	require_once( trailingslashit( get_template_directory() ). 'admin/forms.php');
    
    	require_once( trailingslashit( get_template_directory() ) . 'admin/admin.php' );
    
    }
    
    // Load the extentions
    
    require_once( trailingslashit( get_template_directory() ) . 'extensions/dp-post-likes.php' );
    
    require_once( trailingslashit( get_template_directory() ) . 'extensions/dp-jplayer.php' );
    
    /*= Theme Setup
    
     *=============================================================================*/
    
    /**
    
     * Theme Feature: Content Width
    
     *
    
     * Sets up the content width value based on the theme's design.
    
     * @see dp_content_width() for template-specific adjustments.
    
     */
    
    if(!isset($content_width))
    
    	$content_width = 620;
    
    /**
    
     * Adjusts content_width value for specific.
    
     *
    
     * @since deTube 1.4
    
     *
    
     * @return void
    
     */
    
    function dp_content_width() {
    
    	global $content_width;
    
    	if ( is_page_template('page-template-full-width.php'))
    
    		$content_width = 950;
    
    	elseif(is_singular()) {
    
    		global $post;
    
    		$video_layout = get_post_meta($post->ID, 'dp_video_layout', true);
    
    		if($video_layout == 'full-width')
    
    			$content_width = 950;
    
    	}
    
    }
    
    add_action( 'template_redirect', 'dp_content_width' );
    
    add_action( 'after_setup_theme', 'theme_setup' );
    
    function theme_setup() {
    
    	// Add default posts and comments RSS feed links to <head>.
    
    	add_theme_support( 'automatic-feed-links' );
    
    	// Translation
    
    	load_theme_textdomain( 'dp', get_template_directory() . '/languages' );
    
    	$locale = get_locale();
    
    	$locale_file = get_template_directory() . "/languages/$locale.php";
    
    	if ( is_readable( $locale_file ) )
    
    		require_once( $locale_file );
    
    	// Register Nav Menus
    
    	register_nav_menus(array(
    
    		'main' => __('Main Navigation', 'dp'),
    
    		'footer' => __('Footer Navigation', 'dp')
    
    	));
    
    	// Register Sidebars
    
    	register_sidebar(array(
    
    		'name' => __('Main Sidebar', 'dp'),
    
    		'id' => 'main',
    
    		'description' => __('This is the most generic sidebar, If a page does not specify the sidebar, or specify the sidebar but the specified sidebar is empty, this sidebar will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Home Sidebar', 'dp'),
    
    		'id' => 'home',
    
    		'description' => __('This sidebar will displayed on homepage. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Category Sidebar', 'dp'),
    
    		'id' => 'category',
    
    		'description' => __('This sidebar will displayed on category archive pages. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Single Post Sidebar', 'dp'),
    
    		'id' => 'single-post',
    
    		'description' => __('This sidebar will displayed on single post pages. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Single Video Sidebar', 'dp'),
    
    		'id' => 'single-video',
    
    		'description' => __('This sidebar will displayed on single video pages. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Page Sidebar', 'dp'),
    
    		'id' => 'page',
    
    		'description' => __('This sidebar will displayed on all WordPress construct of pages. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Author Sidebar', 'dp'),
    
    		'id' => 'author',
    
    		'description' => __('This sidebar will displayed on author archive pages. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	register_sidebar(array(
    
    		'name' => __('Likes Page Sidebar', 'dp'),
    
    		'id' => 'likes-page',
    
    		'description' => __('This sidebar will displayed on likes page. If you leave this sidebar empty, the "Main Sidebar" will be used.', 'dp'),
    
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    		'after_widget' => '</div>',
    
    		'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    		'after_title' => '</h3></div>',
    
    	));
    
    	$footbar_layout = get_option('dp_footbar_layout', 'c3');
    
    	if($footbar_layout == 'c4s1') {
    
    		for($i=1;$i<=5;$i++) {
    
    			register_sidebar(array(
    
    				'name' => __('Footbar', 'dp').$i,
    
    				'id' => 'footbar-'.$i,
    
    				'description' => __( 'An optional widget area for your site footer', 'dp' ),
    
    				'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    				'after_widget' => '</div>',
    
    				'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    				'after_title' => '</h3></div>',
    
    			));
    
    		}
    
    	} else {
    
    		register_sidebar(array(
    
    			'name' => __('Footbar', 'dp'),
    
    			'id' => 'footbar',
    
    			'description' => __( 'An optional widget area for your site footer', 'dp' ),
    
    			'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    			'after_widget' => '</div>',
    
    			'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    			'after_title' => '</h3></div>',
    
    		));
    
    	}
    
    	if(function_exists('is_buddypress')) {
    
    		register_sidebar(array(
    
    			'name' => __('BuddyPress Sidebar', 'dp'),
    
    			'id' => 'buddypress',
    
    			'description' => __('This sidebar will displayed on BuddyPress pages.', 'dp'),
    
    			'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    			'after_widget' => '</div>',
    
    			'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    			'after_title' => '</h3></div>',
    
    		));
    
    	}
    
    	if(function_exists('is_bbpress')) {
    
    		register_sidebar(array(
    
    			'name' => __('bbPress Sidebar', 'dp'),
    
    			'id' => 'bbpress',
    
    			'description' => __('This sidebar will displayed on bbPress pages.', 'dp'),
    
    			'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    			'after_widget' => '</div>',
    
    			'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    			'after_title' => '</h3></div>',
    
    		));
    
    	}
    
    	if(function_exists('is_woocommerce')) {
    
    		register_sidebar(array(
    
    			'name' => __('WooCommerce Sidebar', 'dp'),
    
    			'id' => 'woocommerce',
    
    			'description' => __('This sidebar will displayed on WooCommerce pages.', 'dp'),
    
    			'before_widget' => '<div id="%1$s" class="widget %2$s">',
    
    			'after_widget' => '</div>',
    
    			'before_title' => '<div class="widget-header"><h3 class="widget-title">',
    
    			'after_title' => '</h3></div>',
    
    		));
    
    	}
    
    	/* Add Post Thumbail Support & Add Image Size */
    
    	add_theme_support( 'post-thumbnails' );
    
    	set_post_thumbnail_size( 150, 150, true );	
    
    	add_image_size( 'custom-small', 160, 90, true );
    
    	add_image_size( 'custom-medium', 320, 180, true );
    
    	add_image_size( 'custom-large', 640, 360, true );
    
    	add_image_size( 'custom-full', 960, 540, true );
    
    	// Add Semantic Markup Support
    
    	add_theme_support( 'html5' );
    
    	// Add Post Formats Support
    
    	add_theme_support('post-formats', array( 'video'));
    
    	/* Add Editor Style */
    
    	// add_editor_style();
    
    }
    
    /*= Scripts & Styles
    
     *=============================================================================*/
    
    /**
    
     * Register all scripts and styles we needed
    
     */
    
    add_action('init', 'dp_register_scripts');
    
    function dp_register_scripts() {
    
    	if (is_admin())
    
    		return;
    
    	$protocol = is_ssl() ? 'https' : 'http';
    
    	// Scripts
    
    	wp_register_script('modernizr', get_template_directory_uri().'/js/modernizr.min.js', array('jquery'), '2.6.2');
    
    	wp_register_script('jquery-easing', get_template_directory_uri().'/js/jquery.easing.js', array('jquery'), '1.3', false);
    
    	wp_register_script('jquery-jplayer', get_template_directory_uri() . '/js/jquery.jplayer.min.js', array('jquery'), '2.4.0', false);
    
    	wp_register_script('jquery-carousel', get_template_directory_uri().'/js/jquery.jcarousel.js', array('jquery'), '0.3.0', true);
    
    	wp_register_script('jquery-fitvids', get_template_directory_uri().'/js/jquery.fitvids.js', array('jquery'), '1.0', true);
    
    	wp_register_script('jquery-plugins', get_template_directory_uri().'/js/jquery.plugins.min.js', array('jquery'), '1.4.6', false);
    
    	wp_register_script('theme', get_template_directory_uri().'/js/theme.js', array('jquery'), '1.4.6', true);
    
    }
    
    /**
    
     * Load common scripts. Other scripts we will load them only when needed. 
    
     * If you are a developer and want to find where are load other scripts,
    
     * try to searching 'wp_enqueue_script' function, we use it to load all scripts on admin footer.
    
     */
    
    add_action('wp_enqueue_scripts', 'dp_enqueue_scripts', 10);
    
    function dp_enqueue_scripts() {
    
    	if(is_admin())
    
    		return false;
    
    	$protocol = is_ssl() ? 'https' : 'http';
    
    	/* Load common scripts on all pages */
    
    	wp_enqueue_script('modernizr'); 
    
    	wp_enqueue_script('jquery-plugins');
    
    	wp_enqueue_script('jquery-masonry' );
    
    	wp_enqueue_script('jquery-fitvids' );
    
    	wp_enqueue_script('theme');
    
    	/* Load script with the comment form if it is necessary */
    
    	if( is_singular() && get_option( 'thread_comments' ) ) 
    
    		wp_enqueue_script( 'comment-reply' );
    
    	// Load Styles
    
    	wp_enqueue_style('dp-fonts', $protocol.'://fonts.googleapis.com/css?family=Arimo:400,700|Droid+Serif:400,700|Open+Sans:600,700');
    
    	wp_enqueue_style('dp-style', get_stylesheet_uri(), '', '1.4.3');
    
    	if(get_option('dp_responsive'))
    
    		wp_enqueue_style('dp-responsive', get_stylesheet_directory_uri().'/responsive.css', 'dp-style', '1.4.3');
    
    }
    
    /**
    
     * Embed scripts into the header
    
     *
    
     * We embed scripts to the head usually in order to define variables 
    
     * or these scripts execution in the head rather than in the footer.
    
     */
    
    add_action('wp_head', 'dp_head_scripts', 0);
    
    function dp_head_scripts() { 
    
    ?>
    
    <script type="text/javascript">
    
    var ajaxurl = '<?php echo admin_url('ajax.php'); ?>',
    
    	theme_ajaxurl = '<?php echo get_template_directory_uri().'/ajax.php'; ?>',
    
    	ajaxerror = "<?php echo wp_kses_stripslashes(__("Something\'s error. Please try again later!", 'dp')); ?>";
    
    </script>
    
    <?php }
    
    /**
    
     * Prepare scripts for ajax calls when needed
    
     *
    
     * @since 1.4
    
     */
    
    add_action('the_post', 'dp_prepare_scripts', 10);
    
    function dp_prepare_scripts($query) {
    
    	if(is_admin())
    
    		return false;
    
    	global $post;
    
    	$code = trim(get_post_meta($post->ID, 'dp_video_code', true));
    
    	if(has_shortcode($code, 'jplayer'))
    
    		wp_enqueue_script('jquery-jplayer');
    
    	$library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );	
    
    	if(has_shortcode($code, 'video') && 'mediaelement' === $library && did_action( 'init' ) ) {
    
    		wp_enqueue_style( 'wp-mediaelement' );
    
    		wp_enqueue_script( 'wp-mediaelement' );
    
    	}
    
    }
    
    /**
    
     * Get post views by 'WP Postviews' plugin
    
     */
    
    function dp_get_post_views($post_id = '') {
    
    	global $post;
    
    	if(!$post_id)
    
    		$post_id = $post->ID;
    
    	$views = get_post_meta($post_id, 'views', true);
    
    	$views = absint($views);
    
    	//$views = number_format_i18n($views);
    
    	$views = short_number($views);
    
    	return $views;
    
    }
    
    /*= Custom Hacks
    
     *=====================================================================*/
    
    /**
    
     * Change the labels of WordPress built-in post type 'post'
    
     * to custom labels based on user's settings.
    
     */
    
    function dp_post_object_labels() {
    
    	$custom_labels = get_option('dp_post_labels');
    
    	if(!empty($custom_labels)) {
    
    		global $wp_post_types;
    
    		$labels = &$wp_post_types['post']->labels;
    
    		foreach($custom_labels as $key => $label) {
    
    			if(!empty($label))
    
    				$labels->$key = $label;
    
    		}
    
    	}
    
    }
    
    function dp_post_menu_labels() {
    
    	global $menu;
    
    	global $submenu;
    
    	$custom_labels = get_option('dp_post_labels');
    
    	if(!empty($custom_labels['menu_name'])) {
    
    		$menu[5][0] = $custom_labels['menu_name'];
    
    		$submenu['edit.php'][5][0] = $custom_labels['menu_name'];
    
    	}
    
    	if(!empty($custom_labels['add_new']))
    
    		$submenu['edit.php'][10][0] = $custom_labels['add_new'];
    
    }
    
    if(get_option('dp_post_labels_status')) {
    
    	add_action( 'init', 'dp_post_object_labels' );
    
    	add_action( 'admin_menu', 'dp_post_menu_labels' );
    
    }
    
    /** 
    
     * Custom Gravatar 
    
     */
    
    add_filter( 'avatar_defaults', 'dp_custom_gravatar' );
    
    function dp_custom_gravatar( $avatar_defaults ) {
    
        $avatar = get_template_directory_uri() . '/images/gravatar.png';
    
        $avatar_defaults[$avatar] = 'Custom Gravatar (/images/gravatar.png)';
    
        return $avatar_defaults;
    
    }
    
    /**
    
     * Custom RSS Feed Link 
    
     */
    
    add_filter('feed_link', 'dp_custom_feed_link', 10, 2);
    
    function dp_custom_feed_link($output, $feed) {
    
    	if($url = get_option('dp_rss_url'))
    
    		return $url;
    
    	return $output;
    
    }
    
    /** 
    
     * Custom Login Page 
    
     */
    
    add_filter('login_headerurl', 'dp_login_url');
    
    add_filter('login_headertitle', 'dp_login_title');
    
    add_action('login_head', 'dp_login_logo');
    
    function dp_login_url() {
    
    	return home_url();
    
    }
    
    function dp_login_title() {
    
    	return get_bloginfo('name');
    
    }
    
    function dp_login_logo() {
    
    	if($login_logo = get_option('dp_login_logo')) {
    
    		echo '<style type="text/css">
    
    			.login h1 a{background-image:url('.$login_logo.') !important;}
    
    		</style>';
    
    	}
    
    }
    
    /** 
    
     * Custom User Contact Methods
    
     */
    
    add_filter( 'user_contactmethods', 'dp_custom_user_contactmethods');
    
    function dp_custom_user_contactmethods($methods) {
    
    	// Add custom contact methods
    
    	$new_methods = array(
    
    		'twitter' => __('Twitter', 'dp'),
    
    		'facebook' => __('Facebook', 'dp'),
    
    		'location' => __('Location', 'dp')
    
    	);
    
    	return $new_methods + $methods;
    
    }
    
    // Get queried user id
    
    function dp_get_queried_user_id() {
    
    	global $authordata;
    
    	if(isset( $authordata->ID )){
    
    		$user_id = $authordata->ID;
    
    	} else {
    
    		$user = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
    
    		$user_id = $user->ID;
    
    	}
    
    	return $user_id;
    
    }
    
    // Add Public Variables
    
    add_filter('query_vars', 'dp_custom_query_vars');
    
    function dp_custom_query_vars($query_vars) {
    
    	$query_vars[] = 'filter';
    
    	$query_vars[] = 'views_timing';
    
    	return $query_vars;
    
    }
    
    /**
    
     * Reset and parse query args based passed $args
    
     *
    
     * @since deTube 1.0
    
     */
    
    function dp_parse_query_args($args) {
    
    	$defaults = array(
    
    		'post_type' => 'post',
    
    		'ignore_sticky_posts' => true,
    
    		'orderby' => 'date',
    
    		'order' => 'desc',
    
    		'cat' => '',
    
    		'tax_query' => '',
    
    		'taxonomies' => array(),
    
    		'meta_key' => '',
    
    		'post__in' => '',
    
    		'current_cat' => '',
    
    		'current_author' => ''
    
    	);
    
    	$args = wp_parse_args($args, $defaults);
    
    	// extract($args);
    
    	// Set post_type
    
    	if($args['post_type']=='all') {
    
    		$post_types = get_post_types(array('public'=>true), 'names');
    
    		unset($post_types['page']);
    
    		unset($post_types['attachment']);
    
    		$args['post_type'] = $post_types;
    
    	}
    
    	// Set post__in, ignore other arguments and return
    
    	if(!empty($args['post__in']) && !is_array($args['post__in'])) {
    
    		$args['post__in'] = explode(',', $args['post__in']);
    
    		return $args; 
    
    	}
    
    	// Set tax_query
    
    	$taxes = array_filter($args['taxonomies']);
    
    	if(!empty($taxes)) {
    
    		foreach($taxes as $tax=>$terms) {
    
    			$args['tax_query']['relation'] = 'AND';
    
    			if($tax=='post_format' && ($terms=='-1' || $terms=='standard')) {
    
    				$post_formats = get_theme_support('post-formats');
    
    				$terms = array();
    
    				foreach ($post_formats[0] as $format) {
    
    					$terms[] = 'post-format-'.$format;
    
    				}
    
    				$args['tax_query'][] = array(
    
    					'taxonomy' => $tax,
    
    					'field' => 'slug',
    
    					'terms' => $terms,
    
    					'operator' => 'NOT IN'
    
    				);
    
    			} elseif($tax == 'post_tag') {
    
    				if(!is_array($terms))
    
    					$terms = explode(',', trim($terms));
    
    				$args['tax_query'][] = array(
    
    					'taxonomy' => $tax,
    
    					'field' => 'slug',
    
    					'terms' => $terms,
    
    					'operator' => 'IN'
    
    				);
    
    			} else {
    
    				$args['tax_query'][] = array(
    
    					'taxonomy' => $tax,
    
    					'field' => 'id',
    
    					'terms' => (array)$terms,
    
    					'operator' => 'IN'
    
    				);
    
    			}
    
    		}
    
    	}
    
    	// Set 'author' to current author id on author archive page if 'current_author' is true
    
    	if(!empty($args['current_author']) && is_author())
    
    		$args['author'] = dp_get_queried_user_id();
    
    	// Set 'cat' to current cat id on category archive page if 'current_cat' is true
    
    	if(!empty($args['current_cat']) && is_category())
    
    		$args['cat'] = get_queried_object_id();
    
    	return $args;
    
    }
    
    // Filter to "pre_get_posts" to change query vars
    
    add_action( 'pre_get_posts', 'dp_custom_get_posts' );
    
    function dp_custom_get_posts( $query ) {
    
    	if(is_admin())
    
    		return;
    
    	$orderby = $query->get('orderby');
    
    	$order = $query->get('order');
    
    	// If no 'orderby' specified, get first sort type from selected sort types
    
    	$selected_sort_types = dp_selected_sort_types();
    
    	if(is_main_query() && !empty($selected_sort_types) && empty($orderby)) {
    
    		$_sort_types = array_keys($selected_sort_types);
    
    		$orderby = $_sort_types[0];
    
    		$query->set('orderby', $orderby);
    
    	}
    
    	// Reset query vars based orderby parameter
    
    	if($orderby == 'comments') {
    
    		$query->set('orderby', 'comment_count');
    
    	} 
    
    	elseif($orderby == 'views') {	
    
    		$query->set('orderby', 'meta_value_num');
    
    		$query->set('meta_key', 'views');
    
    		// The arguments for BAW Post Views Count plugin
    
    		if(function_exists('baw_pvc_main')) {
    
    			global $timings;
    
    			$views_timing = $query->get('views_timing') ? $query->get('views_timing') : 'all';
    
    			$date = $views_timing == 'all' ? '' : '-'. date( $timings[$views_timing] );
    
    			$meta_key = apply_filters( 'baw_count_views_meta_key', '_count-views_' . $views_timing . $date, $views_timing, $date );
    
    			$query->set('meta_key', $meta_key);
    
    		}
    
    	} 
    
    	elseif($orderby == 'likes') {	
    
    		$query->set('orderby', 'meta_value_num');
    
    		$query->set('meta_key', 'likes');
    
    	} 
    
    	elseif($orderby == 'title' && !$order) {
    
    		// If order by title, and no order specified, set "ASC" as default order.
    
    		$query->set('order', 'ASC');
    
    	}
    
    	// Only display posts on search results page
    
    	if (is_search() && $query->is_main_query())
    
    		$query->set('post_type', 'post');
    
    	// Make tax_query support "post-format-standard"
    
    	$tax_query = $query->get('tax_query');
    
    	if(!empty($tax_query)) {
    
    		foreach($tax_query as $index => $single_tax_query) {
    
    			if(empty($single_tax_query['terms']))
    
    				continue;
    
    			$in_post_formats = (array)$single_tax_query['terms'];
    
    			if($single_tax_query['taxonomy'] == 'post_format'
    
    			&& $single_tax_query['field'] == 'slug'
    
    			&& in_array('post-format-standard', $in_post_formats)) {
    
    				// Get reverse operator
    
    				$reverse_operator = 'IN';
    
    				if(empty($single_tax_query['operator']) || $single_tax_query['operator'] == 'IN')
    
    					$reverse_operator = 'NOT IN';
    
    				elseif($single_tax_query['operator'] == 'AND')
    
    					break;
    
    				// Get "not in post formats"
    
    				$post_formats = get_theme_support('post-formats');
    
    				$all_post_formats = array();
    
    				if(is_array( $post_formats[0])) {
    
    					$all_post_formats = array();
    
    					foreach($post_formats[0] as $post_format)
    
    						$all_post_formats[] = 'post-format-'.$post_format;
    
    				}
    
    				$not_in_post_formats = array_diff($all_post_formats, $in_post_formats);
    
    				// Reset post_format in tax_query
    
    				$query->query_vars['tax_query'][$index] = array(
    
    					'taxonomy' => 'post_format',
    
    					'field' => 'slug',
    
    					'terms' => $not_in_post_formats,
    
    					'operator' => $reverse_operator
    
    				);
    
    			}
    
    		}
    
    	}
    
    	return $query;
    
    }
    
    /* Filters that allow shortcodes in Text Widgets */
    
    add_filter('widget_text', 'shortcode_unautop');
    
    add_filter('widget_text', 'do_shortcode');
    
    /* Enable oEmbed in Text/HTML Widgets */
    
    add_filter( 'widget_text', array( $wp_embed, 'run_shortcode' ), 8 );
    
    add_filter( 'widget_text', array( $wp_embed, 'autoembed'), 8 );
    
    /* Filters that allow shortcodes in term description */
    
    add_filter( 'term_description', 'do_shortcode' );
    
    /*= Custom Coding Ready
    
     *=============================================================================*/
    
    /**
    
     * Add Custom Head Code
    
     * 
    
     * @since 1.0
    
     */
    
    add_action('wp_head', 'dp_custom_head_code', 999);
    
    function dp_custom_head_code() {
    
    	$code = get_option('dp_head_code');
    
    	if($code)
    
    		echo stripslashes($code);
    
    }
    
    /** 
    
     * Add Custom Footer Code
    
     *
    
     * @since 1.0
    
     */
    
    add_action('wp_footer', 'dp_custom_footer_code', 999);
    
    function dp_custom_footer_code() {
    
    	$code = get_option('dp_footer_code');
    
    	if($code)
    
    		echo stripslashes($code);
    
    }
    
    /*= Template Functions
    
     *=============================================================================*/
    
    /**
    
     * Creates a nicely formatted and more specific title element text for output
    
     * in head of document, based on current view.
    
     *
    
     * @since deTube 1.4
    
     *
    
     * @param string $title Default title text for current view.
    
     * @param string $sep Optional separator.
    
     * @return string Filtered title.
    
     */
    
    function dp_doc_title( $title, $sep ) {
    
    	global $paged, $page;
    
    	if ( is_feed() )
    
    		return $title;
    
    	// Add the site name.
    
    	$title .= get_bloginfo( 'name' );
    
    	// Add the site description for the home/front page.
    
    	$site_description = get_bloginfo( 'description', 'display' );
    
    	if ( $site_description && ( is_home() || is_front_page() ) )
    
    		$title = "$title $sep $site_description";
    
    	// Add a page number if necessary.
    
    	if ( $paged >= 2 || $page >= 2 )
    
    		$title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );
    
    	return $title;
    
    }
    
    add_filter( 'wp_title', 'dp_doc_title', 10, 2 ); 
    
    /**
    
     * Get page description
    
     *
    
     * @since 1.2.3
    
     */
    
    function dp_get_doc_desc() {
    
    	$description = '';
    
    	if (is_home()) {
    
    		$description = get_bloginfo( 'description' );
    
    	}
    
    	elseif (is_singular()) {
    
    		if (is_front_page())
    
    			$description = get_bloginfo( 'description' );
    
    		else {
    
    			$description = get_post_field( 'post_excerpt', get_queried_object_id() );
    
    			if(empty($description) && function_exists('mb_strimwidth')) {
    
    				$content = get_post_field( 'post_content', get_queried_object_id() );
    
    				$content = strip_shortcodes($content);
    
    				$content = strip_tags($content);
    
    				$description = mb_strimwidth($content, 0, 200, '');
    
    			}
    
    		}
    
    	}
    
    	elseif ( is_archive() ) {
    
    		if ( is_author() ) {
    
    			$description = get_the_author_meta( 'description', get_query_var( 'author' ) );
    
    		}
    
    		elseif ( is_category() || is_tag() || is_tax() )
    
    			$description = term_description( '', get_query_var( 'taxonomy' ) );
    
    		elseif ( is_post_type_archive() ) {
    
    			$post_type = get_post_type_object( get_query_var( 'post_type' ) );
    
    			if ( isset( $post_type->description ) )
    
    				$description = $post_type->description;
    
    		}
    
    	}
    
    	return apply_filters( 'dp_get_doc_desc', $description );
    
    }
    
    /**
    
     * Meta description
    
     */
    
    function dp_meta_description() {
    
    	$description = dp_get_doc_desc();
    
    	if ( !empty( $description ) )
    
    		$description = '<meta name="description" content="' . str_replace( array( "\r", "\n", "\t" ), '', esc_attr( strip_tags( $description ) ) ) . '" />' . "\n";
    
    	echo apply_filters( 'dp_meta_description', $description );
    
    }
    
    /**
    
     * Generates meta keywords/tags for the site.
    
     */
    
    function dp_meta_keywords() {
    
    	$keywords = '';
    
    	if ( is_singular() && !is_preview() ) {
    
    		$post = get_queried_object();
    
    		$taxonomies = get_object_taxonomies( $post->post_type );
    
    		if ( is_array( $taxonomies ) ) {
    
    			foreach ( $taxonomies as $tax ) {
    
    				if ( $terms = get_the_term_list( get_queried_object_id(), $tax, '', ', ', '' ) )
    
    					$keywords[] = $terms;
    
    			}
    
    			if ( !empty( $keywords ) )
    
    				$keywords = join( ', ', $keywords );
    
    		}
    
    	}
    
    	if(!empty($keywords))
    
    		$keywords = '<meta name="keywords" content="' . esc_attr( strip_tags( $keywords ) ) . '" />' . "\n";
    
    	echo apply_filters( 'dp_meta_keywords', $keywords );
    
    } 
    
    /**
    
     * Get Video Thumbnail URL
    
     *
    
     * @param string $size Optional. Image size. Defaults to 'custom-medium';.
    
     */ 
    
    function dp_thumb_url($size = 'custom-medium', $default = '', $post_id = null, $echo = false){
    
    	global $post;
    
    	if(!$post_id)
    
    		$post_id = $post->ID;
    
    	if(!$size)
    
    		$size == 'custom-medium';
    
    	/* Check if this video has a feature image */
    
    	if(has_post_thumbnail() && $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), $size))
    
    		$thumb_url = $thumb[0];
    
    	/* If no feature image, try to get thumbnail by "Video Thumbnails" plugin */
    
    	if(empty($thumb_url) && function_exists('get_video_thumbnail')) {
    
    		$video_thumbnail = get_video_thumbnail($post_id);
    
    		if(!is_wp_error($video_thumbnail))
    
    			$thumb_url = $video_thumbnail;
    
    	}
    
    	/* If this is a video by jplayer, try to get thumbnail from video_posts */
    
    	if(empty($thumb_url) && $poster = get_post_meta($post_id, 'dp_video_poster', true))
    
    		$thumb_url = $poster;
    
    	/* If still no image or is wp error, define default image */
    
    	if(empty($thumb_url) || is_wp_error($thumb_url)) {
    
    		if($default === false || $default === 0)
    
    			return false;
    
    		$thumb_url = !empty($default) ? $default : get_template_directory_uri().'/images/nothumb.png';
    
    	}
    
    	if($echo)
    
    		echo $thumb_url;
    
    	else
    
    		return $thumb_url;
    
    } 
    
    /**
    
     * Display Video Thumbnail HTML
    
     *
    
     * @param int $size Optional. Image size. Defaults to 'custom-medium';.
    
     */
    
    function dp_thumb_html($size = 'custom-medium', $default = '', $post_id = null, $echo = true) {
    
    	global $post;
    
    	if(!$post_id)
    
    		$post_id = $post->ID;
    
    	if(!$size)
    
    		$size == 'custom-medium';
    
    	// Get thumb url
    
    	$thumb_url = dp_thumb_url($size, $default, $post_id, false);
    
    	$html = '
    
    	<div class="thumb">
    
    		<a class="clip-link" data-id="'.$post->ID.'" title="'.esc_attr(get_the_title($post_id)).'" href="'.get_permalink($post_id).'">
    
    			<span class="clip">
    
    				<img src="'.$thumb_url.'" width="120" height="170"   alt="'.esc_attr(get_the_title($post_id)).'" /><span class="vertical-align"></span>
    
    			</span>
    
    			<span class="overlay"></span>
    
    		</a>
    
    	</div>';
    
    	if($echo)
    
    		echo $html;
    
    	else
    
    		return $html;
    
    } 
    
    /**
    
     * Display post excerpt
    
     *
    
     * @since 1.2.3
    
     */
    
    function dp_excerpt($length = 220, $echo = true){
    
    	global $post;
    
    	$excerpt = strip_shortcodes($post->post_excerpt);
    
    	if(!$excerpt)
    
    		$excerpt = mb_strimwidth(strip_tags(strip_shortcodes(get_the_content(''))), 0, $length, '...');
    
    	if($echo)
    
    		echo $excerpt;
    
    	else
    
    		return $excerpt;
    
    }
    
    /**
    
     * Output a Section Box
    
     * 
    
     * @since deTube 1.0
    
     */
    
    function dp_section_box($args = array()) {
    
    	$defaults = array(
    
    		'post_type' => 'post',
    
    		'cat' => '',
    
    		'taxonomies' => array(),
    
    		'view' => 'grid-small',
    
    		'title' => '',
    
    		'link' => '',
    
    		'post__in' => '',
    
    		'posts_per_page' => '',
    
    		'hide_if_empty' => false
    
    	);
    
    	$args = wp_parse_args($args, $defaults);
    
    	extract($args);
    
    	$posts_per_page = absint($posts_per_page);
    
    	// Set default posts number if no specified
    
    	if(empty($posts_per_page)) {
    
    		if($view == 'grid-mini')
    
    			$posts_per_page = 8;
    
    		elseif($view == 'grid-small')
    
    			$posts_per_page = 6;
    
    		elseif($view == 'grid-medium')
    
    			$posts_per_page = 4;
    
    		elseif($view == 'list-small')
    
    			$posts_per_page = 3;
    
    		elseif($view == 'list-medium')
    
    			$posts_per_page = 2;
    
    		elseif($view == 'list-large')
    
    			$posts_per_page = 1;
    
    	}
    
    	$args['posts_per_page'] = $posts_per_page;
    
    	$args = dp_parse_query_args($args);
    
    	$query = new WP_Query($args);
    
    	// Output nothing if there is no posts
    
    	if(!$query->have_posts() && $hide_if_empty)
    
    		return;
    
    	// Output content before section
    
    	if(!empty($before))
    
    		echo '<div class="section-box section-before rich-content">'. do_shortcode(wp_kses_stripslashes($before)).'</div><!-- end .section-box -->';
    
    	// Section box begin
    
    	echo '<div class="section-box">';
    
    	global $section_view;	
    
    	$section_view = $view;
    
    	// Get term name as title
    
    	$term = '';
    
    	$cat = '';
    
    	if(!empty($taxonomies['category'])) 
    
    		$cat = $taxonomies['category'];
    
    	if($cat)
    
    		$term = get_term($cat, 'category');
    
    	if(empty($title) && $term)
    
    		$title = $term->name;
    
    	if(empty($link) && $term)
    
    		$link = get_term_link($term, 'category');
    
    	$title = '<span class="name">'.$title.'</span>';
    
    	// Output section header
    
    	echo '<div class="section-header"><h2 class="section-title">'.$title.'</h2>'.$more.'</div>';
    
    	// Output section content
    
    	echo '<div class="section-content '.$view.'"><div class="nag cf">';
    
    	while ($query->have_posts()) : $query->the_post();
    
    		get_template_part('item-video');
    
    	endwhile;
    
    	wp_reset_postdata();
    
    	echo '</div></div><!-- end .section-content -->';
    
    	// End section box
    
    	echo '</div><!-- end .section-box -->';
    
    	// Output content after section
    
    	if(!empty($after))
    
    		echo '<div class="section-box section-after rich-content">'. do_shortcode(wp_kses_stripslashes($after)).'</div><!-- end .section-box -->';
    
    }
    
    /**
    
     * Output Likes page button
    
     * 
    
     * @since deTube 1.4
    
     */
    
    function dp_likes_page_button() {	
    
    	if(get_option('dp_header_likes') && $likes_page_id = get_option('dp_post_likes_page')) {
    
    		$dp_post_likes = get_option('dp_post_likes');
    
    		$login_required = !empty($dp_post_likes['login_required']) ? true : false;
    
    		if(!is_user_logged_in() && $login_required)
    
    			return false;
    
    		echo '<a class="btn btn-likes btn-red" href="'.get_permalink($likes_page_id).'">'.get_the_title($likes_page_id).'</a>';
    
    	}
    
    }
    
    /**
    
     * Output Account button
    
     * 
    
     * @since deTube 1.4
    
     */
    
    function dp_account_button() { 
    
    	if(!is_user_logged_in() || !get_option('dp_header_account'))
    
    		return;
    
    	$user_id = get_current_user_id();
    
    	$current_user = wp_get_current_user();
    
    	$profile_url = get_author_posts_url($user_id);
    
    	$edit_profile_url  = get_edit_profile_url($user_id);
    
    	$current_url = get_current_url(); ?>
    
    	<div id="account-nav" class="user-nav">
    
    		<a class="dropdown-handle" href="<?php echo $profile_url; ?>">
    
    			<?php echo get_avatar( $user_id, 32 ); ?>
    
    			<span class="display-name btn">
    
    				<span class="arrow-down"><?php echo $current_user->display_name; ?></span> 
    
    				<i class="mini-arrow-down"></i>
    
    			</span>
    
    		</a>
    
    		<div class="dropdown-content">
    
    			<ul class="dropdown-content-inner">
    
    				<li><a class="profile-link" href="<?php echo $profile_url; ?>"><?php _e('Profile', 'dp'); ?></a></li>
    
    				<li><a class="account-link" href="<?php echo $edit_profile_url; ?>"><?php _e('Account', 'dp'); ?></a></li>
    
    				<li><a class="logout-link" href="<?php echo esc_url(wp_logout_url($current_url)); ?>"><?php _e('Log out', 'dp'); ?></a></li>
    
    			</ul>
    
    		</div>
    
    	</div><!-- end #account-nav -->
    
    <?php }
    
    /**
    
     * Output Sign up button
    
     * 
    
     * @since deTube 1.4
    
     */
    
    function dp_signup_button() { 
    
    	if(!is_user_logged_in() && get_option('users_can_register') && get_option('dp_header_signup')) {
    
    		echo '<a class="btn btn-green btn-signup" href="'.site_url('wp-login.php?action=register', 'login').'">'.__('Sign up', 'dp').'</a>';
    
    	}
    
    	return;
    
    }
    
    /**
    
     * Output Log in button
    
     * 
    
     * @since deTube 1.4
    
     */
    
    function dp_login_button() {
    
    	if(is_user_logged_in() || !get_option('dp_header_login'))
    
    		return; ?>
    
    	<div id="login-nav" class="user-nav">
    
    			<div class="dropdown">
    
    				<a class="dropdown-handle btn btn-black btn-login" href="<?php echo wp_login_url(); ?>"><?php _e('Log In', 'dp'); ?></a>
    
    				<div class="dropdown-content"><div class="dropdown-content-inner">
    
    					<?php wp_login_form(); ?>
    
    				</div></div>
    
    			</div>
    
    		</div><!-- end #login-nav -->
    
    <?php }
    
    /**
    
     * Output AddThis Button Code
    
     * 
    
     * @since deTube 1.0
    
     */
    
    function dp_addthis($args = array()) { 
    
    	$defaults = array(
    
    		'post_id' => 0,
    
    		'url' => '',
    
    		'title' => ''
    
    	);
    
    	$args = wp_parse_args($args, $defaults);
    
    	extract($args);
    
    	if(empty($url))
    
    		$url = wp_get_shortlink($post_id, 'post'); 
    
    	if(empty($title) && $post_id)
    
    		$title = get_the_title($post_id);
    
    	?>
    
    	<?php 
    
    		$params = array();
    
    		if($url) 
    
    			$params[] = "addthis:url='".esc_url($url)."'";
    
    		if($title) 
    
    			$params[] = "addthis:title='".esc_attr($title)."'";
    
    	?>
    
    	<div class="addthis_toolbox addthis_default_style" <?php echo implode(' ', $params); ?>>
    
    		<ul>
    
    			<li><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a></li>
    
    			<li><a class="addthis_button_tweet"></a></li>
    
    			<li><a class="addthis_button_google_plusone" g:plusone:size="medium"></a></li>
    
    			<li><a class="addthis_button_pinterest_pinit"></a></li>
    
    			<li><a class="addthis_counter addthis_pill_style"></a></li>
    
    		</ul>
    
    	</div>
    
    <?php } 
    
    // Load AddThis js file in footer once
    
    add_action('wp_footer', 'dp_addthis_js', 1);
    
    function dp_addthis_js() {
    
    	if(!get_option('dp_addthis'))
    
    		return;
    
    	$protocol = is_ssl() ? 'https' : 'http';
    
    	$pubid = get_option('dp_addthis_pubid');
    
    	$file = $protocol.'://s7.addthis.com/js/300/addthis_widget.js';
    
    	$file .= !empty($pubid) ? '#pubid='.$pubid : '';
    
    	wp_enqueue_script('addthis', $file, '', null, true);
    
    }
    
    function dp_post_actions($post_id){ ?>
    
    	<div class="entry-actions">
    
    		<?php dp_like_post($post_id); ?>
    
    		<?php if(get_option('dp_addthis')) { ?>
    
    			<div class="dropdown dp-share">
    
    				<a class="dropdown-handle" href="#"><?php _e('Share', 'dp'); ?></a>
    
    				<div class="dropdown-content">
    
    					<?php dp_addthis(array('post_id'=>$post_id)); ?>
    
    				</div>
    
    		</div>
    
    		<?php } ?>
    
    	</div>
    
    <?php }
    
    /**
    
     * Get post stats(views/comments/likes)
    
     *
    
     * @since deTube 1.0
    
     */
    
    function dp_get_post_stats($pid = '') {
    
    	global $post;
    
    	if(!$pid)
    
    		$pid = $post->ID;
    
    	if(!$pid)
    
    		return;
    
    	$views = sprintf(__('%s <span class="suffix">Views</span>', 'dp'), '<i class="count">'.dp_get_post_views($pid).'</i>');
    
    	$comments = sprintf(__('%s <span class="suffix">Comments</span>', 'dp'), '<i class="count">'.get_comments_number($pid).'</i>');
    
    	$likes = sprintf(__('%s <span class="suffix">Likes</span>', 'dp'), '<i class="count" data-pid="'.$pid.'">'.dp_get_post_likes($pid).'</i>');
    
    	$liked = dp_is_user_liked_post($pid) ? ' liked': '';
    
    	$stats = '<span class="views">'.$views.'</span>';
    
    	$stats .= '<span class="comments">'.$comments.'</span>';
    
    	$stats .= '<span class="dp-post-likes likes'.$liked.'">'.$likes.'</span>';
    
    	return $stats;
    
    }
    
    /**
    
     * Related Posts
    
     *
    
     * @since 1.0
    
     */
    
    function dp_related_posts($args = '') {
    
    	global $post;
    
    	$query_args = array();
    
    	$defaults = array(
    
    		'view' => 'grid-mini',
    
    		'number' => 0,
    
    		'fields' => '' // object, html or leave it blank
    
    	);
    
    	$args = wp_parse_args($args, $defaults);
    
    	extract($args);
    
    	// Only displayed on singular post pages
    
    	if(!is_singular())
    
    		return;
    
    	// Check limited number
    
    	if(!$number)
    
    		return;
    
    	// Check taxonomies
    
    	$taxes = get_post_taxonomies($post->ID);
    
    	if(empty($taxes))
    
    		return;
    
    	$taxes = array_unique(array_merge(array('post_tag', 'category'), $taxes));
    
    	$tax_query = array();
    
    	$in_tax_query_array = array();
    
    	$and_tax_query_array = array();
    
    	foreach($taxes as $tax) {
    
    		if($tax == 'post_format') {
    
    			// Post format
    
    			$post_format = get_post_format($post->ID);
    
    			if(!$post_format) $post_format = 'standard';
    
    			$post_format_query_array = array(
    
    				'taxonomy' => 'post_format',
    
    				'field' => 'slug',
    
    				'terms' => 'post-format-'.$post_format,
    
    				'operator' => 'IN'
    
    			);
    
    			continue;
    
    		}
    
    		$terms = get_the_terms($post->ID, $tax);
    
    		if(empty($terms))
    
    			continue;
    
    		$term_ids = array();
    
    		foreach($terms as $term)
    
    			$term_ids[] = $term->term_id;
    
    		$in_tax_query_array[$tax] = array(
    
    			'taxonomy' => $tax,
    
    			'field' => 'id',
    
    			'terms' => $term_ids,
    
    			'operator' => 'IN'
    
    		);
    
    		$and_tax_query_array[$tax] = array(
    
    			'taxonomy' => $tax,
    
    			'field' => 'id',
    
    			'terms' => $term_ids,
    
    			'operator' => 'AND'
    
    		);
    
    	}
    
    	if(empty($in_tax_query_array) && empty($and_tax_query_array))
    
    		return;		
    
    	$query_args = array(
    
    		'post_type' => get_post_type($post->ID),
    
    		'ignore_sticky_posts' => true, 
    
    		'posts_per_page' => $number
    
    	);
    
    	$current_post_id = $post->ID;
    
    	$found_posts = array();
    
    	// Multiple Taxonomy Query: relation = AND, operator = AND
    
    	$query_args['tax_query'] = $and_tax_query_array;
    
    	$query_args['tax_query'][] = $post_format_query_array;
    
    	$query_args['tax_query']['relation'] = 'AND';
    
    	$query_args['post__not_in'] = array($post->ID);
    
    	$related = new WP_Query($query_args); 
    
    	foreach($related->posts as $post)
    
    		$found_posts[] = $post->ID;
    
    	// Multiple Taxonomy Query: relation = AND, operator = IN
    
    	if(count($found_posts) < $number) {
    
    		$query_args['tax_query'] = $in_tax_query_array;
    
    		$query_args['tax_query'][] = $post_format_query_array;
    
    		$query_args['tax_query']['relation'] = 'AND';
    
    		$query_args['post__not_in'] = array_merge(array($current_post_id), $found_posts);
    
    		$related = new WP_Query($query_args); 
    
    		foreach($related->posts as $post)
    
    			$found_posts[] = $post->ID;
    
    	}
    
    	$post_format_query = array(
    
    		'taxonomy' => 'post_format',
    
    		'field' => 'slug',
    
    		'terms' => get_post_format(),
    
    		'operator' => 'IN'
    
    	);
    
    	// Foreach Each Taxonomy Query: operator = AND
    
    	if(count($found_posts) < $number) {
    
    		foreach($and_tax_query_array as $and_tax_query) {
    
    			$query_args['tax_query'] = array($and_tax_query);
    
    			$query_args['tax_query'][] = $post_format_query_array;
    
    			$query_args['tax_query']['relation'] = 'AND';
    
    			$query_args['post__not_in'] = array_merge(array($current_post_id), $found_posts);
    
    			$related = new WP_Query($query_args);
    
    			foreach($related->posts as $post)
    
    				$found_posts[] = $post->ID;
    
    			if(count($found_posts) > $number)
    
    				break;
    
    		}
    
    	}
    
    	// Foreach Each Taxonomy Query: operator = IN
    
    	if(count($found_posts) < $number) {
    
    		foreach($in_tax_query_array as $in_tax_query) {
    
    			$query_args['tax_query'] = array($in_tax_query);
    
    			$query_args['tax_query'][] = $post_format_query_array;
    
    			$query_args['tax_query']['relation'] = 'AND';
    
    			$query_args['post__not_in'] = array_merge(array($current_post_id), $found_posts);
    
    			$related = new WP_Query($query_args);
    
    			foreach($related->posts as $post)
    
    				$found_posts[] = $post->ID;
    
    			if(count($found_posts) > $number)
    
    				break;
    
    		}
    
    	}
    
    	if(empty($found_posts))
    
    		return;
    
    	$query_args['tax_query'] = '';
    
    	$query_args['post__in'] = $found_posts;
    
    	$related = new WP_Query($query_args);
    
    	if($fields == 'object')
    
    		return $related;
    
    	if(!empty($args['template']) && is_callable($args['template'])) {
    
    		call_user_func($args['template'], $related);
    
    		return;
    
    	}
    
    	?>
    
    	<div class="section-box related-posts">
    
    		<div class="section-header"><h3 class="section-title"><?php _e('You may also like', 'dp') ?></h3></div>
    
    		<div class="section-content <?php echo $view; ?>"><div class="nag cf">
    
    			<?php if( $related->have_posts() ) : while( $related->have_posts() ) : $related->the_post(); 
    
    			global $post;
    
    			global $section_view;
    
    			$section_view = 'grid-mini';
    
    			get_template_part('item-video');
    
    			endwhile; endif; wp_reset_query(); ?>
    
    		</div></div>
    
    	</div><!-- end .related-posts -->
    
    <?php }
    
    /**
    
     * Custom Comment Form
    
     *
    
     * @since 1.0
    
     */
    
    function dp_comment_form( $args = array(), $post_id = null ) {
    
    	global $id;
    
    	if ( null === $post_id )
    
    		$post_id = $id;
    
    	else
    
    		$id = $post_id;
    
    	$commenter = wp_get_current_commenter();
    
    	$user = wp_get_current_user();
    
    	$user_identity = ! empty( $user->ID ) ? $user->display_name : '';
    
    	$req = get_option( 'require_name_email' );
    
    	$aria_req = ( $req ? " aria-required='true'" : '' );
    
    	$fields =  array(
    
    		'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name', 'dp' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
    
    		            '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
    
    		'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email', 'dp' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) .
    
    		            '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
    
    		'url'    => '<p class="comment-form-url"><label for="url">' . __( 'Website', 'dp' ) . '</label>' .
    
    		            '<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
    
    	);
    
    	$required_text = sprintf( ' ' . __('Required fields are marked %s', 'dp'), '<span class="required">*</span>' );
    
    	$defaults = array(
    
    		'fields'               => apply_filters( 'comment_form_default_fields', $fields ),
    
    		'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun', 'dp') . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
    
    		'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="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'dp' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
    
    		'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.', 'dp' ) . ( $req ? $required_text : '' ) . '</p>',
    
    		'comment_notes_after'  => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s', 'dp' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
    
    		'id_form'              => 'commentform',
    
    		'id_submit'            => 'submit',
    
    		'title_reply'          => __( 'Leave a Reply', 'dp' ),
    
    		'title_reply_to'       => __( 'Leave a Reply to %s', 'dp' ),
    
    		'cancel_reply_link'    => __( 'Cancel reply', 'dp' ),
    
    		'label_submit'         => __( 'Post Comment', 'dp' ),
    
    	);
    
    	$args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
    
    	?>
    
    		<?php if ( comments_open() ) : ?>
    
    			<?php do_action( 'comment_form_before' ); ?>
    
    			<div id="respond" class="cf">
    
    				<div  class="section-header"><h3 id="reply-title" class="section-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3></div>
    
    				<?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) : ?>
    
    					<?php echo $args['must_log_in']; ?>
    
    					<?php do_action( 'comment_form_must_log_in_after' ); ?>
    
    				<?php else : ?>
    
    					<form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
    
    						<?php do_action( 'comment_form_top' ); ?>
    
    						<?php if ( is_user_logged_in() ) : ?>
    
    							<?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>
    
    							<?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?>
    
    						<?php else : ?>
    
    							<?php echo $args['comment_notes_before']; ?>
    
    							<?php
    
    							do_action( 'comment_form_before_fields' );
    
    							foreach ( (array) $args['fields'] as $name => $field ) {
    
    								echo apply_filters( "comment_form_field_{$name}", $field ) . "\n";
    
    							}
    
    							do_action( 'comment_form_after_fields' );
    
    							?>
    
    						<?php endif; ?>
    
    						<?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?>
    
    						<?php echo $args['comment_notes_after']; ?>
    
    						<p class="form-submit">
    
    							<input name="submit" class="btn btn-black" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    
    							<?php comment_id_fields( $post_id ); ?>
    
    						</p>
    
    						<?php do_action( 'comment_form', $post_id ); ?>
    
    					</form>
    
    				<?php endif; ?>
    
    			</div><!-- #respond -->
    
    			<?php do_action( 'comment_form_after' ); ?>
    
    		<?php else : ?>
    
    			<?php do_action( 'comment_form_comments_closed' ); ?>
    
    		<?php endif; ?>
    
    	<?php
    
    } 
    
    /**
    
     * Custom Comment Callback
    
     *
    
     * @since 1.0
    
     */
    
    function dp_comment_callback( $comment, $args, $depth ) {
    
    	$GLOBALS['comment'] = $comment;
    
    ?>
    
    	<li <?php comment_class('cf'); ?> id="comment-<?php comment_ID() ?>">
    
    		<div id="comment-div-<?php comment_ID() ?>" class="comment-div cf">
    
    		<div class="comment-inner">
    
    			<?php if ($args['avatar_size'] != 0) echo '<div class="comment-avatar">'.get_avatar( $comment, $args['avatar_size'] ).'</div>'; ?>
    
    			<div class="comment-meta">
    
    				<span class="comment-author"><?php printf(__('<cite class="fn">%s</cite>', 'dp'), get_comment_author_link()) ?></span>
    
    				<a class="comment-time" href="<?php echo '#comment-'.$comment->comment_ID; ?>"><?php printf(__('%s ago', 'dp'), relative_time(get_comment_time('U', true))); ?></a>
    
    				<?php edit_comment_link(__('Edit', 'dp'),' <span class="sep">/</span> ','' ); ?>
    
    			</div>
    
    			<div class="comment-content">
    
    				<?php if ($comment->comment_approved == '0') : ?>
    
    					<p class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'dp') ?></p>
    
    				<?php endif; ?>
    
    				<?php comment_text(); ?>
    
    			</div>
    
    			<div class="comment-actions">
    
    				<?php comment_reply_link(array_merge( $args, array('add_below' => 'comment-div', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
    
    			</div>
    
    		</div>
    
    		</div><!-- end .comment-div -->
    
    <?php }
    
    /**
    
     * Custom Ping callback
    
     *
    
     * @since deTube 1.0
    
     */
    
    function dp_ping_callback($comment, $args, $depth ) { ?>
    
    	<li id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
    
    		<?php comment_author_link(); ?> <span class="meta"><?php comment_date(); ?></span>
    
    <?php 
    
    }
    
    /* Add 'Lost password' link to loginform */
    
    add_filter('login_form_middle', 'lost_password', 10, 2);
    
    function lost_password($html, $args) {
    
    	return '<a class="lost-password" href="'.esc_url( wp_lostpassword_url() ).'">'.__('Lost password?', 'dp').'</a>';
    
    }
    
    /**
    
     * Get views timings
    
     */
    
    function dp_views_timings() {
    
    	$views_timings = array( 
    
    		'all' => __( 'All', 'dp' ),
    
    		'day' => __( 'Day', 'dp' ),
    
    		'week' => __( 'Week', 'dp' ),
    
    		'month' => __( 'Month', 'dp' ), 
    
    		'year' => __( 'Year', 'dp' )
    
    	);
    
    	return $views_timings;
    
    }
    
    /**
    
     * Get supported sort types
    
     */
    
    function dp_supported_sort_types() {
    
    	$types = array(
    
    		'date' => array(
    
    			'label' => __('Date', 'dp'),
    
    			'title' => __('Sort by Date', 'dp')
    
    		),
    
    		'title' => array(
    
    			'label' => __('Title', 'dp'),
    
    			'title' => __('Sort by Title', 'dp')
    
    		),
    
    		'views' => array(
    
    			'label' => __('Views', 'dp'),
    
    			'title' => __('Sort by Views', 'dp')
    
    		),
    
    		'likes' => array(
    
    			'label' => __('Likes', 'dp'),
    
    			'title' => __('Sort by Likes', 'dp')
    
    		),
    
    		'comments' => array(
    
    			'label' => __('Comments', 'dp'),
    
    			'title' => __('Sort by Comments', 'dp')
    
    		),
    
    		'rand' => array(
    
    			'label' => __('Random', 'dp'),
    
    			'title' => __('Sort Randomly', 'dp')
    
    		)
    
    	);
    
    	return apply_filters('dp_supported_sort_types', $types);
    
    }
    
    /**
    
     * Get selected sort types
    
     */
    
    function dp_selected_sort_types() {
    
    	$selected_types = get_option('dp_sort_types');
    
    	if(empty($selected_types))
    
    		return array();
    
    	$supported_types = dp_supported_sort_types();
    
    	foreach($selected_types as $key => $value)
    
    		$selected_types[$key] = $supported_types[$key];
    
    	return apply_filters('dp_selected_sort_types', $selected_types);
    
    }
    
    /**
    
     * Get supported vie
    • Hola,

      Tengo montada una tienda en woocommerce y cuado me realizan un pedido, no me envia el mail de orden.

      Los Pedidos me aparecen como pendientes sin posibilidad de cambiarlos, si renenvio desde la pagina de woocomerce el pedido si me llega… alguien puede ayudarme?

    • buenos días y muchas gracias de antemano, hace unos días que llevo una tienda online de venta de camisetas solidarias, el problema que tengo es que al realizar un pedido, el email no llega al administrador de la tienda y si al cliente, pero el pago si que le llega al administrador a través de paypal, antes de que yo me hiciera cargo funcionaba perfecto y yo solo añadí 4 artículos a la tienda online y cambie la contraseña para que el anterior administrador no pudiera entrar, podéis decirme donde puede estar el error?? no entiendo mucho ya que nunca había trabajado con wordpress y ahora me hago cargo de las dos webs de esta familia

      muchas gracias

    • buenos días y muchas gracias de antemano, hace unos días que llevo una tienda online de venta de camisetas solidarias, el problema que tengo es que al realizar un pedido, el email no llega al administrador de la tienda y si al cliente, pero el pago si que le llega al administrador a través de paypal, antes de que yo me hiciera cargo funcionaba perfecto y yo solo añadí 4 artículos a la tienda online y cambie la contraseña para que el anterior administrador no pudiera entrar, podéis decirme donde puede estar el error?? no entiendo mucho ya que nunca había trabajado con wordpress y ahora me hago cargo de las dos webs de esta familia

      muchas gracias

    /*
    Theme Name: Vantage
    Author: SiteOrigin
    Author URI: http://siteorigin.com/
    Theme URI: http://siteorigin.com/theme/vantage/
    Description: Vantage is a flexible multipurpose theme. It's strength lies in its tight integration with some powerful plugins like Page Builder for responsive page layouts, MetaSlider for big beautiful sliders and WooCommerce to help you sell online. Vantage is fully responsive and retina ready. Use it to start a business site, portfolio or online store.
    Version: 1.0.11
    License: GNU General Public License 2.0
    License URI: license.txt
    Tags: flexible-width, custom-background, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, black, white, light, one-column, two-columns, full-width-template
    */
    
    /* =Reset
    -------------------------------------------------------------- */
    
    html,
    body,
    div,
    span,
    applet,
    object,
    iframe,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    blockquote,
    pre,
    a,
    abbr,
    acronym,
    address,
    big,
    cite,
    code,
    del,
    dfn,
    em,
    font,
    ins,
    kbd,
    q,
    s,
    samp,
    small,
    strike,
    strong,
    sub,
    sup,
    tt,
    var,
    dl,
    dt,
    dd,
    ol,
    ul,
    li,
    fieldset,
    form,
    label,
    legend,
    table,
    caption,
    tbody,
    tfoot,
    thead,
    tr,
    th,
    td {
    	border: 0;
    	font-family: inherit;
    	font-size: 100%;
    	font-style: inherit;
    	font-weight: inherit;
    	margin: 0;
    	outline: 0;
    	padding: 0;
    	vertical-align: baseline;
    }
    
    html {
    	font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
    	overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
    	-webkit-text-size-adjust: 100%; /* Keeps page centred in all browsers regardless of content height */
    	-ms-text-size-adjust: 100%; /* Keeps page centred in all browsers regardless of content height */
    }
    
    body {
    	background: #fff;
    }
    
    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    nav,
    section {
    	display: block;
    }
    
    ol,
    ul {
    	list-style: none;
    }
    
    table {
    	border-collapse: separate; /* tables still need 'cellspacing="0"' in the markup */
    	border-spacing: 0;
    }
    
    caption,
    th,
    td {
    	font-weight: normal;
    	text-align: left;
    }
    
    blockquote:before,
    blockquote:after,
    q:before,
    q:after {
    	content: "";
    }
    
    blockquote,
    q {
    	quotes: "" "";
    }
    
    a:focus {
    	outline: thin dotted;
    }
    
    a:hover,
    a:active {
    	outline: 0; /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
    }
    
    a img {
    	border: 0;
    }
    
    /* =Global
    ----------------------------------------------- */
    
    /* Consistent fonts across all elements */
    
    body,
    button,
    input,
    select,
    textarea {
    	color: #333;
    	font-family: "Helvetica Neue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    	font-size: 13px;
    	line-height: 1.5;
    	word-wrap: break-word;
    }
    
    /* Links */
    
    a {
    	color: #8E4603;
    }
    
    a:hover,
    a:focus,
    a:active {
    	color: #f47e3c;
    }
    
    /* Headings and Rulers */
    
    hr {
    	height: 1px;
    
    	background-color: #ccc;
    	border: 0;
    	margin-bottom: 1em;
    }
    
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
    	clear: both;
    }
    
    /* Text elements */
    
    p {
    	margin-bottom: 1.5em;
    }
    
    ul,
    ol {
    	margin: 0 0 1.5em 3em;
    }
    
    ul {
    	list-style: disc;
    }
    
    ol {
    	list-style: decimal;
    }
    
    ul ul,
    ol ol,
    ul ol,
    ol ul {
    	margin-bottom: 0;
    	margin-left: 1.5em;
    }
    
    dt {
    	font-weight: bold;
    }
    
    dd {
    	margin: 0 1.5em 1.5em;
    }
    
    b,
    strong {
    	font-weight: bold;
    }
    
    dfn,
    cite,
    em,
    i {
    	font-style: italic;
    }
    
    blockquote {
    	margin: 0 1.5em;
    }
    
    address {
    	margin: 0 0 1.5em;
    }
    
    pre {
    	background: #eee;
    	font-family: "Courier 10 Pitch", Courier, monospace;
    	line-height: 1.6;
    	margin-bottom: 1.6em;
    	max-width: 100%;
    	overflow: auto;
    	padding: 1.6em;
    }
    
    code,
    kbd,
    tt,
    var {
    	font-family: "Courier New", Courier, mono;
    }
    
    abbr,
    acronym {
    	border-bottom: 1px dotted #666;
    	cursor: help;
    }
    
    mark,
    ins {
    	background: #fff9c0;
    	text-decoration: none;
    }
    
    sup,
    sub {
    	position: relative;
    	height: 0;
    
    	font-size: 75%;
    	line-height: 0;
    	vertical-align: baseline;
    }
    
    sup {
    	bottom: 1ex;
    
    }
    
    sub {
    	top: .5ex;
    
    }
    
    small {
    	font-size: 75%;
    }
    
    big {
    	font-size: 125%;
    }
    
    figure {
    	margin: 0;
    }
    
    table {
    	width: 100%;
    
    	margin: 0 0 1.5em 0;
    }
    
    th {
    	font-weight: bold;
    }
    
    button,
    input,
    select,
    textarea {
    	*vertical-align: middle;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	font-size: 100%; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
    	margin: 0; /* Improves appearance and consistency in all browsers */
    	vertical-align: baseline;
    }
    
    button,
    input {
    	*overflow: visible;
    	line-height: normal; /* Corrects inner spacing displayed oddly in IE6/7 */
    }
    
    button,
    html input[type="button"],
    input[type="reset"],
    input[type="submit"] {
    	width: auto;
    
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dfdfdf), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #dfdfdf, #ffffff);
    	background: -moz-linear-gradient(center bottom, #dfdfdf 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #dfdfdf);
    	border-bottom: solid 1px #9f9f9f;
    	border-left: solid 1px #c3c3c3;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	border-right: solid 1px #c3c3c3;
    	border-top: solid 1px #d2d2d2;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	color: #646464;
    	cursor: pointer; /* Corrects inability to style clickable 'input' types in iOS */
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf', GradientType=0);
    	font-size: 12px;
    	font-weight: bold;
    	line-height: 1;
    	padding: 12px 20px;
    	text-decoration: none; /* Improves usability and consistency of cursor style between image-type 'input' and others */
    	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    	-webkit-appearance: button;
    }
    
    button:hover,
    html input[type="button"]:hover,
    input[type="reset"]:hover,
    input[type="submit"]:hover {
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ebebeb), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #ebebeb, #ffffff);
    	background: -moz-linear-gradient(center bottom, #ebebeb 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #ebebeb);
    	border-bottom: solid 1px #a8a8a8;
    	border-left: solid 1px #cfcfcf;
    	border-right: solid 1px #cfcfcf;
    	border-top: solid 1px #dadada; /* Button hover style */
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ebebeb', GradientType=0);
    }
    
    button:focus,
    html input[type="button"]:focus,
    input[type="reset"]:focus,
    input[type="submit"]:focus,
    button:active,
    html input[type="button"]:active,
    input[type="reset"]:active,
    input[type="submit"]:active {
    	border-bottom: solid 1px #bbbbbb;
    	border-left: solid 1px #bbbbbb;
    	border-right: solid 1px #bbbbbb;
    	border-top: solid 1px #aaaaaa; /* Button click style */
    	-webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
    	-moz-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
    	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
    }
    
    input[type="checkbox"],
    input[type="radio"] {
    	-ms-box-sizing: border-box; /* Addresses excess padding in IE8/9 */
    	-moz-box-sizing: border-box; /* Addresses excess padding in IE8/9 */
    	-webkit-box-sizing: border-box; /* Addresses excess padding in IE8/9 */
    	box-sizing: border-box;
    	padding: 0; /* Addresses excess padding in IE8/9 */
    }
    
    input[type="search"] {
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	-webkit-appearance: textfield;
    }
    
    input[type="search"]::-webkit-search-decoration {
    	-webkit-appearance: none; /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
    }
    
    button::-moz-focus-inner,
    input::-moz-focus-inner {
    	border: 0; /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
    	padding: 0;
    }
    
    input[type=text],
    input[type=email],
    input[type=password],
    textarea {
    	border: 1px solid #ccc;
    	border-radius: 3px;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	color: #666;
    }
    
    input[type=text]:focus,
    input[type=email]:focus,
    input[type=password]:focus,
    textarea:focus {
    	color: #111;
    }
    
    input[type=text],
    input[type=email],
    input[type=password] {
    	padding: 3px;
    }
    
    textarea {
    	overflow: auto; /* Improves readability and alignment in all browsers */
    	vertical-align: top;
    }
    
    /* Alignment */
    
    .alignleft {
    	display: inline;
    	float: left;
    	margin-right: 1.5em;
    }
    
    .alignright {
    	display: inline;
    	float: right;
    	margin-left: 1.5em;
    }
    
    .aligncenter {
    	clear: both;
    	display: block;
    	margin: 0 auto;
    }
    
    /* Text meant only for screen readers */
    
    .assistive-text {
    	position: absolute !important;
    
    	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    	clip: rect(1px, 1px, 1px, 1px);
    }
    
    .page-links {
    	clear: both;
    }
    
    #site-title a {
    	color: inherit;
    }
    
    body {
    	background: #dadada;
    }
    
    /* =General Layout
    ----------------------------------------------- */
    
    #page-wrapper {
    	width: 1080px;
    
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	margin: 0 auto;
    	padding-top: 20px;
    }
    
    .layout-full #page-wrapper {
    	width: 100%;
    
    	margin: 0;
    	overflow: hidden;
    	padding: 0;
    }
    
    .layout-full #page-wrapper .full-container {
    	position: relative;
    
    	margin-left: auto;
    	margin-right: auto;
    	max-width: 1080px;
    }
    
    @media (max-width: 1080px) {
    
    	.responsive.layout-boxed #page-wrapper {
    		margin: 0;
    		padding: 0;
    	}
    
    	.responsive.layout-boxed #colophon {
    		margin-bottom: 0;
    	}
    
    }
    
    header#masthead {
    	background: #fcfcfc;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	padding: 25px 35px;
    }
    
    header#masthead hgroup {
    	position: relative;
    
    	margin-bottom: 40px;
    	margin-top: 20px;
    }
    
    header#masthead hgroup a {
    	color: inherit;
    	text-decoration: none;
    }
    
    header#masthead hgroup h1 {
    	color: #666666;
    	font-size: 36px;
    	font-weight: 100;
    	line-height: 1em;
    }
    
    header#masthead hgroup img {
    	height: auto;
    
    	max-width: 100%;
    }
    
    header#masthead hgroup .support-text {
    	position: absolute;
    	top: 50%;
    	right: 0;
    
    	color: #4b4b4b;
    	font-style: italic;
    	line-height: 1.2em;
    	margin-top: -0.6em;
    	max-width: 50%;
    }
    
    #main {
    	zoom: 1;
    }
    
    #main:before {
    	content: '';
    	display: block;
    }
    
    #main:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    #primary {
    	width: 71.287%;
    
    	float: left;
    }
    
    body.no-sidebar #primary {
    	width: auto;
    
    	float: none;
    }
    
    /* Full Width Primary blocks */
    
    .siteorigin-panels-home #primary,
    .page-template-templatestemplate-full-php #primary,
    .page-template-templatestemplate-full-notitle-php #primary {
    	width: auto;
    
    	float: none;
    }
    
    #secondary {
    	width: 23.762%;
    
    	float: right;
    }
    
    #main {
    	background: #FCFCFC;
    	padding: 35px;
    }
    
    #main-slider {
    	background: #EEEEEE;
    	line-height: 0;
    }
    
    #main-slider .flexslider {
    	margin-bottom: 0;
    }
    
    #main-slider h1 {
    	font-weight: 100;
    	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    }
    
    #main-slider .text-em-wrapper {
    	background: rgba(0, 0, 0, 0.25);
    	border: 3px solid white;
    	font-weight: bold;
    	padding: 10px 50px;
    }
    
    #main-slider .metaslider {
    	margin: 0 auto;
    }
    
    /* =Responsive Layout
    ----------------------------------------------- */
    
    /* We consider 680px to be mobile resolution */
    
    @media (max-width: 680px) {
    
    	body.responsive header#masthead hgroup {
    		text-align: center;
    	}
    
    	body.responsive header#masthead hgroup .support-text {
    		position: static;
    
    		display: block;
    		margin-top: 30px;
    		max-width: 100%;
    	}
    
    	body.responsive #primary,
    	body.responsive #secondary {
    		width: auto;
    
    		float: none;
    	}
    
    	body.responsive #secondary {
    		margin-top: 35px;
    	}
    
    	body.responsive #footer-widgets .widget {
    		display: block;
    		float: none;
    		margin-bottom: 25px;
    	}
    
    	body.responsive #footer-widgets .widget:last-child {
    		margin-bottom: 0;
    	}
    
    }
    
    body.responsive #page-wrapper {
    	width: auto;
    
    	max-width: 1080px;
    	overflow-x: hidden;
    }
    
    body.responsive.layout-full #page-wrapper {
    	max-width: 100%;
    }
    
    body.responsive.layout-boxed #page-wrapper {
    	overflow-x: visible;
    }
    
    body.responsive.layout-full #page-wrapper .full-container {
    	margin-left: auto;
    	margin-right: auto;
    	max-width: 1080px;
    }
    
    /* =Menu
    ----------------------------------------------- */
    
    .menus.menu-primary.sf-js-enabled {
    position: relative;
    left: -100px;
    }
    
    .main-navigation {
    	background: #8C4400;
    	font-size: 13px; /* Font awesome icons */
    	margin: 0 -35px -25px -35px;
    }
    
    .main-navigation ul {
    	list-style: none;
    	margin: 0;
    	padding-center: 0;
    	zoom: 1; /* Second level menu items */
    }
    
    .main-navigation ul:before {
    	content: '';
    	display: block;
    }
    
    .main-navigation ul:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .main-navigation ul li {
    	position: relative;
    
    	display: block;
    	float: left;
    }
    
    .main-navigation ul li:hover > a {
    	background: #00304B;
    	color: #FFFFFF;
    }
    
    .main-navigation ul li:hover > a [class^="icon-"] {
    	color: #FFFFFF;
    }
    
    .main-navigation ul li a {
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	padding: 20px 35px;
    }
    
    .main-navigation ul li a,
    .main-navigation ul li a > * {
    	-webkit-transition: all 0.4s ease;
    	-moz-transition: all 0.4s ease;
    	-o-transition: all 0.4s ease;
    	transition: all 0.4s ease;
    }
    
    .main-navigation ul ul {
    	position: center;
    	top: 100%;
    	left: -100px;
    
    	background: #464646;
    	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* Third Level Items */
    	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* Third Level Items */
    	box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    	opacity: 0;
    	pointer-events: none;
    	-webkit-transition: all 0.35s ease; /* Third Level Items */
    	-moz-transition: all 0.35s ease; /* Third Level Items */
    	-o-transition: all 0.35s ease; /* Third Level Items */
    	transition: all 0.35s ease;
    	visibility: hidden;
    	z-index: 99999; /* Third Level Items */
    }
    
    .main-navigation ul ul a {
    	left: -100px;
    
    	padding: 15px 20px;
    }
    
    .main-navigation ul ul li {
    	position: relative;
    
    }
    
    .main-navigation ul ul li:hover > a {
    	background: #00bcff;
    	color: #FFFFFF;
    }
    
    .main-navigation ul ul ul {
    	top: 0;
    	left: -100px;
    
    	margin-left: 0;
    }
    
    .main-navigation ul li:hover > ul {
    	opacity: 1 !important;
    	pointer-events: auto !important;
    	visibility: visible !important;
    }
    
    .main-navigation a {
    	color: #e2e2e2;
    	display: block;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    .main-navigation.sticky {
    	-webkit-box-shadow: 0 2px 1px rgba(0,0,0,0.15);
    	-moz-box-shadow: 0 2px 1px rgba(0,0,0,0.15);
    	box-shadow: 0 2px 1px rgba(0,0,0,0.15);
    }
    
    .main-navigation [class^="icon-"] {
    	color: #CCCCCC;
    	display: inline-block;
    	font-size: 16px;
    	line-height: 0.5em;
    	margin-right: 15px;
    }
    
    /* Handle the navigation slightly differently on mobile devices */
    
    body.mobile-device .main-navigation ul ul {
    	display: none;
    }
    
    body.mobile-device .main-navigation li:hover ul {
    	display: block;
    }
    
    .mobile-nav-frame [class^="icon-"] {
    	margin-right: 10px;
    }
    
    #search-icon {
    	position: relative;
    
    	float: right;
    }
    
    #search-icon #search-icon-icon {
    	width: 59px;
    	height: 59px;
    
    	background-color: #303134;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	cursor: pointer;
    	display: block;
    	padding: 22px 21px;
    }
    
    #search-icon #search-icon-icon,
    #search-icon #search-icon-icon .icon-search {
    	-webkit-transition: all 0.4s ease;
    	-moz-transition: all 0.4s ease;
    	-o-transition: all 0.4s ease;
    	transition: all 0.4s ease;
    }
    
    #search-icon #search-icon-icon .icon {
    	width: 17px;
    	height: 17px;
    
    	background: url('images/sprites-1-0-11.png') no-repeat -102px 0;
    	display: inline-block;
    }
    
    #search-icon #search-icon-icon:hover {
    	background-color: #00bcff;
    }
    
    #search-icon #search-icon-icon:hover .icon {
    	background: url('images/sprites-1-0-11.png') no-repeat -84px 0;
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 2) {
    
    	#search-icon #search-icon-icon .icon {
    		background: url(./images/retina/search-icon.png) no-repeat;
    		background-size: 17px 17px;
    	}
    
    	#search-icon #search-icon-icon:hover .icon {
    		background: url(./images/retina/search-icon-white.png) no-repeat;
    		background-size: 17px 17px;
    	}
    
    }
    
    #search-icon .searchform {
    	position: absolute;
    	top: 100%;
    	right: 0;
    	width: 1080px;
    
    	background: #2d2e31;
    	display: none;
    	overflow-x: hidden;
    	z-index: 10;
    }
    
    #search-icon .searchform input[name=s] {
    	width: 100%;
    	height: 42px;
    
    	background: transparent;
    	border: none;
    	-webkit-border-radius: 0px;
    	-moz-border-radius: 0px;
    	border-radius: 0px;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	color: #d1d1d1;
    	display: block;
    	font-size: 17px;
    	font-weight: 200;
    	outline: none;
    	padding: 0 15px;
    }
    
    /* =Archives
    ----------------------------------------------- */
    
    article.sticky {
    }
    
    #page-title {
    	color: #3b3b3b; /* Style a sticky post */
    	font-size: 20px;
    	font-weight: 500;
    	margin-bottom: 20px;
    }
    
    #page-title a {
    	color: inherit;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    article.post,
    article.page {
    	border-bottom: 1px solid #EEEEEE;
    	margin-bottom: 40px;
    	padding-bottom: 40px;
    	zoom: 1;
    }
    
    article.post:before,
    article.page:before {
    	content: '';
    	display: block;
    }
    
    article.post:after,
    article.page:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    article.post footer,
    article.page footer {
    	width: 17.5%;
    
    	float: center;
    }
    
    article.post footer .post-type-icon,
    article.page footer .post-type-icon {
    	width: 50px;
    	height: 50px;
    
    	background: #8C4400;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    }
    
    article.post footer .tags,
    article.page footer .tags {
    	line-height: 1em;
    	margin-top: 15px;
    }
    
    article.post footer .tags a,
    article.page footer .tags a {
    	background: #74787a;
    	-webkit-border-radius: 2px;
    	-moz-border-radius: 2px;
    	border-radius: 2px;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    	color: white;
    	display: inline-block;
    	font-size: 10px;
    	line-height: 1em;
    	margin-bottom: 4px;
    	margin-right: 4px;
    	padding: 4px 5px;
    	text-decoration: none;
    	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
    	text-transform: uppercase;
    }
    
    article.post .entry-header,
    article.page .entry-header {
    	margin-bottom: 20px;
    }
    
    article.post .entry-header .entry-thumbnail,
    article.page .entry-header .entry-thumbnail {
    	margin-bottom: 20px;
    }
    
    article.post .entry-header .entry-thumbnail img,
    article.page .entry-header .entry-thumbnail img {
    	width: 100%;
    	height: auto;
    
    	display: block;
    }
    
    article.post .entry-header .entry-thumbnail a,
    article.page .entry-header .entry-thumbnail a {
    	display: block;
    }
    
    article.post .entry-header h1.entry-title,
    article.page .entry-header h1.entry-title {
    	color: #3b3b3b;
    	font-size: 20px;
    	font-weight: 500;
    }
    
    article.post .entry-header h1.entry-title a,
    article.page .entry-header h1.entry-title a {
    	color: inherit;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    article.post .entry-header .entry-meta,
    article.page .entry-header .entry-meta {
    	color: #8f8f8f;
    	font-size: 12px;
    }
    
    article.post .entry-header .entry-meta a,
    article.page .entry-header .entry-meta a {
    	color: #5e5e5e;
    	font-weight: 500;
    	text-decoration: none;
    }
    
    article.post:last-child,
    article.page:last-child {
    	border-bottom: 0;
    	margin-bottom: 0;
    	padding-bottom: 0;
    }
    
    article.post .more-link,
    article.page .more-link {
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dfdfdf), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #dfdfdf, #ffffff);
    	background: -moz-linear-gradient(center bottom, #dfdfdf 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #dfdfdf);
    	border-bottom: solid 1px #9f9f9f;
    	border-left: solid 1px #c3c3c3;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	border-right: solid 1px #c3c3c3;
    	border-top: solid 1px #d2d2d2;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.125);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.125);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.125);
    	color: #646464;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf', GradientType=0);
    	float: right;
    	font-size: 11px;
    	font-weight: bold;
    	padding: 4px 10px;
    	text-decoration: none;
    }
    
    article.post .more-link .meta-nav,
    article.page .more-link .meta-nav {
    	display: none;
    }
    
    article.post .share-buttons,
    article.page .share-buttons {
    	background: #F5F5F5;
    	border: 1px solid #E0E0E0;
    	list-style: none;
    	margin: 20px 0 0 0;
    	padding: 15px 25px;
    	zoom: 1;
    }
    
    article.post .share-buttons:before,
    article.page .share-buttons:before {
    	content: '';
    	display: block;
    }
    
    article.post .share-buttons:after,
    article.page .share-buttons:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    article.post .share-buttons li,
    article.page .share-buttons li {
    	height: 20px;
    
    	display: block;
    	float: left;
    }
    
    article.post .entry-summary p:last-child,
    article.page .entry-summary p:last-child {
    	margin-bottom: 0;
    }
    
    article.post .entry-categories,
    article.page .entry-categories {
    	color: #999999;
    	font-size: 0.85em;
    	margin-top: 1.5em;
    }
    
    article.post .entry-categories a,
    article.page .entry-categories a {
    	color: #777777;
    }
    
    .post-navigation,
    #image-navigation {
    	margin-bottom: 40px;
    	margin-top: -20px;
    	zoom: 1;
    }
    
    .post-navigation:before,
    #image-navigation:before {
    	content: '';
    	display: block;
    }
    
    .post-navigation:after,
    #image-navigation:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .post-navigation a,
    #image-navigation a {
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dfdfdf), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #dfdfdf, #ffffff);
    	background: -moz-linear-gradient(center bottom, #dfdfdf 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #dfdfdf);
    	border-bottom: solid 1px #9f9f9f;
    	border-left: solid 1px #c3c3c3;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	border-right: solid 1px #c3c3c3;
    	border-top: solid 1px #d2d2d2;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.125);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.125);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.125);
    	color: #646464;
    	display: inline-block;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf', GradientType=0);
    	font-size: 11px;
    	font-weight: bold;
    	padding: 6px 10px;
    	text-decoration: none;
    }
    
    .post-navigation a .meta-nav,
    #image-navigation a .meta-nav {
    	display: inline-block;
    }
    
    .post-navigation a:hover,
    #image-navigation a:hover {
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ebebeb), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #ebebeb, #ffffff);
    	background: -moz-linear-gradient(center bottom, #ebebeb 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #ebebeb);
    	border-bottom: solid 1px #a8a8a8;
    	border-left: solid 1px #cfcfcf;
    	border-right: solid 1px #cfcfcf;
    	border-top: solid 1px #dadada;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ebebeb', GradientType=0);
    }
    
    .post-navigation .nav-previous .meta-nav,
    #image-navigation .nav-previous .meta-nav {
    	margin-right: 7px;
    }
    
    .post-navigation .nav-next .meta-nav,
    #image-navigation .nav-next .meta-nav {
    	margin-left: 7px;
    }
    
    .single-nav-wrapper {
    	overflow: hidden;
    }
    
    /* Reset the navigation */
    
    #image-navigation {
    	margin-bottom: 20px;
    	margin-top: 0px;
    }
    
    /* =Entry Content
    ----------------------------------------------- */
    
    /* Styles for actual content */
    
    .entry-header {
    	zoom: 1;
    }
    
    .entry-header:before {
    	content: '';
    	display: block;
    }
    
    .entry-header:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .entry-content {
    	color: #666666; /* WordPress Images */
    	line-height: 1.6em;
    	zoom: 1;
    }
    
    .entry-content:before {
    	content: '';
    	display: block;
    }
    
    .entry-content:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .entry-content a {
    	color: #248cc8;
    	-webkit-transition: all 0.2s ease;
    	-moz-transition: all 0.2s ease;
    	-o-transition: all 0.2s ease;
    	transition: all 0.2s ease;
    }
    
    .entry-content a:hover {
    	color: #f47e3c;
    }
    
    .entry-content p,
    .entry-content > ul,
    .entry-content > li,
    .entry-content > dl,
    .entry-content pre,
    .entry-content code,
    .entry-content blockquote {
    	margin: 1em 0;
    }
    
    .entry-content > *:last-child {
    	margin-bottom: 0;
    }
    
    .entry-content > *:first-child {
    	margin-top: 0;
    }
    
    .entry-content blockquote {
    	border-left: 1px solid #AAAAAA;
    	font-style: italic;
    	margin-left: 1em;
    	padding-left: 1em;
    }
    
    .entry-content blockquote cite {
    	font-weight: bold;
    }
    
    .entry-content pre,
    .entry-content code {
    	background: white;
    	border: 1px solid #D9D9D9;
    	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
    	display: block;
    	font-family: "Courier New", Courier, mono;
    	overflow-x: auto;
    	padding: 10px;
    }
    
    .entry-content pre p:first-child,
    .entry-content code p:first-child {
    	margin-top: 0;
    }
    
    .entry-content code {
    	font-family: "Courier New", Courier, mono;
    }
    
    .entry-content sup,
    .entry-content sub {
    	position: relative;
    	height: 0;
    
    	line-height: 1;
    	vertical-align: baseline;
    }
    
    .entry-content sup {
    	bottom: 1ex;
    
    }
    
    .entry-content sub {
    	top: .5ex;
    
    }
    
    .entry-content .gallery {
    	margin: 25px 0 !important;
    }
    
    .entry-content .gallery .gallery-item {
    	margin-bottom: 0 !important;
    	margin-top: 0 !important;
    }
    
    .entry-content .gallery .gallery-icon {
    	line-height: 0;
    	margin-bottom: 0 !important;
    }
    
    .entry-content .gallery img {
    	border: none !important;
    }
    
    .entry-content .gallery .gallery-caption {
    	margin: 10px !important;
    	padding-left: 0 !important;
    }
    
    .entry-content table {
    	width: 100%;
    
    }
    
    .entry-content img {
    	height: auto;
    
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
    	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
    	box-shadow: 0 1px 2px rgba(0,0,0,0.175);
    	max-width: 100%;
    }
    
    .entry-content .wp-caption {
    	border: 1px solid #E0E0E0;
    	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	margin: 5px 0 30px 0;
    	max-width: 100%;
    	padding: 8px;
    	text-align: center;
    }
    
    .entry-content .wp-caption:first-child {
    	margin-top: 25px;
    }
    
    .entry-content .wp-caption p.wp-caption-text {
    	margin: 0;
    }
    
    .entry-content .alignleft {
    	margin: 0 0 1.5em 1.5em; /* This is also styled on a global level */
    }
    
    .entry-content .alignright {
    	margin: 0 1.5em 1.5em 0; /* This is also styled on a global level */
    }
    
    .entry-content img.wp-smiley {
    	border: none;
    	margin-bottom: 0;
    	margin-top: 0;
    	padding: 0;
    }
    
    .entry-content ul {
    	list-style-type: square;
    }
    
    .entry-content ol {
    	list-style-type: decimal;
    }
    
    .entry-content ol ol {
    	list-style-type: upper-alpha;
    }
    
    .entry-content ol ol ol {
    	list-style-type: lower-roman;
    }
    
    .entry-content ul li,
    .entry-content ol li {
    	margin-left: 1.5em;
    }
    
    .entry-content dl dt {
    	font-weight: bold;
    	margin-bottom: 5px;
    }
    
    .entry-content dl dd {
    	margin-bottom: 10px;
    	padding-left: 20px;
    }
    
    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
    	color: #444444;
    	font-weight: 500;
    	margin: 1em 0;
    }
    
    .entry-content h1 {
    	font-size: 1.7em;
    }
    
    .entry-content h2 {
    	font-size: 1.6em;
    }
    
    .entry-content h3 {
    	font-size: 1.5em;
    }
    
    .entry-content h4 {
    	font-size: 1.4em;
    }
    
    .entry-content h5 {
    	font-size: 1.2em;
    }
    
    .entry-content h6 {
    	font-size: 1.1em;
    }
    
    .entry-content embed,
    .entry-content iframe,
    .entry-content object {
    	max-width: 100%;
    }
    
    .entry-content .tags {
    	color: #999999;
    }
    
    .entry-content .tags strong {
    	color: #666666;
    }
    
    .entry-content .tags a {
    	color: #999999;
    	text-decoration: none;
    }
    
    /* =Navigation
    ----------------------------------------------- */
    
    .pagination,
    .entry-content .pagination {
    	position: relative;
    
    	font-size: 11px;
    	line-height: 13px;
    	text-align: right;
    }
    
    .pagination span,
    .entry-content .pagination span,
    .pagination a,
    .entry-content .pagination a {
    	width: auto;
    
    	background: #4f5355;
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dfdfdf), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #dfdfdf, #ffffff);
    	background: -moz-linear-gradient(center bottom, #dfdfdf 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #dfdfdf);
    	border-bottom: solid 1px #9f9f9f;
    	border-left: solid 1px #c3c3c3;
    	-webkit-border-radius: 2px;
    	-moz-border-radius: 2px;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 2px;
    	border-radius: 3px;
    	border-right: solid 1px #c3c3c3;
    	border-top: solid 1px #d2d2d2;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	color: #646464;
    	display: inline-block;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf', GradientType=0);
    	font-weight: bold;
    	margin: 2px 2px 2px 0;
    	padding: 6px 9px 5px 9px;
    	text-decoration: none;
    }
    
    .pagination span:last-child,
    .entry-content .pagination span:last-child,
    .pagination a:last-child,
    .entry-content .pagination a:last-child {
    	margin-right: 0;
    }
    
    .pagination a:hover,
    .entry-content .pagination a:hover {
    	background: #f0f0f0;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #d0d0d0), color-stop(1, #f0f0f0));
    	background: -ms-linear-gradient(bottom, #d0d0d0, #f0f0f0);
    	background: -moz-linear-gradient(center bottom, #d0d0d0 0%, #f0f0f0 100%);
    	background: -o-linear-gradient(#f0f0f0, #d0d0d0);
    	color: #606060;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0f0f0', endColorstr='#d0d0d0', GradientType=0);
    }
    
    .pagination .current,
    .entry-content .pagination .current {
    	background: #333333;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #505050), color-stop(1, #333333));
    	background: -ms-linear-gradient(bottom, #505050, #333333);
    	background: -moz-linear-gradient(center bottom, #505050 0%, #333333 100%);
    	background: -o-linear-gradient(#333333, #505050);
    	border-bottom: solid 1px #222222;
    	border-left: solid 1px #222222;
    	border-right: solid 1px #222222;
    	border-top: solid 1px #222222;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 0 5px rgba(0,0,0, 0.5);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 0 5px rgba(0,0,0, 0.5);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 0 5px rgba(0,0,0, 0.5);
    	color: #EFEFEF;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#505050', GradientType=0);
    }
    
    .site-content .nav-previous,
    .site-content .nav-next {
    	white-space: nowrap;
    }
    
    .site-content .nav-previous {
    	width: 50%;
    
    	float: left;
    }
    
    .site-content .nav-next {
    	width: 50%;
    
    	float: right;
    	text-align: right;
    }
    
    @media (max-width: 480px) {
    
    	body.responsive .site-content .nav-previous,
    	body.responsive .site-content .nav-next {
    		width: 100%;
    
    		float: none;
    		margin-bottom: 20px;
    		text-align: center;
    	}
    
    }
    
    /* =Comments
    ----------------------------------------------- */
    
    #comments-title,
    #reply-title {
    	border-bottom: 2px solid #555555;
    	color: #444444;
    	display: inline-block;
    	font-size: 14px;
    	font-weight: 500;
    	line-height: 1em;
    	margin-bottom: 20px;
    	padding-bottom: 5px;
    }
    
    #comments-title [class^="icon-"],
    #reply-title [class^="icon-"] {
    	display: inline-block;
    	font-size: 16px;
    	line-height: 0.75em;
    	margin-right: 4px;
    }
    
    #comments .commentlist {
    	list-style: none;
    	margin: 0 0 40px 0;
    }
    
    #comments .commentlist .children {
    	list-style: none;
    	margin-left: 75px;
    }
    
    #comments .commentlist article {
    	margin-bottom: 35px;
    }
    
    #comments .commentlist article .avatar {
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    	float: left;
    }
    
    #comments .commentlist article .comment-author,
    #comments .commentlist article .awaiting-moderation,
    #comments .commentlist article .comment-meta,
    #comments .commentlist article .comment-content {
    	margin-left: 75px;
    }
    
    #comments .commentlist article .comment-author {
    	color: #474747;
    	font-size: 13px;
    	font-weight: 500;
    	line-height: 1em;
    	margin-bottom: 0.35em;
    }
    
    #comments .commentlist article .comment-author a {
    	color: inherit;
    	text-decoration: none;
    }
    
    #comments .commentlist article .comment-author cite {
    	font-style: normal;
    }
    
    #comments .commentlist article .comment-meta {
    	color: #747474;
    	font-size: 11.5px;
    	line-height: 1em;
    	margin-bottom: 15px;
    }
    
    #comments .commentlist article .comment-meta a {
    	color: inherit;
    	text-decoration: none;
    }
    
    #comments .commentlist article .comment-meta .support {
    	display: inline-block;
    	margin-left: 15px;
    }
    
    #comments .commentlist article .awaiting-moderation {
    	display: block;
    	margin-bottom: 10px;
    }
    
    #comments .commentlist article .entry-content {
    	font-size: 12px;
    }
    
    #comments .commentlist .bypostauthor {
    }
    
    #commentform label {
    	width: 25%;
    
    	display: block;
    	float: left;
    	margin-top: 2px; /* Change the comment by the post author */
    }
    
    #commentform input,
    #commentform textarea {
    	width: 75%;
    
    	float: left;
    	font-size: 13px;
    	padding: 10px;
    }
    
    #commentform textarea {
    	padding: 10px;
    }
    
    #commentform input {
    	padding: 7px 10px;
    }
    
    #commentform p {
    	margin-bottom: 20px;
    	zoom: 1;
    }
    
    #commentform p:before {
    	content: '';
    	display: block;
    }
    
    #commentform p:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    #commentform p.form-submit {
    	margin-bottom: 0;
    }
    
    #commentform #submit {
    	width: auto;
    
    	font-size: 12px;
    	padding: 10px 20px;
    }
    
    #commentform .form-allowed-tags,
    #commentform .form-allowed-tags code,
    #commentform .comment-notes {
    	color: #999;
    	font-size: 0.8em;
    }
    
    #commentform .logged-in-as {
    	color: #999;
    	font-size: 0.8em;
    	margin-bottom: 10px;
    	text-align: right;
    }
    
    #commentform .required {
    	color: #A40802;
    }
    
    @media (max-width: 480px) {
    
    	body.responsive #commentform label {
    		width: 100%;
    
    		float: none;
    		margin-bottom: 3px;
    	}
    
    	body.responsive #commentform input,
    	body.responsive #commentform textarea {
    		width: 100%;
    
    		float: none;
    	}
    
    }
    
    /* =Sidebars and Asides
    ----------------------------------------------- */
    
    #colophon {
    	background: #2f3033;
    	margin-bottom: 20px;
    	padding: 30px;
    }
    
    #colophon #theme-attribution,
    #colophon #site-info {
    	color: #AAAAAA;
    	font-size: 11.5px;
    	margin-top: 25px;
    	text-align: center;
    }
    
    #colophon #theme-attribution a,
    #colophon #site-info a {
    	color: #DDDDDD;
    	font-weight: 500;
    	text-decoration: none;
    }
    
    body.layout-full {
    	background-color: #8C4400; /* Use the same color as the footer */
    }
    
    .layout-full #colophon {
    	margin-bottom: 0;
    	margin-top: 0;
    	padding-bottom: 30px;
    	padding-top: 30px;
    }
    
    #scroll-to-top {
    	position: fixed;
    	right: 20px;
    	bottom: 20px;
    	width: 48px;
    	height: 48px;
    
    	background: url('images/sprites-1-0-11.png') no-repeat -84px -18px;
    	opacity: 0;
    	-ms-transform: scale(0, 0);
    	-webkit-transform: scale(0, 0);
    	transform: scale(0, 0);
    	-webkit-transition: all 0.2s ease;
    	-moz-transition: all 0.2s ease;
    	-o-transition: all 0.2s ease;
    	transition: all 0.2s ease;
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 2) {
    
    	#scroll-to-top {
    		background-image: url(./images/retina/to-top.png);
    		background-size: 48px 48px;
    	}
    
    }
    
    #scroll-to-top.displayed {
    	opacity: 1 !important;
    	-ms-transform: scale(1, 1);
    	-webkit-transform: scale(1, 1);
    	transform: scale(1, 1);
    }
    
    /* =Sliders
    ----------------------------------------------- */
    
    /* Resets */
    
    .flex-container a:active,
    .flexslider a:active,
    .flex-container a:focus,
    .flexslider a:focus {
    	outline: none;
    }
    
    .slides,
    .flex-control-nav,
    .flex-direction-nav {
    	list-style: none;
    	margin: 0;
    	padding: 0;
    }
    
    /* Necessary Styles */
    
    .flexslider {
    	position: relative;
    
    	margin: 0;
    	padding: 0;
    	zoom: 1;
    }
    
    .flexslider .slides {
    	list-style: none;
    	zoom: 1;
    }
    
    .flexslider .slides:before {
    	content: '';
    	display: block;
    }
    
    .flexslider .slides:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .flexslider .slides > img {
    	width: 100%;
    	height: auto;
    
    	-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
    	-moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
    	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
    	display: block;
    }
    
    .flexslider .slides p img {
    	width: auto;
    
    	display: inline-block;
    }
    
    .flexslider .slides .flex-caption {
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    
    	background: rgba(0, 0, 0, 0.5);
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	color: #FFF;
    	padding: 20px;
    	text-align: center;
    	text-decoration: none;
    }
    
    .flexslider .slides .flex-caption h3 {
    	color: inherit;
    	font-size: 15px;
    	line-height: 1.25em;
    	margin: 0;
    }
    
    .flexslider .slides > li {
    	background-position: center center; /* Stuff specific to metaslider */
    	background-size: cover;
    	display: none;
    	margin-left: 0;
    	-webkit-backface-visibility: hidden; /* Stuff specific to metaslider */
    }
    
    .flexslider .slides > li .content img {
    	height: auto !important;
    
    	max-width: 100%;
    }
    
    .flexslider .flex-control-paging {
    	position: absolute;
    	right: 0px;
    	bottom: 15px;
    
    	list-style: none;
    	padding: 0 30px;
    	text-align: right;
    	z-index: 20;
    }
    
    .flexslider .flex-control-paging li {
    	width: 14px;
    	height: 14px;
    
    	display: inline-block;
    	margin: 0;
    	margin-right: 2px;
    	padding: 0;
    	text-align: left;
    	text-indent: -99999px;
    }
    
    .flexslider .flex-control-paging li a {
    	width: 14px;
    	height: 14px;
    
    	background: url('images/sprites-1-0-11.png') no-repeat 0 -51px;
    	cursor: pointer;
    	display: block;
    }
    
    .flexslider .flex-control-paging li a.flex-active {
    	background: url('images/sprites-1-0-11.png') no-repeat 0 -36px;
    }
    
    .flexslider .flex-control-paging li a:hover {
    	background: url('images/sprites-1-0-11.png') no-repeat 0 -51px;
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 2) {
    
    	.flexslider .flex-control-paging li a {
    		background-image: url(images/retina/slide-indicator-inactive.png);
    		background-size: 14px 14px;
    	}
    
    	.flexslider .flex-control-paging li a.flex-active {
    		background-image: url(images/retina/slide-indicator-active.png);
    		background-size: 14px 14px;
    	}
    
    	.flexslider .flex-control-paging li a:hover {
    		background: url('images/sprites-1-0-11.png') no-repeat 0 -51px;
    		background-size: 14px 14px;
    	}
    
    }
    
    .flexslider .flex-direction-nav {
    	list-style: none;
    }
    
    .flexslider .flex-direction-nav li {
    	margin: 0;
    	padding: 0;
    }
    
    .flexslider .flex-direction-nav li a {
    	position: absolute;
    	top: 50%;
    	width: 32px;
    	height: 85px;
    
    	display: block;
    	margin-top: -52px;
    	opacity: 0;
    	text-indent: -99999px;
    	-webkit-transition: opacity 0.2s ease;
    	-moz-transition: opacity 0.2s ease;
    	-o-transition: opacity 0.2s ease;
    	transition: opacity 0.2s ease;
    }
    
    .flexslider .flex-direction-nav li a.flex-prev {
    	left: 0;
    
    	background: url('images/sprites-1-0-11.png') no-repeat -18px 0;
    }
    
    .flexslider .flex-direction-nav li a.flex-next {
    	right: 0;
    
    	background: url('images/sprites-1-0-11.png') no-repeat -51px 0;
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 2) {
    
    	.flexslider .flex-direction-nav li a {
    		background-size: 32px 85px;
    	}
    
    	.flexslider .flex-direction-nav li a.flex-prev {
    		background-image: url(images/retina/gallery-prev.png);
    	}
    
    	.flexslider .flex-direction-nav li a.flex-next {
    		background-image: url(images/retina/gallery-next.png);
    	}
    
    }
    
    .flexslider:hover .flex-direction-nav li a {
    	opacity: 0.9;
    }
    
    /* Styles for Metaslider Prebuilt */
    
    .metaslider .msHtmlOverlay .layer .siteorigin-slider-action-button {
    	background: url(slider/action.png) right center no-repeat;
    	display: inline-block;
    	font-weight: bold;
    	padding: 8px 46px 8px 0;
    }
    
    .metaslider .msHtmlOverlay .layer .siteorigin-slider-action-button a {
    	color: #FFFFFF;
    	font-size: 16px;
    	text-decoration: none;
    }
    
    #metaslider-demo .content,
    .vantage-slide-with-image .content {
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    
    }
    
    #metaslider-demo .content img,
    .vantage-slide-with-image .content img {
    	height: auto;
    
    	max-width: 100%;
    }
    
    #metaslider-demo .msDefaultImage,
    .vantage-slide-with-image .msDefaultImage {
    	height: auto;
    
    	max-width: 100%;
    }
    
    /* =Widgets
    ----------------------------------------------- */
    
    .widget {
    	margin: 0 0 1.5em;
    }
    
    /* Make sure select elements fit in widgets */
    
    .widget select {
    	max-width: 100%;
    }
    
    /* Search widget */
    
    #searchsubmit {
    	display: none;
    }
    
    .textwidget p:first-child {
    	margin-top: 0;
    }
    
    .textwidget p:last-child {
    	margin-bottom: 0;
    }
    
    /* =Sidebar widget styling
    ----------------------------------------------- */
    
    #secondary .widget,
    #footer-widgets .widget {
    	color: #8C4400;
    	font-size: 13px;
    	margin-bottom: 40px;
    }
    
    #secondary .widget:last-child,
    #footer-widgets .widget:last-child {
    	margin-bottom: 0;
    }
    
    #secondary .widget h1.widget-title,
    #footer-widgets .widget h1.widget-title {
    	color: #3b3b3b;
    	font-size: 15px;
    	font-weight: bold;
    	margin-bottom: 15px;
    }
    
    #secondary .widget ul,
    #footer-widgets .widget ul,
    #secondary .widget ol,
    #footer-widgets .widget ol {
    	list-style: none;
    	margin: 0;
    	padding: 0;
    }
    
    #secondary .widget ul ul,
    #footer-widgets .widget ul ul,
    #secondary .widget ol ul,
    #footer-widgets .widget ol ul,
    #secondary .widget ul ol,
    #footer-widgets .widget ul ol,
    #secondary .widget ol ol,
    #footer-widgets .widget ol ol {
    	margin-left: 1em;
    }
    
    #secondary .widget ul li a,
    #footer-widgets .widget ul li a,
    #secondary .widget ol li a,
    #footer-widgets .widget ol li a {
    	text-decoration: none;
    }
    
    #footer-widgets {
    	margin: 0 -5px;
    	max-width: 100%;
    	zoom: 1;
    }
    
    #footer-widgets:before {
    	content: '';
    	display: block;
    }
    
    #footer-widgets:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    #footer-widgets .widget {
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	color: #b9b9b9;
    	float: left;
    	margin-bottom: 0;
    	padding: 0 15px;
    }
    
    #footer-widgets .widget a {
    	color: #cccccc;
    }
    
    #footer-widgets .widget h1.widget-title {
    	color: #e2e2e2;
    	font-size: 14px;
    	font-weight: bold;
    	margin-bottom: 20px;
    }
    
    /* =General Widget Styling
    ----------------------------------------------- */
    
    .widget img,
    .widget iframe,
    .widget object,
    .widget select,
    .widget input {
    	max-width: 100%;
    }
    
    .widget img {
    	height: auto;
    
    }
    
    .widget a.button {
    	background: #107fc9;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #0f75b8), color-stop(1, #1189da));
    	background: -ms-linear-gradient(bottom, #0f75b8, #1189da);
    	background: -moz-linear-gradient(center bottom, #0f75b8 0%, #1189da 100%);
    	background: -o-linear-gradient(#1189da, #0f75b8);
    	border-bottom: solid 1px #083d61;
    	border-left: solid 1px #094974;
    	-webkit-border-radius: 4px;
    	-moz-border-radius: 4px;
    	border-radius: 4px;
    	border-right: solid 1px #094974;
    	border-top: solid 1px #0b5587;
    	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    	box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    	color: white;
    	display: inline-block;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1189da', endColorstr='#0f75b8', GradientType=0);
    	font-size: 0.875em;
    	padding: 9px 26px;
    	text-decoration: none;
    	text-shadow: 0 1px 0 #000000;
    }
    
    .widget .button-container.align-center {
    	text-align: center;
    }
    
    .widget .button-container.align-left {
    	text-align: left;
    }
    
    .widget .button-container.align-right {
    	text-align: right;
    }
    
    .widget .button-container.align-full .button {
    	display: block;
    	text-align: center;
    }
    
    .widget_call-to-action {
    	position: relative;
    
    	padding: 25px 30px 23px 30px;
    }
    
    .widget_call-to-action h2.cta-headline {
    	color: #333;
    	margin: 0 0 0.35em 0;
    }
    
    .widget_call-to-action p.cta-sub-text {
    	color: #666;
    	margin: 0;
    }
    
    .widget_call-to-action a.button {
    	position: absolute;
    	top: 50%;
    	right: 30px;
    
    	margin-top: -20px; /* This should be half the height of the button */
    }
    
    /* Responsive styles for the call to action widget */
    
    @media (max-width: 680px) {
    
    	body.responsive .widget_call-to-action a.button {
    		position: static;
    
    		display: block;
    		margin-top: 25px;
    		text-align: center;
    	}
    
    }
    
    .widget_siteorigin-list ul li {
    	margin-bottom: 0.4em;
    }
    
    .widget_siteorigin-list ul li:last-child {
    	margin-bottom: 0;
    }
    
    .widget_icon-text {
    	font-size: 0.95em;
    	text-align: center;
    }
    
    .widget_icon-text .feature-icon {
    	display: inline-block;
    	line-height: 0;
    }
    
    .widget_icon-text .widget-title {
    	margin: 15px 0;
    }
    
    .widget_circleicon-widget {
    	clear: both; /* A medium sized icon */
    }
    
    .widget_circleicon-widget .circle-icon-box {
    	position: relative;
    
    	text-align: center;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-show-box {
    	background: #F6F6F6;
    	border: 1px solid #DDDDDD;
    	-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    	-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    	box-shadow: 0 2px 2px rgba(0,0,0,0.05);
    	padding: 24px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-hide-box {
    	padding: 5px;
    }
    
    .widget_circleicon-widget .circle-icon-box .link-icon,
    .widget_circleicon-widget .circle-icon-box .link-title {
    	display: block;
    	text-decoration: none;
    }
    
    .widget_circleicon-widget .circle-icon-box .circle-icon {
    	position: absolute;
    	width: 65px;
    	height: 65px;
    
    	background-color: #3a3b3e;
    	background-position: center center;
    	background-repeat: no-repeat;
    	background-size: cover;
    	-webkit-border-radius: 130px;
    	-moz-border-radius: 130px;
    	border-radius: 130px;
    	display: inline-block;
    	-webkit-transition: all 0.5s ease;
    	-moz-transition: all 0.5s ease;
    	-o-transition: all 0.5s ease;
    	transition: all 0.5s ease;
    }
    
    .widget_circleicon-widget .circle-icon-box .circle-icon [class^="icon-"] {
    	position: absolute;
    	top: 50%;
    	left: 0;
    	width: 100%;
    	height: 1em;
    
    	color: #FFFFFF;
    	display: block;
    	font-size: 24px;
    	line-height: 1.1em;
    	margin-top: -0.5em;
    	text-align: center;
    }
    
    .widget_circleicon-widget .circle-icon-box h4 {
    	color: #3b3b3b;
    	font-size: 17px;
    	font-weight: bold;
    	margin-bottom: 0.8em;
    	margin-top: 0;
    }
    
    .widget_circleicon-widget .circle-icon-box p.text {
    	color: #5e5e5e;
    	font-size: 13px;
    	margin: 0;
    	margin-bottom: 10px;
    }
    
    .widget_circleicon-widget .circle-icon-box p.text:last-child {
    	margin-bottom: 0;
    }
    
    .widget_circleicon-widget .circle-icon-box a.more-button {
    	color: #3b3b3b;
    	display: block;
    	font-size: 13px;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    .widget_circleicon-widget .circle-icon-box a.more-button i {
    	width: 5px;
    	height: 8px;
    
    	background: url('images/sprites-1-0-11.png') no-repeat 0 -66px;
    	display: inline-block;
    	margin-left: 3px;
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 2) {
    
    	.widget_circleicon-widget .circle-icon-box a.more-button i {
    		background: url(./images/retina/more-icon.png);
    		background-size: 5px 8px;
    	}
    
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-top {
    	padding-top: 75px;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-top .circle-icon {
    	top: 0;
    	left: 50%;
    
    	margin-left: -32.5px;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-bottom {
    	padding-bottom: 75px;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-bottom .circle-icon {
    	bottom: 0;
    	left: 50%;
    
    	margin-left: -32.5px;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-left {
    	padding-left: 75px;
    	text-align: left;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-left .circle-icon {
    	top: 50%;
    	left: 0;
    
    	margin-top: -32.5px;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-right {
    	padding-right: 75px;
    	text-align: left;
    }
    
    .widget_circleicon-widget .circle-icon-box.icon-position-right .circle-icon {
    	top: 50%;
    	right: 0;
    
    	margin-top: -32.5px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium {
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium .circle-icon {
    	width: 81.25px;
    	height: 81.25px;
    
    	-webkit-border-radius: 162.5px;
    	-moz-border-radius: 162.5px;
    	border-radius: 162.5px;
    	-webkit-transition: all 0.5s ease;
    	-moz-transition: all 0.5s ease;
    	-o-transition: all 0.5s ease;
    	transition: all 0.5s ease;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium .circle-icon [class^="icon-"] {
    	font-size: 36px;
    	line-height: 1.1em;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-top {
    	padding-top: 91.25px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-top .circle-icon {
    	top: 0;
    	left: 50%;
    
    	margin-left: -40.625px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-bottom {
    	padding-bottom: 91.25px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-bottom .circle-icon {
    	bottom: 0;
    	left: 50%;
    
    	margin-left: -40.625px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-left {
    	padding-left: 91.25px;
    	text-align: left;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-left .circle-icon {
    	top: 50%;
    	left: 0;
    
    	margin-top: -40.625px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-right {
    	padding-right: 91.25px;
    	text-align: left;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-medium.icon-position-right .circle-icon {
    	top: 50%;
    	right: 0;
    
    	margin-top: -40.625px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large {
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large .circle-icon {
    	width: 100px;
    	height: 100px;
    
    	-webkit-border-radius: 200px;
    	-moz-border-radius: 200px;
    	border-radius: 200px;
    	-webkit-transition: all 0.5s ease;
    	-moz-transition: all 0.5s ease;
    	-o-transition: all 0.5s ease;
    	transition: all 0.5s ease;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large .circle-icon [class^="icon-"] {
    	font-size: 44px;
    	line-height: 1.1em;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-top {
    	padding-top: 110px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-top .circle-icon {
    	top: 0;
    	left: 50%;
    
    	margin-left: -50px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-bottom {
    	padding-bottom: 110px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-bottom .circle-icon {
    	bottom: 0;
    	left: 50%;
    
    	margin-left: -50px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-left {
    	padding-left: 110px;
    	text-align: left;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-left .circle-icon {
    	top: 50%;
    	left: 0;
    
    	margin-top: -50px;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-right {
    	padding-right: 110px;
    	text-align: left;
    }
    
    .widget_circleicon-widget .circle-icon-box.circle-icon-size-large.icon-position-right .circle-icon {
    	top: 50%;
    	right: 0;
    
    	margin-top: -50px;
    }
    
    .widget_headline-widget {
    	text-align: center;
    }
    
    .widget_headline-widget h1 {
    	color: #444444;
    	font-size: 26px;
    	letter-spacing: 1px;
    	line-height: 36px;
    	margin: 0;
    	padding-top: 20px;
    	text-transform: uppercase;
    }
    
    .widget_headline-widget h3 {
    	color: #666666;
    	font-size: 14px;
    	font-weight: 200;
    	margin: 0;
    	padding-bottom: 20px;
    }
    
    .widget_headline-widget .decoration {
    	position: relative;
    	height: 1px;
    
    	border-top: 1px solid #EEE;
    	margin: 20px 60px 20px 60px;
    }
    
    /* =Some row styling for page builder
    ----------------------------------------------- */
    
    .panel-row-style {
    	zoom: 1;
    }
    
    .panel-row-style:before {
    	content: '';
    	display: block;
    }
    
    .panel-row-style:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .panel-row-style-wide-grey {
    	background: #F6F6F6;
    	border-bottom: 1px solid #DDDDDD;
    	border-top: 1px solid #DDDDDD;
    	margin: 0 -20px;
    	padding: 25px 20px;
    }
    
    .layout-full .panel-row-style-wide-grey {
    	margin: 0 -1000px;
    	padding: 25px 1000px 25px 1000px;
    }
    
    @media (max-width: 680px) {
    
    	body.responsive.layout-boxed .panel-row-style-wide-grey {
    		margin: 0 -35px;
    		padding: 25px 35px;
    	}
    
    }
    
    .vantage-carousel-title {
    	color: #3b3b3b;
    	font-size: 14px;
    	font-weight: bold;
    	line-height: 1em;
    	text-transform: uppercase;
    }
    
    .vantage-carousel-title .vantage-carousel-title-text {
    	display: inline-block;
    	padding-right: 15px;
    }
    
    .vantage-carousel-title a.next,
    .vantage-carousel-title a.previous {
    	width: 17px;
    	height: 17px;
    
    	background-position: center center;
    	display: block;
    	float: right;
    	margin-left: 2px;
    	overflow: hidden;
    	text-indent: -9999px;
    }
    
    .vantage-carousel-title a.next {
    	background: url('images/sprites-1-0-11.png') no-repeat 0 -18px;
    }
    
    .vantage-carousel-title a.previous {
    	background: url('images/sprites-1-0-11.png') no-repeat 0 0;
    }
    
    @media screen and (-webkit-min-device-pixel-ratio: 2) {
    
    	.vantage-carousel-title a.next {
    		background: url(images/retina/carousel-right.png);
    		background-size: 17px 17px;
    	}
    
    	.vantage-carousel-title a.previous {
    		background: url(images/retina/carousel-left.png);
    		background-size: 17px 17px;
    	}
    
    }
    
    .vantage-carousel-wrapper {
    	overflow-x: hidden;
    	overflow-y: hidden;
    }
    
    .vantage-carousel-wrapper .vantage-carousel {
    	width: 99999px;
    	height: 200px;
    
    	margin: 0;
    	padding: 0;
    	-webkit-transition: all 0.45s ease;
    	-moz-transition: all 0.45s ease;
    	-o-transition: all 0.45s ease;
    	transition: all 0.45s ease;
    	zoom: 1;
    }
    
    .vantage-carousel-wrapper .vantage-carousel:before {
    	content: '';
    	display: block;
    }
    
    .vantage-carousel-wrapper .vantage-carousel:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry {
    	width: 242px;
    
    	display: block;
    	float: left;
    
    	list-style: none;
    	margin-left: 0;
    	margin-right: 15px;
    	overflow-x: hidden;
    	padding: 0;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry:last-child {
    	margin-right: 0;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail {
    	line-height: 0;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a {
    	width: 242px;
    	height: 162px;
    
    	background-position: center center;
    	background-size: 242px 162px;
    	display: block;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a,
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a span.overlay {
    	-webkit-transition: all 0.35s ease;
    	-moz-transition: all 0.35s ease;
    	-o-transition: all 0.35s ease;
    	transition: all 0.35s ease;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a span.overlay {
    	width: 100%;
    	height: 100%;
    
    	background: #3279BB;
    	display: block;
    	opacity: 0;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a:hover {
    	background-size: 272px 182px;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a:hover span {
    	opacity: 0.5;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry .default-thumbnail {
    	width: 242px;
    	height: 162px;
    
    	background: #e8e8e8;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #e0e0e0), color-stop(1, #e8e8e8));
    	background: -ms-linear-gradient(bottom, #e0e0e0, #e8e8e8);
    	background: -moz-linear-gradient(center bottom, #e0e0e0 0%, #e8e8e8 100%);
    	background: -o-linear-gradient(#e8e8e8, #e0e0e0);
    	display: block;
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e8e8e8', endColorstr='#e0e0e0', GradientType=0);
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry h3 {
    	color: #474747;
    	font-size: 15px;
    	font-weight: 500;
    	margin: 10px 0 0 0;
    	text-align: center;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.carousel-entry h3 a {
    	color: inherit;
    	text-decoration: none;
    }
    
    .vantage-carousel-wrapper .vantage-carousel li.loading {
    	width: 242px;
    	height: 162px;
    
    	background: url(images/carousel-loader.gif) #f6f6f6 center center no-repeat;
    	display: block;
    	float: left;
    	margin: 0;
    }
    
    .vantage-grid-loop {
    	margin: 0 -15px 0 -15px;
    	zoom: 1;
    }
    
    .vantage-grid-loop:before {
    	content: '';
    	display: block;
    }
    
    .vantage-grid-loop:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .vantage-grid-loop article {
    	width: 25%;
    
    	border-bottom: none;
    	-ms-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	-webkit-box-sizing: border-box;
    	box-sizing: border-box;
    	float: left;
    	margin-bottom: 30px;
    	padding: 0 15px;
    }
    
    .vantage-grid-loop article .grid-thumbnail {
    	background: #FFFFFF;
    	border: 1px solid #c2c5ca;
    	-webkit-box-shadow: 0 0 4px rgba(0,0,0,0.1);
    	-moz-box-shadow: 0 0 4px rgba(0,0,0,0.1);
    	box-shadow: 0 0 4px rgba(0,0,0,0.1);
    	display: block;
    	margin-bottom: 10px;
    	padding: 5px;
    }
    
    .vantage-grid-loop article .grid-thumbnail:hover {
    	border-color: #00bafa;
    	-webkit-box-shadow: 0 0 5px rgba(0,187,251,0.75);
    	-moz-box-shadow: 0 0 5px rgba(0,187,251,0.75);
    	box-shadow: 0 0 5px rgba(0,187,251,0.75);
    }
    
    .vantage-grid-loop article .grid-thumbnail img {
    	width: 100%;
    	height: auto;
    
    	-webkit-border-radius: 0;
    	-moz-border-radius: 0;
    	border-radius: 0;
    	-webkit-box-shadow: none;
    	-moz-box-shadow: none;
    	box-shadow: none;
    	display: block;
    }
    
    .vantage-grid-loop article h3 {
    	font-size: 15px;
    	font-weight: bold;
    	margin-bottom: 8px;
    	margin-top: 0;
    }
    
    .vantage-grid-loop article h3 a {
    	color: inherit;
    	text-decoration: none;
    }
    
    .vantage-grid-loop article .excerpt {
    	height: 2.5em;
    
    	color: #777777;
    	font-size: 12px;
    	line-height: 1.25em;
    	overflow: hidden;
    }
    
    .vantage-grid-loop article .excerpt p {
    	margin: 0;
    }
    
    .vantage-grid-loop .clear {
    	clear: both;
    }
    
    .widget_siteorigin-panels-postloop .pagination {
    	margin-top: 20px;
    }
    
    @media (max-width: 640px) {
    
    	body.responsive .vantage-grid-loop article {
    		width: 50%;
    
    	}
    
    }
    
    @media (max-width: 480px) {
    
    	body.responsive .vantage-grid-loop article {
    		width: 100%;
    
    		float: none;
    	}
    
    }
    
    .vantage-circleicon-loop {
    	margin: 0 -20px;
    	zoom: 1;
    }
    
    .vantage-circleicon-loop:before {
    	content: '';
    	display: block;
    }
    
    .vantage-circleicon-loop:after {
    	clear: both;
    	content: '';
    	display: table;
    }
    
    .vantage-circleicon-loop .widget_circleicon-widget {
    	width: 33.333%;
    
    	clear: none;
    	float: left;
    }
    
    .vantage-circleicon-loop .widget_circleicon-widget .circle-icon-box {
    	padding-left: 20px;
    	padding-right: 20px;
    }
    
    /* This will override anything from WooCommerce core CSS */
    
    .woocommerce #page-wrapper .button {
    	width: auto;
    
    	background: #ffffff;
    	background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dfdfdf), color-stop(1, #ffffff));
    	background: -ms-linear-gradient(bottom, #dfdfdf, #ffffff);
    	background: -moz-linear-gradient(center bottom, #dfdfdf 0%, #ffffff 100%);
    	background: -o-linear-gradient(#ffffff, #dfdfdf);
    	border-bottom: solid 1px #9f9f9f;
    	border-left: solid 1px #c3c3c3;
    	-webkit-border-radius: 3px;
    	-moz-border-radius: 3px;
    	border-radius: 3px;
    	border-right: solid 1px #c3c3c3;
    	border-top: solid 1px #d2d2d2;
    	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	box-shadow: 0 1px 1px rgba(0,0,0,0.125), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    	color: #646464;
    	cursor: pointer; /* Corrects inability to style clickable 'input' types in iOS */
    	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf', GradientType=0);
    	line-height: 1;
    	text-decoration: none; /* Improves usability and consistency of cursor style between image-type 'input' and others */
    	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    	-webkit-appearance: button;
    }
    
    .woocommerce #page-wrapper .product h1.entry-title {
    	color: #3b3b3b;
    	font-size: 22px;
    	margin-bottom: 20px;
    }
    
    .woocommerce #page-wrapper .product h1.entry-title a {
    	color: inherit;
    	font-size: 20px;
    	font-weight: bold;
    	text-decoration: none;
    }
    
    .woocommerce-page #container {
    	width: 71.287%;
    
    	float: left;
    }
    
    @media (max-width: 680px) {
    
    	body.responsive.woocommerce-page #container {
    		width: auto;
    
    		float: none;
    	}
    
    }
    
    @media (max-width: 480px) {
    
    	body.responsive.woocommerce-page #container ul.products li.product {
    		width: 240px;
    
    		float: none;
    		margin-left: auto;
    		margin-right: auto;
    	}
    
    }

    Buenas tardes, me estoy volviendo loco.
    Este es mi codigo CSS del template http://grupopetrel.com/web.

    Necesito centrar el menu de arriba. y no lo encuentro vengo intentando hace dias, tambien necesito cambiar el color del footer!!

    Desde ya espero una ayuda
    Gracias

    Iniciador del debate prepu

    (@prepu)

    Hola Jesusjbr, tengo instalas la versión 2.0.13 de woocommerce y el thema Sommerce. En teoría todo funciona correctamente. Es decir, la empresa recibe un email cuando el pedido se realiza. El cliente no lo recibe hasta que está completado (eso es algo que me gustaría que no fuera así).
    El problema es que cuando le doy a pedido completado, se manda el email al cliente, pero no es una factura como tal. Es un «pedido» y eso es lo que me gustaría cambiar.
    Me gustaría que fuera una factura oficial y a poder ser en pdf, que parece más profesional.

Viendo 15 resultados - del 301 al 315 (de un total de 318)