PHP Classes

File: aksara/Modules/Administrative/Views/updater/index.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  aksara/Modules/Administrative/Views/updater/index.php  >  Download  
File: aksara/Modules/Administrative/Views/updater/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Initial commit for update 4.2.8

This commit replace the dependent configuration with newest CodeIgniter configuration (path /aksara/Config);

Changes for database migrations: Adds seeder to seeds the dummy data instead of writing it under migration.

Core and Model: Updating the missing placement for case insensitive query parameter;

String helper: remove unused parameter;

Touching the core javascript: /public/assets/local/require.min.js (add the missing array usage for css);

Minor updates for the core module
Initial commit for update 4.2.8
Initial commit for update 4.2.8

Change the phrase
Initial commit for update 4.2.8
Date: 6 hours ago
Size: 2,804 bytes
 

Contents

Class file image Download
<div class="container-fluid pt-3 pb-3">
    <?php
       
if(isset($updater->changelog))
        {
           
$changelog = null;
           
$parsedown = new \Aksara\Libraries\Parsedown;
           
            foreach(
$updater->changelog as $key => $val)
            {
                if(
$key)
                {
                   
$changelog .= '<hr class="mt-1 mb-1" />';
                }
               
               
$changelog .= '
                    <a href="'
. $val->commit_url . '" target="_blank">
                        <h2>
                            '
. $val->title . '
                            <i class="mdi mdi-launch"></i>
                        </h2>
                    </a>
                    <hr />
                    <div class="row no-gutters">
                        <div class="col-4 col-md-2 col-lg-1 pt-1">
                            <a href="'
. $val->profile_url . '" target="_blank">
                                <img src="'
. $val->profile_avatar . '" class="img-fluid rounded-more" />
                            </a>
                        </div>
                        <div class="col-8 col-md-10 col-lg-11 pl-3 text-break-word">
                            <a href="'
. $val->profile_url . '" target="_blank">
                                <h5>
                                    '
. $val->committer . '
                                    <i class="mdi mdi-launch"></i>
                                </h5>
                            </a>
                            <span>
                                '
. $val->date . '
                            </span>
                        </div>
                    </div>
                    <hr />
                    '
. $parsedown->parse($val->message) . '
                '
;
            }
           
            echo
'
                <form action="'
. current_page() . '" method="POST" class="--validate-form">
                    <div class="row">
                        <div class="col-lg-8">
                            <div class="alert alert-info rounded-more">
                                <h5>
                                    '
. phrase('update_available') . '
                                </h5>
                                <p class="mb-0">
                                    '
. phrase('a_newer_version_of_aksara_is_available') . '
                                    '
. phrase('click_the_button_below_to_update_your_core_system_directly') . '
                                    '
. phrase('your_created_module_and_theme_will_not_be_overwritten') . '
                                </p>
                            </div>
                            '
. $changelog . '
                        </div>
                    </div>
                    <hr class="row" />
                    <div class="row">
                        <div class="col-lg-8">
                            <button type="submit" class="btn btn-success rounded-pill">
                                <i class="mdi mdi-update"></i>
                                '
. phrase('update_now') . '
                            </button>
                            '
. (isset($updater->server_version) ? '
                            <a href="//www.aksaracms.com/updater/file.zip" class="btn btn-dark rounded-pill ml-3">
                                <i class="mdi mdi-hammer"></i>
                                '
. phrase('manual_update') . '
                            </a>
                            '
: null) . '
                        </div>
                    </div>
                </form>
            '
;
        }
        else
        {
            echo
'
                <div class="alert alert-success rounded-more">
                    <h5>
                        '
. phrase('your_core_system_is_up_to_date') . '
                    </h5>
                    <p>
                        '
. phrase('no_update_available_at_this_time') . ' The update will be inform to you if available.
                    </p>
                    <hr />
                    <a href="'
. base_url('administrative/updater') . '" class="btn btn-sm btn-success rounded-pill --xhr show-progress">
                        <i class="mdi mdi-update"></i>
                        '
. phrase('check_again') . '
                    </a>
                </div>
            '
;
        }
   
?>
</div>

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