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
for(var i = -1; ++i < Obj.length; ){} |
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
for(var i = -1, ii = Obj.length; ++i < ii; ){} |
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
window.namespace = window.namespace || {}; | |
namespace.blah = "something"; |
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
/*global escape: true */ | |
var string = "blah"; | |
string = escape(string); |
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
window.MyNamespace = { | |
something:[ | |
["t","h","i","s"], | |
"that", | |
"the other" | |
], | |
another:function(){ | |
return MyNamespace.something[0].join(''); | |
} | |
}; |
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
window.MyNamespace = { | |
something:new Array( | |
new Array("t","h","i","s"), | |
"that", | |
"the other" | |
), | |
another:function(){ | |
return MyNamespace.something[0].join(''); | |
} | |
}; |
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
$thumb_sizes = array( | |
'breaking' => array( 'breaking', 80, 80, true ), | |
'slider1' => array( 'slider1', 390, 280, true ), | |
'slider1-wide' => array( 'slider1-wide', 450, 320, true ), | |
'slider1-thumbnail' => array( 'slider1-thumbnail', 120, 72, true ), | |
'slider2' => array( 'slider2', 710, 385, true ), | |
'slider2-wide' => array( 'slider2-wide', 880, 385, true ), | |
'slider3' => array( 'slider3', 455, 430, true ), | |
'slider3-wide' => array( 'slider3-wide', 630, 430, true ), |
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
add_action('admin_init', 'your_init_function'); |
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 your_init_function(){ | |
//you will add stuff here later | |
} |
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 con_register_section($section, $title){ | |
add_settings_section('your_prefix_' . $section, | |
$title, | |
'your_prefix_'.$section.'_callback_function', | |
'dashboard page'); | |
} |