Browse Source

Fix coding standards.

pull/108/head
Ned Zimmerman 8 years ago
parent
commit
d2ca37e56c
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 2
      functions.php
  2. 12
      inc/actions/namespace.php

2
functions.php

@ -47,7 +47,7 @@ add_action( 'after_setup_theme', '\Aldine\Actions\content_width', 0 );
add_action( 'wp_head', '\Aldine\Actions\output_custom_colors' );
add_action( 'init', '\Aldine\Actions\add_editor_styles' );
add_action( 'admin_init', '\Aldine\Actions\hide_catalog_content_editor' );
foreach ( array('post.php','post-new.php') as $hook ) {
foreach ( [ 'post.php', 'post-new.php' ] as $hook ) {
add_action( "admin_head-$hook", '\Aldine\Actions\tinymce_l18n' );
}
add_filter( 'body_class', '\Aldine\Filters\body_classes' );

12
inc/actions/namespace.php

@ -275,7 +275,8 @@ function register_shortcode_buttons() {
*
* @since 1.1.0
*/
function tinymce_l18n() { ?>
function tinymce_l18n() {
?>
<script type='text/javascript'>
const aldine = {
page_section: {
@ -287,10 +288,11 @@ function tinymce_l18n() { ?>
'borderless': '<?php _e( 'Title', 'pressbooks-aldine' ); ?>'
},
call_to_action: {
'title': '<?php _e( 'Call to Action', 'pressbooks-aldine' ); ?>',
'text': '<?php _e( 'Text', 'pressbooks-aldine' ); ?>',
'url': '<?php _e( 'URL', 'pressbooks-aldine' ); ?>'
'title': '<?php _e( 'Call to Action', 'pressbooks-aldine' ); ?>',
'text': '<?php _e( 'Text', 'pressbooks-aldine' ); ?>',
'url': '<?php _e( 'URL', 'pressbooks-aldine' ); ?>'
}
};
</script>
<?php }
<?php
}

Loading…
Cancel
Save