Exemplo n.º 1
0
    ?>
	    <?php 
}
?>
	  </div>

	  <ul class="a-ui a-controls a-upload-multiple-controls">
	  	<li><a href="#" id="a-media-add-photo" class="a-btn icon a-add lite alt"><span class="icon"></span><?php 
echo a_('Add Multiple Files');
?>
</a></li>
	  </ul>

	  <ul class="a-ui a-controls">
	  	<li><?php 
echo a_anchor_submit_button(a_('Upload ' . aMediaTools::getBestTypeLabel()), array('big'));
?>
</li>
	  	<li><?php 
echo a_js_button(a_('Cancel'), array('icon', 'a-cancel', 'big', 'alt'));
?>
</li>
	  </ul>
  </form>

  <?php 
// Elements get moved here by jQuery when they are not in use.
?>
  <?php 
// This form is never submitted so file upload elements that are
?>
Exemplo n.º 2
0
	 			    <?php 
        include_partial('aMedia/edit', array("item" => false, "firstPass" => $firstPass, "form" => $form["item-{$i}"], "n" => $n, 'i' => $i, 'popularTags' => $popularTags, 'allTags' => $allTags, 'itemFormScripts' => false));
        ?>
					</div>
				<?php 
        $n++;
        ?>
		  <?php 
    }
    ?>
		<?php 
}
?>
		<ul class="a-ui a-controls bottom a-align-left">
			<li><?php 
echo link_to('<span class="icon"></span>' . a_("Cancel"), "aMedia/resume", array("class" => "a-btn icon a-cancel alt big a-js-media-edit-multiple-cancel"));
?>
</li>
			<li><a href="#save" class="a-btn a-submit big a-media-multiple-submit-button"><?php 
echo a_('Save ' . aMediaTools::getBestTypeLabel());
?>
</a></li>
		</ul>
		<?php 
include_partial('aMedia/itemFormScripts', array('i' => $i));
?>
		</form>
	</div>
</div>
<?php 
a_js_call('apostrophe.enableMediaEditMultiple()');
Exemplo n.º 3
0
    ?>

	<div class="a-ui a-admin-header">
	  <ul class="a-ui a-controls a-admin-controls">
			<li><h3 class="a-admin-title"><?php 
    echo link_to('<span class="icon"></span>' . __('Media Library', null, 'apostrophe'), '@a_media_index', array('class' => 'a-btn big lite'));
    ?>
</h3></li>
	  	<?php 
    if (aMediaTools::userHasUploadPrivilege() && ($uploadAllowed || $embedAllowed)) {
        ?>
	  	  <?php 
        // This is important because sometimes you are selecting specific media types
        ?>
	      <?php 
        $typeLabel = aMediaTools::getBestTypeLabel();
        ?>
		    <li><a href="<?php 
        echo url_for("aMedia/resume?add=1");
        ?>
" id="a-media-add-button" class="a-btn icon big a-add"><span class="icon"></span><?php 
        echo a_('Add  ' . $typeLabel);
        ?>
</a></li>
	      <li><a href="<?php 
        echo url_for("aMedia/searchServices");
        ?>
" class="a-btn icon big a-search"><span class="icon"></span><?php 
        echo a_('Search Services');
        ?>
</a></li>