jScrollPane
Pretty, customisable, cross browser replacement scrollbars Demo
jcarousel
Riding carousels with jQuery.Demo
jquery-carousel
Another jQuery carousel
<?php | |
function modify_footer_admin () { | |
echo 'Developed by <a href="http://roose.kz">roose</a>.'; | |
} | |
add_filter('admin_footer_text', 'modify_footer_admin'); | |
?> |
<?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>'; | |
} |
<?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).'"'; |
<?php | |
function qtranslate_edit_taxonomies(){ | |
$args=array( | |
'public' => true , | |
'_builtin' => false | |
); | |
$output = 'object'; // or objects | |
$operator = 'and'; // 'and' or 'or' |
<?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 | |
* |
$.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'); | |
} |
<?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' ); | |
//Этот меняет ссылку на файл при сохранении/обновлении поста: |
jScrollPane
Pretty, customisable, cross browser replacement scrollbars Demo
jcarousel
Riding carousels with jQuery.Demo
jquery-carousel
Another jQuery carousel
#!/usr/bin/env python | |
# | |
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to | |
# compress e. g. bookmark backups (*.jsonlz4). | |
# | |
# This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and | |
# uncompressed file size [4 bytes, little endian]). | |
# | |
# This Python 3 script requires the LZ4 bindings for Python, see: https://pypi.python.org/pypi/lz4 | |
# |