blog::marquee()

From SkyPHP

Jump to: navigation, search

Display a marquee box that rotates featured blog articles.

Contents

Description

marquee ( array $blog_article_array [, array $settings ] )

Parameters

blog_article_array - array of blog articles to display in marquee box

settings

  • class - css class for the marquee box, default = 'marquee'
  • file - file with the HTML code for the marquee box, default = 'pages/blog/marquee/marquee.php'
  • duration - amount of time between slides, default = 2000
  • transition - jquery.cycle effect to use, default = 'fade'
  • speed - jquery.easing speed to use, default = 'null' (string)
  • easing jquery.easing easing to use, default = 'null' (string)
  • height - height of marquee, default = 320
  • width - width of marquee, default = 640
  • height_small - height of thumb, default = 50
  • width_small - width of thumb, default = 85
  • padding - padding to use between thumbs, default = 2
  • crop_gravity - media::get_item crop_gravity value to use, default = 'center'
  • crop_gravity_small - media::get_item crop_gravity value to use, default = 'center'
  • css - array of css values (ie: array("#main-panel"=>"color:red;") ), default = null

Example

<?

$articles = aql::select( 'blog_article', array(
    'where' => 'blog_article.marquee__media_item_id is not null',
    'order by' => 'blog_article.post_time desc',
    'limit' => 5
) );

blog::marquee( $articles );

?>

See Also

Known Bugs & Issues

n/a

Personal tools