Beispiel #1
0
 /**
  * Get lang for views.
  *
  * @param  string $value this is "word" value from language file
  * @param  string $name  name of file with language
  * @param  string $code  optional, language code
  *
  * @return string
  */
 public static function show($value, $name, $code = LANGUAGE_CODE)
 {
     /** lang file */
     $file = SMVC . "app/language/{$code}/{$name}.php";
     /** check if is readable */
     if (is_readable($file)) {
         /** require file */
         $array = (include $file);
     } else {
         /** display error */
         echo Error::display("Could not load language file '{$code}/{$name}.php'");
         die;
     }
     if (!empty($array[$value])) {
         return $array[$value];
     } else {
         return $value;
     }
 }
 /**
  * Get lang for views
  * @param  string $value this is "word" value from language file
  * @param  string $name  name of file with language
  * @param  string $code  optional, language code
  * @return string
  */
 public static function show($value, $name, $code = LANGUAGE_CODE)
 {
     // lang file
     $file = "app/Language/{$code}/{$name}.php";
     // check if is readable
     if (is_readable($file)) {
         // require file
         $array = (include $file);
     } else {
         // display error
         echo Error::display("Could not load language file '{$code}/{$name}.php'");
         die;
     }
     // If
     if (!empty($array[$value])) {
         return $array[$value];
     } else {
         return $value;
     }
 }
Beispiel #3
0
				<?php 
echo Navigation::getTitle('icon-compose', Language::show('page_title_add', 'blog'));
?>
     
            </div>       
        </div>
        <!-- /header content -->
        
    </div>    
    <!-- /page header -->

    <!-- Content Area -->
    <div class="content">
    
    	<?php 
echo Error::display($error);
?>

        <!-- Panel -->
        <div class="panel panel-flat">

            <div class="panel-body">
                <form method="post" enctype="multipart/form-data" class="form-validate-jquery">
                	               
                    <div class="row">
                        <div class="col-md-9">
                            <div class="form-group">
                                <label><?php 
echo Language::show('title', 'blog');
?>
<span class="text-danger">*</span></label>
Beispiel #4
0
use Core\Language;
?>

<div class="page-header">
	<h1><?php 
echo $data['title'];
?>
</h1>
</div>
<p><?php 
echo $data['welcome_message'];
?>
</p>
<?php 
echo \Core\Error::display($error);
?>
<form class="form-horizontal" method="POST">
  <div class="form-group">
    <label for="dish_title" class="col-sm-2 control-label">שם המנה</label>
    <div class="col-sm-4">
      <input class="form-control" id="dish_title" name="dish_title" value="<?php 
if (isset($_REQUEST['dish_title'])) {
    echo $_REQUEST['dish_title'];
}
?>
">
    </div>
  </div>
  <div class="form-group">
    <label for="price_from" class="col-sm-2 control-label">מחיר</label>
Beispiel #5
0
            <div class="page-title">
                <?php 
echo Navigation::getTitle('icon-users4', Language::show('title_edit', 'users'));
?>
      
            </div>         
        </div>
        <!-- /Header Content -->
        
        <!-- Messages -->
		<?php 
echo Session::message('success', 'ml-20 mr-20');
?>
  
        <?php 
echo Error::display($error, 'alert alert-danger alert-styled-left alert-bordered ml-20 mr-20');
?>
        <!-- /Messages -->
        
        <!-- Toolbar -->
        <div class="navbar navbar-default navbar-component navbar-xs">
            <ul class="nav navbar-nav visible-xs-block">
                <li class="full-width text-center"><a data-toggle="collapse" data-target="#navbar-filter"><i class="icon-menu7"></i></a></li>
            </ul>
        
            <div class="navbar-collapse collapse" id="navbar-filter">
                <ul class="nav navbar-nav element-active-slate-400 nav-tabs-sticky">
                    <li class="active"><a href="#user-profile" data-toggle="tab"><i class="icon-pencil4 position-left"></i> <?php 
echo Language::show('user_details', 'users');
?>
</a></li>
Beispiel #6
0
 /**
  * Dilin görünümlerine göre ayarlar
  *
  * @param string $value
  *            dilin değeri ornek "word"
  * @param string $name
  *            dilin adı
  * @param string $code
  *            isteğe bağlıdır , ülke kodu
  * @return string
  */
 public function show($value, $name, $code = LANGUAGE_CODE)
 {
     // lang file
     $file = "app/language/{$code}/{$name}.php";
     // okunabilir mi
     if (is_readable($file)) {
         // gerekli dosya
         $_array = (include $file);
     } else {
         // hata bas
         echo \Core\Error::display("Dil dosyası bulunamadı  '{$code}/{$name}.php'");
         die;
     }
     if (!empty($_array[$value])) {
         return $_array[$value];
     } else {
         return $value;
     }
 }