How do i change $theme->album_menu()

hejkki

Joined: 2013-11-25
Posts: 10
Posted: Mon, 2013-11-25 11:20

Hi.
I am creating a new theme for our project.

How do i change the output of the $theme->album_menu(), that is, the view slideshow and other links?
I need them to be text-links, not images.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-11-25 18:10

The o/p is generated in the slideshow slideshow_event.php by:

  static function album_menu($menu, $theme) {
    $max_scale = module::get_var("slideshow", "max_scale");
    if ($theme->item()->descendants_count(array(array("type", "=", "photo")))) {
      $menu->append(Menu::factory("link")
                    ->id("slideshow")
                    ->label(t("View slideshow"))
                    ->url("javascript:cooliris.embed.show(" .
                          "{maxScale:$max_scale,feed:'" . self::_feed_url($theme) . "'})")
                    ->css_id("g-slideshow-link"));
    }
  }
Quote:
I need them to be text-links, not images.

You can use CSS change the behavior as the link has text and is changed by the cssID in the css of the theme.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hejkki

Joined: 2013-11-25
Posts: 10
Posted: Tue, 2013-11-26 09:55

thanks. there was a .js file that changed the css.
works now :)