Пример #1
0
 function images()
 {
     $albumId = $this->param('albumid');
     $rep = $this->getResponse('xml');
     $rep->contentTpl = 'images';
     $picasaService = new jPicasa();
     $rep->content->assign('images', $picasaService->images($albumId));
     return $rep;
 }
Пример #2
0
 function newPaintingsLetter()
 {
     $rep = $this->getResponse('html');
     $picasServ = new jPicasa();
     $imageTpl = new jTpl();
     foreach ($picasServ->lastImages(3) as $img) {
         $paintings[] = new Painting($img);
     }
     $imageTpl->assign('images', $paintings);
     $text = $imageTpl->fetch('imagesNewsLetter');
     $tpl = new jTpl();
     $form = jForms::create('NewsLetter~news');
     $form->setData('text', $text);
     $tpl->assign('form', $form);
     $rep->body->assign('MAIN', $tpl->fetch('new'));
     return $rep;
 }
 function viewComment()
 {
     $rep = $this->getResponse('html');
     $imageId = $this->param('imageId');
     $albumId = $this->param('albumId');
     $serv = new jPicasa();
     $coms = $serv->getComments($imageId, $albumId);
     //$rep->tplname='comments';
     //$rep->tpl->assign('coms', $coms);
     $rep->bodyTpl = "";
     $tpl = new jTpl();
     $tpl->assign('coms', $coms);
     //$rep->body->assign('MAIN',$tpl->fetch('comments'));
     $rep->addContent($tpl->fetch('comments'));
     return $rep;
 }