- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker - Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor - Update view templates to use vendor paths instead of old /js/ or CDN URLs - Clean up legacy commented-out scripts in master layout
24 lines
494 B
PHP
24 lines
494 B
PHP
<?php
|
|
|
|
namespace Model;
|
|
|
|
class Blog extends Model {
|
|
public $id;
|
|
public $title;
|
|
public $description;
|
|
public $news_category;
|
|
public $start_date;
|
|
public $end_date;
|
|
public $is_active;
|
|
|
|
public $url;
|
|
|
|
public function __construct($data, $images = null, $podcast = null) {
|
|
parent::__construct($data);
|
|
parent::ConvertToDateTime($this->start_date);
|
|
parent::ConvertToDateTime($this->end_date);
|
|
|
|
$this->url = "/blog/{$this->id}/" . parent::url_slug($this->title);
|
|
}
|
|
}
|