Ejemplo n.º 1
0
    public function getphotobyalbumAction()
    {
        $this->_helper->viewRenderer->setNoRender(true);
        $this->_helper->layout->disableLayout();
        $store = App_Models_StoreModel::getInstance();
        $facebook = new Ishali_Facebook();
        $album_id = $_POST['album_id'];
        $photo = $facebook->getPhotoInAlbums("{$album_id}");
        $namespace = new Zend_Session_Namespace('photo');
        $namespace->data = $photo;
        $i = 1;
        ?>
<ul class="ul_list_img_fb"><?php 
        foreach ($photo['data'] as $key => $value) {
            $class = "";
            if ($i % 3 == 0) {
                $class = "class='last'";
            }
            ?>
                <li <?php 
            echo $class;
            ?>
>
                    <label>
                    <p class="img_fb">
                        <img src="<?php 
            echo $value['picture'];
            ?>
" alt="" title="" />
                        <input type="checkbox" name="list_main_photo[]" value="<?php 
            echo $key;
            ?>
" />
                    </p>
                    </label>
                </li>
            <?php 
            $i++;
        }
        ?>
        </ul>
        <?php 
    }