<?php
/**
* Omni functions and definitions.
*
* @link https://codex.wordpress.org/Functions_File_Explained
*
* @package omni
*/
if ( ! function_exists( 'omni_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function omni_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on omni, use a find and replace
* to change 'omni' to the name of your theme in all the template files
*/
load_theme_textdomain( 'omni', 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' );
/*
* 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(
'main-menu' => esc_html__( 'Main Menu', 'omni' ),
'footer-menu' => esc_html__( 'Footer Menu', 'omni' ),
) );
/*
* 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',
) );
/*
* Enable support for Post Formats.
* See https://developer.wordpress.org/themes/functionality/post-formats/
*/
add_theme_support( 'post-formats', array(
'quote',
'audio',
'image',
'video',
'gallery',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'omni_custom_background_args', array(
'default-color' => 'FFFFFF',
'default-image' => '',
) ) );
add_editor_style( get_stylesheet_directory_uri() . '/css/editor.css' );
}
endif;
add_action( 'after_setup_theme', 'omni_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
*/
if ( ! isset( $content_width ) ) {
$content_width = 750;
}
add_action( 'switch_theme', 'omni_enforce_image_size_options' );
/**
* Change image sizes for blog on theme activation.
*/
function omni_enforce_image_size_options() {
update_option( 'thumbnail_crop', 0 );
update_option( 'medium_size_w', 750 );
update_option( 'medium_size_h', 465 );
update_option( 'large_size_w', 1140 );
update_option( 'large_size_h', 450 );
}
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function omni_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'omni' ),
'id' => 'primary',
'description' => '',
'before_widget' => '<div id="%1$s" class="widget-entry clearfix %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3><!-- end widget-title -->',
) );
$footer = '<div id="%1$s" class="widget';
$footer .= ' col-sm-6 col-md-' . reactor_get_widget_columns( 'footer' );
$footer .= ' %2$s">';
register_sidebar( array(
'name' => esc_html__( 'Footer Sidebar', 'omni' ),
'id' => 'footer',
'description' => '',
'before_widget' => $footer,
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3><!-- end widget-title -->',
) );
}
add_action( 'widgets_init', 'omni_widgets_init' );
/**
* Enqueue scripts and styles.
*/
function omni_scripts() {
if ( ! is_admin() ) {
wp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.min.css' );
wp_enqueue_style( 'devices', get_template_directory_uri() . '/css/devices.min.css' );
wp_enqueue_style( 'swiper-slider-css', get_template_directory_uri() . '/css/idangerous.swiper.css' );
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_style( 'animate-css', get_template_directory_uri() . '/css/animate.css' );
// TODO: Load 1 font awesome for all modules / plugins.
wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css' );
wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '', true );
wp_enqueue_script( 'global-js', get_template_directory_uri() . '/js/global.js', array('jquery'), '', true );
wp_enqueue_script( 'idangerous-swiper', get_template_directory_uri() . '/js/idangerous.swiper.min.js', array('jquery'), '', true );
wp_enqueue_script( 'wow-animation', get_template_directory_uri() . '/js/wow.min.js', array('jquery'), '', true );
wp_enqueue_script( 'sharrre-js', get_template_directory_uri() . '/js/jquery.sharrre.min.js', array('jquery'), '', true );
wp_enqueue_script( 'ajax-subscription', get_template_directory_uri() . '/js/subscription.js', array('jquery'), '', true );
}
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
// Custom Google fonts for heading.
$custom_font_heading = cs_get_customize_option( 'heading_typography_use_custom' );
$custom_font_settings_heading = cs_get_customize_option( 'heading_typography_custom_font' );
if ( isset( $custom_font_heading ) && ( true === $custom_font_heading ) && isset( $custom_font_settings_heading ) && ! ( empty( $custom_font_settings_heading ) ) ) {
$typography_selected_styles = 'latin,greek,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
$enqueue_fonts = $custom_font_settings_heading . '&subset=' . $typography_selected_styles;
wp_enqueue_style( 'crum-heading-google-fonts', esc_url( add_query_arg( 'family', ( $enqueue_fonts ), 'https://fonts.googleapis.com/css' ) ), array(), null );
}
// Custom Google fonts for body.
$custom_font_body = cs_get_customize_option( 'body_typography_use_custom' );
$custom_font_settings_body = cs_get_customize_option( 'body_typography_custom_font' );
if ( isset( $custom_font_body ) && ( true === $custom_font_body ) && isset( $custom_font_settings_body ) && ! ( empty( $custom_font_settings_body ) ) ) {
$typography_selected_styles = 'latin,greek,greek-ext,vietnamese,cyrillic-ext,latin-ext,cyrillic';
$enqueue_fonts = $custom_font_settings_body . '&subset=' . $typography_selected_styles;
wp_enqueue_style( 'crum-body-google-fonts', esc_url( add_query_arg( 'family', ( $enqueue_fonts ), 'https://fonts.googleapis.com/css' ) ), array(), null );
}
}
add_action( 'wp_enqueue_scripts', 'omni_scripts' );
/**
* Disable unused framework components.
*/
define( 'CS_ACTIVE_FRAMEWORK', false );
/**
* Disable unused framework components.
*/
define( 'CS_ACTIVE_SHORTCODE', false );
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.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_once get_template_directory() . '/inc/cs-framework/cs-framework.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';
/*
* admin scripts
*/
add_action( 'admin_enqueue_scripts', 'crum_register_admin_scripts' );
add_action( 'admin_enqueue_scripts', 'crum_enqueue_admin_scripts' );
/**
* Register Theme JS /CSS for wp admin.
*/
function crum_register_admin_scripts() {
wp_register_script( 'crumina-admin-area-scripts', get_template_directory_uri() . '/js/admin-scripts.js', array(), false, true );
}
/**
* Include Theme JS /CSS in wp admin.
*/
function crum_enqueue_admin_scripts() {
wp_enqueue_script( 'crumina-admin-area-scripts' );
wp_enqueue_media();
wp_enqueue_style( 'crum-fonts-admin', crum_fonts_url(), array(), '1.0.0' );
}
/**
* Require theme extensions
*/
// TGM.
require_once get_template_directory() . '/inc/plugins/tgm-config.php';
// Custom colors.
require_once get_template_directory() . '/inc/extensions/styles.php';
// Updater.
require_once get_template_directory() . '/inc/extensions/omni-update.php';
if( ! function_exists( 'update_my_theme' ) ){
function update_my_theme() {
$theme_purchase_code = cs_get_customize_option('theme_purchase_code');
$theme_access_token = cs_get_customize_option('theme_access_token');
if( class_exists( 'WPES_Envato_Theme_Update' ) ){
new WPES_Envato_Theme_Update( basename( get_template_directory() ) , $theme_purchase_code , $theme_access_token , false );
}
}
add_action( 'init' , 'update_my_theme' );
}
// Ttheme thumb.
if ( ! function_exists( 'crum_theme_thumb' ) ) :
/**
* Dynamic Resize Images.
*
* @param string $url url of image.
* @param int $width Width for resized image.
* @param int $height Height for resized image.
* @param bool $crop Crop image.
* @param string $align Align for image crop.
*
* @return string
*/
function crum_theme_thumb( $url, $width, $height = 0, $crop, $align = '' ) {
require_once get_template_directory() . '/inc/extensions/mr-image-resize.php';
if ( extension_loaded( 'gd' ) ) {
return mr_image_resize( $url, $width, $height, $crop, $align, false );
} else {
return $url;
}
}
endif;
if ( ! ( function_exists( 'crum_thousands_convert' ) ) ) {
/**
* Convert big nubers to smaller.
*
* @param int $amount Input number to convert.
*
* @return string
*/
function crum_thousands_convert( $amount ) {
$k_meter = 1000;
$k100_meter = 100000;
if ( ( $amount > $k_meter ) && ( $amount < $k100_meter ) ) {
$amount = round( $amount / $k_meter, 1 ) . 'k';
} elseif ( $amount > $k100_meter ) {
$amount = round( $amount / $k_meter, 0 ) . 'k';
} else {
return $amount;
}
return $amount;
}
}
if ( ! function_exists( 'crum_main_menu' ) ) {
/**
* Init Theme main menu.
*/
function crum_main_menu() {
$page_meta = get_post_meta( get_the_ID(), 'custom_sidebar_options', true );
$defaults = array(
'theme_location' => 'main-menu',
'container' => false,
'depth' => 5,
'echo' => true,
'fallback_cb' => 'crum_menu_fallback',
'menu_class' => false,
'walker' => new Crum_Nav_Menu_Walker(),
);
if ( isset( $page_meta['meta-page-menu'] ) && ! ( 'default' === $page_meta['meta-page-menu'] ) && ! ( '' === $page_meta['meta-page-menu'] ) ) {
$defaults['menu'] = $page_meta['meta-page-menu'];
}
wp_nav_menu( $defaults );
}
}
if ( ! function_exists( 'crum_footer_menu' ) ) {
/**
* Init Theme main menu.
*/
function crum_footer_menu() {
$defaults = array(
'theme_location' => 'footer-menu',
'container' => false,
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 1,
'echo' => true,
'menu_class' => 'footer-linck',
);
wp_nav_menu( $defaults );
}
}
require_once get_template_directory() . '/inc/extensions/walkers.php';
//tinyMCE shortcodes
require get_template_directory() . '/inc/shortcodes/tinyMCE-shortcodes.php';
/**
* Display social networks icons.
*
* @param bool|true $display_icon Show soc network pictogramm.
*/
function crum_do_socnetworks( $display_icon = true ) {
$soc_networks_array = array(
'fa fa-facebook' => esc_html__( 'Facebook', 'omni' ),
'fa fa-google' => esc_html__( 'Google', 'omni' ),
'fa fa-twitter' => esc_html__( 'Twitter', 'omni' ),
'fa fa-instagram' => esc_html__( 'Instagram', 'omni' ),
'fa fa-xing' => esc_html__( 'Xing', 'omni' ),
'fa fa-lastfm' => esc_html__( 'LastFM', 'omni' ),
'fa fa-dribbble' => esc_html__( 'Dribble', 'omni' ),
'fa fa-vk' => esc_html__( 'Vkontakte', 'omni' ),
'fa fa-youtube' => esc_html__( 'Youtube', 'omni' ),
'fa fa-windows' => esc_html__( 'Microsoft', 'omni' ),
'fa fa-deviantart' => esc_html__( 'Deviantart', 'omni' ),
'fa fa-linkedin' => esc_html__( 'LinkedIN', 'omni' ),
'fa fa-pinterest' => esc_html__( 'Pinterest', 'omni' ),
'fa fa-wordpress' => esc_html__( 'Wordpress', 'omni' ),
'fa fa-behance' => esc_html__( 'Behance', 'omni' ),
'fa fa-flickr' => esc_html__( 'Flickr', 'omni' ),
'fa fa-rss' => esc_html__( 'RSS', 'omni' ),
);
$output = '';
foreach ( $soc_networks_array as $icon => $soc_network ) {
$soc_network_link = cs_get_customize_option( 'soc_' . str_replace( 'fa fa-', '', $icon ) );
if ( isset( $soc_network_link ) && ! empty( $soc_network_link ) ) {
$output .= '<a href="' . esc_url( $soc_network_link ) . '" title="' . esc_attr( $soc_network ) . '">';
$output .= '<i class="' . esc_attr( $icon ) . '"></i>';
$output .= '</a>';
}
}
echo $output; // WPCS: XSS OK.
}
/**
* Add tags to allowedtags filter
*/
add_action( 'init', function () {
global $allowedtags;
$allowedtags['i'] = array(
'class' => array(),
);
$allowedtags['img'] = array(
'src' => array(),
'alt' => array(),
'width' => array(),
'height' => array(),
'class' => array(),
);
$allowedtags['iframe'] = array(
'src' => array(),
'height' => array(),
'width' => array(),
);
$allowedtags['span'] = array(
'class' => array(),
);
} );
/**
* Register Fonts.
*/
function crum_fonts_url() {
$font_url = '';
/*
Translators: If there are characters in your language that are not supported
by chosen font(s), translate this to 'off'. Do not translate into your own language.
*/
if ( 'off' !== _x( 'on', 'Google font: on or off', 'omni' ) ) {
$font_url = add_query_arg( 'family', urlencode( 'Crimson Text:400,700italic,700,600italic,600,400italic|PT Sans:400,700,400italic,700italic&subset=cyrillic,cyrillic-ext' ), 'https://fonts.googleapis.com/css' );
}
return $font_url;
}
// Load VC if not already active.
if ( function_exists( 'vc_set_as_theme' ) ) {
vc_set_as_theme( $disable_updater = true );
}
function crum_list_categories_count( $output ) {
$output = str_replace( '(', '<span>(', $output );
$output = str_replace( ')', ')</span>', $output );
return $output;
}
add_filter( 'wp_list_categories', 'crum_list_categories_count' );
add_filter( 'get_archives_link', 'crum_archives_count' );
function crum_archives_count( $links ) {
$links = str_replace( ' ', '', $links );
$links = str_replace( '(', '<span>(', $links );
$links = str_replace( ')', ')</span>', $links );
return $links;
}
/**
* Count Widgets.
* Count the number of widgets to add dynamic column class.
*
* @param string $sidebar_id id of sidebar.
*
* @since 1.0.0
* @return int
*/
function reactor_get_widget_columns( $sidebar_id ) {
$columns = apply_filters( 'reactor_columns', 12 );
$the_sidebars = wp_get_sidebars_widgets();
if ( ! isset( $the_sidebars[ $sidebar_id ] ) ) {
return esc_html__( 'Invalid sidebar ID', 'omni' );
}
$num = count( $the_sidebars[ $sidebar_id ] );
switch ( $num ) {
case 1 :
$num = $columns;
break;
case 2 :
$num = $columns / 2;
break;
case 3 :
$num = $columns / 3;
break;
case 4 :
$num = $columns / 4;
break;
case 5 :
$num = $columns / 5;
break;
case 6 :
$num = $columns / 6;
break;
case 7 :
$num = $columns / 7;
break;
case 8 :
$num = $columns / 8;
break;
}
$num = floor( $num );
return $num;
}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 79, Position 2 = 84
Branch analysis from position: 79
2 jumps found. (Code = 43) Position 1 = 89, Position 2 = 90
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 95, Position 2 = 96
Branch analysis from position: 95
2 jumps found. (Code = 43) Position 1 = 101, Position 2 = 102
Branch analysis from position: 101
2 jumps found. (Code = 43) Position 1 = 107, Position 2 = 108
Branch analysis from position: 107
2 jumps found. (Code = 43) Position 1 = 125, Position 2 = 129
Branch analysis from position: 125
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 129
Branch analysis from position: 108
Branch analysis from position: 102
Branch analysis from position: 96
Branch analysis from position: 90
Branch analysis from position: 84
Branch analysis from position: 14
Branch analysis from position: 6
filename: /in/8b6gZ
function name: (null)
number of ops: 138
compiled vars: !0 = $content_width, !1 = $disable_updater
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
10 0 E > INIT_FCALL 'function_exists'
1 SEND_VAL 'omni_setup'
2 DO_ICALL $2
3 BOOL_NOT ~3 $2
4 > JMPZ ~3, ->6
18 5 > DECLARE_FUNCTION 'omni_setup'
85 6 > INIT_FCALL_BY_NAME 'add_action'
7 SEND_VAL_EX 'after_setup_theme'
8 SEND_VAL_EX 'omni_setup'
9 DO_FCALL 0
95 10 ISSET_ISEMPTY_CV ~5 !0
11 BOOL_NOT ~6 ~5
12 > JMPZ ~6, ->14
96 13 > ASSIGN !0, 750
99 14 > INIT_FCALL_BY_NAME 'add_action'
15 SEND_VAL_EX 'switch_theme'
16 SEND_VAL_EX 'omni_enforce_image_size_options'
17 DO_FCALL 0
144 18 INIT_FCALL_BY_NAME 'add_action'
19 SEND_VAL_EX 'widgets_init'
20 SEND_VAL_EX 'omni_widgets_init'
21 DO_FCALL 0
194 22 INIT_FCALL_BY_NAME 'add_action'
23 SEND_VAL_EX 'wp_enqueue_scripts'
24 SEND_VAL_EX 'omni_scripts'
25 DO_FCALL 0
201 26 INIT_FCALL 'define'
27 SEND_VAL 'CS_ACTIVE_FRAMEWORK'
28 SEND_VAL <false>
29 DO_ICALL
207 30 INIT_FCALL 'define'
31 SEND_VAL 'CS_ACTIVE_SHORTCODE'
32 SEND_VAL <false>
33 DO_ICALL
213 34 INIT_FCALL_BY_NAME 'get_template_directory'
35 DO_FCALL 0 $13
36 CONCAT ~14 $13, '%2Finc%2Fcustomizer.php'
37 INCLUDE_OR_EVAL ~14, REQUIRE
219 38 INIT_FCALL_BY_NAME 'get_template_directory'
39 DO_FCALL 0 $16
40 CONCAT ~17 $16, '%2Finc%2Ftemplate-tags.php'
41 INCLUDE_OR_EVAL ~17, REQUIRE
224 42 INIT_FCALL_BY_NAME 'get_template_directory'
43 DO_FCALL 0 $19
44 CONCAT ~20 $19, '%2Finc%2Fextras.php'
45 INCLUDE_OR_EVAL ~20, REQUIRE
230 46 INIT_FCALL_BY_NAME 'get_template_directory'
47 DO_FCALL 0 $22
48 CONCAT ~23 $22, '%2Finc%2Fcs-framework%2Fcs-framework.php'
49 INCLUDE_OR_EVAL ~23, REQUIRE_ONCE
236 50 INIT_FCALL_BY_NAME 'get_template_directory'
51 DO_FCALL 0 $25
52 CONCAT ~26 $25, '%2Finc%2Fjetpack.php'
53 INCLUDE_OR_EVAL ~26, REQUIRE
241 54 INIT_FCALL_BY_NAME 'add_action'
55 SEND_VAL_EX 'admin_enqueue_scripts'
56 SEND_VAL_EX 'crum_register_admin_scripts'
57 DO_FCALL 0
242 58 INIT_FCALL_BY_NAME 'add_action'
59 SEND_VAL_EX 'admin_enqueue_scripts'
60 SEND_VAL_EX 'crum_enqueue_admin_scripts'
61 DO_FCALL 0
266 62 INIT_FCALL_BY_NAME 'get_template_directory'
63 DO_FCALL 0 $30
64 CONCAT ~31 $30, '%2Finc%2Fplugins%2Ftgm-config.php'
65 INCLUDE_OR_EVAL ~31, REQUIRE_ONCE
270 66 INIT_FCALL_BY_NAME 'get_template_directory'
67 DO_FCALL 0 $33
68 CONCAT ~34 $33, '%2Finc%2Fextensions%2Fstyles.php'
69 INCLUDE_OR_EVAL ~34, REQUIRE_ONCE
273 70 INIT_FCALL_BY_NAME 'get_template_directory'
71 DO_FCALL 0 $36
72 CONCAT ~37 $36, '%2Finc%2Fextensions%2Fomni-update.php'
73 INCLUDE_OR_EVAL ~37, REQUIRE_ONCE
274 74 INIT_FCALL 'function_exists'
75 SEND_VAL 'update_my_theme'
76 DO_ICALL $39
77 BOOL_NOT ~40 $39
78 > JMPZ ~40, ->84
275 79 > DECLARE_FUNCTION 'update_my_theme'
282 80 INIT_FCALL_BY_NAME 'add_action'
81 SEND_VAL_EX 'init'
82 SEND_VAL_EX 'update_my_theme'
83 DO_FCALL 0
286 84 > INIT_FCALL 'function_exists'
85 SEND_VAL 'crum_theme_thumb'
86 DO_ICALL $42
87 BOOL_NOT ~43 $42
88 > JMPZ ~43, ->90
298 89 > DECLARE_FUNCTION 'crum_theme_thumb'
308 90 > INIT_FCALL 'function_exists'
91 SEND_VAL 'crum_thousands_convert'
92 DO_ICALL $44
93 BOOL_NOT ~45 $44
94 > JMPZ ~45, ->96
316 95 > DECLARE_FUNCTION 'crum_thousands_convert'
335 96 > INIT_FCALL 'function_exists'
97 SEND_VAL 'crum_main_menu'
98 DO_ICALL $46
99 BOOL_NOT ~47 $46
100 > JMPZ ~47, ->102
339 101 > DECLARE_FUNCTION 'crum_main_menu'
361 102 > INIT_FCALL 'function_exists'
103 SEND_VAL 'crum_footer_menu'
104 DO_ICALL $48
105 BOOL_NOT ~49 $48
106 > JMPZ ~49, ->108
365 107 > DECLARE_FUNCTION 'crum_footer_menu'
385 108 > INIT_FCALL_BY_NAME 'get_template_directory'
109 DO_FCALL 0 $50
110 CONCAT ~51 $50, '%2Finc%2Fextensions%2Fwalkers.php'
111 INCLUDE_OR_EVAL ~51, REQUIRE_ONCE
388 112 INIT_FCALL_BY_NAME 'get_template_directory'
113 DO_FCALL 0 $53
114 CONCAT ~54 $53, '%2Finc%2Fshortcodes%2FtinyMCE-shortcodes.php'
115 INCLUDE_OR_EVAL ~54, REQUIRE
438 116 INIT_FCALL_BY_NAME 'add_action'
117 SEND_VAL_EX 'init'
118 DECLARE_LAMBDA_FUNCTION '%00%7Bclosure%7D%2Fin%2F8b6gZ%3A438%246'
459 119 SEND_VAL_EX ~56
120 DO_FCALL 0
479 121 INIT_FCALL 'function_exists'
122 SEND_VAL 'vc_set_as_theme'
123 DO_ICALL $58
124 > JMPZ $58, ->129
480 125 > INIT_FCALL_BY_NAME 'vc_set_as_theme'
126 ASSIGN ~59 !1, <true>
127 SEND_VAL_EX ~59
128 DO_FCALL 0
491 129 > INIT_FCALL_BY_NAME 'add_filter'
130 SEND_VAL_EX 'wp_list_categories'
131 SEND_VAL_EX 'crum_list_categories_count'
132 DO_FCALL 0
493 133 INIT_FCALL_BY_NAME 'add_filter'
134 SEND_VAL_EX 'get_archives_link'
135 SEND_VAL_EX 'crum_archives_count'
136 DO_FCALL 0
551 137 > RETURN 1
Function %00omni_setup%2Fin%2F8b6gZ%3A18%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/8b6gZ
function name: omni_setup
number of ops: 52
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
25 0 E > INIT_FCALL_BY_NAME 'load_theme_textdomain'
1 SEND_VAL_EX 'omni'
2 INIT_FCALL_BY_NAME 'get_template_directory'
3 DO_FCALL 0 $0
4 CONCAT ~1 $0, '%2Flanguages'
5 SEND_VAL_EX ~1
6 DO_FCALL 0
28 7 INIT_FCALL_BY_NAME 'add_theme_support'
8 SEND_VAL_EX 'automatic-feed-links'
9 DO_FCALL 0
36 10 INIT_FCALL_BY_NAME 'add_theme_support'
11 SEND_VAL_EX 'title-tag'
12 DO_FCALL 0
43 13 INIT_FCALL_BY_NAME 'add_theme_support'
14 SEND_VAL_EX 'post-thumbnails'
15 DO_FCALL 0
47 16 INIT_FCALL_BY_NAME 'register_nav_menus'
48 17 INIT_FCALL_BY_NAME 'esc_html__'
18 SEND_VAL_EX 'Main+Menu'
19 SEND_VAL_EX 'omni'
20 DO_FCALL 0 $6
21 INIT_ARRAY ~7 $6, 'main-menu'
49 22 INIT_FCALL_BY_NAME 'esc_html__'
23 SEND_VAL_EX 'Footer+Menu'
24 SEND_VAL_EX 'omni'
25 DO_FCALL 0 $8
26 ADD_ARRAY_ELEMENT ~7 $8, 'footer-menu'
27 SEND_VAL_EX ~7
28 DO_FCALL 0
56 29 INIT_FCALL_BY_NAME 'add_theme_support'
30 SEND_VAL_EX 'html5'
57 31 SEND_VAL_EX <array>
32 DO_FCALL 0
68 33 INIT_FCALL_BY_NAME 'add_theme_support'
34 SEND_VAL_EX 'post-formats'
69 35 SEND_VAL_EX <array>
36 DO_FCALL 0
77 37 INIT_FCALL_BY_NAME 'add_theme_support'
38 SEND_VAL_EX 'custom-background'
39 INIT_FCALL_BY_NAME 'apply_filters'
40 SEND_VAL_EX 'omni_custom_background_args'
78 41 SEND_VAL_EX <array>
42 DO_FCALL 0 $12
43 SEND_VAR_NO_REF_EX $12
44 DO_FCALL 0
82 45 INIT_FCALL_BY_NAME 'add_editor_style'
46 INIT_FCALL_BY_NAME 'get_stylesheet_directory_uri'
47 DO_FCALL 0 $14
48 CONCAT ~15 $14, '%2Fcss%2Feditor.css'
49 SEND_VAL_EX ~15
50 DO_FCALL 0
83 51 > RETURN null
End of function %00omni_setup%2Fin%2F8b6gZ%3A18%240
Function omni_enforce_image_size_options:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/8b6gZ
function name: omni_enforce_image_size_options
number of ops: 21
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
104 0 E > INIT_FCALL_BY_NAME 'update_option'
1 SEND_VAL_EX 'thumbnail_crop'
2 SEND_VAL_EX 0
3 DO_FCALL 0
105 4 INIT_FCALL_BY_NAME 'update_option'
5 SEND_VAL_EX 'medium_size_w'
6 SEND_VAL_EX 750
7 DO_FCALL 0
106 8 INIT_FCALL_BY_NAME 'update_option'
9 SEND_VAL_EX 'medium_size_h'
10 SEND_VAL_EX 465
11 DO_FCALL 0
107 12 INIT_FCALL_BY_NAME 'update_option'
13 SEND_VAL_EX 'large_size_w'
14 SEND_VAL_EX 1140
15 DO_FCALL 0
108 16 INIT_FCALL_BY_NAME 'update_option'
17 SEND_VAL_EX 'large_size_h'
18 SEND_VAL_EX 450
19 DO_FCALL 0
110 20 > RETURN null
End of function omni_enforce_image_size_options
Function omni_widgets_init:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/8b6gZ
function name: omni_widgets_init
number of ops: 36
compiled vars: !0 = $footer
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
119 0 E > INIT_FCALL_BY_NAME 'register_sidebar'
120 1 INIT_FCALL_BY_NAME 'esc_html__'
2 SEND_VAL_EX 'Sidebar'
3 SEND_VAL_EX 'omni'
4 DO_FCALL 0 $1
5 INIT_ARRAY ~2 $1, 'name'
121 6 ADD_ARRAY_ELEMENT ~2 'primary', 'id'
122 7 ADD_ARRAY_ELEMENT ~2 '', 'description'
123 8 ADD_ARRAY_ELEMENT ~2 '%3Cdiv+id%3D%22%251%24s%22+class%3D%22widget-entry+clearfix+%252%24s%22%3E', 'before_widget'
124 9 ADD_ARRAY_ELEMENT ~2 '%3C%2Fdiv%3E', 'after_widget'
125 10 ADD_ARRAY_ELEMENT ~2 '%3Ch3+class%3D%22widget-title%22%3E', 'before_title'
126 11 ADD_ARRAY_ELEMENT ~2 '%3C%2Fh3%3E%3C%21--+end+widget-title+--%3E', 'after_title'
12 SEND_VAL_EX ~2
13 DO_FCALL 0
129 14 ASSIGN !0, '%3Cdiv+id%3D%22%251%24s%22+class%3D%22widget'
130 15 INIT_FCALL_BY_NAME 'reactor_get_widget_columns'
16 SEND_VAL_EX 'footer'
17 DO_FCALL 0 $5
18 CONCAT ~6 '++col-sm-6+col-md-', $5
19 ASSIGN_OP 8 !0, ~6
131 20 ASSIGN_OP 8 !0, '++%252%24s%22%3E'
133 21 INIT_FCALL_BY_NAME 'register_sidebar'
134 22 INIT_FCALL_BY_NAME 'esc_html__'
23 SEND_VAL_EX 'Footer+Sidebar'
24 SEND_VAL_EX 'omni'
25 DO_FCALL 0 $9
26 INIT_ARRAY ~10 $9, 'name'
135 27 ADD_ARRAY_ELEMENT ~10 'footer', 'id'
136 28 ADD_ARRAY_ELEMENT ~10 '', 'description'
137 29 ADD_ARRAY_ELEMENT ~10 !0, 'before_widget'
138 30 ADD_ARRAY_ELEMENT ~10 '%3C%2Fdiv%3E', 'after_widget'
139 31 ADD_ARRAY_ELEMENT ~10 '%3Ch3+class%3D%22widget-title%22%3E', 'before_title'
140 32 ADD_ARRAY_ELEMENT ~10 '%3C%2Fh3%3E%3C%21--+end+widget-title+--%3E', 'after_title'
33 SEND_VAL_EX ~10
34 DO_FCALL 0
142 35 > RETURN null
End of function omni_widgets_init
Function omni_scripts:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 105
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 108, Position 2 = 111
Branch analysis from position: 108
2 jumps found. (Code = 46) Position 1 = 112, Position 2 = 116
Branch analysis from position: 112
2 jumps found. (Code = 43) Position 1 = 117, Position 2 = 120
Branch analysis from position: 117
2 jumps found. (Code = 46) Position 1 = 130, Position 2 = 132
Branch analysis from position: 130
2 jumps found. (Code = 46) Position 1 = 133, Position 2 = 135
Branch analysis from position: 133
2 jumps found. (Code = 46) Position 1 = 136, Position 2 = 139
Branch analysis from position: 136
2 jumps found. (Code = 43) Position 1 = 140, Position 2 = 158
Branch analysis from position: 140
2 jumps found. (Code = 46) Position 1 = 168, Position 2 = 170
Branch analysis from position: 168
2 jumps found. (Code = 46) Position 1 = 171, Position 2 = 173
Branch analysis from position: 171
2 jumps found. (Code = 46) Position 1 = 174, Position 2 = 177
Branch analysis from position: 174
2 jumps found. (Code = 43) Position 1 = 178, Position 2 = 196
Branch analysis from position: 178
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 196
Branch analysis from position: 177
Branch analysis from position: 173
Branch analysis from position: 170
Branch analysis from position: 158
Branch analysis from position: 139
Branch analysis from position: 135
Branch analysis from position: 132
Branch analysis from position: 120
Branch analysis from position: 116
Branch analysis from position: 111
Branch analysis from position: 105
filename: /in/8b6gZ
function name: omni_scripts
number of ops: 197
compiled vars: !0 = $custom_font_heading, !1 = $custom_font_settings_heading, !2 = $typography_selected_styles, !3 = $enqueue_fonts, !4 = $custom_font_body, !5 = $custom_font_settings_body
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
151 0 E > INIT_FCALL_BY_NAME 'is_admin'
1 DO_FCALL 0 $6
2 BOOL_NOT ~7 $6
3 > JMPZ ~7, ->105
152 4 > INIT_FCALL_BY_NAME 'wp_enqueue_style'
5 SEND_VAL_EX 'bootstrap-css'
6 INIT_FCALL_BY_NAME 'get_template_directory_uri'
7 DO_FCALL 0 $8
8 CONCAT ~9 $8, '%2Fcss%2Fbootstrap.min.css'
9 SEND_VAL_EX ~9
10 DO_FCALL 0
153 11 INIT_FCALL_BY_NAME 'wp_enqueue_style'
12 SEND_VAL_EX 'devices'
13 INIT_FCALL_BY_NAME 'get_template_directory_uri'
14 DO_FCALL 0 $11
15 CONCAT ~12 $11, '%2Fcss%2Fdevices.min.css'
16 SEND_VAL_EX ~12
17 DO_FCALL 0
154 18 INIT_FCALL_BY_NAME 'wp_enqueue_style'
19 SEND_VAL_EX 'swiper-slider-css'
20 INIT_FCALL_BY_NAME 'get_template_directory_uri'
21 DO_FCALL 0 $14
22 CONCAT ~15 $14, '%2Fcss%2Fidangerous.swiper.css'
23 SEND_VAL_EX ~15
24 DO_FCALL 0
155 25 INIT_FCALL_BY_NAME 'wp_enqueue_style'
26 SEND_VAL_EX 'style'
27 INIT_FCALL_BY_NAME 'get_stylesheet_uri'
28 DO_FCALL 0 $17
29 SEND_VAR_NO_REF_EX $17
30 DO_FCALL 0
156 31 INIT_FCALL_BY_NAME 'wp_enqueue_style'
32 SEND_VAL_EX 'animate-css'
33 INIT_FCALL_BY_NAME 'get_template_directory_uri'
34 DO_FCALL 0 $19
35 CONCAT ~20 $19, '%2Fcss%2Fanimate.css'
36 SEND_VAL_EX ~20
37 DO_FCALL 0
158 38 INIT_FCALL_BY_NAME 'wp_enqueue_style'
39 SEND_VAL_EX 'font-awesome'
40 INIT_FCALL_BY_NAME 'get_template_directory_uri'
41 DO_FCALL 0 $22
42 CONCAT ~23 $22, '%2Fcss%2Ffont-awesome.min.css'
43 SEND_VAL_EX ~23
44 DO_FCALL 0
161 45 INIT_FCALL_BY_NAME 'wp_enqueue_script'
46 SEND_VAL_EX 'bootstrap-js'
47 INIT_FCALL_BY_NAME 'get_template_directory_uri'
48 DO_FCALL 0 $25
49 CONCAT ~26 $25, '%2Fjs%2Fbootstrap.min.js'
50 SEND_VAL_EX ~26
51 SEND_VAL_EX <array>
52 SEND_VAL_EX ''
53 SEND_VAL_EX <true>
54 DO_FCALL 0
162 55 INIT_FCALL_BY_NAME 'wp_enqueue_script'
56 SEND_VAL_EX 'global-js'
57 INIT_FCALL_BY_NAME 'get_template_directory_uri'
58 DO_FCALL 0 $28
59 CONCAT ~29 $28, '%2Fjs%2Fglobal.js'
60 SEND_VAL_EX ~29
61 SEND_VAL_EX <array>
62 SEND_VAL_EX
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
164.29 ms | 1420 KiB | 17 Q