Plugin Directory

Changeset 591160


Ignore:
Timestamp:
08/28/2012 12:16:48 AM (14 years ago)
Author:
snumb130
Message:

Added settings for the new post type for Events.

Location:
events-calendar/branches/7.0-dev
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • events-calendar/branches/7.0-dev

    • Property svn:ignore set to
      *.project
  • events-calendar/branches/7.0-dev/events-calendar.php

    r590774 r591160  
    4545define( 'EVENTS_CALENDAR_PATH', plugin_dir_path( __FILE__ ) );
    4646define( 'EVENTS_CALENDAR_URL', plugin_dir_url( __FILE__ ) );
     47define( 'EVENTS_CALENDAR_IMG_URL', EVENTS_CALENDAR_URL . 'img/' );
     48define( 'EVENTS_CALENDAR_L10N', 'events-calendar' );
    4749
    4850require_once( EVENTS_CALENDAR_PATH . 'functions.php' );
  • events-calendar/branches/7.0-dev/functions.php

    r590774 r591160  
    2525            array(
    2626                'labels' => array(
    27                     'name' => __( 'Events', 'events-calendar' ),
    28                     'singular_name' => __( 'Events', 'events-calendar' )
     27                    'name' => _x( 'Events', 'post type general name', EVENTS_CALENDAR_L10N ),
     28                    'singular_name' => _x( 'Event', 'post type singular name', EVENTS_CALENDAR_L10N ),
     29                    'add_new' => _x( 'Add New', 'ec_event', EVENTS_CALENDAR_L10N ),
     30                    'add_new_item' => __( 'Add New Event', EVENTS_CALENDAR_L10N ),
     31                    'edit_item' => __( 'Edit Event', EVENTS_CALENDAR_L10N ),
     32                    'new_item' => __( 'New Event', EVENTS_CALENDAR_L10N ),
     33                    'view_item' => __( 'View Event', EVENTS_CALENDAR_L10N ),
     34                    'search_items' => __( 'Search Events', EVENTS_CALENDAR_L10N ),
     35                    'not_found' => __( 'No events found', EVENTS_CALENDAR_L10N ),
     36                    'not_found_in_trash' => __( 'No events found in Trash', EVENTS_CALENDAR_L10N )
    2937                ),
     38                'description' => __( 'Events that can be displayed for your visitors to see.', EVENTS_CALENDAR_L10N ),
    3039                'public' => true,
    31                 'has_archive' => true
     40                'menu_icon' => EVENTS_CALENDAR_IMG_URL . 'menu_icon.gif'
    3241            )
    3342        );
Note: See TracChangeset for help on using the changeset viewer.