Example #1
0
 /**
  * @dataProvider isAllowedMethodProvider
  */
 public function testIsAllowedMethod($method, $expected)
 {
     $id = 1;
     $name = 'Libcaca';
     $l = new Language();
     $l->setId($id);
     $l->setName($name);
     $this->assertEquals($expected, $l->isAllowedMethod($method));
 }
Example #2
0
 public function getEndpointNameProvider()
 {
     $l = Language::createFromArray(['id' => 1, 'name' => 'French']);
     $ug = UserGroup::createFromArray(['id' => 1, 'name' => 'UserGroup Test']);
     $s = Site::createFromArray(['id' => 1, 'name' => 'Example Site', 'userGroupId' => 2, 'url' => 'http://example.com', 'languageId' => 3, 'updatedAt' => '1984-06-01 07:32:23', 'isArchived' => true]);
     // instance, name, expected
     return [[$l, null, 'languages'], [$ug, null, 'usergroups'], [$s, null, 'sites'], [$s, 'customname', 'customname']];
 }
Example #3
0
 public function testToJson()
 {
     $l = new Language();
     $l->setId(123);
     $l->setName('Language');
     $ug = new UserGroup();
     $ug->setId(456);
     $ug->setName('UserGroup');
     $id = 1;
     $dt = new \DateTime();
     $w = new Site();
     $w->setId($id);
     $w->setName('Website');
     $w->setUserGroup($ug);
     $w->setUrl('www.example.com');
     $w->setLanguage($l);
     $w->setIsArchived(false);
     $w->setUpdatedAt($dt);
     $data = json_decode($w);
     $lCopy = new Language();
     $lCopy->setId($data->languageId);
     $lCopy->setName('Language');
     $ugCopy = new UserGroup();
     $ugCopy->setId($data->userGroupId);
     $ugCopy->setName('UserGroup');
     $dtCopy = new \DateTime($data->updatedAt);
     $wCopy = new Site();
     $wCopy->setId($data->id);
     $wCopy->setName($data->name);
     $wCopy->setUserGroup($ugCopy);
     $wCopy->setUrl('www.example.com');
     $wCopy->setLanguage($lCopy);
     $wCopy->setIsArchived($data->isArchived);
     $wCopy->setUpdatedAt($dtCopy);
     $this->assertEquals($w, $wCopy, "Websites are different");
 }
Example #4
0
 /**
  * slug a bağlı ilgili sayfayı açar
  *
  * @param string $slug
  * @todo slug db de var mı yok yoksa 404 bas
  * @return mixed
  */
 public function sayfa($slug = "kurumsal")
 {
     $this->model = new \Models\Posts_Model();
     $this->model->type = 'pages';
     $lng = new \Core\Language();
     $lang = $this->request->get('lang');
     if ($lang == "") {
         $lng->defaultLanguage = "tr";
         // dili belirtiyoruz
     } else {
         $lng->defaultLanguage = $lang;
     }
     $lng->load('header');
     $pages = $this->model->fetchPost_Slug($slug, $this->defaultLanguage);
     if ($pages) {
         // print_r($pages);
         $data['title'] = $pages['title'];
         $data['content'] = stripslashes($pages['content']);
         $data_head['title'] = $pages['title'];
         $data_head['meta_title'] = substr(stripslashes($pages['description']), 0, 150);
         $data_head['meta_image'] = DIR . PUBLIC_PATH . "/img/idealcomtrlogo.png";
         $data_head['meta_link'] = \Lib\Tools::currentPageURL();
         //menuler
         $data_header['kurumsal'] = $lng->get('kurumsal');
         $data_header['hizmetler'] = $lng->get('hizmetler');
         $data_header['urunler'] = $lng->get('urunler');
         $data_header['markalar'] = $lng->get('markalar');
         $data_header['satis'] = $lng->get('satis');
         $data_header['kariyer'] = $lng->get('kariyer');
         $data_header['iletisim'] = $lng->get('iletisim');
         View::RenderTemplate('head_view', $data_head);
         View::RenderTemplate('header_view', $data_header);
         View::Render('sayfa/index_view', $data);
         View::RenderTemplate('footer_view', $this->footerDatasi);
     } else {
         View::render('error/404', '');
     }
 }
Example #5
0
<?php

/**
 * Sample layout
 */
use Core\Language;
?>

<div class="page-header">
	<h1><?php 
echo $data['title'];
?>
</h1>
</div>

