Plugin Directory

Changeset 1159692


Ignore:
Timestamp:
05/13/2015 02:30:50 PM (11 years ago)
Author:
Mihalytch
Message:

V.1.3 Move all parts of Bootstrap Modal html markup into template files.

Location:
sbmodal/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sbmodal/trunk/core/front_view.php

    r1080015 r1159692  
    8686            }
    8787        }
    88 ?>
    89         <div class="modal fade <?php echo $class; ?>" id="<?php echo $id; ?>" tabindex="-1" role="dialog" aria-hidden="true">
    90             <div class="modal-dialog <?php echo $width; ?>" style="<?php echo $style; ?>">
    91                 <div class="modal-content">
    92                     <?php $this->renderTemplate( $template, $args ); ?>
    93                 </div>
    94             </div>
    95         </div>
    96 <?php
     88
     89        $args['style'] = $style;
     90       
     91        $this->renderTemplate( $template, $args );
    9792    }
    9893   
  • sbmodal/trunk/readme.txt

    r1105549 r1159692  
    33Tags: modal, bootstrap, pop ups, bootstrap popup
    44Requires at least: 4.0.1
    5 Tested up to: 4.1.1
    6 Stable tag: 1.2
     5Tested up to: 4.2.2
     6Stable tag: 1.3
    77Plugin Name: SBModal
    88Plugin URI: http://sbmodal.seven-bytes.com/
  • sbmodal/trunk/sbmodal.php

    r1105549 r1159692  
    44Plugin URI: http://sbmodal.seven-bytes.com/
    55Description: Ease usage of Bootstrap Modals in WordPress
    6 Version: 1.2
     6Version: 1.3
    77Author: Seven Bytes
    88Author URI: http://seven-bytes.com/
  • sbmodal/trunk/templates/full.php

    r1080015 r1159692  
    11<?php
    22defined('ABSPATH') or die("No script kiddies please!");
    3 ?><div class="modal-header">
    4     <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    5     <h4 class="modal-title"><?php echo $modal_title; ?></h4>
     3?>
     4<div class="modal fade <?php echo $class; ?>" id="<?php echo $id; ?>" tabindex="-1" role="dialog" aria-hidden="true">
     5    <div class="modal-dialog <?php echo $width; ?>" style="<?php echo $style; ?>">
     6        <div class="modal-content">
     7            <div class="modal-header">
     8                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
     9                <h4 class="modal-title"><?php echo $modal_title; ?></h4>
     10            </div>
     11            <div class="modal-body">
     12                <?php echo $modal_content; ?>
     13            </div>
     14            <div class="modal-footer">
     15                <?php echo $modal_footer; ?>
     16            </div>
     17        </div>
     18    </div>
    619</div>
    7 <div class="modal-body">
    8     <?php echo $modal_content; ?>
    9 </div>
    10 <div class="modal-footer">
    11     <?php echo $modal_footer; ?>
    12 </div>
  • sbmodal/trunk/templates/middle.php

    r1080015 r1159692  
    11<?php
    22defined('ABSPATH') or die("No script kiddies please!");
    3 ?><div class="modal-header">
    4     <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    5     <h4 class="modal-title"><?php echo $modal_title; ?></h4>
     3?>
     4<div class="modal fade <?php echo $class; ?>" id="<?php echo $id; ?>" tabindex="-1" role="dialog" aria-hidden="true">
     5    <div class="modal-dialog <?php echo $width; ?>" style="<?php echo $style; ?>">
     6        <div class="modal-content">
     7            <div class="modal-header">
     8                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
     9                <h4 class="modal-title"><?php echo $modal_title; ?></h4>
     10            </div>
     11            <div class="modal-body">
     12                <?php echo $modal_content; ?>
     13            </div>
     14        </div>
     15    </div>
    616</div>
    7 <div class="modal-body">
    8     <?php echo $modal_content; ?>
    9 </div>
  • sbmodal/trunk/templates/simple.php

    r1080015 r1159692  
    11<?php
    22defined('ABSPATH') or die("No script kiddies please!");
    3 ?><div class="modal-body">
    4     <?php echo $modal_content; ?>
     3?>
     4<div class="modal fade <?php echo $class; ?>" id="<?php echo $id; ?>" tabindex="-1" role="dialog" aria-hidden="true">
     5    <div class="modal-dialog <?php echo $width; ?>" style="<?php echo $style; ?>">
     6        <div class="modal-content">
     7            <div class="modal-body">
     8                <?php echo $modal_content; ?>
     9            </div>
     10            <a href="#close" data-dismiss="modal" class="modal-close" title="Close">x</a>
     11        </div>
     12    </div>
    513</div>
    6 <a href="#close" data-dismiss="modal" class="modal-close" title="Close">x</a>
Note: See TracChangeset for help on using the changeset viewer.