This repository was archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathboot.php
More file actions
executable file
·53 lines (41 loc) · 1.57 KB
/
boot.php
File metadata and controls
executable file
·53 lines (41 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
$this->setProperty( 'author', 'Friends Of REDAXO' );
if ( rex::isBackend() && rex::getUser() ) {
rex_perm::register( 'bootstrap_helper[]' );
////////////////////////////////////
//
// Compile SCSS
//
////////////////////////////////////
rex_extension::register( 'PACKAGES_INCLUDED', function () {
$scss_compile = 0;
if ( rex::getUser() && $scss_compile == 1 ) {
$compiler = new rex_scss_compiler();
$scss_files = rex_extension::registerPoint( new rex_extension_point( 'BE_STYLE_SCSS_FILES', [ $this->getPath( 'scss/master.scss' ) ] ) );
$compiler->setScssFile( $scss_files );
$compiler->setCssFile( $this->getPath( 'assets/css/styles.css' ) );
$compiler->compile();
rex_file::copy( $this->getPath( 'assets/css/styles.css' ), $this->getAssetsPath( 'css/styles.css' ) );
}
} );
rex_view::addCssFile( $this->getAssetsUrl( 'css/styles.css' ) );
}
////////////////////////////////////
// Link / Button
////////////////////////////////////
function bsh_element_link_button_input( $id, $mform ) {
$mform->addFieldset( 'Link / Button <i class="module_help_link fa fa-exclamation-triangle" aria-hidden="true"></i>', array(
'class' => 'linkbutton',
'style' => 'display:none;'
) );
$mform->addHtml( '<div class="module_help_content">
<p>Folgt</p>
</div>' );
$mform->addTextField( "$id.0.link_designation", array( 'label' => 'Bezeichnung' ) );
$mform->addCustomLinkField( "$id.0.link", array(
'label' => 'Link',
'data-tel' => 'disable',
'data-mailto' => 'disable',
'data-media' => 'disable'
) );
}