- 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
26 lines
484 B
PHP
26 lines
484 B
PHP
<?php
|
|
|
|
namespace Model;
|
|
|
|
class NewsRegion {
|
|
public $title;
|
|
public $slug;
|
|
|
|
public function __construct($title, $slug = null) {
|
|
$this->title = $title;
|
|
$this->slug = $slug ? $slug : strtolower(str_replace(' ', '', $title));
|
|
}
|
|
}
|
|
|
|
class NewsSource {
|
|
public $title;
|
|
public $url;
|
|
public $show;
|
|
|
|
public function __construct($title, $url, $show) {
|
|
$this->title = $title;
|
|
$this->url = $url;
|
|
$this->show = $show;
|
|
}
|
|
}
|