Plugin Directory

Changeset 2451927


Ignore:
Timestamp:
01/07/2021 01:17:08 PM (5 years ago)
Author:
wpgutenblog
Message:

Demo import changed.

Location:
layouts-importer
Files:
243 added
2 edited

Legend:

Unmodified
Added
Removed
  • layouts-importer/trunk/README.txt

    r2451659 r2451927  
    11=== WPGutenBlog Demo Import  ===
    2 Contributors: wpgutenblog
     2Contributors: wpgutenblog, freemius
    33Tags: demo import, one click demo import
    44Requires at least: 5.0.0
    55Requires PHP: 5.6
    66Tested up to: 5.6
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2525== Changelog ==
    2626
    27 = 1.0.0
    28     - Intial Version Release for Demo Import
     27= 1.0.2
     28    - Demo Import updated.
    2929
    3030= 1.0.1
    3131    - Tested upto 5.6
    3232    - Prefix changed for functions and classes.
     33
     34= 1.0.0
     35    - Intial Version Release for Demo Import
     36
  • layouts-importer/trunk/gutenblog-demo-import.php

    r2451659 r2451927  
    1717 * Plugin URI:        #
    1818 * Description:       This addon work to demo import sample data for Gutentor based theme - WPGutenBlog.
    19  * Version:           1.0.1
     19 * Version:           1.0.2
    2020 * Author:            wpgutenblog
    2121 * Author URI:        https://wpgutenblog.com
     
    2525 * Domain Path:       /languages
    2626 */
    27 
    28 
    29 
    30 
    3127// If this file is called directly, abort.
    32 if ( ! defined( 'WPINC' ) ) {
    33     die;
     28if ( !defined( 'WPINC' ) ) {
     29    die;
    3430}
    3531
    36 if ( ! function_exists( 'gdi_fs' ) ) {
     32if ( !function_exists( 'gdi_fs' ) ) {
    3733    // Create a helper function for easy SDK access.
    38     function gdi_fs() {
    39         global $gdi_fs;
    40 
    41         if ( ! isset( $gdi_fs ) ) {
    42 
     34    function gdi_fs()
     35    {
     36        global  $gdi_fs ;
     37       
     38        if ( !isset( $gdi_fs ) ) {
    4339            // Include Freemius SDK.
    44             require_once dirname(__FILE__) . '/freemius/start.php';
    45 
     40            require_once dirname( __FILE__ ) . '/freemius/start.php';
    4641            $gdi_fs = fs_dynamic_init( array(
    47                 'id'                  => '7506',
    48                 'slug'                => 'gutenblog-demo-import',
    49                 'premium_slug'        => 'gutenblog-demo-import-pro',
    50                 'type'                => 'plugin',
    51                 'public_key'          => 'pk_1d3747f9672c9267f53845d3ea4d0',
    52                 'is_premium'          => true,
    53                 // If your plugin is a serviceware, set this option to false.
    54                 'has_premium_version' => true,
    55                 'has_addons'          => false,
    56                 'has_paid_plans'      => true,
    57                 'menu'                => array(
    58                     'slug'           => 'wpgutenblog-get-started',
    59                     'parent'         => array(
    60                         'slug' => 'themes.php',
    61                     ),
    62                 ),
    63                 // Set the SDK to work in a sandbox mode (for development & testing).
    64                 // IMPORTANT: MAKE SURE TO REMOVE SECRET KEY BEFORE DEPLOYMENT.
    65                 'secret_key'          => 'sk_qa+;<zU9L8=q3k=HF~-FAPhL3uHZ5',
     42                'id'             => '7506',
     43                'slug'           => 'gutenblog-demo-import',
     44                'premium_slug'   => 'gutenblog-demo-import-pro',
     45                'type'           => 'plugin',
     46                'public_key'     => 'pk_1d3747f9672c9267f53845d3ea4d0',
     47                'is_premium'     => false,
     48                'has_addons'     => false,
     49                'has_paid_plans' => true,
     50                'menu'           => array(
     51                'slug'   => 'wpgutenblog-get-started',
     52                'parent' => array(
     53                'slug' => 'themes.php',
     54            ),
     55            ),
     56                'is_live'        => true,
    6657            ) );
    6758        }
    68 
     59       
    6960        return $gdi_fs;
    7061    }
    71 
     62   
    7263    // Init Freemius.
    7364    gdi_fs();
     
    7566    do_action( 'gdi_fs_loaded' );
    7667}
     68
    7769/**
    7870 * Currently plugin version.
     
    8072 * Rename this for your plugin and update it as you release new versions.
    8173 */
    82 define( 'GDI_VERSION', '1.0.1' );
    83 
    84 
    85 
     74define( 'GDI_VERSION', '1.0.2' );
    8675/*Define Constants for this plugin*/
    8776define( 'GDI_PLUGIN_NAME', 'gutenblog-demo-import' );
    8877define( 'GDI_PATH', plugin_dir_path( __FILE__ ) );
    8978define( 'GDI_URL', plugin_dir_url( __FILE__ ) );
    90 define( 'GDI_TEMPLATE_URL', GDI_URL.'includes/demo-data/' );
    91 define( 'GDI_SCRIPT_PREFIX', ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '' );
    92 
    93 
     79define( 'GDI_TEMPLATE_URL', GDI_URL . 'includes/demo-data/' );
     80define( 'GDI_SCRIPT_PREFIX', ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '' ) );
    9481/**
    9582 * The code that runs during plugin activation.
    9683 * This action is documented in includes/class-gutenblog-demo-import-activator.php
    9784 */
    98 function gdi_activate() {
    99     require_once plugin_dir_path( __FILE__ ) . 'includes/class-gutenblog-demo-import-activator.php';
    100     GDI_Activator::activate();
     85function gdi_activate()
     86{
     87    require_once plugin_dir_path( __FILE__ ) . 'includes/class-gutenblog-demo-import-activator.php';
     88    GDI_Activator::activate();
    10189}
    10290
     
    10593 * This action is documented in includes/class-gutenblog-demo-import-deactivator.php
    10694 */
    107 function gdi_deactivate() {
    108     require_once plugin_dir_path( __FILE__ ) . 'includes/class-gutenblog-demo-import-deactivator.php';
    109     GDI_Deactivator::deactivate();
     95function gdi_deactivate()
     96{
     97    require_once plugin_dir_path( __FILE__ ) . 'includes/class-gutenblog-demo-import-deactivator.php';
     98    GDI_Deactivator::deactivate();
    11099}
    111100
    112101register_activation_hook( __FILE__, 'gdi_activate' );
    113102register_deactivation_hook( __FILE__, 'gdi_deactivate' );
    114 
    115103/**
    116104 * The core plugin class that is used to define internationalization,
     
    118106 */
    119107require plugin_dir_path( __FILE__ ) . 'includes/class-gutenblog-demo-import.php';
    120 
    121108/**
    122109 * Begins execution of the plugin.
     
    129116 */
    130117
    131 if( !function_exists( 'gdi_run')){
    132 
    133     function gdi_run() {
    134  
    135         return GDI::instance();
    136     }
    137     gdi_run()->run();
    138   }
     118if ( !function_exists( 'gdi_run' ) ) {
     119    function gdi_run()
     120    {
     121        return GDI::instance();
     122    }
     123   
     124    gdi_run()->run();
     125}
Note: See TracChangeset for help on using the changeset viewer.