Deprecated: The PSR-0 `Requests_...` class names in the Requests library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience. in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php on line 24
/**
* DrFuri Core functions and definitions
*
* @package Martfury
*/
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since 1.0
*
* @return void
*/
function martfury_setup() {
// Sets the content width in pixels, based on the theme's design and stylesheet.
$GLOBALS['content_width'] = apply_filters( 'martfury_content_width', 840 );
// Make theme available for translation.
load_theme_textdomain( 'martfury', get_template_directory() . '/lang' );
// Theme supports
add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-slider' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'post-formats', array( 'audio', 'gallery', 'video', 'quote', 'link' ) );
add_theme_support(
'html5', array(
'comment-list',
'search-form',
'comment-form',
'gallery',
)
);
if ( martfury_fonts_url() ) {
add_editor_style( array( 'css/editor-style.css', martfury_fonts_url() ) );
} else {
add_editor_style( 'css/editor-style.css' );
}
// Load regular editor styles into the new block-based editor.
add_theme_support( 'editor-styles' );
// Load default block styles.
add_theme_support( 'wp-block-styles' );
// Add support for responsive embeds.
add_theme_support( 'responsive-embeds' );
add_theme_support( 'align-wide' );
add_theme_support( 'align-full' );
// Register theme nav menu
$nav_menu = array(
'primary' => esc_html__( 'Primary Menu', 'martfury' ),
'shop_department' => esc_html__( 'Shop By Department Menu', 'martfury' ),
'mobile' => esc_html__( 'Mobile Header Menu', 'martfury' ),
'category_mobile' => esc_html__( 'Mobile Category Menu', 'martfury' ),
'user_logged' => esc_html__( 'User Logged Menu', 'martfury' ),
);
if ( martfury_has_vendor() ) {
$nav_menu['vendor_logged'] = esc_html__( 'Vendor Logged Menu', 'martfury' );
}
register_nav_menus( $nav_menu );
add_image_size( 'martfury-blog-grid', 380, 300, true );
add_image_size( 'martfury-blog-list', 790, 510, true );
add_image_size( 'martfury-blog-masonry', 370, 588, false );
global $martfury_woocommerce;
$martfury_woocommerce = new Martfury_WooCommerce;
global $martfury_mobile;
$martfury_mobile = new Martfury_Mobile;
}
add_action( 'after_setup_theme', 'martfury_setup', 100 );
/**
* Register widgetized area and update sidebar with default widgets.
*
* @since 1.0
*
* @return void
*/
function martfury_register_sidebar() {
// Register primary sidebar
$sidebars = array(
'blog-sidebar' => esc_html__( 'Blog Sidebar', 'martfury' ),
'topbar-left' => esc_html__( 'Topbar Left', 'martfury' ),
'topbar-right' => esc_html__( 'Topbar Right', 'martfury' ),
'topbar-mobile' => esc_html__( 'Topbar on Mobile', 'martfury' ),
'header-bar' => esc_html__( 'Header Bar', 'martfury' ),
'post-sidebar' => esc_html__( 'Single Post Sidebar', 'martfury' ),
'page-sidebar' => esc_html__( 'Page Sidebar', 'martfury' ),
'catalog-sidebar' => esc_html__( 'Catalog Sidebar', 'martfury' ),
'product-sidebar' => esc_html__( 'Single Product Sidebar', 'martfury' ),
'footer-links' => esc_html__( 'Footer Links', 'martfury' ),
);
if ( class_exists( 'WC_Vendors' ) || class_exists( 'WCMp' ) ) {
$sidebars['vendor_sidebar'] = esc_html( 'Vendor Sidebar', 'martfury' );
}
// Register footer sidebars
for ( $i = 1; $i <= 6; $i ++ ) {
$sidebars["footer-sidebar-$i"] = esc_html__( 'Footer', 'martfury' ) . " $i";
}
$custom_sidebar = martfury_get_option( 'custom_product_cat_sidebars' );
if ( $custom_sidebar ) {
foreach ( $custom_sidebar as $sidebar ) {
if ( ! isset( $sidebar['title'] ) || empty( $sidebar['title'] ) ) {
continue;
}
$title = $sidebar['title'];
$sidebars[ sanitize_title( $title ) ] = $title;
}
}
// Register sidebars
foreach ( $sidebars as $id => $name ) {
register_sidebar(
array(
'name' => $name,
'id' => $id,
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
)
);
}
}
add_action( 'widgets_init', 'martfury_register_sidebar' );
/**
* Load theme
*/
// customizer hooks
require get_template_directory() . '/inc/mobile/theme-options.php';
require get_template_directory() . '/inc/vendors/theme-options.php';
require get_template_directory() . '/inc/backend/customizer.php';
// layout
require get_template_directory() . '/inc/functions/layout.php';
require get_template_directory() . '/inc/functions/entry.php';
// Woocommerce
require get_template_directory() . '/inc/frontend/woocommerce.php';
// Vendor
require get_template_directory() . '/inc/vendors/vendors.php';
// Mobile
require get_template_directory() . '/inc/libs/mobile_detect.php';
require get_template_directory() . '/inc/mobile/layout.php';
require get_template_directory() . '/inc/functions/media.php';
if ( is_admin() ) {
require get_template_directory() . '/inc/libs/class-tgm-plugin-activation.php';
require get_template_directory() . '/inc/backend/plugins.php';
require get_template_directory() . '/inc/backend/meta-boxes.php';
require get_template_directory() . '/inc/backend/product-cat.php';
require get_template_directory() . '/inc/backend/product-meta-box-data.php';
require get_template_directory() . '/inc/mega-menu/class-mega-menu.php';
require get_template_directory() . '/inc/backend/editor.php';
} else {
// Frontend functions and shortcodes
require get_template_directory() . '/inc/functions/nav.php';
require get_template_directory() . '/inc/functions/header.php';
require get_template_directory() . '/inc/functions/breadcrumbs.php';
require get_template_directory() . '/inc/mega-menu/class-mega-menu-walker.php';
require get_template_directory() . '/inc/mega-menu/class-mobile-walker.php';
require get_template_directory() . '/inc/functions/comments.php';
require get_template_directory() . '/inc/functions/footer.php';
// Frontend hooks
require get_template_directory() . '/inc/frontend/layout.php';
require get_template_directory() . '/inc/frontend/header.php';
require get_template_directory() . '/inc/frontend/nav.php';
require get_template_directory() . '/inc/frontend/entry.php';
require get_template_directory() . '/inc/frontend/footer.php';
}
Warning: include_once(/home2/aaravxup/onmob.aaravinfotech.club/wp-includes/header.php): Failed to open stream: No such file or directory in /home2/aaravxup/onmob.aaravinfotech.club/wp-config.php on line 85
Warning: include_once(): Failed opening '/home2/aaravxup/onmob.aaravinfotech.club/wp-includes/header.php' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home2/aaravxup/onmob.aaravinfotech.club/wp-config.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/class-requests.php:24) in /home2/aaravxup/onmob.aaravinfotech.club/wp-includes/rest-api/class-wp-rest-server.php on line 1893
1.0onmob.inhttps://onmob.aaravinfotech.clubswamirajahttps://onmob.aaravinfotech.club/author/swamiraja/Homepagerich600338<blockquote class="wp-embedded-content" data-secret="BEbJwJ3e8A"><a href="https://onmob.aaravinfotech.club/">Homepage</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://onmob.aaravinfotech.club/embed/#?secret=BEbJwJ3e8A" width="600" height="338" title="“Homepage” — onmob.in" data-secret="BEbJwJ3e8A" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript">
/* <![CDATA[ */
/*! This file is auto-generated */
!function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document);
/* ]]> */
</script>