コード例 #1
0
ファイル: youtube.php プロジェクト: AdamFreemer/xfx-site
 public static function initoptions()
 {
     //vanilla defaults
     $_center = 0;
     $_glance = 1;
     $_autoplay = get_option('youtubeprefs_autoplay', 0);
     $_cc_load_policy = get_option('youtubeprefs_cc_load_policy', 0);
     $_iv_load_policy = get_option('youtubeprefs_iv_load_policy', 1);
     $_loop = get_option('youtubeprefs_loop', 0);
     $_modestbranding = get_option('youtubeprefs_modestbranding', 0);
     $_rel = get_option('youtubeprefs_rel', 1);
     $_showinfo = get_option('youtubeprefs_showinfo', 1);
     $_html5 = get_option('youtubeprefs_html5', 0);
     $_theme = get_option('youtubeprefs_theme', 'dark');
     $_color = get_option('youtubeprefs_color', 'red');
     $_vq = get_option('youtubeprefs_vq', '');
     $_autohide = 2;
     $_pro = '';
     $_ssl = 0;
     $_nocookie = 0;
     $_controls = 2;
     $_oldspacing = 1;
     $_responsive = 0;
     $_schemaorg = 0;
     $_wmode = 'opaque';
     $_defaultdims = 0;
     $_defaultwidth = '';
     $_defaultheight = '';
     $_playsinline = 0;
     $arroptions = get_option(self::$opt_alloptions);
     //update vanilla to previous settings if exists
     if ($arroptions !== false) {
         $_center = self::tryget($arroptions, self::$opt_center, 0);
         $_glance = self::tryget($arroptions, self::$opt_glance, 1);
         $_autoplay = self::tryget($arroptions, self::$opt_autoplay, 0);
         $_cc_load_policy = self::tryget($arroptions, self::$opt_cc_load_policy, 0);
         $_iv_load_policy = self::tryget($arroptions, self::$opt_iv_load_policy, 1);
         $_loop = self::tryget($arroptions, self::$opt_loop, 0);
         $_modestbranding = self::tryget($arroptions, self::$opt_modestbranding, 0);
         $_rel = self::tryget($arroptions, self::$opt_rel, 1);
         $_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
         $_playsinline = self::tryget($arroptions, self::$opt_playsinline, 0);
         $_html5 = self::tryget($arroptions, self::$opt_html5, 0);
         $_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
         $_color = self::tryget($arroptions, self::$opt_color, 'red');
         $_wmode = self::tryget($arroptions, self::$opt_wmode, 'opaque');
         $_vq = self::tryget($arroptions, self::$opt_vq, '');
         $_pro = self::tryget($arroptions, self::$opt_pro, '');
         $_ssl = self::tryget($arroptions, self::$opt_ssl, 0);
         $_nocookie = self::tryget($arroptions, self::$opt_nocookie, 0);
         $_controls = self::tryget($arroptions, self::$opt_controls, 2);
         $_autohide = self::tryget($arroptions, self::$opt_autohide, 2);
         $_oldspacing = self::tryget($arroptions, self::$opt_oldspacing, 1);
         $_responsive = self::tryget($arroptions, self::$opt_responsive, 0);
         $_schemaorg = self::tryget($arroptions, self::$opt_schemaorg, 0);
         $_defaultdims = self::tryget($arroptions, self::$opt_defaultdims, 0);
         $_defaultwidth = self::tryget($arroptions, self::$opt_defaultwidth, '');
         $_defaultheight = self::tryget($arroptions, self::$opt_defaultheight, '');
     } else {
         $_oldspacing = 0;
     }
     $all = array(self::$opt_version => self::$version, self::$opt_center => $_center, self::$opt_glance => $_glance, self::$opt_autoplay => $_autoplay, self::$opt_cc_load_policy => $_cc_load_policy, self::$opt_iv_load_policy => $_iv_load_policy, self::$opt_loop => $_loop, self::$opt_modestbranding => $_modestbranding, self::$opt_rel => $_rel, self::$opt_showinfo => $_showinfo, self::$opt_playsinline => $_playsinline, self::$opt_autohide => $_autohide, self::$opt_html5 => $_html5, self::$opt_theme => $_theme, self::$opt_color => $_color, self::$opt_wmode => $_wmode, self::$opt_vq => $_vq, self::$opt_pro => $_pro, self::$opt_ssl => $_ssl, self::$opt_nocookie => $_nocookie, self::$opt_controls => $_controls, self::$opt_oldspacing => $_oldspacing, self::$opt_responsive => $_responsive, self::$opt_schemaorg => $_schemaorg, self::$opt_defaultdims => $_defaultdims, self::$opt_defaultwidth => $_defaultwidth, self::$opt_defaultheight => $_defaultheight);
     update_option(self::$opt_alloptions, $all);
     update_option('embed_autourls', 1);
     self::$alloptions = get_option(self::$opt_alloptions);
 }
