-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
217 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md | ||
packages |
Empty file.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"el_fx_elementor_load_plugin_textdomain": { | ||
"prefix": "el_fx_elementor_load_plugin_textdomain", | ||
"body": [ | ||
"elementor_load_plugin_textdomain()" | ||
], | ||
"description": [ | ||
"Returns (void). Function: Load gettext translate for Elementor text domain.", | ||
"", | ||
"Source: elementor.php" | ||
] | ||
}, | ||
"el_fx_elementor_fail_wp_version": { | ||
"prefix": "el_fx_elementor_fail_wp_version", | ||
"body": [ | ||
"elementor_fail_wp_version()" | ||
], | ||
"description": [ | ||
"Returns (void). Function: Elementor admin notice for minimum WordPress version.", | ||
"", | ||
"Description: Warning when the site doesn’t have the minimum required WordPress version.", | ||
"", | ||
"Source: elementor.php" | ||
] | ||
}, | ||
"el_fx_elementor_fail_php_version": { | ||
"prefix": "el_fx_elementor_fail_php_version", | ||
"body": [ | ||
"elementor_fail_php_version()" | ||
], | ||
"description": [ | ||
"Returns (void). Function: Elementor admin notice for minimum PHP version.", | ||
"", | ||
"Description: Warning when the site doesn’t have the minimum required PHP version.", | ||
"", | ||
"Source: elementor.php" | ||
] | ||
}, | ||
"el_fx_bfi_wp_image_editor": { | ||
"prefix": "el_fx_bfi_wp_image_editor", | ||
"body": [ | ||
"bfi_wp_image_editor( $editorArray )" | ||
], | ||
"description": [ | ||
"Source: includes/libraries/bfi-thumb/bfi-thumb.php", | ||
"", | ||
"Uses: includes/libraries/bfi-thumb/bfi-thumb.php: BFI_Class_Factory::getNewestVersion()" | ||
] | ||
}, | ||
"el_fx_bfi_image_downsize": { | ||
"prefix": "el_fx_bfi_image_downsize", | ||
"body": [ | ||
"bfi_image_downsize( $out, $id, $size )" | ||
], | ||
"description": [ | ||
"Source: includes/libraries/bfi-thumb/bfi-thumb.php: bfi_thumb()", | ||
"Uses: includes/libraries/bfi-thumb/bfi-thumb.php: BFI_Class_Factory::getNewestVersion()", | ||
"", | ||
"Used By: includes/libraries/bfi-thumb/bfi-thumb.php: bfi_image_downsize()", | ||
"" | ||
] | ||
}, | ||
"el_fx_bfi_thumb": { | ||
"prefix": "el_fx_bfi_thumb", | ||
"body": [ | ||
"bfi_thumb( $url, $params = array(), $single = true )" | ||
], | ||
"description": "Source: includes/libraries/bfi-thumb/bfi-thumb.php" | ||
}, | ||
"el_fx_bfi_image_resize_dimensions": { | ||
"prefix": "el_fx_bfi_image_resize_dimensions", | ||
"body": [ | ||
"bfi_image_resize_dimensions( $payload, $orig_w, $orig_h, $dest_w, $dest_h, $crop = false )" | ||
], | ||
"description": "Source: includes/libraries/bfi-thumb/bfi-thumb.php" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"el_hook_scroll_top_distance": { | ||
"prefix": "el_hook_scroll_top_distance", | ||
"body": [ | ||
"jQuery( function( $ ) {", | ||
"// Add space for Elementor Menu Anchor link", | ||
"if ( window.elementorFrontend ) {", | ||
"elementorFrontend.hooks.addFilter( 'frontend/handlers/menu_anchor/scroll_top_distance', function( scrollTop ) {", | ||
"return scrollTop - ${1:30};", | ||
"} );", | ||
"}", | ||
"} );" | ||
], | ||
"description": [ | ||
"Argument: scrollTop, Type: integer", | ||
"", | ||
"Frontend Filter: Applied to the Menu Anchor widget, set a custom top distance. The default scrollTop. It takes only the WordPress Admin Bar in account." | ||
] | ||
}, | ||
"el_hook_init": { | ||
"prefix": "el_hook_init", | ||
"body": [ | ||
"elementorFrontend.hooks.addAction( 'init', function() {", | ||
"// Do something that is based on the elementorFrontend object.", | ||
"} );" | ||
], | ||
"description": [ | ||
"Argument: none", | ||
"", | ||
"Frontend Actions: Elementor frontend is loaded." | ||
] | ||
}, | ||
"el_hook_global": { | ||
"prefix": "el_hook_global", | ||
"body": [ | ||
"elementorFrontend.hooks.addAction( 'frontend/element_ready/global', function( $scope ) {", | ||
"if ( $scope.data( 'shake' ) ){", | ||
"$scope.shake();", | ||
"}", | ||
"} );" | ||
], | ||
"description": [ | ||
"Argument: $scope - The current element wrapped with jQuery", | ||
"", | ||
"Argument: $ -The jQuery instance", | ||
"", | ||
"frontend/element_ready/global Runs on every element (includes sections and columns) when it’s ready" | ||
] | ||
}, | ||
"el_hook_widget": { | ||
"prefix": "el_hook_widget", | ||
"body": [ | ||
"elementorFrontend.hooks.addAction( 'frontend/element_ready/widget', function( $scope ) {", | ||
"if ( $scope.data( 'shake' ) ){", | ||
"$scope.shake();", | ||
"}", | ||
"} );" | ||
], | ||
"description": [ | ||
"Argument: $scope - The current element wrapped with jQuery", | ||
"", | ||
"Argument: $ -The jQuery instance", | ||
"", | ||
"frontend/element_ready/widget Runs on every widget when it’s ready." | ||
] | ||
} | ||
} |
0
snippets/hooks.json → snippets/hooks/php.json
100644 → 100755
File renamed without changes.
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
Empty file.