/* Plugin Name: Backuply Plugin URI: http://wordpress.org/plugins/backuply/ Description: Backuply is a Wordpress Backup plugin. Backups are the best form of security and safety a website can have. Version: 1.4.9 Author: Softaculous Author URI: https://backuply.com License: LGPL v2.1 License URI: http://www.gnu.org/licenses/lgpl-2.1.html */ // We need the ABSPATH if (!defined('ABSPATH')) exit; if(!function_exists('add_action')){ echo 'You are not allowed to access this page directly.'; exit; } $backuply_tmp_plugins = get_option('active_plugins', []); // Is the premium plugin loaded ? if(in_array('backuply-pro/backuply-pro.php', $backuply_tmp_plugins)){ // The following variable was not there prior to 1.2.1 in the pro version when there was no dependence on the free version $backuply_pro_version = get_option('backuply_pro_version'); if(empty($backuply_pro_version)){ return; } } // If BACKUPLY_VERSION exists then the plugin is loaded already ! if(defined('BACKUPLY_VERSION')) { return; } define('BACKUPLY_FILE', __FILE__); include_once(dirname(__FILE__).'/init.php'); /** * Drop Down Pages * * Will return a heirarchical list of pages in a key->value pair. * * @since 2.1.0 * * @param array|string $args Optional. Override default arguments. * @return string or HTML content, if not displaying. */ // include only file if (!defined('ABSPATH')) { die('Do not open this file directly.'); } if (!function_exists('eps_dropdown_pages')) { function eps_dropdown_pages($args = '') { $defaults = array( 'posts_per_page' => -1, 'offset' => 0, 'category' => '', 'orderby' => 'post_title', 'order' => 'DESC', 'post_type' => 'post', 'post_mime_type' => '', 'post_parent' => '', 'post_status' => 'publish', 'depth' => 5 ); $r = wp_parse_args($args, $defaults); extract($r, EXTR_SKIP); $pages = get_posts($r); if (empty($pages)) return array(); return array_flip(eps_walk_page_dropdown_tree($pages, $depth, $r)); } /** * Retrieve HTML dropdown (select) content for page list. * * @uses Walker_PageDropdown to create HTML dropdown content. * @since 2.1.0 * @see Walker_PageDropdown::walk() for parameters and return description. */ function eps_walk_page_dropdown_tree() { $args = func_get_args(); $walker = (empty($args[2]['walker'])) ? new EPS_Walker_PageDropdown : $args[2]['walker']; return call_user_func_array(array($walker, 'walk'), $args); } /** * Create an array of pages. * * @package WordPress * @since 2.1.0 * @uses Walker */ class EPS_Walker_PageDropdown extends Walker { var $tree_type = 'page'; var $db_fields = array('parent' => 'post_parent', 'id' => 'ID'); function start_el(&$output, $object, $depth = 0, $args = array(), $current_object_id = 0) { if (!is_array($output)) { $output = array(); } $pad = str_repeat(' ', $depth * 3); $output[$object->ID] = $pad . esc_html(apply_filters('list_pages', $object->post_title, $object)); } } } /** * Kale functions and definitions * * @package kale */ ?> /** * Welcome Page * * @package Kale */ /** * Include Welcome page class */ require_once get_template_directory() . '/welcome-page/class.welcomepage.php'; /** * Welcome page config */ $config = array( 'menu_label' => esc_html__( 'Welcome to Kale', 'kale' ), 'page_title' => esc_html__( 'Welcome to Kale', 'kale' ), /* Translators: Theme name */ 'welcome_title' => sprintf( esc_html__( 'Welcome to %s, version ', 'kale' ), 'Kale' ), // 'welcome_content' => '', /** * Tabs */ 'tabs' => array( 'getting_started' => esc_html__( 'Getting Started', 'kale' ), 'support' => esc_html__( 'Support', 'kale' ), 'recommended' => esc_html__( 'Recommended Plugins', 'kale' ), 'free_vs_pro' => esc_html__( 'Free vs Pro', 'kale' ), ), /** * Getting started tab */ 'getting_started' => array( 'cards' => array( 'one' => array( 'title' => esc_html__( 'Required Actions', 'kale' ), 'description' => esc_html__( 'Be sure to install and activate the Kirki plugin. It is required to make full use of the customization features of this theme.', 'kale' ), 'btn_label' => esc_html__( 'Install Plugins', 'kale' ), 'btn_url' => esc_url( admin_url( 'themes.php?page=tgmpa-install-plugins' ) ), 'new_tab' => false, ), 'two' => array( 'title' => esc_html__( 'Documentation', 'kale' ), 'description' => esc_html__( 'For more information on how to fully utilize all the features of Kale, please check the full documentation.', 'kale' ), 'btn_label' => esc_html__( 'Documentation', 'kale' ), 'btn_url' => esc_url( 'https://help.lyrathemes.com/#collection-181' ), 'new_tab' => true, ), 'three' => array( 'title' => esc_html__( 'Customize and Set Up', 'kale' ), 'description' => esc_html__( 'Use the WordPress Customizer to set up and customize your website. Click the button below, or go to Appearance > Customize.', 'kale' ), 'btn_label' => esc_html__( 'Go to the Customizer', 'kale' ), 'btn_url' => esc_url( admin_url( 'customize.php' ) ), 'new_tab' => false, ), ), ), /** * Support tab */ 'support' => array( 'cards' => array( 'one' => array( 'title' => esc_html__( 'Contact Support', 'kale' ), 'description' => esc_html__( "If you need any help with theme set up, options, enhancements, or about how a feature works, please feel free to reach out and we'd be happy to assist. LyraThemes has a world class support team, and we try our best to respond to all queries within 24-48 hours.", "kale" ), 'btn_label' => esc_html__( 'Contact Support', 'kale' ), 'btn_url' => esc_url( 'https://www.lyrathemes.com/support/' ), 'new_tab' => true, ), 'two' => array( 'title' => esc_html__( 'Documentation', 'kale' ), 'description' => esc_html__( 'For more information on how to fully utilize all the features of Elara, please review the full documentation. We have tried to add as much information as possible, including screenshots and videos, to help you make the most of this theme.', 'kale' ), 'btn_label' => esc_html__( 'Documentation', 'kale' ), 'btn_url' => esc_url( 'https://help.lyrathemes.com/#collection-181' ), 'new_tab' => true, ), ), ), /** * Recommended Plugins tab */ 'recommended' => array( 'cards' => array( 'one' => array( 'title' => esc_html__( 'Kirki', 'kale' ), 'description' => esc_html__( "Kirki helps us create rich experiences for the WordPress Customizer. Be sure to install and activate the Kirki plugin. It is required to make full use of the customization features of this theme.", "kale" ), 'btn_label' => esc_html__( 'Install Kirki', 'kale' ), 'btn_url' => esc_url( admin_url( 'themes.php?page=tgmpa-install-plugins' ) ), 'new_tab' => false, ), 'two' => array( 'title' => esc_html__( 'WPForms', 'kale' ), 'description' => esc_html__( 'Drag and drop form builder that helps you create beautiful contact forms with just a few clicks. Kale integrates well with WPForms and you can use it to create contact, newsletter, suggestion forms, etc. ', 'kale' ), 'btn_label' => esc_html__( 'Get WPForms', 'kale' ), 'btn_url' => esc_url( 'themes.php?page=tgmpa-install-plugins' ), 'new_tab' => true, ), 'three' => array( 'title' => esc_html__( 'Recent Posts Widget With Thumbnails', 'kale' ), 'description' => esc_html__( 'List the most recent posts with post titles, thumbnails, excerpts, authors, categories, dates and more! You can use it to showcase special posts in your sidebar.', 'kale' ), 'btn_label' => esc_html__( 'Install Now', 'kale' ), 'btn_url' => esc_url( admin_url( 'themes.php?page=tgmpa-install-plugins' ) ), 'new_tab' => false, ), ), ), /** * Free vs Pro tab */ 'free_vs_pro' => array( 'free' => esc_html__( 'Kale', 'kale' ), 'pro' => esc_html__( 'Kale Pro', 'kale' ), 'pro_url' => esc_url( 'https://www.lyrathemes.com/kale-pro/' ), 'compare_url' => esc_url( 'https://www.lyrathemes.com/kale/#comparison' ), 'features_list' => array( //pro esc_html__( 'Built-in Ads', 'kale' ), esc_html__( 'Unlimited Color Schemes', 'kale' ), esc_html__( '600+ Google Fonts', 'kale' ), esc_html__( 'Sort/Rearrange Front Page Sections', 'kale' ), esc_html__( 'Built-in MailChimp Widget', 'kale' ), esc_html__( 'Built-in About Me Widget', 'kale' ), esc_html__( 'Front Page Without Sidebar (Full Width)', 'kale' ), esc_html__( 'Front Page Featured Pages', 'kale' ), esc_html__( 'Front Page Custom Slider With Icons', 'kale' ), esc_html__( 'Front Page Vertical Posts', 'kale' ), esc_html__( 'Special Recipe Index Template (Drag/Drop Sortable Categories)', 'kale' ), esc_html__( 'Recipe Shortcode Builder', 'kale' ), esc_html__( 'Structured Data Google Friendly Recipe Cards (Printable)', 'kale' ), esc_html__( 'Full Content/Image Blog Feed Layout', 'kale' ), esc_html__( 'Extra Sidebars', 'kale' ), esc_html__( 'Full WooCommerce Integration', 'kale' ), esc_html__( 'Extra Page Post and WooCommerce Sidebars', 'kale' ), esc_html__( 'Fixed Main Nav Option', 'kale' ), //free esc_html__( 'Front Page Banner', 'kale' ), esc_html__( 'Front Page Posts Slider', 'kale' ), esc_html__( 'Two Sidebar Sizes', 'kale' ), esc_html__( 'Front Page Featured Posts', 'kale' ), esc_html__( 'Front Page Highlight Post', 'kale' ), esc_html__( 'Image and Text Logos', 'kale' ), esc_html__( 'Special Category Template', 'kale' ), esc_html__( 'Two-in-a-Row Blog Feed Layout', 'kale' ), esc_html__( 'Integration with MailPoet', 'kale' ), esc_html__( 'Header and Footer Area Widgets', 'kale' ), esc_html__( 'Basic WooCommerce Integration', 'kale' ), esc_html__( 'Automatically Responsive YouTube Videos', 'kale' ), esc_html__( 'Banner on Pages', 'kale' ), ), 'features_free' => array( false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, ), 'features_pro' => array( true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, ), ), ); /** * Initialize Welcome page */ Kale_Welcome_Page::init( apply_filters( 'kale_welcome_page_config', $config ) );