コード例 #2
0
ファイル: youtube.php プロジェクト: Ezyva2015/money101.com.au
 public static function initoptions()
 {
     //vanilla defaults
     $_center = 0;
     $_glance = 1;
     $_autoplay = get_option('youtubeprefs_autoplay', 0);
     $_cc_load_policy = get_option('youtubeprefs_cc_load_policy', 0);
     $_iv_load_policy = get_option('youtubeprefs_iv_load_policy', 1);
     $_loop = get_option('youtubeprefs_loop', 0);
     $_modestbranding = get_option('youtubeprefs_modestbranding', 0);
     $_rel = get_option('youtubeprefs_rel', 1);
     $_showinfo = get_option('youtubeprefs_showinfo', 1);
     $_html5 = get_option('youtubeprefs_html5', 0);
     $_theme = get_option('youtubeprefs_theme', 'dark');
     $_color = get_option('youtubeprefs_color', 'red');
     $_vq = get_option('youtubeprefs_vq', '');
     $_autohide = 2;
     $_pro = '';
     $_ssl = 0;
     $_nocookie = 0;
     $_playlistorder = 0;
     $_acctitle = 0;
     $_ogvideo = 0;
     $_migrate = 0;
     $_migrate_youtube = 0;
     $_controls = 2;
     $_oldspacing = 1;
     $_responsive = 0;
     $_responsive_all = 1;
     $_widgetfit = 1;
     $_evselector_light = 0;
     $_schemaorg = 0;
     $_ftpostimg = 0;
     $_spdc = 0;
     $_spdcexp = 24;
     $_dynload = 0;
     $_dyntype = '';
     $_wmode = 'opaque';
     $_defaultdims = 0;
     $_defaultwidth = '';
     $_defaultheight = '';
     $_playsinline = 0;
     $_origin = 0;
     $_defaultvol = 0;
     $_vol = '';
     $_apikey = '';
     $_hl = '';
     $_dohl = 0;
     $_gallery_columns = 3;
     $_gallery_scrolloffset = 20;
     $_gallery_showtitle = 1;
     $_gallery_customarrows = 0;
     $_gallery_customprev = 'Prev';
     $_gallery_customnext = 'Next';
     $_gallery_pagesize = 15;
     $_gallery_style = 'grid';
     $_gallery_showdsc = 0;
     $_gallery_thumbcrop = 'box';
     $_debugmode = 0;
     $_admin_off_scripts = 0;
     $_old_script_method = 0;
     $arroptions = get_option(self::$opt_alloptions);
     //update vanilla to previous settings if exists
     if ($arroptions !== false) {
         $_center = self::tryget($arroptions, self::$opt_center, 0);
         $_glance = self::tryget($arroptions, self::$opt_glance, 1);
         $_autoplay = self::tryget($arroptions, self::$opt_autoplay, 0);
         $_debugmode = self::tryget($arroptions, self::$opt_debugmode, 0);
         $_old_script_method = self::tryget($arroptions, self::$opt_old_script_method, 0);
         $_cc_load_policy = self::tryget($arroptions, self::$opt_cc_load_policy, 0);
         $_iv_load_policy = self::tryget($arroptions, self::$opt_iv_load_policy, 1);
         $_loop = self::tryget($arroptions, self::$opt_loop, 0);
         $_modestbranding = self::tryget($arroptions, self::$opt_modestbranding, 0);
         $_rel = self::tryget($arroptions, self::$opt_rel, 1);
         $_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
         $_playsinline = self::tryget($arroptions, self::$opt_playsinline, 0);
         $_origin = self::tryget($arroptions, self::$opt_origin, 0);
         $_html5 = self::tryget($arroptions, self::$opt_html5, 0);
         $_hl = self::tryget($arroptions, self::$opt_hl, '');
         $_dohl = self::tryget($arroptions, self::$opt_dohl, 0);
         $_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
         $_color = self::tryget($arroptions, self::$opt_color, 'red');
         $_wmode = self::tryget($arroptions, self::$opt_wmode, 'opaque');
         $_vq = self::tryget($arroptions, self::$opt_vq, '');
         $_pro = self::tryget($arroptions, self::$opt_pro, '');
         $_ssl = self::tryget($arroptions, self::$opt_ssl, 0);
         $_nocookie = self::tryget($arroptions, self::$opt_nocookie, 0);
         $_playlistorder = self::tryget($arroptions, self::$opt_playlistorder, 0);
         $_acctitle = self::tryget($arroptions, self::$opt_acctitle, 0);
         $_ogvideo = self::tryget($arroptions, self::$opt_ogvideo, 0);
         $_migrate = self::tryget($arroptions, self::$opt_migrate, 0);
         $_migrate_youtube = self::tryget($arroptions, self::$opt_migrate_youtube, 0);
         $_controls = self::tryget($arroptions, self::$opt_controls, 2);
         $_autohide = self::tryget($arroptions, self::$opt_autohide, 2);
         $_oldspacing = self::tryget($arroptions, self::$opt_oldspacing, 1);
         $_responsive = self::tryget($arroptions, self::$opt_responsive, 0);
         $_responsive_all = self::tryget($arroptions, self::$opt_responsive_all, 1);
         $_widgetfit = self::tryget($arroptions, self::$opt_widgetfit, 1);
         $_evselector_light = self::tryget($arroptions, self::$opt_evselector_light, 0);
         $_schemaorg = self::tryget($arroptions, self::$opt_schemaorg, 0);
         $_ftpostimg = self::tryget($arroptions, self::$opt_ftpostimg, 0);
         $_spdc = self::tryget($arroptions, self::$opt_spdc, 0);
         $_spdcexp = self::tryget($arroptions, self::$opt_spdcexp, 24);
         $_dynload = self::tryget($arroptions, self::$opt_dynload, 0);
         $_dyntype = self::tryget($arroptions, self::$opt_dyntype, '');
         $_defaultdims = self::tryget($arroptions, self::$opt_defaultdims, 0);
         $_defaultwidth = self::tryget($arroptions, self::$opt_defaultwidth, '');
         $_defaultheight = self::tryget($arroptions, self::$opt_defaultheight, '');
         $_defaultvol = self::tryget($arroptions, self::$opt_defaultvol, 0);
         $_vol = self::tryget($arroptions, self::$opt_vol, '');
         $_apikey = self::tryget($arroptions, self::$opt_apikey, '');
         $_gallery_pagesize = self::tryget($arroptions, self::$opt_gallery_pagesize, 15);
         $_gallery_columns = self::tryget($arroptions, self::$opt_gallery_columns, 3);
         $_gallery_scrolloffset = self::tryget($arroptions, self::$opt_gallery_scrolloffset, 20);
         $_gallery_showtitle = self::tryget($arroptions, self::$opt_gallery_showtitle, 1);
         $_gallery_style = self::tryget($arroptions, self::$opt_gallery_style, 'grid');
         $_gallery_thumbcrop = self::tryget($arroptions, self::$opt_gallery_thumbcrop, 'box');
         $_gallery_customarrows = self::tryget($arroptions, self::$opt_gallery_customarrows, $_gallery_customarrows);
         $_gallery_customnext = self::tryget($arroptions, self::$opt_gallery_customnext, $_gallery_customnext);
         $_gallery_customprev = self::tryget($arroptions, self::$opt_gallery_customprev, $_gallery_customprev);
         $_gallery_showdsc = self::tryget($arroptions, self::$opt_gallery_showdsc, $_gallery_showdsc);
         $_admin_off_scripts = self::tryget($arroptions, self::$opt_admin_off_scripts, $_admin_off_scripts);
     } else {
         $_oldspacing = 0;
     }
     $all = array(self::$opt_version => self::$version, self::$opt_center => $_center, self::$opt_glance => $_glance, self::$opt_autoplay => $_autoplay, self::$opt_cc_load_policy => $_cc_load_policy, self::$opt_iv_load_policy => $_iv_load_policy, self::$opt_loop => $_loop, self::$opt_modestbranding => $_modestbranding, self::$opt_rel => $_rel, self::$opt_showinfo => $_showinfo, self::$opt_playsinline => $_playsinline, self::$opt_origin => $_origin, self::$opt_autohide => $_autohide, self::$opt_html5 => $_html5, self::$opt_hl => $_hl, self::$opt_dohl => $_dohl, self::$opt_theme => $_theme, self::$opt_color => $_color, self::$opt_wmode => $_wmode, self::$opt_vq => $_vq, self::$opt_pro => $_pro, self::$opt_ssl => $_ssl, self::$opt_nocookie => $_nocookie, self::$opt_playlistorder => $_playlistorder, self::$opt_acctitle => $_acctitle, self::$opt_ogvideo => $_ogvideo, self::$opt_migrate => $_migrate, self::$opt_migrate_youtube => $_migrate_youtube, self::$opt_controls => $_controls, self::$opt_oldspacing => $_oldspacing, self::$opt_responsive => $_responsive, self::$opt_responsive_all => $_responsive_all, self::$opt_widgetfit => $_widgetfit, self::$opt_evselector_light => $_evselector_light, self::$opt_schemaorg => $_schemaorg, self::$opt_ftpostimg => $_ftpostimg, self::$opt_spdc => $_spdc, self::$opt_spdcexp => $_spdcexp, self::$opt_dynload => $_dynload, self::$opt_dyntype => $_dyntype, self::$opt_defaultdims => $_defaultdims, self::$opt_defaultwidth => $_defaultwidth, self::$opt_defaultheight => $_defaultheight, self::$opt_defaultvol => $_defaultvol, self::$opt_vol => $_vol, self::$opt_apikey => $_apikey, self::$opt_gallery_columns => $_gallery_columns, self::$opt_gallery_scrolloffset => $_gallery_scrolloffset, self::$opt_gallery_showtitle => $_gallery_showtitle, self::$opt_gallery_customarrows => $_gallery_customarrows, self::$opt_gallery_customnext => $_gallery_customnext, self::$opt_gallery_customprev => $_gallery_customprev, self::$opt_gallery_showdsc => $_gallery_showdsc, self::$opt_gallery_style => $_gallery_style, self::$opt_gallery_thumbcrop => $_gallery_thumbcrop, self::$opt_gallery_pagesize => $_gallery_pagesize, self::$opt_debugmode => $_debugmode, self::$opt_admin_off_scripts => $_admin_off_scripts, self::$opt_old_script_method => $_old_script_method);
     update_option(self::$opt_alloptions, $all);
     update_option('embed_autourls', 1);
     self::$alloptions = get_option(self::$opt_alloptions);
 }
