site_oueb_2/wp-content/plugins/ocean-extra/includes/panel/about.php

289 lines
17 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* About
*
* @package Ocean_Extra
* @category Core
* @author OceanWP
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Start Class
class Ocean_Extra_About {
/**
* Get things started
*
* @since 1.0.0
*/
public function __construct() {
add_action( 'admin_menu', array( $this, 'add_page' ), 99 );
add_action( 'admin_enqueue_scripts', array( $this, 'css' ) );
}
/**
* Add sub menu page
*
* @since 1.0.0
*/
public function add_page() {
add_submenu_page(
'oceanwp-panel',
esc_html__( 'About OceanWP', 'ocean-extra' ),
esc_html__( 'About OceanWP', 'ocean-extra' ),
'manage_options',
'oceanwp-panel-about',
array( $this, 'create_admin_page' )
);
}
/**
* Render about page
*
* @since 1.0.0
*/
public function create_admin_page() { ?>
<div class="wrap oceanwp-about-panel about-wrap">
<?php
// Get theme version #
$theme_data = wp_get_theme();
$theme_version = $theme_data->get( 'Version' );
// Affiliate link
$ref_url = '';
$aff_ref = apply_filters( 'ocean_affiliate_ref', $ref_url ); ?>
<div class="title-wrap clr">
<h1 class="oceanwp-title"><?php esc_html_e( 'OceanWP', 'ocean-extra' ); ?><sup class="version"><?php echo esc_html( $theme_version ); ?></sup></h1>
<ul class="social-wrap clr">
<li><a href="https://twitter.com/OceanWordPress" class="twitter" title="<?php esc_html_e( 'Join us on Twitter', 'ocean-extra' ); ?>" target="_blank"><i class="dashicons dashicons-twitter"></i></a></li>
<li><a href="https://www.facebook.com/OceanWordPress" class="facebook" title="<?php esc_html_e( 'Join us on Facebook', 'ocean-extra' ); ?>" target="_blank"><i class="dashicons dashicons-facebook-alt"></i></a></li>
<li><a href="https://github.com/oceanwp" class="github" title="<?php esc_html_e( 'Find us on GitHub', 'ocean-extra' ); ?>" target="_blank"><i class="dashicons dashicons-admin-plugins"></i></a></li>
</ul>
</div>
<div class="oceanwp-content">
<div class="oceanwp-bloc">
<h2 class="bloc-title"><?php esc_html_e( 'Thank you for using OceanWP', 'ocean-extra' ); ?></h2>
<p><?php esc_html_e( 'OceanWP is the perfect theme for your project. Lightweight and highly extendible, it will enable you to create almost any type of site with a beautiful & professional design. There are several options to personalise your website, multiple widget regions, a responsive design and much more. Developers will love his extensible codebase making it a joy to customise and extend.', 'ocean-extra' ); ?></p>
<p><strong><?php esc_html_e( 'The perfect theme to use with your favorite page builder!', 'ocean-extra' ); ?></strong></p>
</div>
<div class="oceanwp-bloc blue">
<h2 class="bloc-title"><?php esc_html_e( 'Extend his functionalities with our extensions', 'ocean-extra' ); ?></h2>
<p><?php esc_html_e( 'Check our free and premium extensions that extend OceanWP&rsquo;s functionality and make it more powerful.', 'ocean-extra' ); ?></p>
<ul class="oceanwp-list clr">
<li>
<a href="https://oceanwp.org/extension/ocean-extra/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Ocean Extra', 'ocean-extra' ); ?> - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'Add extra features like metaboxes, import/export and a panel to activate the extensions.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-elementor-widgets/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Elementor Widgets', 'ocean-extra' ); ?> - <span class="price">$39</span></a>
<p><?php esc_html_e( 'Add some awesome new widgets to the popular free page builder Elementor.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-custom-sidebar/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Custom Sidebar', 'ocean-extra' ); ?> - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'Generates an unlimited number of sidebars and place them on any page or post.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-sticky-header/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Sticky Header', 'ocean-extra' ); ?> - <span class="price">$29</span></a>
<p><?php esc_html_e( 'A simple extension to attach the header at the top of your screen with an animation.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-footer-callout/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Footer Callout', 'ocean-extra' ); ?> - <span class="price">$29</span></a>
<p><?php esc_html_e( 'Add some relevant/important information about your company or product in your footer.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-side-panel/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Side Panel', 'ocean-extra' ); ?> - <span class="price">$29</span></a>
<p><?php esc_html_e( 'Display a panel on the right or left with your favorite widgets by clicking on an icon in the menu.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-demo-import/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Demo Import', 'ocean-extra' ); ?> - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'Import the OceanWP demo content, widgets and customizer settings with one click.', 'ocean-extra' ); ?></p>
</li>
<li>
<a href="https://oceanwp.org/extension/ocean-social-sharing/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'Social Sharing', 'ocean-extra' ); ?> - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'A simple extension to add your prefered social sharing buttons to your single posts.', 'ocean-extra' ); ?></p>
</li>
</ul>
<div class="oceanwp-btn">
<a href="https://oceanwp.org/extensions/<?php echo esc_attr( $aff_ref ); ?>" class="oceanwp-button" target="_blank"><?php esc_html_e( 'View all OceanWP extensions', 'ocean-extra' ); ?> &rarr;</a>
</div>
</div>
<div class="oceanwp-bloc">
<h2 class="bloc-title"><?php esc_html_e( 'Create your WordPress site quickly with Themecloud', 'ocean-extra' ); ?></h2>
<p><strong><?php esc_html_e( 'What is Themecloud?', 'ocean-extra' ); ?></strong> <?php esc_html_e( 'It&rsquo;s a better way to build WordPress websites, instant setup, no coding required. They are removed all of the technical hurdles standing between you and your ideal site. Dont worry about installations, configurations, migrations and maintenance. Focus on creating stellar content and watch your business skyrocket! Not convinced yet?', 'ocean-extra' ); ?> <a href="https://www.wpkube.com/create-wordpress-sites-quickly-themecloud/" target="_blank"><?php esc_html_e( 'Look at this great review from WPKube', 'ocean-extra' ); ?></a></p>
<p class="themecloud-price"><?php esc_html_e( 'From $9.90/mo', 'ocean-extra' ); ?> <span class="small-text"><?php esc_html_e( '( 15-day free trial, no credit card required )', 'ocean-extra' ); ?></span></p>
<div class="oceanwp-btn">
<a href="http://www.themecloud.io/#_l_4a" class="oceanwp-button" target="_blank"><?php esc_html_e( 'Learn more about Themecloud', 'ocean-extra' ); ?> &rarr;</a>
</div>
</div>
<?php if ( current_user_can( 'customize' ) ) { ?>
<div class="oceanwp-bloc customize">
<h2 class="bloc-title"><?php esc_html_e( 'Getting started with OceanWP', 'ocean-extra' ); ?></h2>
<p><?php esc_html_e( 'Take a look in the options of the Customizer and see yourself how easy and quick to customize the theme as you wish.', 'ocean-extra' ); ?></p>
<ul class="oceanwp-list clr">
<li>
<span class="option-title"><?php esc_html_e( 'Upload your logo', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Add your own logo and retina logo used for the mobile design.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=custom_logo' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Add your favicon', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'The favicon is used as a browser and app icon for your website.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=site_icon' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Choose your primary color', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Replace the default primary and hover color by your own colors.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=ocean_primary_color' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Change the links color', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Choose the color and hover color of your links for the entire site.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=ocean_links_color' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Choose your typography', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Choose your own typography for any parts of your website.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[panel]=ocean_typography_panel' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Top bar options', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Enable/Disable the top bar, add your own paddings and colors.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=ocean_top_bar' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Header options', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Choose the style, the height and the colors for your site header.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=ocean_header_style' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
<li>
<span class="option-title"><?php esc_html_e( 'Footer bottom options', 'ocean-extra' ); ?></span>
<p><?php esc_html_e( 'Add your copyright, paddings and colors for the footer bottom.', 'ocean-extra' ); ?></p>
<a class="option-link" href="<?php echo esc_url( admin_url( 'customize.php?autofocus[control]=ocean_footer_bottom' ) ); ?>" target="_blank"><?php esc_html_e( 'Go to the option', 'ocean-extra' ); ?></a>
</li>
</ul>
<?php
// Customizer url
if ( isset( $_SERVER['REQUEST_URI'] ) ) {
$customize_url = add_query_arg(
array(
'return' => urlencode( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ),
),
'customize.php'
);
} ?>
<div class="oceanwp-btn">
<a href="<?php echo esc_url( $customize_url ); ?>" class="oceanwp-button load-customize hide-if-no-customize"><?php esc_html_e( 'Customize Your Site', 'ocean-extra' ); ?> &rarr;</a>
</div>
</div>
<?php } ?>
<div class="oceanwp-bloc col-2">
<h2 class="bloc-title"><?php esc_html_e( 'Contribute to OceanWP', 'ocean-extra' ); ?></h2>
<p><?php esc_html_e( 'You&rsquo;ve found a bug? Want to contribute a patch, create a new feature or extension?', 'ocean-extra' ); ?>
<a class="github-link" href="https://github.com/oceanwp/oceanwp/" target="_blank"><?php esc_html_e( 'GitHub is the place to go!', 'ocean-extra' ); ?></a></p>
</div>
<div class="oceanwp-bloc col-2 second">
<h2 class="bloc-title"><?php esc_html_e( 'Get support', 'ocean-extra' ); ?></h2>
<p><?php esc_html_e( 'You can find a wide range of information on how to use and customise OceanWP in our', 'ocean-extra' ); ?> <a href="http://docs.oceanwp.org/" target="_blank"><?php esc_html_e( 'documentation', 'ocean-extra' ); ?></a>. <?php esc_html_e( 'If you need help?', 'ocean-extra' ); ?> <a href="https://oceanwp.org/support/<?php echo esc_attr( $aff_ref ); ?>" target="_blank"><?php esc_html_e( 'open a support ticket', 'ocean-extra' ); ?></a>.</p>
</div>
<div class="oceanwp-bloc">
<h2 class="bloc-title"><?php esc_html_e( 'Recommended plugins', 'ocean-extra' ); ?></h2>
<p><?php esc_html_e( 'Below you will find links to plugins I personally like and recommend. None of these plugins are required for your theme to work, they simply add additional functionality.', 'ocean-extra' ); ?></p>
<ul class="oceanwp-list clr">
<li><a href="http://wordpress.org/plugins/contact-form-7/" target="_blank">Contact Form 7 - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'Manage multiple contact forms and customize the form and the mail contents with markups.', 'ocean-extra' ); ?></p></li>
<li><a href="http://www.gravityforms.com/" target="_blank">Gravity Forms - <span class="price">$39</span></a>
<p><?php esc_html_e( 'Gravity Forms is the easiest tool to create advanced forms for your WordPress powered website.', 'ocean-extra' ); ?></p></li>
<li><a href="https://wordpress.org/plugins/elementor/" target="_blank">Elementor - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites.', 'ocean-extra' ); ?></p></li>
<li><a href="https://wordpress.org/plugins/beaver-builder-lite-version/" target="_blank">Beaver Builder - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'A drag and drop WordPress Page Builder. Create with ease beautiful & professional pages.', 'ocean-extra' ); ?></p></li>
<li><a href="https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431?ref=OceanWP" target="_blank">Visual Composer - <span class="price">$34</span></a>
<p><?php esc_html_e( 'Visual Composer is the ultimate plugin for building every WordPress site without coding.', 'ocean-extra' ); ?></p></li>
<li><a href="https://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380?ref=OceanWP" target="_blank">Slider Revolution - <span class="price">$19</span></a>
<p><?php esc_html_e( 'It&rsquo;s not just a slider, build modern & mobile friendly presentations for your website in no time.', 'ocean-extra' ); ?></p></li>
<li><a href="https://wordpress.org/plugins/ultimate-member/" target="_blank">Ultimate Member - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'A powerful and flexible plugin that makes it a breeze for users to sign-up and become members.', 'ocean-extra' ); ?></p></li>
<li><a href="https://wordpress.org/plugins/woocommerce/" target="_blank">WooCommerce - <span class="price"><?php esc_html_e( 'free', 'ocean-extra' ); ?></span></a>
<p><?php esc_html_e( 'WooCommerce is a free eCommerce plugin that allows you to sell anything, beautifully.', 'ocean-extra' ); ?></p></li>
</ul>
<div class="oceanwp-btn">
<a href="https://oceanwp.org/recommended-plugins/<?php echo esc_attr( $aff_ref ); ?>" class="oceanwp-button" target="_blank"><?php esc_html_e( 'More Recommended Plugins', 'ocean-extra' ); ?> &rarr;</a>
</div>
</div>
</div>
</div><!-- .wrap about-wrap -->
<?php
}
/**
* Load about css
*
* @since 1.0.0
*/
public function css( $hook ) {
// Only load scripts when needed
if ( OE_ADMIN_PANEL_HOOK_PREFIX . '-about' != $hook ) {
return;
}
wp_enqueue_style( 'oceanwp-about', plugins_url( '/assets/css/about.min.css', __FILE__ ) );
}
}
new Ocean_Extra_About();