To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 2173

Show
Ignore:
Timestamp:
09/09/10 17:25:58 (17 months ago)
Author:
jake
Message:

new generic media icon styles, finished up the replace image button/menu

Location:
plugins/apostrophePlugin/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/_edit.php

    r2169 r2173  
    2121 
    2222<?php if ($item): ?> 
    23 <form method="POST" id="a-media-edit-form" enctype="multipart/form-data"  
    24   action="<?php echo url_for(aUrl::addParams("aMedia/edit", 
    25     array("slug" => $item->getSlug())))?>"> 
     23<form method="POST" class="a-media-edit-form" id="a-media-edit-form" enctype="multipart/form-data" action="<?php echo url_for(aUrl::addParams("aMedia/edit", array("slug" => $item->getSlug())))?>"> 
    2624<?php endif ?> 
    2725     
     
    9088                </div> 
    9189                 
    92                 <div class="a-form-row replace">                 
     90                <div class="a-form-row replace a-ui">            
    9391            <?php // The label says 'Replace File' now, see BaseaMediaEditForm ?> 
    94                         <div class="a-options-container a-ui">           
     92                        <div class="a-options-container">                
    9593                                <a href="#replace-image" onclick="return false;" id="a-media-replace-image-<?php echo $i ?>" class="a-btn icon alt no-bg a-replace">Replace File</a> 
    9694                                <div class="a-options dropshadow"> 
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/_mediaItem.php

    r2169 r2173  
    4040      <?php // We can't render this format on this server but we need a placeholder thumbnail ?> 
    4141      <?php $type = $mediaItem->getType() ?> 
    42                         <span class="a-media-type"><b><?php echo $type ?></b></span> 
     42                        <span class="a-media-type <?php echo $type ?>" ><b><?php echo $type ?></b></span> 
    4343    <?php endif ?> 
    4444  </a> 
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/showSuccess.php

    r2118 r2173  
    2222<?php else: ?> 
    2323  <?php $type = $mediaItem->getType() ?> 
    24   <?php $embedCode = "<img class=\"a-media-icon-as-thumbnail\" src=\"/apostrophePlugin/images/a-$type-icon-tiny.png\" />" ?> 
     24  <?php $embedCode = '<span class="a-media-type '.$type.'"><b>'.$type.'</b></span>' ?> 
    2525<?php endif ?> 
    2626 
  • plugins/apostrophePlugin/trunk/web/css/a-engines.css

    r2169 r2173  
    476476} 
    477477 
     478 
     479.a-media-item-edit-form .a-options-container, 
     480.a-media-edit-form .a-options-container 
     481{ 
     482        display: inline; 
     483        position: relative; 
     484        float: left; 
     485        clear:none; 
     486        margin-right:5px; 
     487} 
     488 
     489.a-media-item-edit-form .a-options-container.show-options .a-options, 
     490.a-media-edit-form .a-options-container.show-options .a-options 
     491{ 
     492        display:inline !important; 
     493} 
     494 
    478495#a-media-plugin .a-form-row.replace 
    479496{ 
     
    647664z-index: 0; 
    648665border: 0; 
     666} 
     667 
     668/* non-image filetype icon styles ====================================== */ 
     669span.a-media-type 
     670{ 
     671        display: block; 
     672        position: relative; 
     673        float: none; 
     674        height:50px; 
     675        width:40px; 
     676        background-image: url(/apostrophePlugin/images/a-media-icon.png); 
     677        background-repeat: no-repeat; 
     678} 
     679 
     680span.a-media-type b 
     681{ 
     682        position:absolute; 
     683        bottom:7px; 
     684        right:-5px; 
     685        width:auto; 
     686        padding:2px 5px; 
     687        background-color: #666; 
     688        text-align: center; 
     689        font-size: 10px; 
     690        line-height: 10px; 
     691        text-transform: uppercase; 
     692        font-weight: bold; 
     693        color: #fff; 
     694        -moz-border-radius: 2px; 
     695        -webkit-border-top-left-radius: 2px; 
     696        -webkit-border-top-right-radius: 2px; 
     697        -webkit-border-bottom-right-radius: 2px; 
     698        -webkit-border-bottom-left-radius: 2px; 
     699        border-radius: 2px; 
     700} 
     701 
     702span.a-media-type.pdf b 
     703{ 
     704        background-color:red; 
    649705} 
    650706