示例#1
0
                                    @if($snippets)
                                        @foreach($snippets as $snippet)
                                            <li>
                                                <a href="users/{{ $snippet->users['id'] }}"><img class="blue-knowledge-list-thumb img-rounded" src="{{ $snippet->users['thumbnail'] }}" alt=""></a>
                                                <div class="blue-knowledge-list-info">
                                                    <a href="/snippet/{{ $snippet->id }}" class="blue-knowledge-list-title">{{ $snippet->title }}</a>
                                                    <ul class="list-inline">
                                                        @foreach($snippet->tags as $tag)
                                                            <li>
                                                                <a href="/tags/{{ $tag['tag'] }}" class="u-tag">{{ $tag['tag'] }}</a>
                                                            </li>
                                                        @endforeach
                                                    </ul>
                                                    <p class="blue-knowledge-list-name">
                                                        <?php 
Carbon\Carbon::setLocale('ja');
?>
                                                        <a href="users/{{ $snippet->users['id'] }}">{{ $snippet->users['name'] }}</a>が
                                                        {{ Carbon\Carbon::parse($snippet->created_at)->diffForHumans() }}に投稿しました
                                                    </p>
                                                </div>
                                            </li>
                                        @endforeach
                                    @else
                                        <li>まだ投稿がありません</li>
                                    @endif

                                </ul>
                            </div>
                            <div class="btn-more text-center">
                                @if($snippets)
示例#2
0
<?php

Carbon\Carbon::setLocale('zh');
Route::get('/test', function () {
    // return VideoApi::setType('youku')->getVideoDetail('XMTQ0MzU4MDMwOA==');
    // return VideoApi::setType('vimeo')->getVideoDetail('146522326');
    // return VideoApi::setType('youtube')->getVideoDetail('8ItNE_DX6Cc');
});
Route::group(['middleware' => 'web'], function () {
    /************************************
     * Home Page.
     ************************************/
    Route::get('/', ['as' => 'home', 'uses' => 'PageController@index']);
    /************************************
     * Github
     ************************************/
    Route::get('/auth/github', ['as' => 'auth.github.login', 'uses' => 'Auth\\SocialController@redirectToGithub']);
    Route::get('/auth/github/callback', ['as' => 'auth.github.login.callback', 'uses' => 'Auth\\SocialController@handleGithubOAuth']);
    /************************************
     * Twitter
     ************************************/
    Route::get('/auth/twitter', ['as' => 'auth.twitter.login', 'uses' => 'Auth\\SocialController@redirectToTwitter']);
    Route::get('/auth/twitter/callback', ['as' => 'auth.twitter.login.callback', 'uses' => 'Auth\\SocialController@handleTwitterOAuth']);
    /************************************
     * Auth
     ************************************/
    Route::controller('auth', 'Auth\\AuthController', ['getRegister' => 'auth.register', 'postRegister' => 'auth.register.post', 'getLogin' => 'auth.login', 'postLogin' => 'auth.login.post', 'getLogout' => 'auth.logout']);
    /************************************
     * Password
     ************************************/
    Route::controller('password', 'Auth\\PasswordController');
示例#3
0
<?php

Carbon\Carbon::setLocale('vi');
?>
<a class="col-md-4" href="/san-pham/{!! $data->id !!}/" data-toggle="tooltip" data-placement="top"
   title="{{ $data->short_description }}">
    <div class="product-thumb">
        <header class="product-header">
            <img src="{!! count($data->images()) != 0 ? $data->images()[0] : 'https://k12110323.herokuapp.com/img/800x600.png' !!}"
                 alt="Image Alternative text" title="Ana 29"/>
        </header>
        <div class="product-inner">
            <h5 class="product-title">{!! $data->name !!}</h5>
            <div class="product-meta">
                <ul class="product-price-list">
                    <li><span class="product-price">{!!number_format($data->deal_price, 3, '.', '.')!!}đ</span>
                    </li>
                    <li><span class="product-old-price">{!!number_format($data->list_price, 3, '.', '.')!!}đ</span>
                    </li>

                </ul>
            </div>
            <p class="product-location">
                @if($data->time_expired < Carbon\Carbon::now())
                    <span class="label label-danger ">Deal đã hết hạn</span>
                @else
                    <!-- COUNTDOWN -->
                    <span class="product-time"><i class="fa fa-clock-o"></i> Còn {!! $data->time_expired->diffForHumans() !!}</span>
                @endif

            </p>
示例#4
0
 * @package  Laravel
 * @author   Taylor Otwell <*****@*****.**>
 */
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__ . '/../bootstrap/autoload.php';
Carbon\Carbon::setLocale('es');
setlocale(LC_ALL, 'es_ES');
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = (require_once __DIR__ . '/../bootstrap/app.php');
/*
|--------------------------------------------------------------------------
示例#5
0
<?php

$carbon = new \Carbon\Carbon();
$carbon->setLocale('ru');
$date_register = $carbon->createFromFormat('Y-m-d H:i:s', $this->userinfo->created_at, 'UTC');
?>
<div id="js-page-profile">
    <div class="title-block">
        <h3 class="title">Профиль</h3>
    </div>

    <div class="row">
        <div class="col-xs-4 col-md-6">
            <div class="card card-default">
                <div class="card-header">
                    <div class="header-block">
                        <p class="title">Мои данные</p>
                    </div>
                </div>
                <div class="card-block">
                    <table class="table table-striped table-hover table-sm">
                        <tbody>
                            <tr>
                                <td>#ID:</td>
                                <td><strong><?php 
echo $this->userinfo->uid;
?>
</strong></td>
                            <tr>
                            </tr>
                                <td>Дата регистрации:</td>
示例#6
0
<?php

setlocale(LC_TIME, 'sl_SI.UTF-8', 'sl_SI', 'slovenian');
Carbon\Carbon::setLocale('sl');
/*
 * Fixing the error, where 'Četrtek'
 * is returned as '?etrtek' on windows.
 *
 * It works on unix system without this,
 * but function ucwords will not work on
 * UTF-8 chars.
 *
 * Temporary fix.
 *
 */
$day = $training->date_time->formatLocalized('%A');
$day = substr($day, 1);
?>

<div class="panel panel-default">

    @if (Auth::check() == true && Request::path() === 'treningi')
        <a href="treningi/{{ $training->id }}"><div class="panel-heading">{{ $training->selection }}</div></a>
    @else
        <div class="panel-heading">{{ $training->selection }}</div>
    @endif

    <div class="panel-body">

        <p>
            @if ($day === 'etrtek')