<p><?php 
echo $data['welcome_message'];
?>
</p>

<a class="btn btn-md btn-success" href="<?php 
echo DIR;
?>
subpage">
	<?php 
echo Language::show('open_subpage', 'welcome');
?>
</a>
Example #6
0
?>
                                </select>
                            </div> 
                        
                        </div>
                    </div>
                    <div class="row">
                        <hr />
                        <div class="col-md-12">                        
                            <div class="form-group text-right">
                                <button type="submit" name="save" tabindex="5" class="btn btn-primary btn-labeled position-right pull-right mb-10"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('save', 'blog');
?>
</button> 
                                <button type="submit" name="cancel" tabindex="6"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'blog');
?>
</button>                                
                            </div>                          
                        </div>                        
                    </div>                        
                </form>
            </div>
        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #7
0
            <div class="form-control-feedback">
                <i class="icon-user text-muted"></i>
            </div>
        </div>
        
        <div class="form-group has-feedback has-feedback-left">
            <?php 
echo Form::input(array('name' => 'password', 'placeholder' => '' . Language::show('password', 'auth') . '', 'class' => 'form-control'));
?>
            
            <div class="form-control-feedback">
                <i class="icon-lock2 text-muted"></i>
            </div>
        </div>

        <div class="form-group">
            <?php 
echo Form::button(array('type' => 'submit', 'name' => 'submit', 'class' => 'btn btn-primary btn-block', 'value' => '' . Language::show('signin', 'auth') . ' <i class="icon-circle-right2 position-right"></i>'));
?>
        </div>        

        <div class="text-center">
            <a href="/password-recovery"><?php 
echo Language::show('forgot', 'auth');
?>
</a>
        </div>
    </div>

<?php 
echo Form::close();
Example #8
0
 public function ResendActivation()
 {
     // Check to make sure user is NOT logged in
     if ($this->auth->isLoggedIn()) {
         Url::redirect();
     }
     // Check to make sure user is trying to login
     if (isset($_POST['submit'])) {
         // Check to make sure the csrf token is good
         if (Csrf::isTokenValid()) {
             // Catch email input using the Request helper
             $email = Request::post('email');
             // Run the Activation script
             if ($this->auth->resendActivation($email)) {
                 // Success
                 $success[] = Language::show('success_msg_resend_activation', 'Auth');
             } else {
                 // Fail
                 $error[] = Language::show('error_msg_resend_activation', 'Auth');
             }
         }
     } else {
         // No GET information - Send User to index
         //Url::redirect();
     }
     $data['title'] = Language::show('title_resend_activation', 'Auth');
     $data['csrf_token'] = Csrf::makeToken();
     // Setup Breadcrumbs
     $data['breadcrumbs'] = "\n\t\t\t<li><a href='" . DIR . "'>Home</a></li>\n\t\t\t<li class='active'>" . $data['title'] . "</li>\n\t\t";
     View::rendertemplate('header', $data);
     View::render('auth/ResendActivation', $data, $error, $success);
     View::rendertemplate('footer', $data);
 }
Example #9
0
', '<?php 
echo $yes;
?>
', '<?php 
echo $no;
?>
')" name="delete" tabindex="8" formnovalidate class="btn btn-danger btn-labeled position-right pull-left no-margin-left cancel"><b><i class="icon-cross2"></i></b><?php 
echo Language::show('delete', 'roles');
?>
</a>                                
                        <button type="submit" name="update" tabindex="6" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('update', 'roles');
?>
</button> 
                        <button type="submit" name="cancel" formnovalidate tabindex="7"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'roles');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #10
0
', '<?php 
echo $yes;
?>
', '<?php 
echo $no;
?>
')" name="delete" tabindex="8" class="btn btn-danger btn-labeled position-right pull-left no-margin-left cancel"><b><i class="icon-cross2"></i></b><?php 
echo Language::show('delete', 'offices');
?>
</a>                                
                        <button type="submit" name="update" tabindex="6" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('update', 'offices');
?>
</button> 
                        <button type="submit" name="cancel" tabindex="7"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'offices');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #11
0
                            <?php 
    }
    echo "</div>";
}
?>
                               
                    
                    <hr>                                
                    
					<div class="text-right">
                        <button type="submit" name="save" tabindex="6" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('save', 'permissions');
