Ejemplo n.º 1
0
							<?php include($this -> _include('../tab_panel.tpl.php')); ?>
						</ul>
						<!-- /view-filter -->
						<div class="photo-album-list">
						<ul class="in clearfix">
						<?php foreach($this->photo_list as $key => $item){ ?>
							<li class="it">
								<dl>
									<dt>
										<a href="<?php echo PhotoController::getPhotoUrl($item['id'], $item['login']);?>"><?php echo $item['name'];?></a>									
									</dt>
									<dd class="av">
										<a class="avatar" href="<?php echo PhotoController::getPhotoUrl($item['id'], $item['login']);?>"><img src="<?php echo ($item['thumbnail'] ===false)?$this -> image_url.'noimage.gif' :$item['thumbnail'];?>" alt="<?php echo $item['name'];?>" /></a>			
									</dd>
									<dd class="auth">
										<a href="<?php echo PhotoController::getAlbumUrl($item['album_id'], $item['login']);?>"><?php echo $item['album_name'];?></a><i class="arrow-icon bid-arrow-icon"></i>
									</dd>
									<dd class="date"><?php echo date("j F Y", strtotime($item['creation_date']));?></dd>								
								</dl>
							</li>
						<?php }?>
					</ul>					
					</div>
						<!-- /photo-album-list -->
						<ul class="pages-list clearfix">
							<?php echo $this -> album_list_pager; ?>
						</ul>
					</div></div>
					<!-- /main -->
					<div class="sidebar">
						<div class="navigation">
Ejemplo n.º 2
0
    function viewAlbumPage($user_id)
    {
        $htmlPage = "";
        $user_id = (int) $user_id;
        $albumModel = new AlbumModel();
        $aAlbums = $albumModel->loadAll(0, 0);
        $htmlPage = '<ul class="foto-preview-list clearfix">';
        foreach ($aAlbums as $key => $item) {
            $dir = '/users/' . $item['login'] . '/album' . '/thumbs/';
            $imgSrc = !$item['thumbnail'] ? $this->image_url . 'noimage.gif' : $dir . $item['thumbnail'];
            $htmlPage .= '<li>
							<dl>
								<dt><a href="' . PhotoController::getAlbumUrl($item['id'], $item['login']) . '"><img src="' . $imgSrc . '" alt="" /></a></dt>
								<dd class="auth"><a href="' . UserController::getProfileUrl($item['login']) . '" class="with-icon-s"><i class="icon-s user-icon"></i>' . $item['login'] . '</a></dd>
								<dd><a href="' . PhotoController::getAlbumUrl($item['id'], $item['login']) . '" class="with-icon-s"><i class="icon-s category-icon"></i>' . $item['name'] . '</a> (14)</dd>
							</dl>
						</li>';
            /*     $htmlPage .= '
                            <div class="photo_gallery">
            				<div class="block_ee1" style="width: 170px;"><div class="block_ee2"><div class="block_ee3"><div class="block_ee4">
            					<div class="block_title">
                                    <h2><a href="'.PhotoController::getAlbumUrl($item['id'], $item['login']).'">'.$item['name'].'</a></h2>
            					</div>
            					<div style="width: 140px; height: 112px; text-align: center;">
                                    <a href="'.PhotoController::getAlbumUrl($item['id'], $item['login']).'"><img src="'.$imgSrc.'" /></a>
            					</div>
            					<div class="block_title2">
                                    <a href="'.UserController::getProfileUrl($item['login']).'">'.$item['login'].'</a><br />
            						<span id="micro">'.date("j F Y", strtotime($item['creation_date'])).'</span>
            					</div>
            				</div></div></div></div>
            				</div>
                        '; */
        }
        $htmlPage .= '</ul>';
        return $htmlPage;
    }
Ejemplo n.º 3
0
<?php foreach($this -> album_menu_list as $key => $item){ ?>
	<?php if ($this -> album_id != $item['id']){ ?>
		<li>
			<i class="arrow-icon"></i>
			<?php if ($this -> album_owner) {?>
			<a href="<?php echo PhotoController::getAlbumEditUrl($item['id'], $item['login']);?>" class="with-icon-s" style="float:left;">
				<i class="icon-s write-s-icon"></i>
			</a>
			<?php }?>
			<a <?php if ($this -> album_owner) {echo 'style="margin-left: 17px;"';}?> href="<?php echo PhotoController::getAlbumUrl($item['id'], $item['login']);?>">	
				<?php 
				if(trim($item['name']))echo $item['name'];
				else echo 'Без названия'; ?>
			</a>	
		</li>
	<?php } else { ?>
		<li class="active">
			<i class="arrow-icon"></i>
			<?php if ($this -> album_owner) {?>
			<a style="margin-bottom: 10px;" href="<?php echo PhotoController::getAlbumEditUrl($item['id'], $item['login']);?>" class="with-icon-s">
				<i class="icon-s write-s-icon"></i>
			</a>	
			<?php }?>
				<?php 
				if(trim($item['name']))echo $item['name'];
				else echo 'Без названия'; ?>
		</li>	
	<? } ?>
<?php } ?>		
Ejemplo n.º 4
0
						<?php } ?>						
							<fieldset>
								<div class="item-edit-list">
									<ul class="clearfix">
									<?php foreach($this->album_list as $key => $item){ ?>
										<li class="it">
											<div class="nm">
											<?php if ($this -> can_edit) { ?>
												<input type="hidden" name="album_id[<?php echo $item['id'];?>]" value="<?php echo $item['id'];?>" />
												<input type="text" name="album_name[<?php echo $item['id'];?>]" value="<?php echo $item['name'];?>" />
											<?php } else { ?>
												<a href="<?php echo PhotoController::getAlbumUrl($item['id'], $item['login']);?>"><?php echo $item['name'];?></a>
											<?php } ?>												
											</div>
											<div class="av album">
												<a href="<?php echo PhotoController::getAlbumUrl($item['id'], $item['login']);?>">
													<img class="avatar" src="<?php echo ($item['thumbnail'] ===false)?$this -> image_url.'noimage.gif' :$item['thumbnail'];?>" alt="<?php echo $item['name'];?>" />
												</a>												
											</div>
											<div class="meta">
												<div class="auth">
													<a href="<?php echo  UserController::getProfileUrl($item['login']);?>"><?php echo $item['login'];?></a><i class="arrow-icon bid-arrow-icon"></i>
												</div>
												<div class="date"><?php echo date("j F Y", strtotime($item['creation_date']));?></div>
											</div>
											<?php if ($this -> can_edit) { ?>
												<ul class="actions">
													<li>
														<select name="album_access[<?php echo $item['id'];?>]">
														<?php foreach ($this -> access_list as $key=>$value){?>
															<option value="<?php echo $key;?>" <?php if ((int)$key === (int)$item['access']) {echo 'selected';} ?>><?php echo $value;?></option>