#Drupal 7 Theming Snippets By Andreas Vejnø Andersen – vejnoe.dk
##Image node.tpl.php
<?php print $node_url; ?>
| <p> | |
| <a class="button large" href="#">Button Large</a><br /> | |
| <a class="button" href="#">Button</a><br /> | |
| <a class="button small" href="#" style="font-size: 16px;">Button Small</a><br /> | |
| <a class="button tiny" href="#" style="font-size: 16px;">Button Tiny</a> | |
| </p> | |
| <h1> | |
| CSS Basic Elements | |
| </h1> |
#Drupal 7 Theming Snippets By Andreas Vejnø Andersen – vejnoe.dk
##Image node.tpl.php
<?php print $node_url; ?>
| drush php-eval 'node_access_rebuild();' |
| <?php | |
| /** | |
| * Process variables for user-profile.tpl.php. | |
| * | |
| * The $variables array contains the following arguments: | |
| * - $account | |
| * | |
| * @see user-profile.tpl.php | |
| */ | |
| function YOUR_THEMENAME_preprocess_user_profile(&$variables) { |
| @media screen and (max-width: 991px) { | |
| /* Your responsive CSS */ | |
| } | |
| @media screen and (max-width: 767px) { | |
| /* Your responsive CSS */ | |
| } | |
| @media screen and (max-width: 479px) { | |
| /* Your responsive CSS */ | |
| } |
| (function($){ | |
| $(document).ready(function() { | |
| }) | |
| })(jQuery); |
| var Webflow = Webflow || []; | |
| Webflow.push(function () { | |
| // Find example element | |
| var $element = $('.resize-demo'); | |
| var $parent = $element.parent(); | |
| // Listen for optimized resize event | |
| Webflow.resize.on(function () { | |
| <script> | |
| var Webflow = Webflow || []; | |
| Webflow.push(function () { | |
| // DOMready has fired, may now use jQuery and Webflow api | |
| }); | |
| </script> |
| <?php | |
| header('HTTP/1.1 301 Moved Permanently'); | |
| header('Location: http://example.com'); | |
| ?> |
| <script> | |
| // Adding the title of the page to a hidden form element. | |
| var Webflow = Webflow || []; | |
| Webflow.push(function () { | |
| $('#event').attr( 'value', $('title').html() ); | |
| }); | |
| </script> | |
| <input type="hidden" id="event" name="event" value="Unknown"> |