jScrollPane
Pretty, customisable, cross browser replacement scrollbars Demo
jcarousel
Riding carousels with jQuery.Demo
jquery-carousel
Another jQuery carousel
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
<?php | |
//Этот фильтр меняет ссылку на файл только на морде сайта: | |
function change_image_src($content) { | |
return preg_replace('/src="([^"]+)"/', 'src="http://src.sencha.io/sw/$1"', $content); | |
} | |
add_filter( 'the_content', 'change_image_src' ); | |
//Этот меняет ссылку на файл при сохранении/обновлении поста: |
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
$.support.placeholder = false; | |
test = document.createElement('input'); | |
if('placeholder' in test) $.support.placeholder = true; | |
if(!$.support.placeholder) { | |
var active = document.activeElement; | |
$(':text').focus(function () { | |
if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) { | |
$(this).val('').removeClass('hasPlaceholder'); | |
} |
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
<?php | |
/** | |
* Plugin Name: Future Core Login | |
* Plugin URI: http://unserkaiser.com | |
* Description: Replacing the current stylesheets loaded on wp-login.php until this ticket goes into core: <a href="http://core.trac.wordpress.org/ticket/12506">#12506</a> | |
* Version: 0.1 | |
* Author: Franz Josef Kaiser | |
* Author URI: http://unserkaiser.com | |
* License: GPL2 | |
* |
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
<?php | |
function qtranslate_edit_taxonomies(){ | |
$args=array( | |
'public' => true , | |
'_builtin' => false | |
); | |
$output = 'object'; // or objects | |
$operator = 'and'; // 'and' or 'or' |
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
<?php | |
function get_qlang(){ | |
global $q_config; | |
foreach(qtrans_getSortedLanguages() as $language) { | |
if(is_404()) $url = get_option('home'); else $url = ''; | |
echo '<li'; | |
if($language == $q_config['language']) echo ' class="current"'; | |
echo '><a href="'.qtrans_convertURL($url, $language).'"'; |
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
<?php | |
add_action( 'login_head', 'ilc_custom_login'); | |
function ilc_custom_login() { | |
echo '<style type="text/css"> | |
h1 a { background-image:url('. get_stylesheet_directory_uri() . '/images/logo2.png' . ') !important; margin-bottom: 10px; } | |
padding: 20px;} | |
</style> | |
<script type="text/javascript">window.onload = function(){document.getElementById("login").getElementsByTagName("a")[0].href = "'. home_url() . '";document.getElementById("login").getElementsByTagName("a")[0].title = "Go to site";}</script>'; | |
} |
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
<?php | |
function modify_footer_admin () { | |
echo 'Developed by <a href="http://roose.kz">roose</a>.'; | |
} | |
add_filter('admin_footer_text', 'modify_footer_admin'); | |
?> |
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
<?php | |
function disable_default_dashboard_widgets() { | |
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); | |
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); | |
remove_meta_box('dashboard_plugins', 'dashboard', 'core'); | |
remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); | |
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); | |
remove_meta_box('dashboard_primary', 'dashboard', 'core'); | |
remove_meta_box('dashboard_secondary', 'dashboard', 'core'); |