Created
December 12, 2012 18:35
-
-
Save ltk/4270348 to your computer and use it in GitHub Desktop.
Test Module - A module to show a useless div containing a link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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