Changeset 32997


Ignore:
Timestamp:
Dec 20, 2023, 9:30:11 PM (5 months ago)
Author:
plg
Message:

compatibility PHP 8 and Piwigo 14, by Linty

Location:
extensions/stripped_responsive
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_responsive/template/config.js.tpl

    r29641 r32997  
    1616        highResClickMode:"{$stripped_responsive.highResClickMode}",
    1717{else}
    18         animatedMenu:{if $stripped_responsive.animatedMenu}true{else}false{/if}
     18        animatedMenu:{if isset($stripped_responsive.animatedMenu)}true{else}false{/if}
    1919{/if}
    2020{literal}
  • extensions/stripped_responsive/template/index.tpl

    r30101 r32997  
    33                <div class="categoryActionsContainer">
    44                        <ul class="categoryActions group1">
     5                                {if isset($SEARCH_IN_SET_ACTION) and $SEARCH_IN_SET_ACTION}
     6                                {combine_css path="themes/default/vendor/fontello/css/fontello.css" order=-10}
     7                                        <li id="cmdSearchInSet"><a href="{$SEARCH_IN_SET_URL}" title="{'Search in this set'|translate}" class="pwg-state-default pwg-button">
     8                                        <i class="pwg-icon-search-folder icon-white"></i>
     9                                        </a></li>
     10                          {/if}
    511        {if !empty($PLUGIN_INDEX_BUTTONS)}{foreach from=$PLUGIN_INDEX_BUTTONS item=button}<li class="mainAction">{$button}</li>{/foreach}{/if}
    612        {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
     
    7884                        {/if}
    7985
     86                        {if isset($SEARCH_IN_SET_BUTTON) and $SEARCH_IN_SET_BUTTON}
     87                                <div class="mcs-side-results search-in-set-button">
     88                                  <div>
     89                                  <p><a href="{$SEARCH_IN_SET_URL}" class="pwg-icon-search-folder">{'Search in this set'|translate}</a></p>
     90                                  </div>
     91                                </div>
     92                        {/if}
     93
    8094                        {if !empty($CONTENT_DESCRIPTION) }
    8195                                <div class="content_block"><div class="additional_info">
     
    88102        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
    89103      {/if}
     104
     105          {if !empty($SEARCH_ID)}
     106                {include file='themes/default/template/include/search_filters.inc.tpl'}
     107          {/if}
    90108
    91109                        {if !empty($THUMBNAILS) }
     
    102120                                </div>
    103121        <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>
     122                        {else if !empty($SEARCH_ID)}
     123                                <div class="mcs-no-result">
     124                                        <div class="text">
     125                                                <span class="top">{'No results are available.'|@translate}</span>
     126                                                <span class="bot">{'You can try to edit your filters and perform a new search.'|translate}</span>
     127                                        </div>
     128                                </div>
    104129                        {/if}
    105130                        {if !empty($PLUGIN_INDEX_CONTENT_END) }<div class="content_block">{$PLUGIN_INDEX_CONTENT_END}</div>{/if}
  • extensions/stripped_responsive/template/menubar_tags.tpl

    r29449 r32997  
    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_responsive/template/month_calendar.tpl

    r29449 r32997  
    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}" src="{$day.IMAGE}" alt="{$day.IMAGE_ALT}" title="{$day.NB_ELEMENTS|translate_dec:'%d photo':'%d photos'}">
    7272                                                                                </a>
    7373                                                                        </div>
  • extensions/stripped_responsive/template/picture.tpl

    r32018 r32997  
    5858                {strip}{if isset($favorite) }
    5959                        <li>
    60         <a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">
     60        <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}">
    6161          <span class="pwg-icon pwg-icon-heart"></span>
    6262          <span class="pwg-button-text">{'Favorites'|@translate}</span>
  • extensions/stripped_responsive/template/slideshow.tpl

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

    r31576 r32997  
    16571657  display: block;
    16581658}
     1659
     1660.mcs-container {
     1661    margin-bottom: 15px !important;
     1662}
     1663
     1664.search-params {
     1665    display: flex !important;
     1666    flex-direction: column !important;
     1667    gap: 10px !important;
     1668}
     1669
     1670.search-params div {
     1671    display: flex;
     1672}
     1673
     1674.search-params label,input {
     1675    margin: 0 5px 0 0 !important;
     1676}
     1677
     1678.head-button-2 {
     1679    width: 100%;
     1680    height: 100%;
     1681}
     1682
     1683/* Css for search in set button */
     1684.mcs-side-results {
     1685    display: flex;
     1686    flex-direction: row;
     1687    gap: 5px;
     1688    margin: 15px 0 15px 0 !important;
     1689  }
     1690
     1691  .mcs-side-results > div {
     1692    background: #3c3c3c;
     1693    box-shadow: 0px 2px #00000024;
     1694    position: relative;
     1695    padding: 4px 10px;
     1696    border-radius: 5px;
     1697    font-weight: 600;
     1698    display: flex;
     1699    align-items: center;
     1700    cursor: pointer;
     1701    margin-right: 10px;
     1702    color: #777;
     1703    width: fit-content;
     1704        margin-left: 10px;
     1705  }
     1706
     1707  .mcs-side-results > div:active {
     1708    transform: translateY(2px);
     1709    box-shadow: none;
     1710  }
     1711
     1712  .mcs-side-results > div p{
     1713    margin: 0 0 0 10px;
     1714    white-space: nowrap;
     1715    font-size: 15px;
     1716  }
     1717
     1718  .mcs-side-results .mcs-side-badge {
     1719    border-radius: 25px;
     1720    font-weight: 700;
     1721    color: #fafafa;
     1722    margin-left: 5px;
     1723    padding: 2px 5px!important;
     1724    font-size: 10px;
     1725    background: #777;
     1726  }
     1727
     1728  .mcs-side-results.search-in-set-button {
     1729    margin-bottom: 30px;
     1730  }
     1731
     1732  .mcs-side-results.search-in-set-button p {
     1733    margin:0;
     1734  }
     1735
     1736  .mcs-side-results.search-in-set-button a {
     1737    color:#777;
     1738    font-weight:600;
     1739  }
     1740
     1741  .mcs-side-results.search-in-set-button a::before {
     1742    margin-right:10px;
     1743  }
     1744
     1745  .mcs-side-results.search-in-set-button a:hover {
     1746    color:#777;
     1747    font-weight:600;
     1748    text-decoration: none;
     1749    text-shadow: none;
     1750  }
     1751  .mcs-no-result{
     1752    margin:20vh 0;
     1753  }
     1754
     1755  .mcs-container,
     1756  .mcs-side-results{
     1757    margin:0;
     1758    margin-top:15px;
     1759        margin-left: 10px;
     1760  }
     1761
     1762  .filetypes-option label,
     1763  .added_by-option label,
     1764  .date_posted-option label{
     1765    margin-bottom:0;
     1766  }
     1767
     1768  .filetypes-option input:checked + label .checked-icon,
     1769  .added_by-option input:checked + label .checked-icon,
     1770  .date_posted-option input:checked + label .checked-icon{
     1771    margin-top:0;
     1772  }
     1773
     1774  .mcs-container ::before,
     1775  .mcs-side-results ::before,
     1776  #cmdSearchInSet ::before {
     1777        font-family: "fontello" !important;
     1778  }
Note: See TracChangeset for help on using the changeset viewer.