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
<ul> | |
<?php if(have_posts()): while(have_posts()): the_post(); | |
?><li><?php the_title(); ?></li><?php | |
endwhile; endif; ?> | |
</ul> |
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 register_scripts() { | |
if (!is_admin()){ | |
wp_deregister_script('jquery'); // Lets use the most modern version rather than the one packaged with Wordpress | |
wp_deregister_script( 'l10n' ); // Unneccessary http request made by WP | |
// Add scripts to this array as neccessary | |
$scripts = array( |
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 request_post(){ | |
$nonce = $_POST['nonce']; | |
// check to see if the submitted nonce matches with the | |
// generated nonce we created earlier | |
if ( ! wp_verify_nonce( $nonce, 'my-nonce' ) ) | |
die ( 'Please dont'); |
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
{ | |
"font_size": 11.0, | |
"ignored_packages": [ "Vintage" ], | |
"auto_complete": true, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": [], | |
"line_padding_bottom": 1, | |
"line_padding_top": 1, | |
"overlay_scroll_bars": "enabled", |
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 modern browsers | |
* 1. The space content is one way to avoid an Opera bug when the | |
* contenteditable attribute is included anywhere else in the document. | |
* Otherwise it causes space to appear at the top and bottom of elements | |
* that are clearfixed. | |
* 2. The use of `table` rather than `block` is only necessary if using | |
* `:before` to contain the top-margins of child elements. | |
*/ | |
.cf:before, |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
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 | |
// Inside functions.php | |
function get_category_posts(){ | |
$nonce = $_POST['nonce']; | |
// check to see if the submitted nonce matches with the | |
// generated nonce we created earlier | |
if ( ! wp_verify_nonce( $nonce, 'my-nonce' ) ) |
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
<VirtualHost dev.mysite.co.il:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot C:/my-site | |
ServerName dev.mysite.co.il | |
<Directory "C:/my-site"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
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
// Accepts array of image paths relative to the current page. | |
var preLoadImages = function( srcs, callback ) { | |
if ( srcs.length ) { | |
var cache = [], | |
args_len = srcs.length; | |
for (var i = args_len; i--;) { |