This file contains hidden or 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
statusarray(1) { [0]=> object(stdClass)#355 (5) { ["from"]=> object(stdClass)#357 (4) { ["category"]=> string(19) "Amateur sports team" ["category_list"]=> array(1) { [0]=> object(stdClass)#359 (2) { ["id"]=> string(4) "1803" ["name"]=> string(19) "Amateur Sports Team" } } ["name"]=> string(17) "Running Dead Team" ["id"]=> string(15) "381512695217333" } ["id"]=> string(31) "381512695217333_506095169425751" ["message"]=> string(109) "Next sunday is going to be bitter sweet for us Walking Dead fans! A great finale.. but a finale none the less" ["type"]=> string(6) "status" ["created_time"]=> string(24) "2013-03-27T02:33:43+0000" } } |
This file contains hidden or 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": "XXXXX", | |
"feed": { | |
"data": [ | |
{ | |
"from": { | |
"category": "Amateur sports team", | |
"category_list": [ | |
{ | |
"id": "1803", |
This file contains hidden or 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
if(count($parsed_response->feed->data)>0) { | |
## Now, after we've already used the empty variable $max_id | |
# $max_id = $parsed_response->statuses->data[0]->updated_time; | |
//echo "The max_id_str should be : " . $parsed_response->max_id_str; | |
$max_id = date("Y-m-d\TH:i:s\Z", strtotime($parsed_response->feed->data[0]->created_time)); | |
update_option('fbp_max_status_id', $max_id); | |
echo $max_id; | |
// print_r($parsed_response->statuses->data); | |
$statusesray = $parsed_response->feed->data; | |
// var_dump($statusesray); |
This file contains hidden or 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
$pattern = "/height=\"[0-9]*\"/"; | |
$string = preg_replace($pattern, "height='auto'", $rs['url']); | |
$pattern = "/width=\"[0-9]*\"/"; | |
$string = preg_replace($pattern, "width='auto'", $string); | |
echo $string; |
This file contains hidden or 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 | |
$params = array( | |
'where'=> 'featured' | |
); | |
$logos = pods('client_logos'); | |
$logos->find('name ASC', $params); | |
$total_logos = $logos->getTotalRows(); | |
?> | |
<div id="featured-clients"> |
This file contains hidden or 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 | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site will use a | |
* different template. | |
* | |
* @package electec |
This file contains hidden or 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 | |
/** | |
* The template for displaying all pages. | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages | |
* and that other 'pages' on your WordPress site will use a | |
* different template. | |
* | |
* @package electec |
This file contains hidden or 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(have_posts()) : ?> | |
<?php while(have_posts()) : the_post(); ?> | |
<h2><?php the_title(); ?></h2> | |
<?php the_content(); ?> | |
<?php $relatie = get_post_meta($post->ID, 'relatie.name', true);?> | |
<?php echo $relatie; ?> | |
<?php endwhile; ?> |
This file contains hidden or 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
<section id="discount"><h1>Daily Discount Special</h1> | |
<?php | |
$params = array( | |
'limit' => 1, | |
); | |
$promos = pods('discount_code'); | |
$promos->find($params); | |
$code= $promos->field('code'); |
This file contains hidden or 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
public function hookWordpressplug($params) | |
{ | |
?> | |
<?php | |
$smarty = new Smarty; | |
$menu = wp_get_nav_menu_object("product-categories"); | |
$items = wp_get_nav_menu_items($menu); |