source/php/Module/Social/Feed.php
protected function renderInstagram()
    {

        $int = 0;

        if (isset($this->feedData->meta->error_message) || !isset($this->feedData)) {
            $msg = 'No error message, sorry about that.';

            if (isset($this->feedData->meta->error_message)) {
                $msg = $this->feedData->meta->error_message;
            }

            $this->addError($msg);
            return;
        }

        foreach ($this->feedData as $item) {
            $int++;

            $this->addImage(
                $item['timestamp'],
                array(
                    'name' => $item['user_name'],
                    'picture' => ''
                ),
                $item['image_large'],
                isset($item['content']) ? $item['content'] : null,
                $item['network_source']
            );

            if ($int == $this->args['length']) {
                break;
            }
        }
    }
protected function renderInstagram()
    {

        $int = 0;

        if (isset($this->feedData->meta->error_message) || !isset($this->feedData)) {
            $msg = 'No error message, sorry about that.';

            if (isset($this->feedData->meta->error_message)) {
                $msg = $this->feedData->meta->error_message;
            }

            $this->addError($msg);
            return;
        }

        foreach ($this->feedData as $item) {
            $int++;

            $this->addImage(
                $item['timestamp'],
                array(
                    'name' => $item['user_name'],
                    'picture' => ''
                ),
                $item['image_large'],
                isset($item['content']) ? $item['content'] : null,
                $item['network_source']
            );

            if ($int == $this->args['length']) {
                break;
            }
        }
    }
protected function renderInstagram ( ) { $ int = 0 ; if ( isset ( $ this -> feedData -> meta -> error_message ) || ! isset ( $ this -> feedData ) ) { $ msg = 'No error message, sorry about that.' ; if ( isset ( $ this -> feedData -> meta -> error_message ) ) { $ msg = $ this -> feedData -> meta -> error_message ; } $ this -> addError ( $ msg ) ; return ; } foreach ( $ this -> feedData as $ item ) { $ int ++ ; $ this -> addImage ( $ item [ 'timestamp' ] , array ( 'name' => $ item [ 'user_name' ] , 'picture' => '' ) , $ item [ 'image_large' ] , isset ( $ item [ 'content' ] ) ? $ item [ 'content' ] : null , $ item [ 'network_source' ] ) ; if ( $ int == $ this -> args [ 'length' ] ) { break ; } } }
Render Instagram images
@return void
Render Instagram images