<div id="wpmoly-most-rated-movies-widget-config"<?php 
if (!$editing) {
    echo ' class="main-config"';
}
?>
>
								<form method="post" action="<?php 
echo admin_url("admin.php?page=wpmovielibrary#{$widget_id}");
?>
">
									<?php 
wpmoly_nonce_field("save-{widget_id}");
?>
									<?php 
wpmoly_nonce_field('load-more-widget-movies');
?>
									<table class="wp-list-table">
										<tbody>
											<tr>
												<td colspan="3">
													<em><?php 
_e('Use the following options to customize this Widget.', 'wpmovielibrary');
?>
</em>
												</td>
											</tr>
											<tr>
												<td style="vertical-align:top;width:20%">
													<label><strong><?php 
_e('Number of movies:', 'wpmovielibrary');
Пример #2
0
				</form>

				<?php 
wpmoly_nonce_field('imported-movies', $referer = false);
?>
				<?php 
wpmoly_nonce_field('search-movies', $referer = false);
?>
				<?php 
wpmoly_nonce_field('enqueue-movies', $referer = false);
?>
				<?php 
wpmoly_nonce_field('delete-movies', $referer = false);
?>
				<?php 
wpmoly_nonce_field('queued-movies', $referer = false);
?>
				<?php 
wpmoly_nonce_field('dequeue-movies', $referer = false);
?>
				<?php 
wpmoly_nonce_field('import-queued-movies', $referer = false);
?>

			</div>

		</div>

	</div>

</div>
 /**
  * Add a link to the current Post's Featured Image Metabox to trigger
  * a Modal window. This will be used by the future Movie Posters
  * selection Modal, yet to be implemented.
  * 
  * @since    1.0
  * 
  * @param    string    $content Current Post's Featured Image Metabox content, ready to be edited.
  * @param    string    $post_id Current Post's ID (unused at that point)
  * 
  * @return   string    Updated $content
  */
 public static function load_posters_link($content, $post_id)
 {
     $post = get_post($post_id);
     if (!$post || 'movie' != get_post_type($post)) {
         return $content;
     }
     $content .= '<a id="tmdb_load_posters" class="hide-if-no-js" href="#">' . __('See available Movie Posters', 'wpmovielibrary') . '</a>';
     $content .= wpmoly_nonce_field('set-movie-poster', false, false);
     return $content;
 }
Пример #4
0
			<h2><?php 
printf('%s <small>v%s</small>', __('Welcome to WPMovieLibrary ', 'wpmovielibrary'), WPMOLY_VERSION);
?>
</h2>

			<p><?php 
_e('This page will allow you update your library to the new metadata format introduced in WPMovieLibrary 1.3.', 'wpmovielibrary');
?>
</p>

			<?php 
wpmoly_nonce_field('update-movie', $referer = false);
?>
			<?php 
wpmoly_nonce_field('update-movies', $referer = false);
?>

			<div id="dashboard-widgets-wrap">
				<div id="dashboard-widgets" class="metabox-holder">
					<div id="postbox-container-1" class="postbox-container">
						<div id="normal-sortables" class="meta-box-sortables ui-sortable">
							<div id="wpmoly_dashboard_deprecated_movies" class="postbox">
								<h3 class="hndle"><span><?php 
_e('Update deprecated movie meta', 'wpmovielibrary');
?>
</span></h3>
								<div class="inside">

									<div class="main">
 /**
  * Movie Images Metabox Panel.
  * 
  * Display a Metabox panel to download movie images.
  * 
  * @since    2.0
  * 
  * @param    int    Current Post ID
  * 
  * @return   string    Panel HTML Markup
  */
 private static function render_images_panel($post_id)
 {
     global $wp_version;
     $attributes = array('nonce' => wpmoly_nonce_field('upload-movie-image', $referer = false), 'images' => WPMOLY_Media::get_movie_imported_images(), 'version' => version_compare($wp_version, '4.0', '>=') ? 4 : 0);
     $panel = self::render_admin_template('metabox/panels/panel-images.php', $attributes);
     return $panel;
 }
Пример #6
0
echo get_edit_post_link();
?>
&amp;wpmoly_auto_fetch=1" onclick="wpmoly.editor.meta.search(); return false;" class="button button-secondary button-icon"><span class="wpmolicon icon-search"></span></a>
								<a id="tmdb_update" name="wpmoly[tmdb_update]" title="<?php 
_e('Update', 'wpmovielibrary');
?>
" href="<?php 
echo get_edit_post_link();
?>
&amp;wpmoly_auto_fetch=1" onclick="wpmoly.editor.meta.update(); return false;" class="button button-secondary button-icon"><span class="wpmolicon icon-update"></span></a>
								<span class="spinner"></span>
								<?php 
wpmoly_nonce_field('empty-movie-meta');
?>
								<?php 
wpmoly_nonce_field('save-movie-meta');
?>
								<a id="tmdb_empty" name="wpmoly[tmdb_empty]" title="<?php 
_e('Empty Results', 'wpmovielibrary');
?>
" href="<?php 
echo get_edit_post_link();
?>
&amp;wpmovielibrary-empty-meta=1" onclick="wpmoly.editor.meta.empty_results(); return false;" class="button button-secondary button-empty button-icon hide-if-no-js"><span class="wpmolicon icon-erase"></span></a>
							</div>

							<div id="wpmoly_status"></div>

							<div id="meta_data"></div>

							<input type="hidden" id="wpmoly_actor_limit" class="hide-if-js hide-if-no-js" value="<?php 
Пример #7
0
</option>
<?php 
    foreach ($field['options'] as $slug => $title) {
        ?>
							<option value="<?php 
        echo $slug;
        ?>
"><?php 
        echo $title;
        ?>
</option>
<?php 
    }
    ?>

						</select>
					</label>
				</div>
<?php 
}
?>
				<?php 
wpmoly_nonce_field('quickedit-movie-details', $referer = false);
?>
				<input type="hidden" name="<?php 
echo $check;
?>
" value="true" />
			</div>
		</fieldset>
Пример #8
0
	<input type="text" id="<?php 
    echo $_id;
    ?>
" name="<?php 
    echo $_name;
    ?>
" value="<?php 
    echo $_value;
    ?>
" size="40" maxlength="32" />
<?php 
    if ('apikey' == $field['id']) {
        ?>
	<?php 
        wpmoly_nonce_field('check-api-key');
        ?>
	<input id="APIKey_check" type="button" name="APIKey_check" class="button button-secondary" value="<?php 
        _e('Check API Key', 'wpmovielibrary');
        ?>
" />
	<span class="spinner"></span>
<?php 
    }
    ?>
	<p class="description"><?php 
    _e($field['description'], 'wpmovielibrary');
    ?>
</p>

<?php