Esempio n. 1
0
<?php

/*
 * This file is part of the Knob-mvc package.
 *
 * (c) José María Valera Reales <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
use Knob\I18n\I18n;
/**
 * ============================
 * Your Mustache params
 * ============================
 *
 * @see knob-base/src/config/mustache_params.php -> Parent file
 *
 */
return ['ajaxUrl' => '/ajax', 'blogAuthor' => 'José María Valera Reales', 'blogDescription' => ($d = I18n::trans('internal.blog_description')) ? $d : get_bloginfo('description'), 'blogKeywords' => 'just blog chema'];
<?php

/*
 * This file is part of the Knob-mvc package.
 *
 * (c) José María Valera Reales <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
use Knob\I18n\I18n;
/**
 * ============================
 * Your Mustache params
 * ============================
 *
 * @see knob-base/src/config/mustache_params.php -> Parent file
 *
 */
return ['ajaxUrl' => '/ajax', 'blogAuthor' => 'José María Valera Reales', 'blogDescription' => ($d = I18n::trans('internal.blog_description')) ? $d : get_bloginfo('description'), 'blogKeywords' => 'knob, wordpress, framework, mvc, template, mustache, php'];
Esempio n. 3
0
 * file that was distributed with this source code.
 */
namespace Config;

use Knob\I18n\I18n;
/**
 * ============================
 * Your Mustache helpers
 * ============================
 *
 * @see knob-base/src/config/mustache_helpers.php -> Parent file
 *     
 *      ----------------------------
 *      For example:
 *      ----------------------------
 *      $lower_text = 'lower text to upper'; // var from PHP code
 *     
 *      {{#case.upper}} lower_text {{/case.upper}} -> LOWER TEXT TO UPPER
 *      Or
 *      {{ lower_text | case.upper}} -> LOWER TEXT TO UPPER
 *     
 *     
 * @link https://github.com/bobthecow/mustache.php#usage
 * @link https://github.com/bobthecow/mustache.php/wiki/FILTERS-pragma
 *      
 */
return ['trans' => function ($value) {
    return I18n::trans($value);
}, 'transu' => function ($value) {
    return I18n::transu($value);
}];