Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Banner Title
- function saasland_banner_title() {
- $opt = get_option('saasland_opt');
- if(is_home()) {
- $blog_title = !empty($opt['blog_title']) ? $opt['blog_title'] : esc_html__('Blog', 'appland');
- echo esc_html($blog_title);
- }
- elseif(is_page() || is_single()) {
- the_title();
- }
- elseif(is_archive()) {
- the_archive_title();
- }
- elseif(is_category()) {
- single_cat_title();
- }
- elseif (class_exists('WooCommerce')) {
- if (is_shop()) {
- echo !empty($opt['shop_title']) ? esc_html($opt['shop_title']) : esc_html__('Shop', 'saasland');
- }
- }
- else {
- the_title();
- }
- }
- function saasland_banner_subtitle() {
- if(is_home()) {
- $blog_subtitle = !empty($opt['blog_subtitle']) ? $opt['blog_subtitle'] : get_bloginfo('description');
- echo esc_html($blog_subtitle);
- }
- elseif(is_page() || is_single()) {
- echo nl2br(get_the_excerpt());
- }
- elseif (class_exists('WooCommerce')) {
- if (is_shop()) {
- echo !empty($opt['shop_subtitle']) ? esc_html($opt['shop_subtitle']) : '';
- }
- }
- }
Add Comment
Please, Sign In to add comment