PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wpnull24
/
framework
/
templates
/
elements
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Shortcode: us_page_title */ $classes = $schema_heading = $output = ''; $classes .= ' align_' . $align; if ( $inline AND $align != 'center' ) { $classes .= ' type_inline'; } if ( ! empty( $css ) AND function_exists( 'vc_shortcode_custom_css_class' ) ) { $classes .= ' ' . vc_shortcode_custom_css_class( $css ); } $classes .= ( ! empty( $el_class ) ) ? ( ' ' . $el_class ) : ''; $el_id = ( ! empty( $el_id ) ) ? ( ' id="' . esc_attr( $el_id ) . '"' ) : ''; // Generate inline styles $inline_css = us_prepare_inline_css( array( 'font-family' => $font, 'font-weight' => $font_weight, 'text-transform' => $text_transform, 'font-style' => $font_style, 'font-size' => $font_size, 'line-height' => $line_height, 'color' => $color, ), TRUE, $tag ); // Add microdata depending on the relevant Theme Option if ( us_get_option( 'schema_markup' ) ) { $schema_heading = ' itemprop="headline"'; } // Get title based on page type if ( is_home() ) { $title = us_translate( 'All Posts' ); } elseif ( is_search() ) { $title = sprintf( us_translate( 'Search results for “%s”' ), esc_attr( get_search_query() ) ); } elseif ( is_author() ) { $title = sprintf( us_translate( 'Posts by %s' ), get_the_author() ); } elseif ( is_tag() ) { $title = single_tag_title( '', FALSE ); } elseif ( is_category() ) { $title = single_cat_title( '', FALSE ); } elseif ( is_tax() ) { $title = single_term_title( '', FALSE ); } elseif ( function_exists( 'is_shop' ) AND is_shop() ) { $title = woocommerce_page_title( '', FALSE ); } elseif ( is_archive() ) { $post_type = get_post_type_object( get_post_type() ); if ( isset( $post_type->labels->name ) ) { $title = $post_type->labels->name; } } elseif ( is_404() ) { $title = us_translate( 'Page not found' ); } else { $title = get_the_title(); } // Output the element if ( $title != '' ) { $output .= '<' . $tag . ' class="w-page-title' . $classes . '"'; $output .= $el_id . $schema_heading . $inline_css; $output .= '>'; $output .= $title; $output .= '</' . $tag . '>'; } if ( $description AND term_description() ) { $output .= '<div class="w-term-description">' . term_description() . '</div>'; } echo $output;
[+]
..
[-] person.php
[edit]
[-] separator.php
[edit]
[-] post_custom_field.php
[edit]
[-] post_image.php
[edit]
[-] page_block.php
[edit]
[-] image_slider.php
[edit]
[-] cform.php
[edit]
[-] progbar.php
[edit]
[-] btn.php
[edit]
[-] product_field.php
[edit]
[-] socials.php
[edit]
[-] cta.php
[edit]
[-] message.php
[edit]
[-] vc_wp_custommenu.php
[edit]
[-] contacts.php
[edit]
[-] post_taxonomy.php
[edit]
[-] flipbox.php
[edit]
[-] grid.php
[edit]
[-] post_comments.php
[edit]
[-] gallery.php
[edit]
[-] sharing.php
[edit]
[-] post_date.php
[edit]
[-] product_ordering.php
[edit]
[-] post_navigation.php
[edit]
[-] add_to_cart.php
[edit]
[-] product_gallery.php
[edit]
[-] gmaps.php
[edit]
[-] vc_tta_tabs.php
[edit]
[-] breadcrumbs.php
[edit]
[-] page_title.php
[edit]
[-] counter.php
[edit]
[-] vc_video.php
[edit]
[-] cart.php
[edit]
[-] post_content.php
[edit]
[-] image.php
[edit]
[-] vc_row_inner.php
[edit]
[-] dropdown.php
[edit]
[-] iconbox.php
[edit]
[-] vc_column.php
[edit]
[-] post_title.php
[edit]
[-] hwrapper.php
[edit]
[-] .elements.php
[edit]
[-] vc_column_text.php
[edit]
[-] additional_menu.php
[edit]
[-] vc_tta_section.php
[edit]
[-] popup.php
[edit]
[-] scroller.php
[edit]
[-] menu.php
[edit]
[-] pricing.php
[edit]
[-] search.php
[edit]
[-] text.php
[edit]
[-] post_author.php
[edit]
[-] vc_row.php
[edit]
[-] itext.php
[edit]
[-] html.php
[edit]