لا نعرض عدد المشاهدات على الأجهزة المحمولة، بل نعرض فقط النشاط والردود. لإنشاء عرض قائمة المواضيع المخصص للأجهزة المحمولة، ستحتاج إلى إنشاء عنصر سمة يقوم بتعديل قالب topic-list-item الخاص بالأجهزة المحمولة الموجود هنا:
<td>
{{~raw-plugin-outlet name="topic-list-before-columns"}}
{{~#if showMobileAvatar}}
<div class='pull-left'>
<a href="{{topic.lastPostUrl}}" data-user-card="{{topic.last_poster_username}}">{{avatar topic.lastPosterUser imageSize="large"}}</a>
</div>
<div class='right'>
{{else}}
<div>
{{/if~}}
{{!--
The `~` syntax strip spaces between the elements, making it produce
`<a class=topic-post-badges>Some text</a><span class=topic-post-badges>`,
with no space between them.
This causes the topic-post-badge to be considered the same word as "text"
at the end of the link, preventing it from line wrapping onto its own line.
--}}
{{~raw-plugin-outlet name="topic-list-before-link"}}
<div class='main-link'>
{{~raw-plugin-outlet name="topic-list-before-status"}}
This file has been truncated. show original
يمكنك العثور على مثال لشخص في هذا المنتدى قام بشيء مشابه في هذا الموضوع: MD Topic List Mobile component .
إذا لم تقم بإنشاء سمة أو عنصر سمة من قبل، فإننا نوصي بقراءة هذا الموضوع الذي يقدم شرحًا ممتازًا للعملية.
This is a crash course in Discourse theme basics. The target audience is everyone who is not familiar with Discourse themes. If you’ve already used Discourse theme / theme components, this guide is probably not something you need to read.
What are themes and theme components?
A theme or theme component is a set of files packaged together designed to either modify Discourse visually or to add new features.
Let’s start with themes.
Themes
In general, themes are not supposed to be compatible …
4 إعجابات