'', 'is_external' => '', 'nofollow' => '', ]; } /** * Get url control default settings. * * Retrieve the default settings of the url control. Used to return the default * settings while initializing the url control. * * @since 1.0.0 * @access protected * * @return array Control default settings. */ protected function getDefaultSettings() { return [ 'label_block' => true, 'show_external' => true, 'placeholder' => __('Paste URL or type'), 'autocomplete' => true, 'dynamic' => [ 'categories' => [TagsModule::URL_CATEGORY], 'property' => 'url', ], ]; } /** * Render url control output in the editor. * * Used to generate the control HTML in the editor using Underscore JS * template. The variables for the class are available using `data` JS * object. * * @since 1.0.0 * @access public * @codingStandardsIgnoreStart Generic.Files.LineLength */ public function contentTemplate() { $control_uid = $this->getControlUid(); $more_input_control_uid = $this->getControlUid('more-input'); $is_external_control_uid = $this->getControlUid('is_external'); $nofollow_control_uid = $this->getControlUid('nofollow'); ?>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>