source/php/Module/Social/Feed.php
protected function renderTwitter()
    {
        if (isset($this->feedData->message)) {
            $this->addError($this->feedData->message);
            return;
        }

        foreach ($this->feedData as $item) {
            $date = new \DateTime($item->created_at);
            $timeZone = new \DateTimeZone(get_option('timezone_string'));
            $date->setTimezone($timeZone);

            $this->addStory(
                strtotime($date->format('Y-m-d H:i:s')),
                array(
                    'name' => $item->user->name,
                    'picture' => $item->user->profile_image_url
                ),
                $item->text
            );
        }
    }
protected function renderTwitter()
    {
        if (isset($this->feedData->message)) {
            $this->addError($this->feedData->message);
            return;
        }

        foreach ($this->feedData as $item) {
            $date = new \DateTime($item->created_at);
            $timeZone = new \DateTimeZone(get_option('timezone_string'));
            $date->setTimezone($timeZone);

            $this->addStory(
                strtotime($date->format('Y-m-d H:i:s')),
                array(
                    'name' => $item->user->name,
                    'picture' => $item->user->profile_image_url
                ),
                $item->text
            );
        }
    }
protected function renderTwitter ( ) { if ( isset ( $ this -> feedData -> message ) ) { $ this -> addError ( $ this -> feedData -> message ) ; return ; } foreach ( $ this -> feedData as $ item ) { $ date = new \ DateTime ( $ item -> created_at ) ; $ timeZone = new \ DateTimeZone ( get_option ( 'timezone_string' ) ) ; $ date -> setTimezone ( $ timeZone ) ; $ this -> addStory ( strtotime ( $ date -> format ( 'Y-m-d H:i:s' ) ) , array ( 'name' => $ item -> user -> name , 'picture' => $ item -> user -> profile_image_url ) , $ item -> text ) ; } }
Renders a Twitter post item
@return void
Renders a Twitter post item