21
How to add reverse sort order to Gallery in Widgetkit
Posted in html, php, Web Дизайн, админ by kinoteka
For those of you sick of asking for this feature in WidgetKit as I am, I have taken it upon myself to just add the feature.
open /media/widgetkit/widgets/gallery/gallery.php
then on around line 19x… look for this code
// random order
if (count($images) && isset($settings[‘order’]) && $settings[‘order’] ==“random“) {
shuffle($images);
}
and change it to the following
// Sort Orders
if (count($images) && isset($settings[‘order’])) {
switch($settings[‘order’]) {
case „random“:
чети още
11 ное.
12
WordPress NextGEN Gallery Shortcodes
Posted in Web Дизайн, джаджи by kinoteka
Whenever we build a website using WordPress and the client request a gallery – we always use NextGEN.
I can’t fault them for the features it offers, its a fantastic bit of kit – but when it actually comes to the shortcodes to get it to display stuff – NextGEN fail big time.
So i google it every time, sometimes finding what i want – but most of the time having to piece it together from examples people have p=ut on forums.
чети още
Намерете ни в: