معرض صور سليك

معرض صور متجاوب مع السلايدر

12KB (Gzip)
طلبان HTTP عند التحميل الأول
IE 11+ والمتصفحات الحديثة

رابط مستودع GitHub

https://github.com/hnb-ku/Discourse-Slick-image-gallery

سطح المكتب



فيديو

الهاتف المحمول


تم بناؤه باستخدام مكتبة Slick الخاصة بـ Ken Wheeler - رخصة MIT

“مجاني مثل لحم الخنزير”


كيف أقوم بتثبيت هذا؟

قم بتثبيت هذا المكون تمامًا مثل أي سمة أخرى. اتبع التعليمات في الدليل الرسمي:

بمجرد الانتهاء، أضف المكون ببساطة إلى سمة حالية. تم!


كيف أستخدم هذا؟

يضيف هذا المكون زرًا إلى المصمم.

إذن كل ما عليك فعله هو:

1- قم بتحميل مجموعة من الصور باستخدام زر التحميل الافتراضي في Discourse ثم حدد الكود:

2- انقر على زر المعرض.

ستحصل على معاينة ثابتة للصور المحددة في لوحة المعاينة:

تم!


هل هناك أي شيء آخر يجب أن أعرفه؟

سيورث هذا المكون أنماط السمة الحالية.

إليك المكون يعمل على سمة مختلفة:

هل يمكنني استخدام كل من Slick و Tiles في نفس الوقت؟

بالتأكيد! :sweat_smile:

هذا ممكن من خلال جعل كل من مكوني Slick و Tiles جزءًا من سمة.

مثل هذا:

يمكنك بعد ذلك جعل “سمتي” في المثال أعلاه السمة الافتراضية أو جعلها قابلة للاختيار من قبل المستخدم، وستشمل كلا من Slick و Tiles.


مرحبًا بتقارير الأخطاء / الاقتراحات / طلبات السحب (PRs). :wine_glass:

60 إعجابًا

Yes! Been waiting for this. Keep up the awesome work :clap:

6 إعجابات

I can’t see the grey navigation dots under the gallery when using with Material Design Theme.

إعجاب واحد (1)

Good catch, thanks for reporting :sunflower:

It’s all fixed now:

Go ahead and update the theme it won’t be an issue anymore.

7 إعجابات

seems like slick does not work with recent 2.0.0.beta5
after upgrade from 2.0.0.beta4 (where it worked nicely), now the page simply does not load and in browser console i see the following error twice.

_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:29446 TypeError: Cannot set property 'slick_add_images_prompt' of undefined
at (index):104
at O (_application-4f2596d165aa73d5730c4d02b5334e59b8f55b495d4197974d87bd84efa1c94b.js:21941)
at Object.initialize (_application-4f2596d165aa73d5730c4d02b5334e59b8f55b495d4197974d87bd84efa1c94b.js:6960)
at _ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:16963
at e.each (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:15063)
at e.topsort (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:15030)
at e.topsort (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:14975)
at s._runInitializer (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:16978)
at s.runInstanceInitializers (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:16962)
at s._bootSync (_ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:15281)
إعجاب واحد (1)

Crosspost

4 إعجابات

There was a small update today that fixes the translation error for good! If you’re on beta 7 and face any errors, please update the theme. :sunflower:

4 إعجابات

Great theme! How can I translate strings? (I am French)

Also, I did some tests and it’s not working…

إعجاب واحد (1)

I just tested and everything seems to be working ok? Are you seeing any errors in the console? What version of Discourse are you on?

Like with Tiles, I also added a couple of settings that will allow you to change the strings:

5 إعجابات

Thanks!

But I still have problem with the plugin. The theme is up to date.

Can you please upload those images here so I can test? :sunflower:

إعجاب واحد (1)

No problem!

Images

poulailler%205poulailler%204

إعجاب واحد (1)

cross post:

5 إعجابات

Is it normal that the text is not displaying?

إعجاب واحد (1)

This isn’t working for me:

Discourse: v2.0.0.beta10 +49

@Francois_Douville

No, it’s not normal. I think I know what the problem is, the theme might need to be translated. I will post an update on that soon.

@Vaping_Community

I just checked on v2.0.0.beta10 +49 and everything seems to be working in order.

Can you share more details about what’s happening on your install?

4 إعجابات

For some reason it wasn’t working with larger images, had to reset some settings and refresh to get it to work but it is working now, great theme addon, thanks!

إعجاب واحد (1)

Is it possible to display another icon? My community thinks they have to display slick even if they have 1 image.

إعجاب واحد (1)

If you have a font-awesome icon in mind, you can do something like so:

.SlickGallery .fa-picture-o:before {
    content: "\f152";   // font awesome code
}
5 إعجابات

Later edit: my mistake.

The right mode is like this:

<div data-theme-slick="1">

![Assassins_Creed_Odyssey|690x388](upload://5G3oHJo7Ndmg8bOcmAUqFCve1I.jpg)
![Assassins_Creed_Odyssey_3|690x388](upload://3Y29aUZR2NvZqzqT2z2M5WC6WlM.jpg)
![Assassins_Creed_Odyssey_2|690x388](upload://mJXUqsUu1KEYiTWeyPpSyRQ2eVc.jpg)
![Assassins_Creed_Odyssey_1|690x388](upload://fLeh0qfIhTuYCI4sSi6W1I8dQ2g.jpg)
![Assassins_Creed_Odyssey_4|690x388](upload://iFBHuU1xflxCZlJneTUKiMUjru2.jpg)

</div>

Not like this:

 <div data-theme-slick="1">
    ![Assassins_Creed_Odyssey|690x388](upload://5G3oHJo7Ndmg8bOcmAUqFCve1I.jpg)
    </div>

  <div data-theme-slick="1">
    ![Assassins_Creed_Odyssey_3|690x388](upload://3Y29aUZR2NvZqzqT2z2M5WC6WlM.jpg)
    </div>

 <div data-theme-slick="1">
   ![Assassins_Creed_Odyssey_2|690x388](upload://mJXUqsUu1KEYiTWeyPpSyRQ2eVc.jpg)
    </div>

How can I make the images look like here? Without the black background.

Summary