?>
</button> 
                        <button type="submit" name="cancel" formnovalidate tabindex="7"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'permissions');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
							<?php 
}
?>

							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />

							<!-- Error Msg Display -->
							<span id='resultun2' class='label'></span>
							<span class='label' id='passwordStrength'></span>
							<span id='resultemail2' class='label'></span>

							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('register', 'Auth');
?>
							</button>
						<?php 
echo Form::close();
?>
					</div>
				</div>
				<!-- End Display Login Box -->
			</div>
		</div>
	</div>
</div>
echo Success::display($success);
?>
						<?php 
echo Form::open(array('method' => 'post'));
?>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-envelope'></i></span>
								<?php 
echo Form::input(array('type' => 'text', 'name' => 'email', 'class' => 'form-control', 'placeholder' => Language::show('input_email_address', 'Auth')));
?>
							</div>
							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('forgot_password', 'Auth');
?>
							</button>
						<?php 
echo Form::close();
?>
					</div>
				</div>
				<!-- End Display Login Box -->
			</div>
		</div>
	</div>
</div>
Example #14
0
echo Language::show('table_email', 'departments');
?>
</th>           
                            <th style="min-width: 110px;"><?php 
echo Language::show('table_status', 'departments');
?>
</th>                                                   
                            <th  id="mod_date" data-date-format="<?php 
echo Date::convertPHPToMomentFormat($_SESSION['dateformat']);
?>
"><?php 
echo Language::show('table_mod_date', 'departments');
?>
</th> 
                            <th class="all" width="40" data-orderable="false"><?php 
echo Language::show('table_actions', 'departments');
?>
</th>                       
                        </tr>
                        <tr class="yadcf-filters">
                            <th></th>     
                            <th></th>                                                                          
                            <th></th>           
                            <th></th>
                            <th></th>
                            <th></th>                                                                                                                                                                                                                               
                        </tr>                             
                    </thead>
                    <tbody>
                    	<?php 
echo $data['departments'];
Example #15
0
?>
 value="1">
                            </div>

                        </div>
                    </div>                               
                    
                    <hr>                                
                    
					<div class="text-right">
                        <button type="submit" name="save" tabindex="4" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('save', 'languages');
?>
</button> 
                        <button type="submit" name="cancel" tabindex="5"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'languages');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #16
0
        ?>
'></a>
                        </div>
                        <?php 
    }
    ?>
                                                
                            
						</div>
				    </div>
				    <!-- /timeline --> 
                    
                    <?php 
} else {
    echo '<div class="alert alert-info alert-styled-left alert-bordered">
										<button type="button" class="close" data-dismiss="alert"><span>&times;</span><span class="sr-only">Close</span></button>' . Language::show('no_result', 'blog') . '</div>';
}
?>
                                               

            </div>
        </div>
        <!-- /detached content --> 
        
        <?php 
include 'sidebar.php';
?>
                  

    </div>
    <!-- /content area -->
Example #17
0
 public function __construct($a = array())
 {
     $this->dir = isset($a['dir']) ? APP_PATH . DS . 'cache' . DS . $a['dir'] : APP_PATH . DS . 'cache';
     $this->lang = isset($a['lang']) ? $a['lang'] : Language::getCurrentLang();
     $this->time = isset($a['time']) ? $a['time'] : -1;
 }
Example #18
0
}
?>
">
                            </div>
                        </div>
                    </div>                                      
                    
                    <hr>                                
                    
					<div class="text-right">
                        <button type="submit" name="save" tabindex="15" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('save_and_continue', 'users');
?>
</button> 
                        <button type="submit" name="cancel" tabindex="16"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'users');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #19
