| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Page-list |
| 4 |
Plugin URI: http://wordpress.org/plugins/page-list/ |
| 5 |
Description: [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes |
| 6 |
Version: 6.3 |
| 7 |
Author: webvitaly |
| 8 |
Author URI: http://web-profile.net/wordpress/plugins/ |
| 9 |
License: GPLv3 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 13 |
|
| 14 |
define('PAGE_LIST_PLUGIN_VERSION', '6.3'); |
| 15 |
define('PAGE_LIST_PLUGIN_FILE', __FILE__); |
| 16 |
|
| 17 |
$pagelist_unq_settings = array( |
| 18 |
'version' => PAGE_LIST_PLUGIN_VERSION, |
| 19 |
'powered_by' => "\n".'<!-- Page-list plugin v.'.PAGE_LIST_PLUGIN_VERSION.' wordpress.org/plugins/page-list/ -->'."\n", |
| 20 |
'page_list_defaults' => array( |
| 21 |
'depth' => '0', |
| 22 |
'child_of' => '0', |
| 23 |
'exclude' => '0', |
| 24 |
'exclude_tree' => '', |
| 25 |
'include' => '0', |
| 26 |
'title_li' => '', |
| 27 |
'number' => '', |
| 28 |
'offset' => '', |
| 29 |
'meta_key' => '', |
| 30 |
'meta_value' => '', |
| 31 |
'show_date' => '', |
| 32 |
'date_format' => get_option('date_format'), |
| 33 |
'authors' => '', |
| 34 |
'sort_column' => 'menu_order, post_title', |
| 35 |
'sort_order' => 'ASC', |
| 36 |
'link_before' => '', |
| 37 |
'link_after' => '', |
| 38 |
'post_type' => 'page', |
| 39 |
'class' => '' |
| 40 |
) |
| 41 |
); |
| 42 |
|
| 43 |
|
| 44 |
if ( !function_exists('pagelist_unqprfx_add_stylesheet') ) { |
| 45 |
function pagelist_unqprfx_add_stylesheet() { |
| 46 |
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, PAGE_LIST_PLUGIN_VERSION, 'all' ); |
| 47 |
} |
| 48 |
add_action('wp_enqueue_scripts', 'pagelist_unqprfx_add_stylesheet'); |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
require_once __DIR__ . '/inc/helpers.php'; |
| 53 |
require_once __DIR__ . '/inc/shortcode-pagelist.php'; |
| 54 |
require_once __DIR__ . '/inc/shortcode-subpages.php'; |
| 55 |
require_once __DIR__ . '/inc/shortcode-siblings.php'; |
| 56 |
require_once __DIR__ . '/inc/shortcode-pagelist-ext.php'; |
| 57 |
require_once __DIR__ . '/inc/plugin-meta.php'; |
| 58 |
|