This file contains hidden or 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
| // Outputs the template used | |
| // Usage: echo get_current_template(true); | |
| // Credits: http://www.kevinleary.net/get-current-theme-template-filename-wordpress/ | |
| function define_current_template( $template ) { | |
| $GLOBALS['current_theme_template'] = basename($template); | |
| return $template; | |
| } | |
| function get_current_template( $echo = false ) { |
This file contains hidden or 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
| { | |
| "bold_folder_labels": true, | |
| "caret_extra_width": 1, | |
| "caret_style": "phase", | |
| "close_windows_when_empty": false, | |
| "color_scheme": "Packages/User/SublimeLinter/predawn (SL).tmTheme", | |
| "copy_with_empty_selection": false, | |
| "drag_text": false, | |
| "draw_minimap_border": true, | |
| "enable_tab_scrolling": true, |
This file contains hidden or 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
| [ | |
| { "keys": ["ctrl+shift+u"], "command": "sftp_upload_file" }, | |
| { "keys": ["pause"], "command": "sftp_cancel_upload" }, | |
| { "keys": ["f1"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
| { "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}}, | |
| { "keys": ["ctrl+super+k"], "command": "toggle_comment", "args": { "block": true } }, | |
| { "keys": ["ctrl+alt+k"], "command": "insert_snippet", "args": {"name": "Packages/User/comment.sublime-snippet"} }, | |
| { "keys": ["shift+f3"], "command": "css_sorter" }, | |
| { "keys": ["ctrl+alt+f"], "command": "use_it" }, | |
| { "keys": ["alt+e"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } }, |
This file contains hidden or 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
| window.animFrame = (function(){ | |
| return window.requestAnimationFrame|| | |
| window.webkitRequestAnimationFrame || | |
| window.mozRequestAnimationFrame || | |
| function( callback ){ | |
| window.setTimeout(callback, 15); | |
| }; | |
| })(); | |
| var scrollTimeout; | |
| $(window).scroll(function () { |
This file contains hidden or 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
| /* ========================================================================== | |
| 13 - Excerpt custom lenght : ground_excerpt( 100, __('Read more', 'ground'), '...', 'classname' ); | |
| * ========================================================================== */ | |
| // Summary or description of a post with custom lenght | |
| $word = __('Read more', 'ground'); | |
| function ground_excerpt( $character_length = 100, $word, $continue = '...', $class="button" ) { |
This file contains hidden or 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
| /* | |
| * This is a port of Compass rhythm function | |
| * To do: add other parameters | |
| * $font-base and $line-height variables should be set according to your vertical rhythm | |
| */ | |
| @function rhythm($lines: 1, $font-size: $font-base, $offset: 0) { | |
| $rhythm: $lines * $line-height; | |
| @if unit($rhythm) == px { | |
| $rhythm: floor($rhythm); |
This file contains hidden or 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
| $(document).ready(function() { | |
| var DEBUG = false; | |
| function formfiller1() { | |
| $("input").add("textarea").not("[type=button], [type=submit]").each(function() { | |
| if ( $(this).hasClass('email')) { | |
| $(this).attr("value" ,"daniel@mail.it"); | |
| } else { | |
| $(this).attr("value","test"); | |
| } |
This file contains hidden or 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
| /* | |
| * Tooltip | |
| * Block: .tooltip | |
| * Elements: | |
| * Modifiers: | |
| */ | |
| .tooltip { | |
| display: inline-block; | |
| position: relative; |
This file contains hidden or 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
| // ---- | |
| // Sass (v3.3.4) | |
| // Compass (v1.0.0.alpha.18) | |
| // ---- | |
| %widget { | |
| padding: 10px; | |
| h1 { | |
| margin-bottom: 10px; |
This file contains hidden or 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
Show hidden characters
| [ | |
| { | |
| "args": | |
| { | |
| "characters": " " | |
| }, | |
| "command": "insert" | |
| }, | |
| { | |
| "args": |