0
    foreach ($data['offices'] as $row) {
        if ($row->status == 1) {
            $status = "<span class=\"label label-success\">" . Language::show('enabled', 'offices') . "</span>";
        } else {
            $status = "<span class=\"label label-danger\">" . Language::show('disabled', 'offices') . "</span>";
        }
        echo "<tr>";
        echo "<td>{$row->id}</td>";
        echo "<td>{$row->company}</td>";
        echo "<td>{$row->name}</td>";
        echo "<td>{$row->address_1}</td>";
        echo "<td>{$row->city}</td> ";
        echo "<td>{$row->country}</td> ";
        echo "<td>{$status}</td>";
        echo "<td data-sort=\"{$row->updated_at}\">" . Date::showDateTime($row->updated_at, 'local', 'local') . "</td>";
        echo "<td>\n\t\t\t\t\t\t\t\t\t\t<ul class=\"icons-list\">\n\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"offices/edit/{$row->id}\" data-popup=\"tooltip\" title=\"" . Language::show('edit', 'offices') . "\"><i class=\"icon-pencil7 edit\"></i></a></li>\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t</td>";
        echo "</tr>";
    }
}
?>
                    </tbody>
                </table>

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #20
0
 /**
  * Get breadcrumbs based on navigation
  *
  * @return list of breadcrumb items
  */
 public static function getBreadcrumbs($name = null)
 {
     self::init();
     $data = self::getUrl($_SERVER['REQUEST_URI']);
     $urls = explode("/", $_SERVER['REQUEST_URI']);
     $parent_url = '/' . $urls[1];
     $data_parent = self::getUrl($parent_url);
     $breadcrumb = "<ul class=\"breadcrumb breadcrumb-caret position-right hidden-xs\">";
     $breadcrumb .= "<li><a href=\"/\"> " . Language::show('home', 'l18n') . "</a></li>";
     if (!empty($data)) {
         $breadcrumb .= "<li class=\"active\"> " . $data[0]->name . "</li>";
     } elseif (!empty($data_parent)) {
         $breadcrumb .= "<li class=\"active\"> " . $data_parent[0]->name . "</li>";
     } else {
         $breadcrumb .= "<li class=\"active\"> " . $name . "</li>";
     }
     $breadcrumb .= "</ul>";
     return $breadcrumb;
 }
Example #21
0
use Core\Language;
?>

<!-- Main navbar -->
<div class="navbar-fixed-top">

    <?php 
if (SITEENV == 'dev') {
    $env_class = 'bg-primary';
    $env_text = '<i class="icon-warning2 pr-20"></i> ' . Language::show('dev_env', 'settings') . ' ' . SITEVER . '<i class="icon-warning2 pl-20"></i>';
} elseif (SITEENV == 'test') {
    $env_class = 'bg-danger';
    $env_text = '<i class="icon-warning2 pr-20"></i> ' . Language::show('test_env', 'settings') . ' ' . SITEVER . '<i class="icon-warning2 pl-20"></i>';
} elseif (SITEENV == 'rc') {
    $env_class = 'bg-success';
    $env_text = '<i class="icon-warning2 pr-20"></i> ' . Language::show('rc_env', 'settings') . ' ' . SITEVER . '<i class="icon-warning2 pl-20"></i>';
} else {
    $env_class = '';
    $env_text = '';
}
?>

    <?php 
if (SITEENV != '') {
    ?>
    <!-- ENV navbar -->
    <div class="navbar-collapse collapse visible-xs-block"  style="border: 0px;">
        <div class="navbar navbar-default navbar-xs <?php 
    echo $env_class;
    ?>
"  style="border-bottom: 0px;">
Example #22
0
    ?>
', '<?php 
    echo $yes;
    ?>
', '<?php 
    echo $no;
    ?>
')" name="delete" tabindex="7" formnovalidate class="btn btn-danger btn-labeled position-right pull-left no-margin-left cancel"><b><i class="icon-cross2"></i></b><?php 
    echo Language::show('delete', 'navigation');
    ?>
</a>                                
                                <?php 
}
?>
                                <button type="submit" name="update" tabindex="5" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('update', 'navigation');
?>
</button>
                            </div>                                                                      
                            
                        </form>  
                                              
                    </div>
                    
                </div>
                <!-- /navigation edit -->
                            
            </div>
        
        </div>
        
Example #23
0
                            <?php 
    }
    echo "</div>";
}
?>
                               
                    
                    <hr>                                
                    
					<div class="text-right">
                        <button type="submit" name="save" tabindex="10" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('save', 'navigation');
?>
</button> 
                        <button type="submit" name="cancel" tabindex="11"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'navigation');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->
        
    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #24
0
', '<?php 
echo $yes;
?>
', '<?php 
echo $no;
?>
')" name="delete" tabindex="8" class="btn btn-danger btn-labeled position-right pull-left no-margin-left cancel"><b><i class="icon-cross2"></i></b><?php 
echo Language::show('delete', 'user_types');
?>
</a>                                
                        <button type="submit" name="update" tabindex="6" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('update', 'user_types');
?>
</button> 
                        <button type="submit" name="cancel" tabindex="7"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'user_types');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
