Permalink
Browse files

Allow custom class on "Modal" position

  • Loading branch information...
1 parent bf55512 commit 4b507e51e6969ff023494134abae1a5acdb3917c @sebastienheraud sebastienheraud committed Feb 17, 2017
Showing with 4 additions and 1 deletion.
  1. +4 −1 templates/seb_one/index.php
@@ -193,8 +193,11 @@
<?php // hidden
if ( $cck->countFields( 'modal' ) ) {
JHtml::_( 'bootstrap.modal', 'collapseModal' );
+
+ $class = $cck->getPosition( 'modal' )->css;
+ $class = ( $class ) ? ' ' . $class : '';
?>
- <div class="modal hide fade" id="collapseModal">
+ <div class="modal hide fade<?php echo $class; ?>" id="collapseModal">
<?php echo $cck->renderPosition( 'modal' ); ?>
</div>
<?php } ?>

0 comments on commit 4b507e5

Please sign in to comment.