Thema: FAQ (english)
Einzelnen Beitrag anzeigen
  #3  
Alt 11. March 2009, 10:49
Benutzerbild von cybio
cybio cybio ist offline
aka maverick :)
Master of Spam
Punkte: 12.103, Level: 76 Punkte: 12.103, Level: 76 Punkte: 12.103, Level: 76
Aktivität: 0% Aktivität: 0% Aktivität: 0%
 
Registriert seit: Dec 1999
Ort: unrealEXTREME.de
Beiträge: 3.506
Renommee-Modifikator: 10
cybio will become famous soon enough
    Neutral 
AW: FAQ (english)

= Is it possible to show the images at any position in the theme (not only as widget)? =

Yes, you can use the following code to include the images:

PHP-Code:
<?php if ( is_object($galleryWidget) ) : ?>
<?php 
echo $galleryWidget->getAttachedImages(maximages, [latest|random], [old|direct], css-class, link-relation); ?>
<?php 
endif; ?>
for instance, 5 random images:

PHP-Code:
<?php if ( is_object($galleryWidget) ) : ?>
<?php 
echo $galleryWidget->getAttachedImages(5'random'); ?>
<?php 
endif; ?>
latest 7 images of the categories 1, 2 and 5, only 1 image per post/link to article (css: wGallery, relation: lightbox):

PHP-Code:
<?php if ( is_object($galleryWidget) ) : ?>
<?php 
echo $galleryWidget->getAttachedImagesByCategories(7'latest''1,2,5''include''article''wGallery''lightbox''yes'); ?>
<?php 
endif; ?>
Attention: If you wan't to use the galleryWidget-object in a function (like the sidebar), you have to include the global variable $galleryWidget (add
PHP-Code:
global $galleryWidget
before if())
__________________
splash.de /// unrealEXTREME.de >>> unrealLegacy.de

Geändert von cybio (20. June 2010 um 12:05 Uhr)