mirror da https://github.com/4xmen/xshop.git
Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
30 righe
673 B
PHP
30 righe
673 B
PHP
<?php
|
|
|
|
namespace Resources\Views\Segments;
|
|
|
|
use App\Models\Part;
|
|
use App\Models\Setting;
|
|
|
|
class AutoPlayAttachment
|
|
{
|
|
public static function onAdd(Part $part = null)
|
|
{
|
|
$setting = new Setting();
|
|
$setting->section = 'theme';
|
|
$setting->key = $part->area_name . '_' . $part->part.'_title';
|
|
$setting->value = "Clips list";
|
|
$setting->type = 'text';
|
|
$setting->size = 6;
|
|
$setting->title = $part->area_name . ' ' . $part->part;
|
|
$setting->save();
|
|
}
|
|
public static function onRemove(Part $part = null)
|
|
{
|
|
|
|
}
|
|
public static function onMount(Part $part = null)
|
|
{
|
|
return $part;
|
|
}
|
|
}
|