Changeset 32996


Ignore:
Timestamp:
Dec 20, 2023, 9:28:34 PM (4 months ago)
Author:
plg
Message:

compatibility PHP 8 and Piwigo 14, by Linty

Location:
extensions/stripped
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/index.tpl

    r29196 r32996  
    77                <div class="categoryActionsContainer">
    88                        <ul class="categoryActions group1">
     9                                {if isset($SEARCH_IN_SET_ACTION) and $SEARCH_IN_SET_ACTION}
     10                                {combine_css path="themes/default/vendor/fontello/css/fontello.css" order=-10}
     11                                        <li id="cmdSearchInSet"><a href="{$SEARCH_IN_SET_URL}" title="{'Search in this set'|translate}" class="pwg-state-default pwg-button">
     12                                        <i class="pwg-icon-search-folder icon-white"></i>
     13                                        </a></li>
     14                                {/if}
    915        {if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li class="mainAction">{$button}</li>{/foreach}{/if}
    1016        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
     
    7278                        {/if}
    7379
     80                        {if isset($SEARCH_IN_SET_BUTTON) and $SEARCH_IN_SET_BUTTON}
     81                                <div class="mcs-side-results search-in-set-button">
     82                                  <div>
     83                                  <p><a href="{$SEARCH_IN_SET_URL}" class="pwg-icon-search-folder">{'Search in this set'|translate}</a></p>
     84                                  </div>
     85                                </div>
     86                        {/if}
     87
    7488                        {if !empty($CONTENT_DESCRIPTION) }
    7589                                <div class="content_block"><div class="additional_info">
     
    8296        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
    8397      {/if}
     98
     99          {if !empty($SEARCH_ID)}
     100                {include file='themes/default/template/include/search_filters.inc.tpl'}
     101          {/if}
    84102
    85103                        {if !empty($THUMBNAILS) }
     
    96114                                </div>
    97115        <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>
     116                        {else if !empty($SEARCH_ID)}
     117                                <div class="mcs-no-result">
     118                                        <div class="text">
     119                                                <span class="top">{'No results are available.'|@translate}</span>
     120                                                <span class="bot">{'You can try to edit your filters and perform a new search.'|translate}</span>
     121                                        </div>
     122                                </div>
    98123                        {/if}
    99124                        {if !empty($PLUGIN_INDEX_CONTENT_END) }<div class="content_block">{$PLUGIN_INDEX_CONTENT_END}</div>{/if}
     
    102127        </div>
    103128        <div style="clear: both;"></div>
    104 </div> 
     129</div>
  • extensions/stripped/template/menubar_tags.tpl

    r26898 r32996  
    44                {foreach from=$block->data item=tag}
    55                <span>{strip}
    6                         <a class="tagLevel{$tag.level}" href=
     6                        <a class="tagLevel{if isset($tag.level)}{$tag.level}{/if}" href=
    77                        {if isset($tag.U_ADD)}
    88                                "{$tag.U_ADD}" title="{$tag.counter|translate_dec:'%d photo is also linked to current tags':'%d photos are also linked to current tags'}" rel="nofollow">+
  • extensions/stripped/template/month_calendar.tpl

    r26898 r32996  
    6969                                                                        <div class="calImg">
    7070                                                                                <a href="{$day.U_IMG_LINK}">
    71                                                                                         <img style="{$day.IMAGE_STYLE}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$day.NB_ELEMENTS|translate_dec:'%d photo':'%d photos'}">
     71                                                                                        <img style="{if isset($day.IMAGE_STYLE)}{$day.IMAGE_STYLE}{/if}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$day.NB_ELEMENTS|translate_dec:'%d photo':'%d photos'}">
    7272                                                                                </a>
    7373                                                                        </div>
  • extensions/stripped/template/picture.tpl

    r32017 r32996  
    5050                {/if}{/strip}
    5151                {strip}{if isset($favorite) }
    52                         <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{'Favorites'|@translate}</a></li>
     52                        <li><a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}">{'Favorites'|@translate}</a></li>
    5353        {/if}{/strip}
    5454                {strip}{if isset($current.U_DOWNLOAD)}
     
    421421    <div style="clear: both;"></div>
    422422</div>
    423 {if isset($stripped.imagePreload)}
     423{if isset($stripped.imagePreload) && isset($U_IMGNEXT)}
    424424<div id="image_urls" style="display:none;">
    425425        {foreach from=$U_IMGNEXT item=u_img key=id}
  • extensions/stripped/template/slideshow.tpl

    r16913 r32996  
    2828        <div id="content">
    2929                {assign var='display_description_tab' value=false}
    30                 {if (!($stripped.showDescriptionInsteadOfTitle) && isset($COMMENT_IMG))}
     30                {if (empty($stripped.showDescriptionInsteadOfTitle) && isset($COMMENT_IMG))}
    3131                        {assign var='display_description_tab' value=true}
    3232                {/if}
  • extensions/stripped/theme.css

    r31389 r32996  
    15631563  float:none;
    15641564}
     1565
     1566.mcs-container {
     1567    margin-bottom: 15px !important;
     1568}
     1569
     1570.search-params {
     1571    display: flex !important;
     1572    flex-direction: column !important;
     1573    gap: 10px !important;
     1574}
     1575
     1576.search-params div {
     1577    display: flex;
     1578}
     1579
     1580.search-params label,input {
     1581    margin: 0 5px 0 0 !important;
     1582}
     1583
     1584.head-button-2 {
     1585    width: 100%;
     1586    height: 100%;
     1587}
     1588
     1589/* Css for search in set button */
     1590.mcs-side-results {
     1591    display: flex;
     1592    flex-direction: row;
     1593    gap: 5px;
     1594    margin: 15px 0 15px 0 !important;
     1595  }
     1596
     1597  .mcs-side-results > div {
     1598    background: #3c3c3c;
     1599    box-shadow: 0px 2px #00000024;
     1600    position: relative;
     1601    padding: 4px 10px;
     1602    border-radius: 5px;
     1603    font-weight: 600;
     1604    display: flex;
     1605    align-items: center;
     1606    cursor: pointer;
     1607    margin-right: 10px;
     1608    color: #777;
     1609    width: fit-content;
     1610  }
     1611
     1612  .mcs-side-results > div:active {
     1613    transform: translateY(2px);
     1614    box-shadow: none;
     1615  }
     1616
     1617  .mcs-side-results > div p{
     1618    margin: 0 0 0 10px;
     1619    white-space: nowrap;
     1620    font-size: 15px;
     1621  }
     1622
     1623  .mcs-side-results .mcs-side-badge {
     1624    border-radius: 25px;
     1625    font-weight: 700;
     1626    color: #fafafa;
     1627    margin-left: 5px;
     1628    padding: 2px 5px!important;
     1629    font-size: 10px;
     1630    background: #777;
     1631  }
     1632
     1633  .mcs-side-results.search-in-set-button {
     1634    margin-bottom: 30px;
     1635  }
     1636
     1637  .mcs-side-results.search-in-set-button p {
     1638    margin:0;
     1639  }
     1640
     1641  .mcs-side-results.search-in-set-button a {
     1642    color:#777;
     1643    font-weight:600;
     1644  }
     1645
     1646  .mcs-side-results.search-in-set-button a::before {
     1647    margin-right:10px;
     1648  }
     1649
     1650  .mcs-side-results.search-in-set-button a:hover {
     1651    color:#777;
     1652    font-weight:600;
     1653    text-decoration: none;
     1654    text-shadow: none;
     1655  }
     1656  .mcs-no-result{
     1657    margin:20vh 0;
     1658  }
     1659
     1660  .mcs-container,
     1661  .mcs-side-results{
     1662    margin:0;
     1663    margin-top:15px;
     1664  }
     1665
     1666  .filetypes-option label,
     1667  .added_by-option label,
     1668  .date_posted-option label{
     1669    margin-bottom:0;
     1670  }
     1671
     1672  .filetypes-option input:checked + label .checked-icon,
     1673  .added_by-option input:checked + label .checked-icon,
     1674  .date_posted-option input:checked + label .checked-icon{
     1675    margin-top:0;
     1676  }
Note: See TracChangeset for help on using the changeset viewer.