/* Plugin Name: Duplicate Post Plugin URI: http://lopo.it/duplicate-post-plugin/ Description: Clone posts and pages. Version: 3.1.2 Author: Enrico Battocchi Author URI: http://lopo.it Text Domain: duplicate-post */ /* Copyright 2009-2012 Enrico Battocchi (email : enrico.battocchi@gmail.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Version of the plugin define('DUPLICATE_POST_CURRENT_VERSION', '3.1.2' ); /** * Initialise the internationalisation domain */ function duplicate_post_load_plugin_textdomain() { load_plugin_textdomain( 'duplicate-post', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); } add_action( 'plugins_loaded', 'duplicate_post_load_plugin_textdomain' ); add_filter("plugin_action_links_".plugin_basename(__FILE__), "duplicate_post_plugin_actions", 10, 4); function duplicate_post_plugin_actions( $actions, $plugin_file, $plugin_data, $context ) { array_unshift($actions, "".esc_html__("Settings").""); return $actions; } require_once (dirname(__FILE__).'/duplicate-post-common.php'); if (is_admin()){ require_once (dirname(__FILE__).'/duplicate-post-admin.php'); } 新疆民俗文化研究年刊2014 – 新疆民俗文化研究中心

新疆民俗文化研究年刊2014

/** * The Page Sidebar containing the widget area. * * @package Betheme * @author Muffin group * @link http://muffingroup.com */ $sidebars = mfn_opts_get( 'sidebars' ); // sidebar 1 -------------------------------------------------------- if( get_post_type() == 'page' && mfn_opts_get('single-page-sidebar') ){ // Theme Options | Single - Page $sidebar = trim( mfn_opts_get('single-page-sidebar') ); } elseif( get_post_type() == 'post' && is_single() && mfn_opts_get('single-sidebar') ){ // Theme Options | Single - Post $sidebar = trim( mfn_opts_get('single-sidebar') ); } elseif( get_post_type() == 'portfolio' && is_single() && mfn_opts_get('single-portfolio-sidebar') ){ // Theme Options | Single - Portfolio $sidebar = trim( mfn_opts_get('single-portfolio-sidebar') ); } else { // Post Meta $sidebar = get_post_meta( mfn_ID(), 'mfn-post-sidebar', true); if( $sidebar || $sidebar === '0' ) $sidebar = $sidebars[$sidebar]; } if( $_GET && key_exists('mfn-s', $_GET) ){ $sidebar = esc_html( $_GET['mfn-s'] ); // demo } // sidebar 2 -------------------------------------------------------- if( get_post_type() == 'page' && mfn_opts_get('single-page-sidebar2') ){ // Theme Options | Single - Page $sidebar2 = trim( mfn_opts_get('single-page-sidebar2') ); } elseif( get_post_type() == 'post' && is_single() && mfn_opts_get('single-sidebar2') ){ // Theme Options | Single - Post $sidebar2 = trim( mfn_opts_get('single-sidebar2') ); } elseif( get_post_type() == 'portfolio' && is_single() && mfn_opts_get('single-portfolio-sidebar2') ){ // Theme Options | Single - Portfolio $sidebar2 = trim( mfn_opts_get('single-portfolio-sidebar2') ); } else { // Post Meta $sidebar2 = get_post_meta( mfn_ID(), 'mfn-post-sidebar2', true); if( $sidebar2 || $sidebar2 === '0' ) $sidebar2 = $sidebars[$sidebar2]; } if( $_GET && key_exists('mfn-s2', $_GET) ){ $sidebar2 = esc_html( $_GET['mfn-s2'] ); // demo } // echo ------------------------------------------------------------- if( mfn_sidebar_classes() ){ echo ''; // both sidebars if( mfn_sidebar_classes( true ) ){ echo ''; } }