Skip to content

Instantly share code, notes, and snippets.

@Aeonexe
Aeonexe / facebook-share
Last active October 7, 2020 21:55
Share page on facebook
<a href="https://www.facebook.com/sharer/sharer.php?u=<?= get_permalink(); ?>" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=<?= get_permalink(); ?>','pagename','resizable,height=400,width=480'); return false;">
<i class="fa fa-facebook"></i>
</a>
@Aeonexe
Aeonexe / php
Last active October 7, 2020 12:48
Visual Studio code snippets
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Aeonexe
Aeonexe / conditional-tags.php
Last active October 7, 2020 12:48
Wordpress referencia de tags condicionales
// A Single Post Page
is_single()
is_single( '17' )
is_single( 'Irish Stew' )
is_single( 'beef-stew' )
is_single( array( 17, 'beef-stew', 'Irish Stew' ) )
is_single( array( 17, 19, 1, 11 ) )
is_single( array( 'beef-stew', 'pea-soup', 'chili' ) )
is_single( array( 'Beef Stew', 'Pea Soup', 'Chili' ) )
is_woocommerce()
is_shop()
is_product_category()
is_product_category( 'shirts' )
is_product_category( array( 'shirts', 'games' ) )
is_product_tag()
is_product_tag( 'shirts' )
is_product_tag( array( 'shirts', 'games' ) )
is_product()
is_cart()
add_action( 'comment_form_before', 'action_function_6020' );
function action_function_6020( $args ){
$id = $_GET['id'];
// Gets id
}
@Aeonexe
Aeonexe / scss
Last active June 29, 2020 18:43
{
// Place your snippets for scss here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
{
// Place your snippets for scss here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Aeonexe
Aeonexe / html
Last active June 29, 2020 18:41
{
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Aeonexe
Aeonexe / settings.json
Last active June 29, 2020 18:41
Personalización de tema para VS code
{
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"window.smoothScrollingWorkaround": true,
"window.titleBarStyle": "custom",
"search.location": "panel",
"workbench.iconTheme": "material-icon-theme",
"window.zoomLevel": -1,
"liveServer.settings.donotShowInfoMsg": true,