Plugin Directory

Changeset 1462777


Ignore:
Timestamp:
07/29/2016 02:06:59 AM (10 years ago)
Author:
sujin2f
Message:

3.0.0

Location:
evanesco/trunk
Files:
52 added
5 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • evanesco/trunk/evanesco.php

    r1313926 r1462777  
    11<?php
    22/**
    3  * Plugin Name: Hide Unused Admin Menu and Widget
    4  * Plugin URI: http://www.sujinc.com/
    5  * Description: Turn Wordpress menus and widgets on and off
    6  * Version: 2.1
    7  * Author: Sujin 수진 Choi
    8  * Author URI: http://www.sujinc.com/
    9  * License: GPLv2 or later
    10  * Text Domain: evanesco
     3 * Plugin Name:     Admin Menu & Widget Manager
     4 * Plugin URI:      http://www.sujinc.com/
     5 * Description:     Manage Wordpress admin menu and widget
     6 * Version:             3.0.0
     7 * Author:              Sujin 수진 Choi
     8 * Author URI:      http://www.sujinc.com/
     9 * License:             GPLv2 or later
     10 * Text Domain:     evanesco
    1111 */
    1212
    13 if ( !defined( 'ABSPATH' ) ) {
    14     header( 'Status: 403 Forbidden' );
    15     header( 'HTTP/1.1 403 Forbidden' );
     13
     14if ( !defined( "ABSPATH" ) ) {
     15    header( "Status: 403 Forbidden" );
     16    header( "HTTP/1.1 403 Forbidden" );
    1617    exit();
    1718}
    1819
    19 # Definitions
    20 if ( !defined( 'EVNSCO_PLUGIN_NAME' ) ) {
    21     $basename = trim( dirname( plugin_basename( __FILE__ ) ), '/' );
    22     if ( !is_dir( WP_PLUGIN_DIR . '/' . $basename ) ) {
    23         $basename = explode( '/', $basename );
     20# Constants
     21if ( !defined( "EVNSCO_PLUGIN_NAME" ) ) {
     22    $basename = trim( dirname( plugin_basename( __FILE__ ) ), "/" );
     23    if ( !is_dir( WP_PLUGIN_DIR . "/" . $basename ) ) {
     24        $basename = explode( "/", $basename );
    2425        $basename = array_pop( $basename );
    2526    }
    2627
    27     define( 'EVNSCO_PLUGIN_NAME', $basename );
    28 
    29     if ( !defined( 'EVNSCO_PLUGIN_BASE' ) )
    30         define( 'EVNSCO_PLUGIN_BASE', WP_PLUGIN_DIR . '/' . EVNSCO_PLUGIN_NAME . '/' . basename(__FILE__) );
    31 
    32     if ( !defined( 'EVNSCO_PLUGIN_DIR' ) )
    33         define( 'EVNSCO_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . EVNSCO_PLUGIN_NAME );
    34 
    35     if ( !defined( 'EVNSCO_CLASS_DIR' ) )
    36         define( 'EVNSCO_CLASS_DIR', WP_PLUGIN_DIR . '/' . EVNSCO_PLUGIN_NAME . '/classes/' );
    37 
    38     if ( !defined( 'EVNSCO_VIEW_DIR' ) )
    39         define( 'EVNSCO_VIEW_DIR', WP_PLUGIN_DIR . '/' . EVNSCO_PLUGIN_NAME . '/views/' );
    40 
    41     if ( !defined( 'EVNSCO_ASSETS_URL' ) )
    42         define( 'EVNSCO_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets/' );
     28    define( "EVNSCO_PLUGIN_NAME", $basename );
    4329}
    4430
    45 # Load Classes
    46 include_once( EVNSCO_CLASS_DIR . 'init.php');
    47 $GLOBALS[ 'EVNSCO' ] = EVNSCO::getInstance();
     31if ( !defined( "EVNSCO_PLUGIN_FILE_NAME" ) )
     32    define( "EVNSCO_PLUGIN_FILE_NAME", basename(__FILE__) );
    4833
     34if ( !defined( "EVNSCO_TEXTDOMAIN" ) )
     35    define( "EVNSCO_TEXTDOMAIN", "EVNSCO" );
    4936
     37if ( !defined( "EVNSCO_PLUGIN_DIR" ) )
     38    define( "EVNSCO_PLUGIN_DIR", WP_PLUGIN_DIR . "/" . EVNSCO_PLUGIN_NAME . "/" );
    5039
     40if ( !defined( "EVNSCO_PLUGIN_URL" ) )
     41    define( "EVNSCO_PLUGIN_URL", WP_PLUGIN_URL . "/" . EVNSCO_PLUGIN_NAME . "/" );
    5142
    52 
    53 
     43# Initialize
     44include_once( EVNSCO_PLUGIN_DIR . "autoload.php");
     45new EVNSCO\Init();
  • evanesco/trunk/readme.txt

    r1313926 r1462777  
    1 === Hide Unused Admin Menu and Widget ===
     1=== Admin Menu & Widget Manager ===
    22Contributors: sujin2f
    33Donate link: http://www.sujinc.com/donation
    44Tags: admin, menu, widget, hide, show, control
    55Requires at least: 2.8
    6 Tested up to: 4.4
    7 Stable tag: 2.1
     6Tested up to: 4.5.3
     7Stable tag: 3.0.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 You can hide or show Wordpress menu and widget on admin page. The hidden menu and widget is not DISABLE. You can make it visible any time you want.
    16 
    17 워드프레스 어드민에서 메뉴와 위젯을 숨기거나 보이게 할 수 있어요! 사라진 메뉴와 위젯은 단지 어드민에서 보이지 않을 뿐 동작하지 않는 것은 아니랍니다. 자주 쓰지 않는 메뉴는 잠시 꺼놓으셔도 좋습니다.
     15Hide and show Wordpress menu and widget on admin page for clean and calm UI.
    1816
    1917== Installation ==
    2018
    21 1. Download the plugin zip package and extract it (플러그인을 다운로드하여 압축을 해제해주세요)
     191. Download the plugin zip package and extract it
    2220
    23 1. Put the folder named "apparition" under /wp-content/plugins/ directory (플러그인 디렉토리에 넣어주세요)
     211. Put the folder named "apparition" under /wp-content/plugins/ directory
    2422
    25 1. Go to the plugins page in your Wordpress admin panel and click "Activate" (플러그인 관리 페이지에서 활성화 시키세요)
     231. Go to the plugins page in your Wordpress admin panel and click "Activate"
     24
     251. Under the Appearance > Admin Menu Manager / Widget Manager, manage menu and widgets
     26
     271. The last menu, Show Posts Only, toggles menu to show only post and post types.
    2628
    2729== Frequently Asked Questions ==
    2830
    29 = Will it affect my website? (이 플러그인이 제 웹사이트에 영향을 미치나요?) =
     31= Will it affect the front pages of my website? =
    3032
    31 No. This plugin just change the visibility of menus and widgets on your admin page. (아뇨. 이 플러그인은 단지 어드민 페이지에서 메뉴와 위젯을 보이지 않게끔만 합니다.)
    32 
     33No. This plugin just change the visibility of menus and widgets on your admin page.
    3334
    3435== Screenshots ==
    3536
    36 1. Setting. (세팅)
     371. Setting.
     381. Post Type Toggle.
    3739
    3840== Changelog ==
     41= 3.0.0 =
     42* Rebuild
     43* Post Type Toggle
     44
    3945= 2.1 =
    4046* Fix Some Error and UI
Note: See TracChangeset for help on using the changeset viewer.