Ejemplo n.º 1
0
}
?>
<div class="mpp-upload-shortcode">
	<!-- append uploaded media here -->
	<div id="mpp-uploaded-media-list-shortcode" class="mpp-uploading-media-list">
		<ul> 

		</ul>
	</div>
	<?php 
do_action('mpp_after_shortcode_upload_medialist');
?>
		
	<!-- drop files here for uploading -->
	<?php 
mpp_upload_dropzone($context);
?>
	<?php 
do_action('mpp_after_shortcode_upload_dropzone');
?>
	<!-- show any feedback here -->
	<div id="mpp-upload-feedback-shortcode" class="mpp-feedback">
		<ul> </ul>
	</div>
	<?php 
do_action('mpp_after_shortcode_upload_feedback');
?>
	<input type='hidden' name='mpp-context' id='mpp-context' value="<?php 
echo $context;
?>
" />
Ejemplo n.º 2
0
    ?>
">
				<img src="<?php 
    mpp_media_src('thumbnail');
    ?>
">
				<a href='#' class='mpp-delete-uploaded-media-item'>x</a>
			</li>
		<?php 
}
?>
		<?php 
wp_reset_query();
?>
		<?php 
mpp_reset_media_data();
//gallery_data();
?>
		<?php 
//wp_reset_postdata();
?>
	</ul>
</div>
<!-- drop files here for uploading -->
<?php 
mpp_upload_dropzone('admin');
?>
<!-- show any feedback here -->
<div id="mpp-upload-feedback-admin" class="mpp-feedback">
	<ul> </ul>
</div>
Ejemplo n.º 3
0
function mpp_activity_dropzone()
{
    ?>
	<!-- append uploaded media here -->
	<div id="mpp-uploaded-media-list-activity" class="mpp-uploading-media-list">
		<ul> </ul>
	</div>
	<?php 
    do_action('mpp_after_activity_upload_medialist');
    ?>
	
	<!-- drop files here for uploading -->
	<?php 
    mpp_upload_dropzone('activity');
    ?>
	<?php 
    do_action('mpp_after_activity_upload_dropzone');
    ?>
	<!-- show any feedback here -->
	<div id="mpp-upload-feedback-activity" class="mpp-feedback">
		<ul> </ul>
	</div>
	<?php 
    do_action('mpp_after_activity_upload_feedback');
    ?>
   <?php 
}
Ejemplo n.º 4
0
    exit;
}
?>

<!-- append uploaded media here -->
<div id="mpp-uploaded-media-list-gallery" class="mpp-uploading-media-list">
	<ul> 

	</ul>
</div>
<?php 
do_action('mpp_after_gallery_upload_medialist');
?>
		
<!-- drop files here for uploading -->
<?php 
mpp_upload_dropzone('gallery');
do_action('mpp_after_gallery_upload_dropzone');
?>
<!-- show any feedback here -->
<div id="mpp-upload-feedback-gallery" class="mpp-feedback">
	<ul> </ul>
</div>
<?php 
do_action('mpp_after_gallery_upload_feedback');
?>
<input type='hidden' name='mpp-context' id='mpp-context' value='gallery' />
<input type='hidden' name='mpp-upload-gallery-id' id='mpp-upload-gallery-id' value="<?php 
echo mpp_get_current_gallery_id();
?>
" />