Skip to content

Commit

Permalink
Anpassung RRZE-Elements
Browse files Browse the repository at this point in the history
  • Loading branch information
cassandre committed Jun 14, 2018
1 parent 75c4296 commit bbed467
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@

nbproject/project.properties
/nbproject/private/
nbproject/project.xml
8 changes: 6 additions & 2 deletions functions/shortcodes.php
Expand Up @@ -22,7 +22,9 @@ function add_shortcodes() {
// Paragraphes and content regions
add_shortcode('hr', array( $this, 'fau_hr'));
// Old Shortcodes for downwards compatibility
add_shortcode('alert', array( $this, 'absatzklasse_attention' ));
if ( !is_plugin_active( 'rrze-elements/rrze-elements.php' ) ) {
add_shortcode('alert', array( $this, 'absatzklasse_attention' ));
}
add_shortcode('attention', array( $this, 'absatzklasse_attention' ));
add_shortcode('hinweis', array( $this, 'absatzklasse_hinweis' ));
add_shortcode('baustelle', array( $this, 'absatzklasse_baustelle' ));
Expand Down Expand Up @@ -50,7 +52,9 @@ function add_shortcodes() {


// Ported and adapted by old bootstrap code
add_shortcode('button', array( $this, 'bs_button' ));
if ( !is_plugin_active( 'rrze-elements/rrze-elements.php' ) ) {
add_shortcode('button', array( $this, 'bs_button' ));
}
add_shortcode('code', array( $this, 'bs_code' ));
add_shortcode('span', array( $this, 'bs_span' ));
add_shortcode('row', array( $this, 'bs_row' ));
Expand Down

0 comments on commit bbed467

Please sign in to comment.