background ) ? esc_attr( $this->background ) : 'linear-gradient(90deg,rgb(0,0,0) 0%,rgb(0,0,0) 35%,rgb(0,0,0) 70%,rgb(0,0,0) 100%)'; $text_color = ! empty( $this->text_color ) ? esc_attr( $this->text_color ) : '#fff'; ?>
  • title ) ); ?> button_text ) ); ?>


  • add_node([ 'id' => 'real_time_themes_helper_button2', 'title' => ' Real Time Themes Logo Real Time Themes Helper ', 'href' => admin_url('admin.php?page=realtime-themes-helper'), 'meta' => [ 'class' => 'realtime-themes-helper-button', 'title' => 'Open Real Time Themes Helper', 'target' => '_blank', ] ]); }, 100); /** * Scripts */ add_action( 'enqueue_block_editor_assets', function() { $theme = wp_get_theme(); if ( $theme->parent() ) { $theme = $theme->parent(); } $theme_uri = $theme->get( 'ThemeURI' ); $settings = get_option( 'realtime_themes_helper_settings', [ 'allowed_blocks' => [], ]); $script_path = get_stylesheet_directory() . '/assets/js/script.js'; $script_ver = file_exists($script_path) ? filemtime($script_path) : false; wp_enqueue_script( 'realtime-themes-helper-editor', get_stylesheet_directory_uri() . '/assets/js/script.js', [ 'wp-hooks', 'wp-element', 'wp-edit-post' ], $script_ver, true ); wp_localize_script( 'realtime-themes-helper-editor', 'RealtimeThemesHelper', [ 'allowedBlocks' => $settings['allowed_blocks'], 'themeUri' => $theme_uri ] ); }, 20); $files = [ 'settings.php', 'admin-page.php', ]; foreach ( $files as $file ) { $path = REALTIME_THEMES_HELPER_PATH . 'assets/php/' . $file; if ( file_exists( $path ) ) { require_once $path; } } /* Theme credit link */ define('BESTIO_BUY_NOW',__('https://realtimethemes.com/theme-bestio','bestio')); define('BESTIO_PRO_DEMO',__('https://realtimethemes.com/preview-bestio','bestio')); define('BESTIO_REVIEW',__('https://realtimethemes.com/theme-bestio','bestio')); define('BESTIO_SUPPORT',__('https://realtimethemes.com/','bestio')); ?>