Esempio n. 1
0
use yii\grid\GridView;
use frontend\widget\FrontendUserMenuWidget;
use frontend\widget\FrontendUserResponseWidget;
use frontend\widget\FrontendUserLabelWidget;
/* @var $this yii\web\View */
/* @var $models common\models\diary\Diary */
$this->title = Yii::t('diary', 'Diaries');
$this->params['breadcrumbs'][] = $this->title;
$baseUrl = Yii::getAlias('@web');
?>


<div class="album-index">
    <div class="container">
        <?php 
echo FrontendUserMenuWidget::widget();
?>
    </div>

    <div class="container">
        <!-- Main content -->
        <section class="content">
            <div class="row">

                <!--  TODO:相册主题              -->
                <div class="col-md-8">

                    <article>

                        <?php 
foreach ($models as $model) {
Esempio n. 2
0
use yii\grid\GridView;
use frontend\widget\FrontendUserMenuWidget;
use frontend\widget\FrontendUserResponseWidget;
use frontend\widget\FrontendUserLabelWidget;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('photo', 'Albums');
$this->params['breadcrumbs'][] = $this->title;
$baseUrl = Yii::getAlias('@web');
$imgDomain = Yii::$app->params['imgDomain'];
?>

<div class="album-index">
    <div class="container">
        <?php 
echo FrontendUserMenuWidget::widget(['user' => $userCreadedBy, 'userExtend' => $userExtendCreadedBy]);
?>
    </div>

    <div class="container">
        <!-- Main content -->
        <section class="content">
            <div class="row">

                <!--  TODO:相册主题              -->
                <div class="col-md-8">

                    <section class="content">

                        <div class="row">
                            <?php 
Esempio n. 3
0
/* @var $model common\models\music\SongKingdom */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('music', 'Song Kingdoms'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$baseUrl = Yii::getAlias('@web');
$imgDomain = Yii::$app->params['imgDomain'];
$this->registerJs("\n    \$(function(){\n        \$('.to_play').click(function(){\n            onPlay(this);\n        });\n        // 点击列表上的播放按钮\n        function onPlay(obj){\n            resetPlanIcon();\n            changePlayIcon(obj);\n            showSongPlay(obj);\n        }\n\n        function changePlayIcon(obj){\n            \$(obj).html('<i class=\\'fa fa-fw fa-pause\\'></i>');\n        }\n        function resetPlanIcon(){\n            \$('.to_play').each(function(i){\n                var iPlay = \$(this).find('i');\n                if(iPlay.hasClass('fa-pause')){\n                    iPlay.removeClass('fa-pause');\n                    iPlay.addClass('fa-play');\n                }\n            })\n        }\n\n        function showSongPlay(obj) {\n            var songLink = \$(obj).attr('playscr');\n            if(!songLink){\n                alert('没有获取到媒体链接');\n            }else{\n                var songIframe = '<iframe frameborder=\\'no\\' border=\\'0\\' marginwidth=\\'0\\' marginheight=\\'0\\' width=\\'100%\\' height=\\'86\\'';\n                songIframe += 'src=\\''+songLink+'\\'';\n                songIframe += '></iframe>';\n                \$('.song-play-space').html(songIframe).show();\n            }\n        }\n\n    })\n");
$this->registerCss("\n    .song-play-space{\n        border-top: 1px solid #ccc;\n        bottom: 0;\n        left: 0;\n        margin: 0;\n        position: fixed;\n        right: 0;\n        z-index: 1000000;\n        display: none;\n    }\n");
?>



<div class="song-kingdom-view">
    <div class="container">
        <?php 
echo FrontendUserMenuWidget::widget(['user' => $userCreadedBy, 'userExtend' => $userExtendCreadedBy, 'addTitleMessage' => '- 歌单 ' . $model->title]);
?>
    </div>

    <div class="container">
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!--  TODO:相册主题              -->
                <div class="col-md-8">
                    <div class="row">
                        <div class="col-md-5">
                            <a href="javascript:void(0);" class="thumbnail">
                                <img src="<?php 
echo $imgDomain . $model->cover;
?>