Skip to content

Instantly share code, notes, and snippets.

@ltk
Created December 12, 2012 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ltk/4270348 to your computer and use it in GitHub Desktop.
Save ltk/4270348 to your computer and use it in GitHub Desktop.
Test Module - A module to show a useless div containing a link
@module-width: 50px;
@module-height: 100px;
@module-link-color: @blue;
div.module {
width: @module-width;
height: @module-height;
background: @module-background;
a {
color: @module-link-color;
undecorated();
}
}
<?php
$module_conent = do_something('hello world');
echo sprintf("<div class='module'>%s</div>", $module_content);
function do_something( $title ) {
return sprintf("<a title='%s' href='#%s' target='_blank'>%s</a>", $title, $title, $title);
}
?>
To function properly, this module requires:
another_module.php
another_module.less
jake_mixins.less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment