Resource Manager Template Change Beta

XF 2.1 / 2.2 / 2.3 Resource Manager Template Change Beta

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
Resource Manager Template Change Beta

XF 2.1 / 2.2 / 2.3 Resource Manager Template Change Beta

Catégorie Catégorie Modifications Templates
Titre du sujet Titre du sujet Resource Manager Template Change Beta
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 31
Affichages Affichages 2 027
Réaction Réaction 6
Dernier message par Dernier message par Eldin
am gonna try on 2.3.3.
Thanx for the share!
La modification est appliquée. Je l'ai comme ceci :
HTML:
$0
<xf:if is="$resource.isDownloadable()">
    <div class="p-title-pageAction">
        <xf:if is="$resource.canDownload()">
            <xf:if is="$resource.isExternalDownload()">
                <xf:button href="{{ link('resources/download', $resource) }}" target="_blank"
rel="noopener"
data-xf-init="tooltip"
class="button--cta button--fullWidth"
title="{{ $resource.CurrentVersion.getExternalDownloadDomain() }}"
icon="redirect">{{ phrase('xfrm_go_to_download') }}</xf:button>
            <xf:else />
                <xf:button href="{{ link('resources/download', $resource) }}" target="_blank"
class="button--cta button--fullWidth"

icon="download">{{ phrase('download') }}
                <xf:if is="count($resource.CurrentVersion.Attachments) == 1">
  <xf:set var="$attachment" value="{{ $resource.CurrentVersion.Attachments|first }}" />
  (<strong>{{ $attachment.getFileSize()|file_size }}</strong> / <em>{{ $attachment.getExtension() }}</em>)
</xf:if>
                </xf:button>
            </xf:if>
        <xf:else />
            <span class="button button--wrap is-disabled button--fullWidth">{{ phrase('xfrm_no_permission_to_download') }}</span>
        </xf:if>
    </div>
<xf:elseif is="$resource.isExternalPurchasable()" />
    <div class="p-title-pageAction">
        <xf:if is="$resource.canDownload()">
            <xf:button href="{$resource.external_purchase_url}" class="button--cta button--fullWidth" icon="purchase" target="_blank" rel="noopener">
                {{ phrase('xfrm_buy_for_x', {'price': $resource.price|currency($resource.currency)}) }}
            </xf:button>
        <xf:else />
            <span class="button button--wrap is-disabled button--fullWidth">{{ phrase('xfrm_no_permission_to_buy_price_x', {'price': $resource.price|currency($resource.currency)}) }}</span>
        </xf:if>
    </div>
</xf:if>
 
merci
[automerge]1729449129[/automerge]
La modification est appliquée. Je l'ai comme ceci :
HTML:
$0
<xf:if is="$resource.isDownloadable()">
    <div class="p-title-pageAction">
        <xf:if is="$resource.canDownload()">
            <xf:if is="$resource.isExternalDownload()">
                <xf:button href="{{ link('resources/download', $resource) }}" target="_blank"
rel="noopener"
data-xf-init="tooltip"
class="button--cta button--fullWidth"
title="{{ $resource.CurrentVersion.getExternalDownloadDomain() }}"
icon="redirect">{{ phrase('xfrm_go_to_download') }}</xf:button>
            <xf:else />
                <xf:button href="{{ link('resources/download', $resource) }}" target="_blank"
class="button--cta button--fullWidth"

icon="download">{{ phrase('download') }}
                <xf:if is="count($resource.CurrentVersion.Attachments) == 1">
  <xf:set var="$attachment" value="{{ $resource.CurrentVersion.Attachments|first }}" />
  (<strong>{{ $attachment.getFileSize()|file_size }}</strong> / <em>{{ $attachment.getExtension() }}</em>)
</xf:if>
                </xf:button>
            </xf:if>
        <xf:else />
            <span class="button button--wrap is-disabled button--fullWidth">{{ phrase('xfrm_no_permission_to_download') }}</span>
        </xf:if>
    </div>
<xf:elseif is="$resource.isExternalPurchasable()" />
    <div class="p-title-pageAction">
        <xf:if is="$resource.canDownload()">
            <xf:button href="{$resource.external_purchase_url}" class="button--cta button--fullWidth" icon="purchase" target="_blank" rel="noopener">
                {{ phrase('xfrm_buy_for_x', {'price': $resource.price|currency($resource.currency)}) }}
            </xf:button>
        <xf:else />
            <span class="button button--wrap is-disabled button--fullWidth">{{ phrase('xfrm_no_permission_to_buy_price_x', {'price': $resource.price|currency($resource.currency)}) }}</span>
        </xf:if>
    </div>
</xf:if>
Veuillez fournir l'échantillon complet
 
Dernière édition:
Qu'en est il de ce code pour XF 2.3 ?
J'ai modifié les templates comme indiqué das le premier sujet, à priori ça fonctionne mais est ce bien pour XF 2.3 ?

De plus comment traduire les titres 'Resource Information" - "More Info" et "About the Author" ?
Je ne les trouve pas dans les expressions.

Merci
 
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas