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.7

1. Core: Fix the order by best match;
2. Add the variable that not present (typo);
Date: 1 month ago
Size: 2,375 bytes
 

Contents

Class file image Download
<?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 .= '
                <div class="row">
                    <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" />
                        </a>
                    </div>
                    <div class="col-8 col-md-10 col-lg-11">
                        <p class="mb-3">
                            <a href="'
. $val->profile_url . '" target="_blank">
                                <b>'
. $val->committer . '</b>
                            </a>
                            <small>
                                @'
. $val->date . '
                            </small>
                        </p>
                        <a href="'
. $val->commit_url . '" target="_blank">
                            <h4>
                                '
. $val->title . '
                                <i class="mdi mdi-launch"></i>
                            </h4>
                        </a>
                        <hr />
                        <p>
                            '
. $parsedown->parse($val->message) . '
                        </p>
                    </div>
                </div>
            '
;
        }
       
        echo
'
            <div class="alert alert-info text-sm rounded-0 border-0 p-3 mb-0">
                <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_modules_and_themes_will_not_be_replaced') . '
                </p>
            </div>
            <div class="container-fluid pt-3 pb-3">
                <h6 class="mb-3">
                    '
. phrase('changelog') . '
                </h6>
                <div class="row">
                    <div class="col-md-8">
                        '
. $changelog . '
                    </div>
                </div>
                <hr class="row" />
                <a href="'
. base_url('administrative/updater/update') . '" class="btn btn-success --xhr show-progress">
                    <i class="mdi mdi-update"></i>
                    '
. phrase('update_now') . '
                </a>
            </div>
        '
;
    }
    else
    {
        echo
'
            <div class="alert alert-success text-sm rounded-0 border-0 p-3 mb-0">
                <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 --xhr show-progress">
                    <i class="mdi mdi-update"></i>
                    '
. phrase('check_again') . '
                </a>
            </div>
        '
;
    }


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