at path:
ROOT
/
wp-content
/
themes
/
upaper
/
inc
/
extras.php
run:
R
W
Run
plugins
DIR
2025-05-31 09:02:55
R
W
Run
.DS_Store
6 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
class-tgm-plugin-activation.php
98.18 KB
2025-05-31 09:02:55
R
W
Run
Delete
Rename
color-scheme.php
1.74 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
custom-header.php
2.03 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
customizer.php
942 By
2025-05-31 09:02:55
R
W
Run
Delete
Rename
extras.php
2.69 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
jetpack.php
951 By
2025-05-31 09:02:51
R
W
Run
Delete
Rename
load-more.php
1.93 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
menu-icons.php
5.73 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
one-click-demo-import.php
5.76 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
post-rating.php
1010 By
2025-05-31 09:02:51
R
W
Run
Delete
Rename
register-scripts.php
2.84 KB
2025-05-31 09:02:55
R
W
Run
Delete
Rename
template-tags.php
8.32 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
urdu-date.php
2.42 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
urdu-keyboard.php
5.74 KB
2025-05-31 09:02:55
R
W
Run
Delete
Rename
views-counter.php
1.89 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
widget-catposts.php
5.36 KB
2025-05-31 09:02:51
R
W
Run
Delete
Rename
widget-featured-pots.php
3.32 KB
2025-05-31 09:02:55
R
W
Run
Delete
Rename
widgets.php
53 By
2025-05-31 09:02:55
R
W
Run
Delete
Rename
error_log
up
📄
extras.php
Save
<?php /** * Custom functions that act independently of the theme templates * * Eventually, some of the functionality here could be replaced by core features * * @package Urdu Paper */ /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function upaper_body_classes( $classes ) { // Adds a class of group-blog to blogs with more than 1 published author. if ( is_multi_author() ) { $classes[] = 'group-blog'; } return $classes; } add_filter( 'body_class', 'upaper_body_classes' ); if ( version_compare( $GLOBALS['wp_version'], '4.1', '<' ) ) : /** * Filters wp_title to print a neat <title> tag based on what is being viewed. * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. */ function upaper_wp_title( $title, $sep ) { if ( is_feed() ) { return $title; } global $page, $paged; // Add the blog name. $title .= get_bloginfo( 'name', 'display' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { $title .= " $sep $site_description"; } // Add a page number if necessary. if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $title .= " $sep " . sprintf( esc_html__( 'Page %s', 'upaper' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'upaper_wp_title', 10, 2 ); /** * Title shim for sites older than WordPress 4.1. * * @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/ * @todo Remove this function when WordPress 4.3 is released. */ function upaper_render_title() { ?> <title><?php wp_title( '|', true, 'right' ); ?></title> <?php } add_action( 'wp_head', 'upaper_render_title' ); endif; /********************* PAGE NAVI *********************/ // Numeric Page Navi (built into the theme by default) function uppaper_page_navi() { global $wp_query; $bignum = 999999999; if ( $wp_query->max_num_pages <= 1 ) return; echo '<nav class="pagination">'; echo paginate_links( array( 'base' => str_replace( $bignum, '%#%', esc_url( get_pagenum_link($bignum) ) ), 'format' => '', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'prev_text' => '→', 'next_text' => '←', 'type' => 'list', 'end_size' => 3, 'mid_size' => 3 ) ); echo '</nav>'; } /* end page navi */