SZGoogleAdminYoutube

The SZ - Google SZGoogleAdminYoutube class.

Defined (1)

The class is defined in the following location(s).

/admin/classes/SZGoogleAdminYoutube.php  
  1. class SZGoogleAdminYoutube extends SZGoogleAdmin 
  2. /** 
  3. * Creating the menu on the admin panel using values ** 
  4. * such as configuration variables object (parent function) 
  5. */ 
  6.  
  7. function moduleAddMenu() 
  8. // Definition of general values **for the creation of a menu associated  
  9. // with the module options. Example slug, page title and menu title 
  10.  
  11. $this->menuslug = 'sz-google-admin-youtube.php'; 
  12. $this->pagetitle = ucwords(__('google youtube', 'szgoogleadmin')); 
  13. $this->menutitle = ucwords(__('google youtube', 'szgoogleadmin')); 
  14.  
  15. // Definition of sections that need to be made **in HTML 
  16. // sections must be passed as an array of name = > title 
  17.  
  18. $this->sectionstabs = array( 
  19. '01' => array('anchor' => 'general' , 'description' => __('general' , 'szgoogleadmin')),  
  20. '02' => array('anchor' => 'shortcodes', 'description' => __('shortcodes', 'szgoogleadmin')),  
  21. '03' => array('anchor' => 'widgets' , 'description' => __('widgets' , 'szgoogleadmin')),  
  22. '04' => array('anchor' => 'setup' , 'description' => __('setup' , 'szgoogleadmin')),  
  23. ); 
  24.  
  25. $this->sections = array( 
  26. array('tab' => '01', 'section' => 'sz-google-admin-youtube-config.php' , 'title' => ucwords(__('settings', 'szgoogleadmin'))),  
  27. array('tab' => '01', 'section' => 'sz-google-admin-youtube-advanced.php', 'title' => ucwords(__('advanced settings', 'szgoogleadmin'))),  
  28. array('tab' => '02', 'section' => 'sz-google-admin-youtube-enable-s.php', 'title' => ucwords(__('activation', 'szgoogleadmin'))),  
  29. array('tab' => '03', 'section' => 'sz-google-admin-youtube-enable-w.php', 'title' => ucwords(__('activation', 'szgoogleadmin'))),  
  30. array('tab' => '04', 'section' => 'sz-google-admin-youtube-display.php' , 'title' => ucwords(__('display', 'szgoogleadmin'))),  
  31. array('tab' => '04', 'section' => 'sz-google-admin-youtube-margins.php' , 'title' => ucwords(__('margins ', 'szgoogleadmin'))),  
  32. ); 
  33.  
  34. $this->sectionstitle = $this->menutitle; 
  35. $this->sectionsoptions = array('sz_google_options_youtube'); 
  36.  
  37. // Calling up the function of the parent class to process the  
  38. // variables that contain the values **of configuration section 
  39.  
  40. parent::moduleAddMenu(); 
  41.  
  42. /** 
  43. * Function to add sections and the corresponding options in the configuration 
  44. * page, each option belongs to a section, which is linked to a general tab  
  45. */ 
  46.  
  47. function moduleAddFields() 
  48. // General definition array containing a list of sections 
  49. // On every section you have to define an array to list fields 
  50.  
  51. $this->sectionsmenu = array( 
  52. '01' => array('section' => 'sz_google_youtube_config' , 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-config.php'),  
  53. '02' => array('section' => 'sz_google_youtube_advanced', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-advanced.php'),  
  54. '03' => array('section' => 'sz_google_youtube_active_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-enable-s.php'),  
  55. '04' => array('section' => 'sz_google_youtube_active_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-enable-w.php'),  
  56. '05' => array('section' => 'sz_google_youtube_display' , 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-display.php'),  
  57. '06' => array('section' => 'sz_google_youtube_margins' , 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-margins.php'),  
  58. ); 
  59.  
  60. // General definition array containing a list of fields 
  61. // All fields are added to the previously defined sections 
  62.  
  63. $this->sectionsfields = array( 
  64. '01' => array(array('field' => 'youtube_channel' , 'title' => ucfirst(__('channel name or ID' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_channel')), ),  
  65. '02' => array(array('field' => 'youtube_force_ssl' , 'title' => ucfirst(__('force SSL' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_force_ssl')),  
  66. array('field' => 'youtube_fullscreen' , 'title' => ucfirst(__('enable fullscreen' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_fullscreen')),  
  67. array('field' => 'youtube_disablekeyboard' , 'title' => ucfirst(__('disable keyboard' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_disablekeyboard')),  
  68. array('field' => 'youtube_disableiframe' , 'title' => ucfirst(__('disable IFRAME and use API', 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_disableiframe')),  
  69. array('field' => 'youtube_analytics' , 'title' => ucfirst(__('google analytics' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_analytics')),  
  70. array('field' => 'youtube_delayed' , 'title' => ucfirst(__('delayed loading' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_delayed')),  
  71. array('field' => 'youtube_disablerelated' , 'title' => ucfirst(__('disable related' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_disablerelated')), ),  
  72. '03' => array(array('field' => 'youtube_shortcode' , 'title' => ucfirst(__('youtube video' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_shortcode')),  
  73. array('field' => 'youtube_shortcode_badge' , 'title' => ucfirst(__('youtube badge' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_shortcode_badge')),  
  74. array('field' => 'youtube_shortcode_button' , 'title' => ucfirst(__('youtube button' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_shortcode_button')),  
  75. array('field' => 'youtube_shortcode_link' , 'title' => ucfirst(__('youtube link' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_shortcode_link')),  
  76. array('field' => 'youtube_shortcode_playlist', 'title' => ucfirst(__('youtube playlist' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_shortcode_playlist')), ),  
  77. '04' => array(array('field' => 'youtube_widget' , 'title' => ucfirst(__('youtube video' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_widget')),  
  78. array('field' => 'youtube_widget_badge' , 'title' => ucfirst(__('youtube badge' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_widget_badge')),  
  79. array('field' => 'youtube_widget_button' , 'title' => ucfirst(__('youtube button' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_widget_button')),  
  80. array('field' => 'youtube_widget_link' , 'title' => ucfirst(__('youtube link' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_widget_link')),  
  81. array('field' => 'youtube_widget_playlist' , 'title' => ucfirst(__('youtube playlist' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_widget_playlist')), ),  
  82. '05' => array(array('field' => 'youtube_responsive' , 'title' => ucfirst(__('responsive mode' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_responsive')),  
  83. array('field' => 'youtube_width' , 'title' => ucfirst(__('default width' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_width')),  
  84. array('field' => 'youtube_height' , 'title' => ucfirst(__('default height' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_height')),  
  85. array('field' => 'youtube_autoplay' , 'title' => ucfirst(__('video autoplay' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_autoplay')),  
  86. array('field' => 'youtube_loop' , 'title' => ucfirst(__('video loop' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_loop')),  
  87. array('field' => 'youtube_theme' , 'title' => ucfirst(__('theme' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_theme')),  
  88. array('field' => 'youtube_cover' , 'title' => ucfirst(__('cover' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_cover')),  
  89. array('field' => 'youtube_schemaorg' , 'title' => ucfirst(__('schema.org' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_schemaorg')), ),  
  90. '06' => array(array('field' => 'youtube_margin_top' , 'title' => ucfirst(__('margin top' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_margin_top')),  
  91. array('field' => 'youtube_margin_right' , 'title' => ucfirst(__('margin right' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_margin_right')),  
  92. array('field' => 'youtube_margin_bottom' , 'title' => ucfirst(__('margin bottom' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_margin_bottom')),  
  93. array('field' => 'youtube_margin_left' , 'title' => ucfirst(__('margin left' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_margin_left')),  
  94. array('field' => 'youtube_margin_unit' , 'title' => ucfirst(__('margin unit' , 'szgoogleadmin')), 'callback' => array($this, 'callback_youtube_margin_unit')), ),  
  95. ); 
  96.  
  97. // Calling up the function of the parent class to process the  
  98. // variables that contain the values **of configuration section 
  99.  
  100. parent::moduleAddFields(); 
  101.  
  102. /** 
  103. * Definition functions for the creation of the various options that should be included  
  104. * in the general form of configuration and saved on a database of wordpress (options)  
  105. */ 
  106.  
  107. function callback_youtube_channel() 
  108. $this->moduleCommonFormText('sz_google_options_youtube', 'youtube_channel', 'large', __('insert your channel name or ID', 'szgoogleadmin')); 
  109. $this->moduleCommonFormDescription(__('enter in this field the default name of your youtube channel. You can change the channel name using the shortcode or functions. if you do not specify anything the default channel will be "wpitalyplus". The channel\'s name is located in the your string URL.', 'szgoogleadmin')); 
  110.  
  111. function callback_youtube_widget() 
  112. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_widget'); 
  113. $this->moduleCommonFormDescription(__('if you enable this option you will find the widget required in the administration menu of your widget and you can plug it into any sidebar defined in your theme. If you disable this option, remember not to leave the widget connected to existing sidebar.', 'szgoogleadmin')); 
  114.  
  115. function callback_youtube_widget_badge() 
  116. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_widget_badge'); 
  117. $this->moduleCommonFormDescription(__('if you enable this option you will find the widget required in the administration menu of your widget and you can plug it into any sidebar defined in your theme. If you disable this option, remember not to leave the widget connected to existing sidebar.', 'szgoogleadmin')); 
  118.  
  119. function callback_youtube_widget_button() 
  120. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_widget_button'); 
  121. $this->moduleCommonFormDescription(__('if you enable this option you will find the widget required in the administration menu of your widget and you can plug it into any sidebar defined in your theme. If you disable this option, remember not to leave the widget connected to existing sidebar.', 'szgoogleadmin')); 
  122.  
  123. function callback_youtube_widget_link() 
  124. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_widget_link'); 
  125. $this->moduleCommonFormDescription(__('if you enable this option you will find the widget required in the administration menu of your widget and you can plug it into any sidebar defined in your theme. If you disable this option, remember not to leave the widget connected to existing sidebar.', 'szgoogleadmin')); 
  126.  
  127. function callback_youtube_widget_playlist() 
  128. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_widget_playlist'); 
  129. $this->moduleCommonFormDescription(__('if you enable this option you will find the widget required in the administration menu of your widget and you can plug it into any sidebar defined in your theme. If you disable this option, remember not to leave the widget connected to existing sidebar.', 'szgoogleadmin')); 
  130.  
  131. /** 
  132. * Definition functions for the creation of the various options that should be included  
  133. * in the general form of configuration and saved on a database of wordpress (options)  
  134. */ 
  135.  
  136. function callback_youtube_shortcode()  
  137. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_shortcode'); 
  138. $this->moduleCommonFormDescription(sprintf(__('if you enable this option you can use the shortcode %s and enter the corresponding component directly in your article or page. Normally in the shortcodes can be specified the options for customizations.', 'szgoogleadmin'), '[sz-ytvideo]')); 
  139.  
  140. function callback_youtube_shortcode_badge()  
  141. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_shortcode_badge'); 
  142. $this->moduleCommonFormDescription(sprintf(__('if you enable this option you can use the shortcode %s and enter the corresponding component directly in your article or page. Normally in the shortcodes can be specified the options for customizations.', 'szgoogleadmin'), '[sz-ytbadge]')); 
  143.  
  144. function callback_youtube_shortcode_button()  
  145. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_shortcode_button'); 
  146. $this->moduleCommonFormDescription(sprintf(__('if you enable this option you can use the shortcode %s and enter the corresponding component directly in your article or page. Normally in the shortcodes can be specified the options for customizations.', 'szgoogleadmin'), '[sz-ytbutton]')); 
  147.  
  148. function callback_youtube_shortcode_link()  
  149. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_shortcode_link'); 
  150. $this->moduleCommonFormDescription(sprintf(__('if you enable this option you can use the shortcode %s and enter the corresponding component directly in your article or page. Normally in the shortcodes can be specified the options for customizations.', 'szgoogleadmin'), '[sz-ytlink]')); 
  151.  
  152. function callback_youtube_shortcode_playlist()  
  153. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_shortcode_playlist'); 
  154. $this->moduleCommonFormDescription(sprintf(__('if you enable this option you can use the shortcode %s and enter the corresponding component directly in your article or page. Normally in the shortcodes can be specified the options for customizations.', 'szgoogleadmin'), '[sz-ytplaylist]')); 
  155.  
  156. /** 
  157. * Definition functions for the creation of the various options that should be included  
  158. * in the general form of configuration and saved on a database of wordpress (options)  
  159. */ 
  160.  
  161. function callback_youtube_responsive() 
  162. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_responsive'); 
  163. $this->moduleCommonFormDescription(__('activating this value, the size of the video will be managed with the technique of responsive design, so the size is automatically adjusted to the size of the window, for more information see the documentation on Wikipedia Responsive Web Design.', 'szgoogleadmin')); 
  164.  
  165. function callback_youtube_width() 
  166. $this->moduleCommonFormNumberStep1('sz_google_options_youtube', 'youtube_width', 'medium', 'auto'); 
  167. $this->moduleCommonFormDescription(__('enter the default size of the video, if you do not specify a value in this field, the default size will be 600px. If you specified a value of "0" or is activated the responsive mode will be used the special value 100% which will occupy the entire space of the container.', 'szgoogleadmin')); 
  168.  
  169. function callback_youtube_height() 
  170. $this->moduleCommonFormNumberStep1('sz_google_options_youtube', 'youtube_height', 'medium', 'auto'); 
  171. $this->moduleCommonFormDescription(__('Enter the default size of the video, if you do not specify a value in this field, the default size will be 400px. In the responsive version this value will be ignored, in fact the height will change automatically according to the width of the parent container.', 'szgoogleadmin')); 
  172.  
  173. function callback_youtube_autoplay() 
  174. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_autoplay'); 
  175. $this->moduleCommonFormDescription(__('enabling this option, the video will start automatically inserted when viewing the page without waiting for the user to press the play button. This behavior you can manage it even with the option of shortcode called "autoplay".', 'szgoogleadmin')); 
  176.  
  177. function callback_youtube_loop() 
  178. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_loop'); 
  179. $this->moduleCommonFormDescription(__('this option allows you to reinitiate the video after it was finished. The same function, you can obtain it using the special value [loop] in the shortcode without changing the default behavior. See official documentation Developer Youtube.', 'szgoogleadmin')); 
  180.  
  181. /** 
  182. * Definition functions for the creation of the various options that should be included  
  183. * in the general form of configuration and saved on a database of wordpress (options)  
  184. */ 
  185.  
  186. function callback_youtube_theme() 
  187. $values = array( 
  188. 'dark' => __('dark', 'szgoogleadmin'),  
  189. 'light' => __('light', 'szgoogleadmin'),  
  190. ); 
  191.  
  192. $this->moduleCommonFormSelect('sz_google_options_youtube', 'youtube_theme', $values, 'medium', ''); 
  193. $this->moduleCommonFormDescription(__('in this field specify the default theme to apply the player. At this time you can choose between "light" and "dark". To see if they added some additional theme controls the official documentation Developer Youtube.', 'szgoogleadmin')); 
  194.  
  195. function callback_youtube_cover() 
  196. $values = array( 
  197. 'local' => __('local', 'szgoogleadmin'),  
  198. 'youtube' => __('youtube', 'szgoogleadmin'),  
  199. ); 
  200.  
  201. $this->moduleCommonFormSelect('sz_google_options_youtube', 'youtube_cover', $values, 'medium', ''); 
  202. $this->moduleCommonFormDescription(__('in this field you must specify the type of cover for your video clip when you do not specify a custom value. If you specify "local" will be used to cover stored in the plugin, if you use the value "youtube" will be used to cover defaults on youtube.', 'szgoogleadmin')); 
  203.  
  204. /** 
  205. * Definition functions for the creation of the various options that should be included  
  206. * in the general form of configuration and saved on a database of wordpress (options)  
  207. */ 
  208.  
  209. function callback_youtube_schemaorg() 
  210. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_schemaorg'); 
  211. $this->moduleCommonFormDescription(__('enabling this option will be enabled meta commands relating to the resources of schema.org video. The values **of "meta" must be specified on shortcode or PHP function. For more information read the official documentation.', 'szgoogleadmin')); 
  212.  
  213. /** 
  214. * Definition functions for the creation of the various options that should be included  
  215. * in the general form of configuration and saved on a database of wordpress (options)  
  216. */ 
  217.  
  218. function callback_youtube_margin_top() 
  219. $this->moduleCommonFormNumberStep1('sz_google_options_youtube', 'youtube_margin_top', 'medium', 0); 
  220. $this->moduleCommonFormDescription(__('enter the value of the margin to be applied to the container that will contain the iframe youtube video to display. If you do not specify any value will be used the value 0. This parameter indicates the top margin from the previous text.', 'szgoogleadmin')); 
  221.  
  222. function callback_youtube_margin_right() 
  223. $this->moduleCommonFormNumberStep1('sz_google_options_youtube', 'youtube_margin_right', 'medium', 'auto'); 
  224. $this->moduleCommonFormDescription(__('enter the value of the margin to be applied to the container that will contain the iframe youtube video to display. If you do not specify any value for this field will be used the special value "auto". If you use responsive mode this value will be ignored.', 'szgoogleadmin')); 
  225.  
  226. function callback_youtube_margin_bottom() 
  227. $this->moduleCommonFormNumberStep1('sz_google_options_youtube', 'youtube_margin_bottom', 'medium', 0); 
  228. $this->moduleCommonFormDescription(__('enter the value of the margin to be applied to the container that will contain the iframe youtube video to display. If you do not specify any value will be used the value 0. This parameter indicates the bottom margin from the text.', 'szgoogleadmin')); 
  229.  
  230. function callback_youtube_margin_left() 
  231. $this->moduleCommonFormNumberStep1('sz_google_options_youtube', 'youtube_margin_left', 'medium', 'auto'); 
  232. $this->moduleCommonFormDescription(__('enter the value of the margin to be applied to the container that will contain the iframe youtube video to display. If you do not specify any value for this field will be used the special value "auto". If you use responsive mode this value will be ignored.', 'szgoogleadmin')); 
  233.  
  234. function callback_youtube_margin_unit() 
  235. $values = array( 
  236. 'em' => __('em', 'szgoogleadmin'),  
  237. 'px' => __('px', 'szgoogleadmin'),  
  238. ); 
  239.  
  240. $this->moduleCommonFormSelect('sz_google_options_youtube', 'youtube_margin_unit', $values, 'medium', ''); 
  241. $this->moduleCommonFormDescription(__('this field is used to specify the unit of measure that must be applied to numeric values **that relate to the margins of the video container, the values **that can be specified are em = relative size or px = pixel size.', 'szgoogleadmin')); 
  242.  
  243. /** 
  244. * Definition functions for the creation of the various options that should be included  
  245. * in the general form of configuration and saved on a database of wordpress (options)  
  246. */ 
  247.  
  248. function callback_youtube_force_ssl() 
  249. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_force_ssl'); 
  250. $this->moduleCommonFormDescription(__('if this function is enabled the embed code to generate the video link is forced with the SSL protocol even if the URL string is specified otherwise. Enabling recommended if the web pages of the site are set by default with SSL.', 'szgoogleadmin')); 
  251.  
  252. function callback_youtube_fullscreen() 
  253. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_fullscreen'); 
  254. $this->moduleCommonFormDescription(__('enable this option to enter in the control bar of the video player icon that allows you to view fullscreen. More information can be found in the official documentation. This behavior you can manage it even with the option of shortcode called "fullscreen".', 'szgoogleadmin')); 
  255.  
  256. function callback_youtube_disablekeyboard() 
  257. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_disablekeyboard'); 
  258. $this->moduleCommonFormDescription(__('will disable the player keyboard controls. Keyboard controls are as follows: Spacebar: Play/Pause - Arrow Left: Jump back 10% in the current video - Arrow Right: Jump ahead 10% in the current video - Arrow Up: Volume up - Arrow Down: Volume Down.', 'szgoogleadmin')); 
  259.  
  260. function callback_youtube_disableiframe() 
  261. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_disableiframe'); 
  262. $this->moduleCommonFormDescription(__('normally to insert a youtube video on a webpage uses the iframe technique, use this parameter to change this way and use the JavaScript API provided by google. If you activate the option of google analytics for youtube this value will be ignored.', 'szgoogleadmin')); 
  263.  
  264. function callback_youtube_analytics()  
  265. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_analytics'); 
  266. $this->moduleCommonFormDescription(__('if you enable this option, you can check the requirements and the translation statistics directly to your google analytics account. Remember that to run this option you must specify the code assigned to your profile analytics.', 'szgoogleadmin')); 
  267.  
  268. function callback_youtube_delayed()  
  269. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_delayed'); 
  270. $this->moduleCommonFormDescription(__('by default the iframe code is loaded immediately, there may be cases where this can be poorly performing, or even when we want to customize the cover image, it would be better to load the code after the user executes the play button.', 'szgoogleadmin')); 
  271.  
  272. function callback_youtube_disablerelated()  
  273. $this->moduleCommonFormCheckboxYesNo('sz_google_options_youtube', 'youtube_disablerelated'); 
  274. $this->moduleCommonFormDescription(__('enabling this option disables the related videos that are presented to the player at the end of the video. activating this option in the final video should be made the cover of the video. Read the official documentation to Developer Guide.', 'szgoogleadmin'));