Changeset 11709


Ignore:
Timestamp:
Jul 11, 2011, 9:11:23 PM (13 years ago)
Author:
flop25
Message:

adding a round border
changed the way to recognize album : clear border
thumbnails caption = false compatible
bar removed
pwg stuff witdh restricted to 2width except for stuff_thumbnail
thumbnails generation based on file first

Location:
extensions/stripped_black_bloc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/local_head.tpl

    r11699 r11709  
    88.bloc a {
    99        max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
     10}
     11.content_block, .bloc_stuff {
     12        max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width*2 }{/if}{literal}px;
     13}
     14.stuffs_thumbnails, .stuffs_thumbnails #thumbnails {
     15        width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width }{/if}{literal}px;
    1016}
    1117</style>
  • extensions/stripped_black_bloc/template/mainpage_categories.tpl

    r11679 r11709  
    11  {foreach from=$category_thumbnails item=cat}
    22        <div class="bloc album">
    3                         <a href="{$cat.URL}" style="background: url({$cat.TN_SRC}) no-repeat scroll center center transparent; height: {$cat.TN_HEIGHT}px; width: {$cat.TN_WIDTH}px; opacity: 0.75; max-width:150px;" >
     3                        <a href="{$cat.URL}" style="background: url({$cat.TN_SRC}) no-repeat scroll center center transparent; height: {$cat.TN_HEIGHT}px; width: {$cat.TN_WIDTH}px; opacity: 0.75;" >
    44                                {$cat.NAME}
    55                        </a>
  • extensions/stripped_black_bloc/template/thumbnails.tpl

    r11699 r11709  
    55          {if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}
    66        </a>
    7         <div class="title">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{else}{$thumbnail.TN_TITLE}{/if}</div>
     7        <div class="title">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</div>
    88        </div>
    99  {/foreach}
  • extensions/stripped_black_bloc/theme.css

    r11699 r11709  
    4747    display: inline-block !important;
    4848}
    49 .stuffs_thumbnails {
    50         width:400px;
    51 }
    5249.stuffs_thumbnails #thumbnails {
    5350        margin:0;
     51}
     52.stuffs_thumbnails .bloc {
     53        margin-left:auto;
     54        margin-right:auto;
     55        padding:0;
     56       
     57}
     58.bloc_stuff {
     59        z-index:999;
    5460}
    5561#thePicturePage .stuffs_thumbnails {
     
    6268    width: 150px;
    6369                z-index:999;
     70}
     71.content_block, .bloc_stuff, #subcontent .middle_block {
     72    margin: 3px !important;
    6473}
    6574.content_block {
     
    98107        display:none
    99108}
     109#subcontent .stuffs_block #comments ul.thumbnailCategories, #comments ul {
     110        padding:20px;
     111}
    100112/****************
    101113 color backgroung etc
     
    111123    text-decoration: none;
    112124}
    113 .bloc .title, .nav_bulle {
     125.masonry-brick, .bloc .title, .nav_bulle {
    114126        color: #FFFFFF;
    115127        background-image: url("img/btn.png");
     
    133145    color: #E6554F;
    134146}
    135 .album .title {
    136         color:#F8CDCB;
     147.album {
     148        background-color:#595959;
    137149}
    138150
    139151.content_block .additional_info {
    140152        color:inherit;
     153        background: none;
     154        border:none;
    141155}
     156.content_block, .bloc_stuff {
     157        border: 1px solid #424242;
     158}
     159#thePicturePage .left_block, #thePicturePage .right_block, #thePicturePage .middle_block, #content {
     160        border:none;
     161}
  • extensions/stripped_black_bloc/themeconf.inc.php

    r11699 r11709  
    5757                                {
    5858                                        case 'generated':
    59                                                 $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/timthumb.php?src=".$tplvar['TN_SRC']."&w=".$config['thumbnail_width'];
     59                                                if (isset($tplvar['FILE_WIDTH']))
     60                                                {
     61                                                        $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/timthumb.php?src=".$tplvar['FILE_PATH']."&w=".$config['thumbnail_width'];
     62                                                }
     63                                                else
     64                                                {
     65                                                        $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/timthumb.php?src=".$tplvar['TN_SRC']."&w=".$config['thumbnail_width'];
     66                                                }
    6067                                                $tplvar['TN_HEIGHT']=floor($tplvar['TN_HEIGHT']*($config['thumbnail_width']/$tplvar['TN_WIDTH']));
    6168                                                $tplvar['TN_WIDTH']=$config['thumbnail_width'];
     
    6471                                                if($tplvar['TN_WIDTH']<=$config['thumbnail_width'])
    6572                                                {
    66                                                         $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/timthumb.php?src=".$tplvar['TN_SRC']."&w=".$config['thumbnail_width'];
     73                                                        if (isset($tplvar['FILE_WIDTH']))
     74                                                        {
     75                                                                $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/timthumb.php?src=".$tplvar['FILE_PATH']."&w=".$config['thumbnail_width'];
     76                                                        }
     77                                                        else
     78                                                        {
     79                                                                $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/timthumb.php?src=".$tplvar['TN_SRC']."&w=".$config['thumbnail_width'];
     80                                                        }
    6781                                                        $tplvar['TN_HEIGHT']=floor($tplvar['TN_HEIGHT']*($config['thumbnail_width']/$tplvar['TN_WIDTH']));
    6882                                                        $tplvar['TN_WIDTH']=$config['thumbnail_width'];
Note: See TracChangeset for help on using the changeset viewer.