Package TWiki::Configure::ImgTool

This class is a singleton that offers URLs for the images (logos, warning, info) used during configuration - when neither pub nor data nor template directories are reliably available.

All the methods can be called either as class methods or as object methods on the singleton:

  • Class method:
    $img = "=<img src=" . TWiki::Configure::ImgTool->logo . "/>"
  • Object method:
    my $imgtool = TWiki::Configure::ImgTool->instance; $img = "=<img src=" . $imgtool->logo . "/>"

Class Method instance()

Returns the singleton object.

Class Method logo()

Returns the URL for the TWiki 140x40 logo (gif).

Class Method logoSmall()

Returns the URL for the TWiki small (34x26) logo (png).

Class Method favicon()

Returns the URL for the TWiki favicon (16x16, x-icon).

Class Method iconWarning()

Returns the URL for the warning icon (16x16, gif).

Class Method iconInfo()

Returns the URL for the info icon (16x16, gif).

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2018-07-16 - TWikiContributor
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TWiki All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback
Note: Please contribute updates to this topic on at TWiki:TWiki.TWikiConfigureImgToolDotPm