A Factorial.io component to display a logo with configurable source, height and ratio.
The array the component needs looks like this:
$data = array(
'src' => 'Url://to-your.image',
'title' => 'Your Logo Title'
);
// Optional
$options = array(
'width' => '1em',
'height' => '32px',
};
src
: the image-url.title
: the text in the invisable span for screenreader
ratio
: the ratio of the logo inem
height
: the height of the logo inpx
orem
If you want to include the component in one of your template-files, just use
php
print component('factorial-io-components-logo', $data, $options));
haml
= component('factorial-io-components-logo', $data, $options)
To use the fixture-data of the component for testing, etc, use
print compontent(‘factorial-io-components-logo’, NULL, $options)
// or
print compontent(‘factorial-io-components-logo’)