Skip to content

Commit

Permalink
[fix] bug of syntax error removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalitov committed Jan 2, 2017
1 parent 7e14c5c commit 095be6e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions map_ex/views/_content.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?php
/*
MapEx plugin for Widgetkit 2.
Author: Ramil Valitov
E-mail: ramilvalitov@gmail.com
Web: http://www.valitov.me/
Git: https://github.com/rvalitov/widgetkit-map-ex
*/

require_once(__DIR__.'/WidgetkitExPlugin.php');
use WidgetkitEx\MapEx\WidgetkitExPlugin;
$cssprefix=WidgetkitExPlugin::getCSSPrefix($app);

// Media Width
$media_width = '{wk}-width-' . $settings['media_breakpoint'] . '-' . $settings['media_width'];
Expand Down Expand Up @@ -157,7 +168,7 @@
$media .= '</div></div>';
$media .= '</div>';
}
$media = str_replace('{wk}', $cssprefix, media);
$media = str_replace('{wk}', $cssprefix, $media);
?>

<div class="<?php echo $cssprefix?>-text-<?php echo $settings['text_align']; ?>">
Expand All @@ -168,7 +179,7 @@

<?php if ($item['media'] && $settings['media'] && in_array($settings['media_align'], array('left', 'right'))) : ?>
<div class="<?php echo $cssprefix?>-grid" data-<?php echo $cssprefix?>-grid-margin>
<div class="<?php echo $media_width ?><?php if ($settings['media_align'] == 'right') echo ' '. $cssprefix. '-float-right .' $cssprefix. '-flex-order-last-' . $settings['media_breakpoint'] ?>">
<div class="<?php echo $media_width ?><?php if ($settings['media_align'] == 'right') echo ' '. $cssprefix. '-float-right .' .$cssprefix. '-flex-order-last-' . $settings['media_breakpoint'] ?>">
<?php echo $media; ?>
</div>
<div class="<?php echo $content_width ?>">
Expand Down

0 comments on commit 095be6e

Please sign in to comment.