' . get_bloginfo( 'name', 'display' ) . ''; $theme_link = ''; /* translators: 1: Current Year, 2: Site Name, 3: Theme Name. */ $footer_copyright = sprintf( esc_html__( 'Copyright © %1$s %2$s. Theme: %3$s By ThemeGrill.', 'zakra' ), esc_attr( date( 'Y' ) ), $site_link, $theme_link ); return $footer_copyright; } endif; if ( ! function_exists( 'zakra_search_icon_menu_item' ) ) : /** * Renders search icon menu item. */ function zakra_search_icon_menu_item() { $output = ''; if ( true === get_theme_mod( 'tg_header_menu_search_enabled', true ) ) : $output = ''; $output .= ''; endif; return $output; } endif; if ( ! function_exists( 'zakra_get_layout_type' ) ) : /** * Get layout type. * * @return string A layout type. */ function zakra_get_layout_type() { global $post; $layout = 'tg-site-layout--right'; // Set default. if ( $post ) { // Meta value. $layout_meta_arr = get_post_meta( $post->ID, 'zakra_layout' ); $layout_meta = isset( $layout_meta_arr[0] ) ? $layout_meta_arr[0] : 'tg-site-layout--customizer'; // Get layout from Customizer. if ( 'tg-site-layout--customizer' === $layout_meta ) { if ( is_single() ) { $layout = get_theme_mod( 'zakra_structure_post', 'tg-site-layout--right' ); } elseif ( is_page() ) { $layout = get_theme_mod( 'zakra_structure_page', 'tg-site-layout--right' ); } elseif ( is_archive() ) { $layout = get_theme_mod( 'zakra_structure_archive', 'tg-site-layout--right' ); } else { $layout = get_theme_mod( 'zakra_structure_default', 'tg-site-layout--right' ); } } else { // Get layout from Meta box. $layout = $layout_meta; } } return $layout; } endif;