Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'kleo_title_main_content' ) ) {
- /**
- * Echo the title if it was set to show in main content area
- */
- function kleo_title_main_content() {
- if ( sq_option( 'title_location', 'breadcrumb' ) == 'main' && sq_option( 'title_status', 1 ) != 0 ) {
- $title_status = true;
- if ( ( is_singular() || is_home() ) && get_cfield( 'title_checkbox' ) == 1 ) {
- $title_status = false;
- }
- if ( $title_status ) {
- if ( ( is_singular() || is_home() ) && get_cfield( 'custom_title' ) && get_cfield( 'custom_title' ) != '' ) {
- $title = get_cfield( 'custom_title' );
- } else {
- $title = kleo_title();
- }
- echo '<div class="container">';
- echo get_the_tag_list('<span class="custom-tag-list">', '', '</span>');
- echo '<h1 class="page-title">' . $title . '</h1>';
- echo '</div>';
- echo '<style>
- span.custom-tag-list a {
- padding: 5px 10px;
- background: #eee;
- margin-right: 10px;
- color: #000;
- border-radius: 5px;
- border: 1px solid #ddd;
- font-size: 13px;
- }
- </style>';
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement