public function import_entries_meta()
    {
        $options = cvm_get_settings();
        ?>
		<label for="import_description"><?php 
        _e('Set description as', 'cvm_video');
        ?>
:</label>
		<?php 
        $args = array('options' => array('content' => __('content', 'cvm_video'), 'excerpt' => __('excerpt', 'cvm_video'), 'content_excerpt' => __('both', 'cvm_video'), 'none' => __('none', 'cvm_video')), 'name' => 'import_description', 'selected' => $options['import_description']);
        cvm_select($args);
        ?>
<br />

		<label for="import_status"><?php 
        _e('Import status', 'cvm_video');
        ?>
:</label>
		<?php 
        $args = array('options' => array('publish' => __('Published', 'cvm_video'), 'draft' => __('Draft', 'cvm_video'), 'pending' => __('Pending', 'cvm_video')), 'name' => 'import_status', 'selected' => $options['import_status']);
        cvm_select($args);
        ?>
<br />
		
		<label for="import_title"><?php 
        _e('Import titles', 'cvm_video');
        ?>
:</label>
		<input type="checkbox" value="1" id="import_title" name="import_title"<?php 
        cvm_check($options['import_title']);
        ?>
 />
		
		<?php 
        $theme_support = cvm_check_theme_support();
        if ($theme_support) {
            ?>
			<br />
			<label for="cvm_theme_import"><?php 
            printf(__('Import in <strong>%s</strong><sup>PRO</sup>?', 'cvm_video'), $theme_support['theme_name']);
            ?>
</label>
			<input type="checkbox" disabled="disabled" />			
		<?php 
        }
        ?>
		
		<div id="cvm-import-videos-submit-c">
		<?php 
        submit_button(__('Import videos', 'cvm_video'), 'primary', 'cvm-import-button', false);
        ?>
		<span class="cvm-ajax-response"></span>
		</div>
		<input type="hidden" name="action_top" id="action_top" value="import" />  
		<?php 
    }
예제 #2
0
	<form method="post" action="" >
		<?php 
wp_nonce_field('cvm_query_new_video', 'wp_nonce');
?>
		
		<p><?php 
_e('Please enter the video ID you want to search for:', 'cvm_video');
?>
</p>
		<input type="text" name="cvm_video_id" value="" />
		<a href="#" id="cvm_explain"><?php 
_e('how to get video ID', 'cvm_video');
?>
</a>
		<?php 
if ($theme_supported = cvm_check_theme_support()) {
    ?>
		<br />
		<input type="checkbox" disabled="disabled" />
		<label for="single_theme_import"><?php 
    printf(__('Import as <strong>%s</strong> post<sup>PRO</sup> (PRO version can import videos directly as posts into your theme)', 'cvm_video'), $theme_supported['theme_name']);
    ?>
</label>
		<?php 
}
?>
		<p class="hidden" id="cvm_explain_output">
			<?php 
_e('<strong>Step 1</strong> - open any Vimeo video page with your favourite browser.', 'cvm_video');
?>
<br />
						<?php 
    echo $plugin_categories;
    ?>
						<span class="description"><?php 
    _e('Select category for all videos imported from this playlist.', 'cvm_video');
    ?>
</span>
					</td>
				</tr>
				<?php 
}
?>
				
				
				<?php 
$theme_support = cvm_check_theme_support();
if ($theme_support) {
    ?>
				<tr>
					<td valign="top">
						<label for="theme_import"><?php 
    printf(__('Import in <strong>%s</strong>? (PRO feature)', 'cvm_video'), $theme_support['theme_name']);
    ?>
</label>
					</td>
					<td>
						<input type="checkbox" disabled="disabled" />
						<span class="description">
							<?php 
    printf(__('PRO version can import videos directly as posts into your theme.', 'cvm_video'), $theme_support['theme_name']);
    ?>