-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
756 additions
and
607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
<?php | ||
/* | ||
/** | ||
* Run the exporter from the command line and spit the zipfile to STDOUT. | ||
* | ||
* Usage: | ||
* | ||
* $ php jekyll-export-cli.php > my-jekyll-files.zip | ||
* | ||
* Must be run in the wordpress-to-jekyll-exporter/ directory. | ||
* | ||
* @package JekyllExporter | ||
* @author Ben Balter <ben.balter@github.com> | ||
* @copyright 2013-2016 Ben Balter | ||
* @license GPLv3 | ||
* @link https://github.com/benbalter/wordpress-to-jekyll-exporter/ | ||
*/ | ||
|
||
include "../../../wp-load.php"; | ||
include "../../../wp-admin/includes/file.php"; | ||
require_once "jekyll-exporter.php"; //ensure plugin is "activated" | ||
include '../../../wp-load.php'; | ||
include '../../../wp-admin/includes/file.php'; | ||
require_once 'jekyll-exporter.php'; // Ensure plugin is "activated". | ||
|
||
if (php_sapi_name() != 'cli') | ||
wp_die("Jekyll export must be run via the command line or administrative dashboard."); | ||
if ( php_sapi_name() != 'cli' ) { | ||
wp_die( 'Jekyll export must be run via the command line or administrative dashboard.' ); | ||
} | ||
|
||
/** | ||
* Usage: | ||
* | ||
* $ php jekyll-export-cli.php > my-jekyll-files.zip | ||
* | ||
* Must be run in the wordpress-to-jekyll-exporter/ directory. | ||
*/ | ||
$jekyll_export = new Jekyll_Export(); | ||
$jekyll_export->export(); |
Oops, something went wrong.