Skip to content

Instantly share code, notes, and snippets.

View VelichkoAlexander's full-sized avatar
🪐
Exploring

Alexander Velichko VelichkoAlexander

🪐
Exploring
  • Ukraine
View GitHub Profile
@VelichkoAlexander
VelichkoAlexander / .gitconfig
Created October 14, 2017 12:21
aliases for .gitconfig
[alias]
co = checkout
c = commit
st = status
br = branch
pl = pull
p = push
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
<?php
function themename_customize_register($wp_customize){
$wp_customize->add_section('themename_color_scheme', array(
'title' => __('Color Scheme', 'themename'),
'priority' => 120,
));
// =============================
@VelichkoAlexander
VelichkoAlexander / function.php
Created September 2, 2016 12:19
Персональный логотип и ссылка на вход в админ панель Wordpress
function my_login_logo(){
echo '
<style type="text/css">
#login h1 a { background: url("<?php echo get_template_directory_uri(); ?>/images/logo.png") no-repeat 50% 50% !important; }
</style>';
}
add_action('login_head', 'my_login_logo');
add_filter( 'login_headerurl', create_function('', 'return get_home_url();') );
@VelichkoAlexander
VelichkoAlexander / Copy text directly from Photoshop text layer.
Created August 31, 2016 12:02 — forked from praveenvijayan/Copy text directly from Photoshop text layer.
Copy text directly from text layer. Works above photoshop cs6. Copy following script file into /Applications/Adobe Photoshop CC 2014/Presets/Scripts (MAC) or C:\Program Files\Adobe\Adobe Photoshop CC 2014\Presets\Scripts (WIN). Assign shortcut for easy access (cmd+option+c / ctrl+alt+c)
/*****************************************************************
*
* Copy Layer text 1.0 - by Praveen Vijayan! - http://www.decodize.com/
*
* Compatibility above Photoshop CS6
*
* Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
*
*****************************************************************/
<style>
/* ---------------------------------------------- /*
* Mouse animate icon
/* ---------------------------------------------- */
.mouse-icon {
border: 2px solid #000;
border-radius: 16px;
height: 40px;
width: 24px;
display: block;
<?php
if ( have_posts() ) : // если имеются записи в блоге.
query_posts('cat=3'); // указываем ID рубрик, которые необходимо вывести.
while (have_posts()) : the_post(); // запускаем цикл обхода материалов блога
?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; // завершаем цикл.
endif;
/* Сбрасываем настройки цикла. Если ниже по коду будет идти еще один цикл, чтобы не было сбоя. */
wp_reset_query();