Example #25
0
							<?php 
    }
    echo "</div>";
}
?>
                               
                    
                    <hr>                                
                    
					<div class="text-right">
                        <button type="submit" name="save" tabindex="6" class="btn btn-primary btn-labeled position-right pull-right"><b><i class="icon-floppy-disk"></i></b><?php 
echo Language::show('save', 'groups');
?>
</button> 
                        <button type="submit" name="cancel" tabindex="7"  class="btn btn-default position-right pull-right cancel"><?php 
echo Language::show('cancel', 'groups');
?>
</button>                                
                    </div>                                                                      
                    
                </form>
            </div>                

        </div>
        <!-- /panel -->

    </div>
    <!-- /content area -->

</div>
<!-- /main content -->
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('type' => 'password', 'name' => 'password', 'class' => 'form-control', 'placeholder' => Language::show('input_password', 'Auth')));
?>
							</div>
							<div class='input-group' style='width: 80%; margin-bottom: 25px'>
								<span class='input-group-addon'><i class='glyphicon glyphicon-lock'></i></span>
								<?php 
echo Form::input(array('type' => 'password', 'name' => 'confirm_password', 'class' => 'form-control', 'placeholder' => Language::show('input_confirm_password', 'Auth')));
?>
							</div>
							<!-- CSRF Token -->
							<input type="hidden" name="csrf_token" value="<?php 
echo $data['csrf_token'];
?>
" />
							<button class="btn btn-md btn-success" name="submit" type="submit">
								<?php 
echo Language::show('change_password', 'Auth');
?>
							</button>
						<?php 
echo Form::close();
?>
					</div>
				</div>
				<!-- End Display Login Box -->
			</div>
		</div>
	</div>
</div>
Example #27
0
use Core\Language;
use Helpers\Navigation;
use Helpers\Date;
use Helpers\Session;
?>

<!-- Main Content -->
<div class="content-wrapper">

    <!-- Page Header -->
    <div class="page-header page-header-xs">
    	<!-- Header Content -->
        <div class="page-header-content">
            <div class="page-title">
				<?php 
echo Navigation::getTitle('fa fa-building', Language::show('title', 'companies'));
?>
      
            </div>       
        </div>
        <!-- /header content -->
        
    </div>    
    <!-- /page header -->

    <!-- Content Area -->
    <div class="content">
    
        <?php 
echo Session::message('success');
?>
Example #28
0
<!-- Icons modal -->
<div id="icons_modal" class="modal fade">
    <div class="modal-dialog modal-full">
        <div class="modal-content">
            <div class="modal-header bg-grey-100">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h5 class="modal-title"><?php 
echo Language::show('modal_icons_title', 'navigation');
?>
</h5>
            </div>

            <div class="modal-body">
				<div class="form-group">
	            	<input tabindex="1" type="text" class="form-control" name="search" id="search" placeholder="<?php 
echo Language::show('icon_search', 'navigation');
?>
">
				</div>
                
                <div class="row glyphs">
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-home"></i> icon-home</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-home2"></i> icon-home2</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-home5"></i> icon-home5</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-home7"></i> icon-home7</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-home8"></i> icon-home8</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-home9"></i> icon-home9</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-office"></i> icon-office</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-city"></i> icon-city</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-newspaper"></i> icon-newspaper</div>
                    <div class="col-md-3 col-sm-4 col-xs-6"><i class="icon-magazine"></i> icon-magazine</div>
Example #29
0
<?php

/**
 * Sample layout
 */
use Core\Language;
?>

<div class="page-header">
	<h1><?php 
echo $data['title'];
?>
</h1>
</div>

<p><?php 
echo $data['welcome_message'];
?>
</p>

<a class="btn btn-md btn-success" href="<?php 
echo DIR;
?>
">
	<?php 
echo Language::show('back_home', 'welcome');
?>
</a>
Example #30
0
            </div>
            <!-- /sub navigation -->

        </div>
    </div>
</div>
<!-- /detached sidebar -->

<!-- Cropping modal -->
<div class="modal fade" id="search-modal" tabindex="-1" role="dialog" aria-labelledby="search-modal-label">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
        <div class="modal-header bg-slate-800">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title" id="search-modal-label"><?php 
echo Language::show('search_help', 'blog');
?>
</h4>
        </div>
        <div class="modal-body">
					<div class="table-responsive">
							<table class="table table-striped">
								<thead>
									<tr>
										<th>Symbol</th>
										<th>How to use it</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td><strong>nice language</strong></td>