Skip to content

Instantly share code, notes, and snippets.

View eduard-ungureanu's full-sized avatar
🎯
Focusing

Eduard Ungureanu eduard-ungureanu

🎯
Focusing
View GitHub Profile
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@eduard-ungureanu
eduard-ungureanu / ccfm_edit1.php
Last active November 18, 2015 17:44
ccfm edit 1
$et_error_message = sprintf( '<p>%1$s</p>', esc_html__( 'Thanks for contacting us', 'et_builder' ) );
/* =BEGIN: Only include Contact Form 7 javascript and CSS when needed
Source: http://fredrikmalmgren.com/only-include-contact-form-7-javascript-and-css-when-needed/
---------------------------------------------------------------------------------------------------- */
add_action( 'wp_print_scripts', 'deregister_cf7_javascript', 100 );
function deregister_cf7_javascript() {
if ( !is_page('contact') ) {
wp_deregister_script( 'contact-form-7' );
}
}
<?php
$args = array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'widgets'
);
add_theme_support( 'html5', $args );
<figure>
<img src="img src" alt="alt attribute">
<figcaption>image caption</figcaption>
</figure>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteRule ^login$ wp-login.php
<?php
add_filter('site_url', 'wplogin_filter', 10, 3);
function wplogin_filter( $url, $path, $orig_scheme ) {
$old = array( "/(wp-login\.php)/");
$new = array( "login");
return preg_replace( $old, $new, $url, 1);
}
<section class="slide-up-boxes">
<a href="http://elegantthemes.com">
<h5>I am a moderator on...</h5>
<div>Eelegant themes are best resource for wordpress premium themes. If you want your site to have a slick look this is the place</div>
</a>
<a href="http://weddingtweets.net">
<h5>Curently i'm working on...</h5>
<div>This project includes a lot of wordpress customization and integration of BuddyPress.</div>
</a>
<a href="http://www.mobstermobiledesign.com/">