Exemplo n.º 1
0
            echo $role['name'];
            ?>
</li>
								<?php 
        }
    }
    ?>
							</ul>
						</td>
						<td>
							<span class="wrap-icon-action cmt-submit" title="Assign Roles"">
								<span class="icon-action icon-action-save"</span>
							</span>
						</td>
					</tr>
				<?php 
}
?>
			</tbody>
		</table>
	</div>
	<div class="grid-footer">
		<div class="text"> <?php 
echo CodeGenUtil::getPaginationDetail($dataProvider);
?>
 </div>
		<?php 
echo LinkPager::widget(['pagination' => $pagination]);
?>
	</div>
</div>
Exemplo n.º 2
0
<?php

// Yii Imports
use yii\helpers\Html;
// CMG Imports
use cmsgears\core\common\utilities\CodeGenUtil;
$coreProperties = $this->context->getCoreProperties();
$this->title = $coreProperties->getSiteTitle() . " | " . $product->name;
$avatar = CodeGenUtil::getImageThumbTag($product->avatar, ['class' => 'avatar', 'image' => 'leaf']);
?>
<section class="module module-basic module-product" id="module-product">
	<div class="module-wrap-content">
		<div class="module-header">
			<div class="texture texture-wall"></div>
			<div class="header-content clearfix">
				<div class="wrap-avatar"><?php 
echo $avatar;
?>
</div>
				<div class="wrap-summary">
					<h3><?php 
echo $product->name;
?>
</h3>
					<p><?php 
echo $content->summary;
?>
</p>
				</div>
			</div>
		</div>
Exemplo n.º 3
0
if (!$pagination && strlen($postsHtml) > 0) {
    $postsUrl = Url::toRoute(['/$basePath']);
    if (Yii::$app->cmgCore->multiSite && Yii::$app->cmgCore->subDirectory) {
        $siteName = Yii::$app->cmgCore->getSiteName();
        $postsUrl = Url::toRoute(["/{$siteName}/{$basePath}"]);
    }
    ?>
	<div class="post-all">
		<a href="<?php 
    echo $postsUrl;
    ?>
">View All</a>
	</div>
<?php 
} else {
    if (strlen($postsHtml) <= 0) {
        ?>
	<p>No posts found.</p>
<?php 
    }
}
?>

<?php 
if ($pagination && strlen($postsHtml) > 0 && isset($dataProvider)) {
    $pagination = $dataProvider->getPagination();
    $pageInfo = CodeGenUtil::getPaginationDetail($dataProvider);
    $pageLinks = LinkPager::widget(['pagination' => $pagination]);
    $pagination = "<div class='wrap-pagination clearfix'>\n\t\t\t\t\t\t<div class='info'>{$pageInfo}</div>\n\t\t\t\t\t\t{$pageLinks}\n\t\t\t\t   </div>";
    echo $pagination;
}
Exemplo n.º 4
0
					<!-- url -->
					<label>Slide Url</label>
					<input type="text" name="Slide[url]" value="<?php 
    echo $slide->url;
    ?>
" placeholder="Url">
					<div class="clear"><span class="error" cmt-error="url"></span></div>
					<input type="hidden" name="Slide[sliderId]" value="<?php 
    echo $slider->id;
    ?>
" />	
					<?php 
    echo FileUploader::widget(['options' => ['id' => 'slider-slide-$slideId', 'class' => 'file-uploader'], 'model' => $slide->image, 'directory' => 'gallery', 'infoFields' => true, 'infoFieldsSeoOnly' => true, 'btnChooserIcon' => 'icon-action icon-action-edit']);
    ?>
					<!-- submit, spinner, success -->
					<div class="spinner"></div>
					<div class="message"></div>
		            <input type="submit" class="" value="Update">
				</form>
			</li>
		<?php 
}
?>
		</ul>
	</div>
</section>

<?php 
echo CodeGenUtil::registerJsFromFile($this, View::POS_END, dirname(__DIR__) . "/scripts/main.js");
?>