Plugin Directory

Changeset 561502


Ignore:
Timestamp:
06/21/2012 05:42:56 AM (14 years ago)
Author:
brianoz
Message:

0.6.1 Reduce image sizes, add menu entries.

Location:
wp-cinema/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-cinema/trunk/inc/movie.php

    r560479 r561502  
    3434    public $movie_nonce = 'wpcinema-movie-update';
    3535    public $session_nonce = 'wpcinema-sessions';
     36    public $options = null;
     37
    3638
    3739    //  Initial hook setup
     
    4648    $this->movtab = $wpdb->prefix . $this->movtab;
    4749    $this->sesstab = $wpdb->prefix . $this->sesstab;
    48     }
     50
     51        $this->options = get_option(WPCIN_OPTIONS);
     52    }
     53
    4954
    5055    //  Admin Menu setup
     
    7479        array(&$this, 'shortcodes_doco')
    7580    );
     81
     82    // add movie page
     83    if (! empty($this->options['no-manual-movie-create']))
     84        return;
     85    add_submenu_page(
     86        __FILE__,       // $parent_slug,
     87        "WP Cinema Add Movie",  // $page_title,
     88        "Add Movie",        // $menu_title,
     89        'edit_pages',       // $capability, - editor or above
     90        'new_movie',
     91        array(&$this, 'edit_movie')
     92    );
    7693    }
    7794
     
    100117
    101118
     119    // called from Add movie menu entry
     120    // the code below in manage_movies_page for editing should be moved here
     121    function edit_movie()
     122    {
     123    $this->manage_movies_page('edit');
     124    }
     125
     126
    102127    // Main movie page handler
    103128    //
    104     function manage_movies_page()
     129    function manage_movies_page($func = null)
    105130    {
    106131    // Cases we have to handle:
     
    125150        wp_die("You don't have permission.");
    126151
    127         $opt = get_option(WPCIN_OPTIONS);
    128 
    129     if (! empty($_REQUEST['func']))
    130         $func = $_REQUEST['func'];
    131     else
     152        $opt = $this->options;
     153
     154    if (empty($func))
     155    {
    132156        $func = '';
     157        if (! empty($_REQUEST['func']))
     158        $func = $_REQUEST['func'];
     159    }
    133160
    134161    // The plugin icon ...
  • wp-cinema/trunk/readme.txt

    r560565 r561502  
    44Plugin Name: WP Cinema
    55Tags: cinema, movie, tickets, ticketing, venue, booking, film festival, live theatre, sales, theater, programme, program, movie website, cinema website, entertainment, showtimes, google showtimes, film festival website, schedule, festival
     6Requires at least: 3.4
    67Author: Brian Coogan
    78Author URI: http://www.wp-cinema.com/
    89Requires at least: 3.3
    910Tested up to: 3.4
    10 Stable tag: 0.6.0
     11Stable tag: 0.6.1
    1112
    1213WP Cinema is a movie display, management and ticketing system intended for
     
    2021with your inhouse ticketing system.
    2122
    22 = NOTE: WP Cinema is in beta at the present; this is a functional beta release for your early testing purposes! =
     23= NOTE: WP Cinema is in beta at the present; this is a functional beta release for your testing purposes =
    2324
    2425It provides the following functionality:
     
    392393
    393394
    394 
    395395== Changelog ==
    396396
  • wp-cinema/trunk/wp-cinema.php

    r560733 r561502  
    44 * Plugin URI: http://plugins.wp-cinema.com/wp-cinema/
    55 * Description: The first integrated plugin for management of movie display and booking on cinema websites; fully integrates with booking systems.
    6  * Version: 0.6.0
    7  * Author: Brian Coogan
     6 * Version: 0.6.1
     7 * Author: WP Cinema
    88 * Author URI: http://www.wp-cinema.com/
    99 * License: GPL2
     
    7777
    7878    add_filter('plugin_action_links',
    79             array(&$this, 'add_action_link'), 10, 2 );
     79            array(&$this, 'add_settings_link'), 10, 2 );
    8080
    8181    if (empty($this->options))
     
    232232    // courtesy: Yoast
    233233    //
    234     function add_action_link($links, $file)
     234    function add_settings_link($links, $file)
    235235    {
    236236    static $this_plugin;
Note: See TracChangeset for help on using the changeset viewer.