OwlCyberSecurity - MANAGER
Edit File: theme-dashboard-settings.php
<?php /** * Theme activation. * @package Newsvista * Theme Dashboard [Free VS Pro] */ function newsvista_free_vs_pro_html() { ob_start(); ?> <div class="theme-admin-title"><?php esc_html_e( 'Differences between Newsvista and Newsvista Pro', 'newsvista' ); ?></div> <div class="theme-admin-description"><?php esc_html_e( 'Here are some of the differences between Newsvista and Newsvista Pro:', 'newsvista' ); ?></div> <table class="freemium-comparison-table"> <thead> <tr> <th><?php esc_html_e( 'Feature', 'newsvista' ); ?></th> <th><?php esc_html_e( 'Newsvista', 'newsvista' ); ?></th> <th><?php esc_html_e( 'Newsvista Pro', 'newsvista' ); ?></th> </tr> </thead> <tbody> <tr> <td><?php esc_html_e( 'Responsive Design', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Multiple Blog Layouts', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Live editing in Customizer', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'One Click Demo Import', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Access to all Google Fonts', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Access to Color Options', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Preloader Option', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge">2</span></td> <td><span class="theme-dashboard-badge">5</span></td> </tr> <tr> <td><?php esc_html_e( 'Multiple Header Options', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge">3 Layouts</span></td> <td><span class="theme-dashboard-badge">5 Layouts</span></td> </tr> <tr> <td><?php esc_html_e( 'Logo and Title Customization', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Header Image', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Custom Widgets', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Frontpage Banner', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge">2 Layouts</span></td> <td><span class="theme-dashboard-badge">3 Layouts</span></td> </tr> <tr> <td><?php esc_html_e( 'Hide Theme Credit Link', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Extra Widget Area', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Instagram Module', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Twitter Module', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Table of Contents', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Share Buttons', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Maintenance mode', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Hooks system', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Translations Ready', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'SEO Optimized', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'RTL Compatibility', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'WooCommerce Compatibility', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Breadcrumbs Module', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-tertiary"><i class="dashicons dashicons-no-alt"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Gutenberg Compatibility', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Footer Widgets Section', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Display Related Posts', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> <td><span class="theme-dashboard-badge theme-badge-primary"><i class="dashicons dashicons-saved"></i></span></td> </tr> <tr> <td><?php esc_html_e( 'Support', 'newsvista' ); ?></td> <td><span class="theme-dashboard-badge">Normal Support</span></td> <td><span class="theme-dashboard-badge">Dedicated Priority Support</span></td> </tr> </tbody> </table> <div class="theme-admin-separator"></div> <h4> <a href="https://www.themeinwp.com/theme/newsvista-pro/#compare-all-features" target="_blank"> <?php esc_html_e( 'How Newsvista and Newsvista Pro are different from each other - here\'s the complete list.', 'newsvista' ); ?> </a> </h4> <div class="theme-admin-separator"></div> <div class="theme-admin-button-wrap"> <a href="https://www.themeinwp.com/theme/newsvista-pro/" class="button theme-admin-button admin-button-primary"> <?php esc_html_e( 'Get Newsvista Pro Today', 'newsvista' ); ?> </a> </div> <?php return ob_get_clean(); } /** * Theme Dashboard Settings * * @param array $settings The settings. */ function newsvista_dashboard_settings( $settings ) { // Starter. // Hero. $settings['hero_title'] = esc_html__( 'Welcome to Newsvista', 'newsvista' ); $settings['hero_themes_desc'] = esc_html__( 'Your installation of Newsvista is complete and ready for use. We\'ve prepared a unique onboarding process through our Getting started page. It helps you get started and configure your upcoming website with ease. Let\'s make it shine!', 'newsvista' ); $settings['hero_desc'] = esc_html__( 'Newsvista is now installed and ready to go. To help you with the next step, we\'ve gathered together on this page all the resources you might need. We hope you enjoy using Newsvista.', 'newsvista' ); $settings['hero_image'] = get_template_directory_uri() . '/inc/admin/dashboard/images/welcome-banner.png'; // Tabs. $settings['tabs'] = array( array( 'name' => esc_html__( 'Theme Features', 'newsvista' ), 'type' => 'features', 'visible' => array( 'free', 'pro' ), 'data' => array( array( 'name' => esc_html__('Add Background Image', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=background_image'), ), array( 'name' => esc_html__('Add Widgets', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[panel]=widgets'), ), array( 'name' => esc_html__('Change Site Title or Logo', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=title_tagline'), ), array( 'name' => esc_html__('Topbar Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=topbar_options'), ), array( 'name' => esc_html__('Header Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=header_options'), ), array( 'name' => esc_html__('Progressbar Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=progressbar_options'), ), array( 'name' => esc_html__('Color Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=colors'), ), array( 'name' => esc_html__('Archive Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=archive_options'), ), array( 'name' => esc_html__('Single Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=single_options'), ), array( 'name' => esc_html__('Pagination Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=pagination_options'), ), array( 'name' => esc_html__('Footer Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=footer_options'), ), array( 'name' => esc_html__('Read Time Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=read_time_options'), ), array( 'name' => esc_html__('Dark/Light Mode Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=dark_mode_options'), ), array( 'name' => esc_html__('Preloader Options', 'newsvista'), 'type' => 'free', 'customize_uri' => admin_url('/customize.php?autofocus[section]=preloader_options'), ), ), ), array( 'name' => esc_html__( 'Free vs PRO', 'newsvista' ), 'type' => 'html', 'visible' => array( 'free' ), 'data' => newsvista_free_vs_pro_html(), ), array( 'name' => esc_html__( 'Performance optimization tools', 'newsvista' ), 'type' => 'performance', 'visible' => array( 'free', 'pro' ), ), ); $settings['tabs'][0]['data'] = array_merge( $settings['tabs'][0]['data'], array( array( 'name' => esc_html__( 'Typography Option', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/customize.php?autofocus[section]=typography_options', ), array( 'name' => esc_html__( 'Remove Footer credits', 'newsvista' ), 'type' => 'pro', 'customize_uri' => admin_url( '/customize.php?autofocus[section]=footer_options' ), ), array( 'name' => esc_html__( 'Extra Widget Area', 'newsvista' ), 'type' => 'pro', 'customize_uri' => admin_url('/customize.php?autofocus[panel]=widgets'), ), array( 'name' => esc_html__( 'Google Maps', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/customize.php?autofocus[section]=newsvista_pro_maps', ), array( 'name' => esc_html__( 'Instagram Module', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/options-general.php?page=premiumkits_connect', 'text' => __( 'Display the Instagram feed in your website', 'newsvista' ) . '<div><a target="_blank" href="https://docs.themeinwp.com/docs/premiumkits/social-integrations/instagram-integration/">' . __( 'Documentation article', 'newsvista' ) . '</a></div>', ), array( 'name' => esc_html__( 'Twitter Module', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/options-general.php?page=premiumkits_connect&tab=twitter', 'text' => __( 'Display the Twitter feed in your website', 'newsvista' ) . '<div><a target="_blank" href="https://docs.themeinwp.com/docs/premiumkits/social-integrations/twitter-integration/">' . __( 'Documentation article', 'newsvista' ) . '</a></div>', ), array( 'name' => esc_html__( 'Table of Contents', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/options-general.php?page=premiumkits_table_of_contents', 'text' => __( 'Display table of contents automatically on single post based on the headings tags.', 'newsvista' ) . '<div><a target="_blank" href="https://docs.themeinwp.com/docs/premiumkits/content-presentation/table-of-contents/">' . __( 'Documentation article', 'newsvista' ) . '</a></div>', ), array( 'name' => esc_html__( 'Share Buttons', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/options-general.php?page=premiumkits_share_buttons', 'text' => __( 'Allow visitors to share your content via email and social media.', 'newsvista' ) . '<div><a target="_blank" href="https://docs.themeinwp.com/docs/premiumkits/social-integrations/share-buttons/">' . __( 'Documentation article', 'newsvista' ) . '</a></div>', ), array( 'name' => esc_html__( 'Maintenance mode', 'newsvista' ), 'type' => 'pro', 'customize_uri' => '/wp-admin/options-general.php?page=premiumkits_coming_soon', 'text' => __( 'Display a user-friendly coming soon notice to visitors ', 'newsvista' ) . '<div><a target="_blank" href="https://docs.themeinwp.com/docs/premiumkits/utilities/coming-soon/">' . __( 'Documentation article', 'newsvista' ) . '</a></div>', ), ) ); // Documentation. $settings['documentation_link'] = 'https://docs.themeinwp.com/docs/newsvista/'; // Promo. $settings['promo_title'] = esc_html__( 'Upgrade to Pro', 'newsvista' ); $settings['promo_desc'] = esc_html__( 'Take Newsvista to a whole other level by upgrading to the Pro version.', 'newsvista' ); $settings['promo_button'] = esc_html__( 'Discover Newsvista Pro', 'newsvista' ); $settings['promo_link'] = 'https://themeinwp.com/theme/newsvista-pro'; // Review. $settings['review_link'] = 'https://wordpress.org/support/theme/newsvista/reviews/'; $settings['suggest_idea_link'] = 'https://www.themeinwp.com/contact-us/'; // Support. $settings['support_link'] = 'https://wordpress.org/support/theme/newsvista/'; $settings['support_pro_link'] = 'https://www.themeinwp.com/support/'; // Community. $settings['community_link'] = 'https://www.facebook.com/themeinwp/'; $theme = wp_get_theme(); // Changelog. $settings['changelog_version'] = $theme->version; $settings['changelog_link'] = 'https://themeinwp.com/changelog/newsvista/'; return $settings; } add_filter( 'thd_register_settings', 'newsvista_dashboard_settings' );