コード例 #1
0
ファイル: view.php プロジェクト: zivanof/fun_project
    <div style="text-align: center;font-weight:bold;">
        <?php 
    echo htmlspecialchars($model['username']);
    ?>
    </div>
    <div style="text-align: center;max-width: 400px;margin: auto; margin-top: 20px;">
        <?php 
    echo htmlspecialchars($model['description']);
    ?>
    </div>
</div>

<div style="text-align: center; background-color: white; line-height: 50px;">
    <ul class="user-act-opt-cont">
        <li class="user-act-opt <?php 
    echo !in_array(CW::$app->request->get('type'), Update::getAllActivityTypesAsString()) ? 'user-act-selected' : '';
    ?>
"><a class="user-act-link" href="<?php 
    echo UrlManager::to(['user/view', 'id' => $model['id']]);
    ?>
">All</a></li>
        <li class="user-act-opt <?php 
    echo CW::$app->request->get('type') === Update::ACTIVITY_TYPE_POST_STR ? 'user-act-selected' : '';
    ?>
"><a class="user-act-link" href="<?php 
    echo UrlManager::to(['user/view', 'id' => $model['id'], 'type' => 'posted']);
    ?>
">Posted</a></li>
        <li class="user-act-opt <?php 
    echo CW::$app->request->get('type') === Update::ACTIVITY_TYPE_UPVOTE_STR ? 'user-act-selected' : '';
    ?>