Instantiates a Jigoshop_Options_Parser
, and gets options, and parses it.
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 | |
$something = 'something'; | |
global $post; | |
foreach( $post as $_t ) { | |
print_r( $_t ); | |
} | |
?> |
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 | |
if( !function_exists( 'preit' ) ) { | |
function preit($obj, $return = false ) { | |
if( !$return ) { | |
echo '<pre>'; | |
print_r($obj); | |
echo '</pre>'; | |
} else { | |
$ret = '<pre>' . print_r( $obj, true ) . '</pre>'; | |
return $ret; |
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
Array | |
( | |
[0] => Array | |
( | |
[1] => WP_Post Object | |
( | |
[ID] => 100 | |
[post_author] => 1 | |
[post_date] => 2012-11-26 00:09:23 | |
[post_date_gmt] => 2012-11-26 00:09:23 |
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 display_nav_menu_items( $items, $args ) { | |
foreach ($items as $item) { | |
if( $item->current ) { | |
$item->classes[] = 'active'; | |
} | |
} | |
return $items; | |
} |
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 | |
//This will (should) make sure everything is loaded via SSL | |
//So that the "..not everything is secure.." message doesn't appear | |
//Still will be a problem if other themes and plugins do not implement ssl correctly | |
?> |
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
Accounts.createUser({ | |
username: username | |
, email: email | |
, password: password | |
}, function(err){ | |
if(err){ | |
console.log(err); | |
}else{ | |
Meteor.logout(); | |
// Meteor.Router.to('/'); |
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
// The client side: | |
Template.resend_verification.rendered = function(){ | |
console.log('this is the rendered function'); | |
userId=Session.get('selectedUserId'); | |
var user = Meteor.user(), | |
emails = user.emails, | |
verified = false, | |
sent = false; | |
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
{ | |
"id": 4, | |
"name": "Bob", | |
"email": "[email protected]", | |
"meta": { | |
"plugins": [ | |
"foo": { | |
"setting1": "value1", | |
"etc": "etc" | |
}, |
OlderNewer