Changeset 561502
- Timestamp:
- 06/21/2012 05:42:56 AM (14 years ago)
- Location:
- wp-cinema/trunk
- Files:
-
- 7 edited
-
inc/movie.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (modified) (previous)
-
screenshot-3.png (modified) (previous)
-
screenshot-4.png (modified) (previous)
-
wp-cinema.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-cinema/trunk/inc/movie.php
r560479 r561502 34 34 public $movie_nonce = 'wpcinema-movie-update'; 35 35 public $session_nonce = 'wpcinema-sessions'; 36 public $options = null; 37 36 38 37 39 // Initial hook setup … … 46 48 $this->movtab = $wpdb->prefix . $this->movtab; 47 49 $this->sesstab = $wpdb->prefix . $this->sesstab; 48 } 50 51 $this->options = get_option(WPCIN_OPTIONS); 52 } 53 49 54 50 55 // Admin Menu setup … … 74 79 array(&$this, 'shortcodes_doco') 75 80 ); 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 ); 76 93 } 77 94 … … 100 117 101 118 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 102 127 // Main movie page handler 103 128 // 104 function manage_movies_page( )129 function manage_movies_page($func = null) 105 130 { 106 131 // Cases we have to handle: … … 125 150 wp_die("You don't have permission."); 126 151 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 { 132 156 $func = ''; 157 if (! empty($_REQUEST['func'])) 158 $func = $_REQUEST['func']; 159 } 133 160 134 161 // The plugin icon ... -
wp-cinema/trunk/readme.txt
r560565 r561502 4 4 Plugin Name: WP Cinema 5 5 Tags: 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 6 Requires at least: 3.4 6 7 Author: Brian Coogan 7 8 Author URI: http://www.wp-cinema.com/ 8 9 Requires at least: 3.3 9 10 Tested up to: 3.4 10 Stable tag: 0.6. 011 Stable tag: 0.6.1 11 12 12 13 WP Cinema is a movie display, management and ticketing system intended for … … 20 21 with your inhouse ticketing system. 21 22 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 = 23 24 24 25 It provides the following functionality: … … 392 393 393 394 394 395 395 == Changelog == 396 396 -
wp-cinema/trunk/wp-cinema.php
r560733 r561502 4 4 * Plugin URI: http://plugins.wp-cinema.com/wp-cinema/ 5 5 * Description: The first integrated plugin for management of movie display and booking on cinema websites; fully integrates with booking systems. 6 * Version: 0.6. 07 * Author: Brian Coogan6 * Version: 0.6.1 7 * Author: WP Cinema 8 8 * Author URI: http://www.wp-cinema.com/ 9 9 * License: GPL2 … … 77 77 78 78 add_filter('plugin_action_links', 79 array(&$this, 'add_ action_link'), 10, 2 );79 array(&$this, 'add_settings_link'), 10, 2 ); 80 80 81 81 if (empty($this->options)) … … 232 232 // courtesy: Yoast 233 233 // 234 function add_ action_link($links, $file)234 function add_settings_link($links, $file) 235 235 { 236 236 static $this_plugin;
Note: See TracChangeset
for help on using the changeset viewer.