Classic_Editor::shortcode_modal()

Video/playlist embed shortcode modal window output


Return

(null)


Source

File: includes/libs/admin/editor/classic-editor.class.php

	public function shortcode_modal(){
		global $post;
		if( ! $post ){
			return;
		}

		$options = Helper::get_embed_options();
		?>

<div id="CVMVideo_Modal_Window" style="display: none;">
	<div class="wrap">
		<div id="cvm-playlist-items">
			<div class="inside">
				<h3><?php _e('Playlist settings', 'codeflavors-vimeo-video-post-lite');?></h3>
				<div id="cvm-playlist-settings" class="cvm-player-settings-options">
					<table>
						<tr>
							<th valign="top"><label for="cvm_playlist_theme"><?php _e('Theme', 'codeflavors-vimeo-video-post-lite');?>:</label></th>
							<td>
								<?php
                                    Helper_Admin::select_playlist_theme(
                                            'cvm_playlist_theme',
                                            false,
                                            'cvm_playlist_theme'
                                    );
                                ?>
                                    <div class="cvm-theme-customize default">
                                        <?php _e( 'Playlist location', 'codeflavors-vimeo-video-post-lite' ) ;?> :
                                        <label for=""><input type="radio" name="cvm_theme_default_layout" value="" checked="checked" /> <?php _e( 'bottom', 'codeflavors-vimeo-video-post-lite' );?></label>
                                        <label for=""><input type="radio" name="cvm_theme_default_layout" value="right" /> <?php _e( 'right', 'codeflavors-vimeo-video-post-lite' );?></label>
                                        <label for=""><input type="radio" name="cvm_theme_default_layout" value="left" /> <?php _e( 'left', 'codeflavors-vimeo-video-post-lite' );?></label>
                                        <p>
                                            <label>
                                                <input type="checkbox" name="cvm_theme_default_show_excerpts" id="cvm_theme_default_show_excerpts" value="1" />
                                                <?php _e('Show posts excerpts', 'codeflavors-vimeo-video-post-lite');?>
                                            </label>
                                        </p>
                                        <p>
                                            <label>
                                                <input type="checkbox" name="cvm_theme_default_use_original_thumbnails" id="cvm_theme_default_show_excerpts" value="1" />
                                                <?php _e('Original thumbnail size ratio', 'codeflavors-vimeo-video-post-lite');?>
                                            </label>
                                        </p>
                                    </div>

                                    <?php
                                        /**
                                         * Theme specific playlist shortcode settings
                                         * @ignore
                                         */
                                        do_action(
                                            'vimeotheque\admin\classic-editor\playlist-shortcode-theme-settings'
                                        );
                                    ?>
								</td>
						</tr>
                        <tr>
                            <th><label for="cvm_posts_order"><?php _e( 'Posts order', 'codeflavors-vimeo-video-post-lite' );?>:</label></th>
                            <td>
	                            <?php
	                            Helper_Admin::select(
	                                [
                                        'options' => [
	                                        'manual' => __( 'Manual order', 'codeflavors-vimeo-video-post-lite' ),
	                                        'newest' => __( 'Newest first', 'codeflavors-vimeo-video-post-lite' ),
	                                        'oldest' => __( 'Oldest first', 'codeflavors-vimeo-video-post-lite' ),
	                                        'alphabetical' => __( 'Alphabetically', 'codeflavors-vimeo-video-post-lite' )
                                        ],
                                        'name' => 'cvm_playlist_posts_order',
                                        'id' => 'cvm_playlist_posts_order',
                                        'selected' => 'manual',
                                        'use_keys' => true
	                                ]
                                );
	                            ?>
                            </td>
                        </tr>

                        <tr>
                            <td colspan="2"><h4><?php _e( 'Video embed options', 'codeflavors-vimeo-video-post-lite' );?></h4></td>
                        </tr>

						<tr>
							<th><label for="cvm_aspect_ratio"><?php _e('Aspect', 'codeflavors-vimeo-video-post-lite');?>:</label></th>
							<td>
								<?php
                                $args = [
                                        'name' => 'aspect_ratio',
                                        'id' => 'aspect_ratio',
                                        'class' => 'cvm_aspect_ratio'
                                ];
                                Helper_Admin::aspect_ratio_select( $args );
                                ?>
								</td>
						</tr>

						<tr>
							<th><label for="width"><?php _e('Width', 'codeflavors-vimeo-video-post-lite');?>:</label></th>
							<td><input type="text" class="cvm_width" name="width" id="width"
								value="<?php echo $options['width'];?>" size="2" />px
									| <?php _e('Height', 'codeflavors-vimeo-video-post-lite');?> : <span class="cvm_height"
								id="cvm_calc_height"><?php echo Helper::calculate_player_height( $options['aspect_ratio'], $options['width'] );?></span>px
							</td>
						</tr>

						<tr>
							<th><label for="volume"><?php _e('Volume', 'codeflavors-vimeo-video-post-lite');?></label>:</th>
							<td><input type="text" name="volume" id="volume"
								value="<?php echo $options['volume'];?>" size="1" maxlength="3" />
								<label for="volume"><span class="description"><?php _e('number between 0 (mute) and 100 (max)', 'codeflavors-vimeo-video-post-lite');?></span></label>
							</td>
						</tr>

						<tr>
							<th><label for="cvm_title"><?php _e('Title', 'codeflavors-vimeo-video-post-lite');?></label>:</th>
							<td><input type="checkbox" name="title" id="cvm_title" value="1"
								<?php if($options['title']) echo 'checked="checked"';?> /> <label
								for="cvm_title"><span class="description"><?php _e('will display title on video', 'codeflavors-vimeo-video-post-lite');?></span></label>
							</td>
						</tr>

						<tr>
							<th><label for="cvm_byline"><?php _e('Author', 'codeflavors-vimeo-video-post-lite');?></label>:</th>
							<td><input type="checkbox" name="byline" id="cvm_byline"
								value="1"
								<?php if($options['byline']) echo 'checked="checked"';?> /> <label
								for="cvm_byline"><span class="description"><?php _e('will display author name on video', 'codeflavors-vimeo-video-post-lite');?></span></label>
							</td>
						</tr>

						<tr>
							<th><label for="cvm_portrait"><?php _e('Image', 'codeflavors-vimeo-video-post-lite');?></label>:</th>
							<td><input type="checkbox" name="portrait" id="cvm_portrait"
								value="1"
								<?php if($options['portrait']) echo 'checked="checked"';?> /> <label
								for="cvm_portrait"><span class="description"><?php _e('will display author image on video', 'codeflavors-vimeo-video-post-lite');?></span></label>
							</td>
						</tr>

						<tr>
							<th><label for="playlist_loop"><?php _e('Loop', 'codeflavors-vimeo-video-post-lite');?></label>:</th>
							<td><input type="checkbox" name="playlist_loop"
								id="playlist_loop" value="1" /> <label for="playlist_loop"><span
									class="description"><?php _e('will automatically play next video when current playing video ends', 'codeflavors-vimeo-video-post-lite');?></span></label>
							</td>
						</tr>
					</table>
					<p>
						<input type="button" id="cvm-insert-playlist-shortcode"
							class="button primary"
							value="<?php _e('Insert playlist', 'codeflavors-vimeo-video-post-lite');?>" />
					</p>
				</div>

                <input type="hidden" name="cvm_selected_categories" value="" />
                <h3><?php _e( 'Create from categories', 'codeflavors-vimeo-video-post-lite' );?></h3>
                <div id="cvm-categories-list">
                    <em>
                        <?php _e( 'Select some categories to display videos from.', 'codeflavors-vimeo-video-post-lite' ) ;?><br />
                        <?php _e( 'Categories can be added by clicking "Add category to shortcode" button above the posts table.', 'codeflavors-vimeo-video-post-lite' );?>
                    </em>
                </div>

				<input type="hidden" name="cvm_selected_items" value="" />
				<h3><?php _e('Videos selected in playlist', 'codeflavors-vimeo-video-post-lite');?></h3>

				<div id="cvm-list-items">
					<em><?php _e('No videos selected', 'codeflavors-vimeo-video-post-lite');?><br /><?php _e('To create a playlist check some videos from the list on the right.', 'codeflavors-vimeo-video-post-lite');?></em>
				</div>
			</div>
		</div>
		<div id="cvm-display-videos">
			<iframe
				src="edit.php?post_type=<?php echo Plugin::instance()->get_cpt()->get_post_type();?>&page=cvm_videos"
				frameborder="0" width="100%" height="100%"></iframe>
		</div>
	</div>
</div>
<?php
	}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!