first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
namespace PDFP\Helper;
class DefaultArgs{
public static function parseArgs($data){
$default = self::get();
$data = wp_parse_args( $data, $default );
$data['options'] = wp_parse_args( $data['options'], $default['options'] );
$data['infos'] = wp_parse_args( $data['infos'], $default['infos'] );
$data['template'] = wp_parse_args( $data['template'], $default['template'] );
return $data;
}
public static function get(){
$options = [];
$infos = [
];
$template = array(
'file' => '',
'height' => '1122px',
'width' => '100%',
'classes' => '',
'showName' => false,
'print' => false,
'fullscreenButtonText' => 'View Fullscreen',
);
$default = [
'options' => $options,
'infos' => $infos,
'template' => $template
];
return $default;
}
// public static function brandColor(){
// $brandColor = get_option('h5vp_option', ['h5vp_player_primary_color' => '#1ABAFF' ]);
// if(isset($brandColor['h5vp_player_primary_color']) && !empty($brandColor['h5vp_player_primary_color'])){
// return $brandColor['h5vp_player_primary_color'];
// }else {
// return '#1ABAFF';
// }
// }
}