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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Plupload - Custom example</title> | |
<!-- production --> | |
<script type="text/javascript" src="../js/plupload.full.min.js"></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
$callback = $_REQUEST['callback']; | |
// Create the output object. | |
$output = array('a' => 'Apple', 'b' => 'Banana'); | |
//start output | |
if ($callback) { | |
header('Content-Type: text/javascript'); | |
echo $callback . '(' . json_encode($output) . ');'; | |
} else { |
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
function f__image_size_names_choose( $sizes ) { | |
global $_wp_additional_image_sizes; | |
if ( empty($_wp_additional_image_sizes) ) | |
return $sizes; | |
foreach ( $_wp_additional_image_sizes as $id => $data ) { | |
if ( !isset($sizes[$id]) ) | |
$sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) ); | |
} | |
return $sizes; |
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
function a__login_head() | |
{ | |
echo '<style type="text/css">h1 a { background: none !important; }</style>'; | |
} | |
function a__admin_head() | |
{ | |
echo '<style type="text/css">#wp-admin-bar-wp-logo { display: none !important; }</style>'; | |
} |
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
// js/editor_plugin.js | |
/** | |
* an example tinyMCE Plugin | |
*/ | |
tinymce.create( | |
'tinymce.plugins.myPlugin', | |
{ | |
/** | |
* @param tinymce.Editor editor | |
* @param string url |
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
// preload images | |
function preloadImages() { | |
var items = [], current = 0, errors = [], timer; | |
var resetTimer = function() { | |
stopTimer(); | |
startTimer(); | |
}; |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Plupload - Queue widget example</title> | |
<link rel="stylesheet" href="../../js/jquery.plupload.queue/css/jquery.plupload.queue.css" type="text/css" media="screen" /> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script type="text/javascript" src="../../js/plupload.full.min.js"></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
function f__manage_posts_columns($cols) | |
{ | |
global $typenow; | |
if ($typenow != 'price_table') | |
return $cols; | |
$cols = array( | |
'cb' => $cols['cb'], | |
'title' => $cols['title'], | |
'template' => "Template", |
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 wp_nav_menu(array( | |
'theme_location' => "top", | |
'container' => false, | |
'menu_id' => 'menu-top' | |
)); ?> |
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
# ignore specific path (/administrator/ - in this case) | |
RewriteCond %{REQUEST_URI} ^/?administrator($|\/|\/.*) [NC] | |
RewriteRule ^.*$ - [NC,L] | |
# redirect non-www to www | |
RewriteCond %{HTTP_HOST} ^yoursite\.com [NC] | |
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] |
OlderNewer