X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fsrc%2FPlugin%2FSetting%2FJavaScript%2FModals%2FModalSelectText.php;fp=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fsrc%2FPlugin%2FSetting%2FJavaScript%2FModals%2FModalSelectText.php;h=9a8cb5f7a572c27086f35e83c40f1d18d0eb8af3;hp=0000000000000000000000000000000000000000;hb=dd08b95e4e519a02d45a50fb504bf5d685eaa9e3;hpb=0bf8d09d2542548982e81a441b1f16e75873a04f diff --git a/web/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Modals/ModalSelectText.php b/web/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Modals/ModalSelectText.php new file mode 100644 index 000000000..9a8cb5f7a --- /dev/null +++ b/web/themes/contrib/bootstrap/src/Plugin/Setting/JavaScript/Modals/ModalSelectText.php @@ -0,0 +1,57 @@ +getSettingElement($form, $form_state); + $setting->setProperty('states', [ + 'visible' => [ + ':input[name="modal_enabled"]' => ['checked' => TRUE], + ':input[name="modal_focus_input"]' => ['checked' => TRUE], + ], + ]); + } + + /** + * {@inheritdoc} + */ + public function drupalSettings() { + return !!$this->theme->getSetting('modal_enabled'); + } + + /** + * {@inheritdoc} + */ + public function getCacheTags() { + return ['rendered', 'library_info']; + } + +}