Skip to content

Commit

Permalink
Merge pull request #212 from RRZE-Webteam/dev
Browse files Browse the repository at this point in the history
v1.23.1
  • Loading branch information
cassandre authored Jul 28, 2022
2 parents 33ca576 + b328fd2 commit 42ec5f3
Show file tree
Hide file tree
Showing 21 changed files with 146 additions and 396 deletions.
40 changes: 40 additions & 0 deletions assets/css/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
border: 1px solid transparent;
font-weight: normal;
background-color: #e9edf2;
overflow: hidden;
strong {
color: inherit;
}
Expand Down Expand Up @@ -58,4 +59,43 @@
.alert.alert-danger p {
font-size: 1rem;
line-height: 1.5;
}

.alert-example,
#content .alert-example {
margin: 30px 20px 40px;
padding: 30px 10px 5px;
position: relative;
background: #fff;
overflow: initial;
border: 1px dashed var(--color-TextLight, $medium-grey);
border-radius: 3px;
&:after {
background: #fff;
border: 1px dashed var(--color-TextLight, $medium-grey);
color: var(--color-Text);
content: "Beispiel";
font-family: sans-serif;
font-size: .8rem;
line-height: inherit;
font-weight: 700;
padding: 3px 10px;
position: absolute;
right: 20px;
text-transform: uppercase;
top: -1.2rem;
z-index: 1;
overflow: auto;
:lang(en) & {
content: 'Example';
}
.fau-events & {
width: auto;
height: auto;
visibility: initial;
}
}
&[title]:after {
content: attr(title);
}
}
9 changes: 9 additions & 0 deletions assets/css/_textcolumns.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.elements-textcolumns {
column-gap: 2em;
padding-bottom: 1em;
figure {
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
}
}
2 changes: 1 addition & 1 deletion assets/css/rrze-elements.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/rrze-elements.css.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion assets/css/rrze-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@
@import "latex";

//Font-Awesome-Icons
@import "icons";
@import "icons";

//Text-Columns (Fließtext in Spalten)
//@import "textcolumns";
13 changes: 8 additions & 5 deletions includes/Accordion/Accordion.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
*/
class Accordion
{
/**
protected $pluginFile;

/**
* [__construct description]
*/
public function __construct()
public function __construct($pluginFile)
{
add_shortcode('collapsibles', [$this, 'shortcodeCollapsibles']);
add_shortcode('accordion', [$this, 'shortcodeCollapsibles']);
Expand All @@ -23,6 +25,7 @@ public function __construct()
add_action('wp_enqueue_scripts', [$this, 'enqueueScripts']);
add_action('wp_enqueue_scripts', [$this, 'enqueueScriptTranslations'], 100);

$this->pluginFile = $pluginFile;
}

/**
Expand Down Expand Up @@ -172,12 +175,12 @@ public static function enqueueScripts() {
plugins_url('assets/js/rrze-accordion.min.js', plugin_basename(__FILE__)),
//plugins_url('assets/js/rrze-accordion.js', plugin_basename(__FILE__)),
['jquery', 'wp-i18n'],
'1.23.0'
'1.23.1'
);
}

public static function enqueueScriptTranslations()
public function enqueueScriptTranslations()
{
wp_set_script_translations('rrze-accordions', 'rrze-elements');
wp_set_script_translations('rrze-accordions', 'rrze-elements',plugin_dir_path( $this->pluginFile ) . 'languages/');
}
}
2 changes: 0 additions & 2 deletions includes/Accordion/assets/js/rrze-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jQuery(document).ready(function($) {
var open = $(this).find(".accordion-body.open");
if (items.length == open.length) {
$(this).find('button.expand-all').attr("data-status", 'open').data('status', 'open').html(__('Collapse All', 'rrze-elements'));
//$(this).find('button.expand-all').attr("data-status", 'open').data('status', 'open').html(accordionToggle.collapse_all);
//console.log("items = " + items.length + " open = " + open.length);
}
}
});
Expand Down
Loading

0 comments on commit 42ec5f3

Please sign in to comment.