PHP Classes

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

Recommend this page to a friend!
  Packages 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: Refactor code for improved readability and consistency across multiple views

- Rearranged comments and code blocks for better organization in database.php, error_404.php, error_exception.php, error_exception.php (HTML), index.php, requirement.php, security.php, system.php, and Home module views.
- Ensured consistent formatting and indentation throughout the files.
- Added missing PHP opening tags and improved variable initialization.
- Enhanced error handling and user feedback in error views.
- Updated HTML structure for better semantic clarity and accessibility.
Date: 4 months ago
Size: 550 bytes
 

 

Contents

Class file image Download
<?php

/**
 * @var mixed $languages
 */
?>

<div>
    <?php foreach ($languages as $key => $val): ?>
        <?php if ($key): ?>
            <hr />
        <?php endif; ?>

        <?php if ($val->code == get_userdata('language')): ?>
            <b class="d-block">
                <?= $val->language; ?>
            </b>
        <?php else: ?>
            <a href="<?= base_url('xhr/language/' . $val->code); ?>" class="d-block --xhr">
                <?= $val->language; ?>
            </a>
        <?php endif; ?>
    <?php endforeach; ?>
</div>