PHP Classes

File: aksara/Modules/Xhr/Views/partial/language.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Xhr/Views/partial/language.php  >  Download  
File: aksara/Modules/Xhr/Views/partial/language.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change:
Date: 10 months ago
Size: 495 bytes
 

Contents

Class file image Download
<div class="container-fluid pt-3 pb-3">
    <?php
       
if($languages)
        {
            foreach(
$languages as $key => $val)
            {
                if(
$key)
                {
                    echo
'<hr />';
                }
               
                if(
$val->code == get_userdata('language'))
                {
                    echo
'
                        <b class="d-block">
                            '
. $val->language . '
                        </b>
                    '
;
                }
                else
                {
                    echo
'
                        <a href="'
. base_url('xhr/language/' . $val->code) . '" class="d-block --xhr">
                            '
. $val->language . '
                        </a>
                    '
;
                }
            }
        }
   
?>
</div>

For more information send a message to info at phpclasses dot org.