コード例 #3
0
ファイル: youtube.php プロジェクト: mostafiz93/PrintfScanf
 static function initoptions()
 {
     $_center = 0;
     $_autoplay = get_option('youtubeprefs_autoplay', 0);
     $_cc_load_policy = get_option('youtubeprefs_cc_load_policy', 0);
     $_iv_load_policy = get_option('youtubeprefs_iv_load_policy', 1);
     $_loop = get_option('youtubeprefs_loop', 0);
     $_modestbranding = get_option('youtubeprefs_modestbranding', 0);
     $_rel = get_option('youtubeprefs_rel', 1);
     $_showinfo = get_option('youtubeprefs_showinfo', 1);
     $_theme = get_option('youtubeprefs_theme', 'dark');
     $_vq = get_option('youtubeprefs_vq', '');
     $_pro = '';
     $arroptions = get_option(self::$opt_alloptions);
     if ($arroptions !== false) {
         $_center = self::tryget($arroptions, self::$opt_center, 0);
         $_autoplay = self::tryget($arroptions, self::$opt_autoplay, 0);
         $_cc_load_policy = self::tryget($arroptions, self::$opt_cc_load_policy, 0);
         $_iv_load_policy = self::tryget($arroptions, self::$opt_iv_load_policy, 1);
         $_loop = self::tryget($arroptions, self::$opt_loop, 0);
         $_modestbranding = self::tryget($arroptions, self::$opt_modestbranding, 0);
         $_rel = self::tryget($arroptions, self::$opt_rel, 1);
         $_showinfo = self::tryget($arroptions, self::$opt_showinfo, 1);
         $_theme = self::tryget($arroptions, self::$opt_theme, 'dark');
         $_vq = self::tryget($arroptions, self::$opt_vq, '');
         $_pro = self::tryget($arroptions, self::$opt_pro, '');
     }
     $all = array(self::$opt_version => self::$version, self::$opt_center => $_center, self::$opt_autoplay => $_autoplay, self::$opt_cc_load_policy => $_cc_load_policy, self::$opt_iv_load_policy => $_iv_load_policy, self::$opt_loop => $_loop, self::$opt_modestbranding => $_modestbranding, self::$opt_rel => $_rel, self::$opt_showinfo => $_showinfo, self::$opt_theme => $_theme, self::$opt_vq => $_vq, self::$opt_pro => $_pro);
     update_option(self::$opt_alloptions, $all);
     update_option('embed_autourls', 1);
     self::$alloptions = get_option(self::$opt_alloptions);
 }