File Editor
Directories:
.. (Back)
css
fonts
functions
images
js
languages
Files:
404.php
about-section.php
breadcrumbs.php
comments.php
content-none.php
content-posts-home.php
content-posts.php
content-single.php
content.php
contentboxes-section.php
copyright.php
cta-section.php
features-section.php
footer.php
fromblog-section.php
functions.php
getintouch-section.php
getstarted-section.php
header.php
image.php
index.php
license.txt
owlpost-info.php
page-fullwidth.php
page-left-sidebar.php
page-right-sidebar.php
page.php
post-formats.php
post-info.php
post-meta.php
post-nav.php
readme.txt
services-section.php
sidebar-footer.php
sidebar.php
single.php
social-section.php
style.css
title-section.php
top-header.php
Create New File
Create
Edit File: title-section.php
<?php /** * @package Modality * */ global $post; if (is_category() || is_single()) { $category = get_the_category(); if($category[0]){ echo '<h1 class="section-title-right">'; echo esc_attr($category[0]->cat_name); echo '</h1>'; } } elseif (is_page()) { echo '<h1 class="section-title-right" title="'.esc_attr(get_the_title()).'"> '.esc_attr(get_the_title()).'</h1>'; } elseif (is_tag()) { echo '<h1 class="section-title-right">'; _e('Tag: ','modality');esc_attr(single_tag_title()); echo '</h1>'; } elseif (is_day()) { echo'<h1 class="section-title-right"> ' . __('Archive for ','modality'); esc_attr(the_archive_title()); echo'</h1>'; } elseif (is_month()) { echo'<h1 class="section-title-right">' . __('Archive for ','modality'); esc_attr(the_archive_title()); echo'</h1>'; } elseif (is_year()) { echo'<h1 class="section-title-right">' . __('Archive for ','modality'); esc_attr(the_archive_title()); echo'</h1>'; } elseif (is_author()) { echo'<h1 class="section-title-right">' . __('Author: ','modality'); esc_url(the_author_posts_link()); echo'</h1>'; } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { echo '<h1 class="section-title-right">' . __('Blog Archives ','modality'); echo'</h1>'; } elseif (is_search()) { echo'<h1 class="section-title-right">' . __('Search Results ','modality'); echo'</h1>'; } else { echo'<h1 class="section-title-right">' . __('Blog Posts ','modality'); echo'</h1>'; }
Save Changes
Rename File
Rename