Last active
June 23, 2016 15:46
-
-
Save heckctor/8f9bfa957c79be0726773d2f075e23ce to your computer and use it in GitHub Desktop.
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
#Algunos trozos de codigo que voy ocupando | |
#PHP | |
'.text.html.php': | |
'Echo Php': | |
'prefix': 'eco' | |
'body': '<?=$1?>' | |
'Modulos Joomla': | |
'prefix': 'modj3' | |
'body': """ | |
<?php if ($this->countModules('${1:Nombre del modulo}')) : ?> | |
<div class="${2:clase css del modulo}"> | |
<jdoc:include type="modules" name="${3:Nombre del modulo}" style="xhtml"/> | |
</div> | |
<?php endif; ?> | |
""" | |
'Registrar Widget en functions.php': | |
'prefix': 'rwb' | |
'body': """ | |
register_sidebar( array( | |
'name' => __( 'Widget del Footer' ), | |
'id' => 'sidebar-footer', | |
'description' => __( 'Este widget es para el footer' ), | |
'before_widget' => '<aside id="%1$s" class="widget %2$s">', | |
'after_widget' => '</aside>', | |
'before_title' => '<h3 class="widget-title">', | |
'after_title' => '</h3>', | |
)); | |
""" | |
'Registrar Widget en el front': | |
'prefix': 'rwf' | |
'body': """ | |
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Widget del Footer')) : ?> | |
<?php endif; ?> | |
""" | |
#JS | |
'.source.js': | |
'jquery estructura': | |
'prefix': 'jq' | |
'body': """ | |
jQuery(document).ready(function($){ | |
${1://Ready to Start} | |
}); | |
""" | |
'Validar tamaño ventana': | |
'prefix': 'medjs' | |
'body': """ | |
if ($(window).width() <= $1) { | |
}else { | |
} | |
""" | |
'Menu Scroll': | |
'prefix': 'skr' | |
'body': """ | |
$(window).scroll(function () { | |
if ($(this).scrollTop() > 100) { | |
$('${1://Clase del menu}').addClass('menu-fijo'); | |
} else { | |
$('${2://Clase del menu}').removeClass('menu-fijo'); | |
} | |
});""" | |
'.source.css': | |
'Media min-width': | |
'prefix': 'mini' | |
'body': """ | |
@media screen and(min-width:${1:640px}){ | |
${2} | |
} | |
""" | |
'Media max-width': | |
'prefix': 'maxi' | |
'body': """ | |
@media screen and(max-width:${1:640px}){ | |
${2} | |
} | |
""" | |
#XML | |
'.text.xml': | |
'Posicion Joomla': | |
'prefix': 'pos' | |
'body': '<position>${1:Nombre}</position>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment