示例#1
0
    <?php 
$this->renderTemplate('content');
?>
</div><!-- /.register-box -->

<!-- jQuery 2.1.3 -->
<script src="<?php 
echo OpenSms::getBaseUrl();
?>
app/design/default/assets/plugins/jQuery/jQuery-2.1.3.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="<?php 
echo OpenSms::getBaseUrl();
?>
app/design/default/assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<!-- iCheck -->
<script src="<?php 
echo OpenSms::getBaseUrl();
?>
app/design/default/assets/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>
</html>
示例#2
0
<div class="footer">
                    <div class="row">
                        <img src="<?php 
echo OpenSms::getBaseUrl() . OpenSms::DESIGN_PATH;
?>
shallom/assets/img/Footer.png" alt="Footer" class="footer-image"/>
                    </div>
                    <div class="navbar navbar-default" role="navigation">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div>
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav navbar-center">
                            <li><a href="<?php 
echo OpenSms::getActionUrl('index', 'home', 'home');
?>
">HOME</a></li>
                            <li><a href="pricing" data-toggle="modal" data-target="#priceListWindow">PRICING</a></li>
                            <li><a href="#buy" data-toggle="modal" data-target="#buyWindow">BUY CREDIT</a></li>
                            <li><a href="#">ABOUT</a></li>
                            <li><a href="#">HELP</a></li>
                            <?php 
if (!isset($_SESSION['loginId'])) {
    ?>
                            <li><a href="#registration" data-toggle="modal" data-target="#registrationWindow">REGISTER</a></li>
                            <li><a href="#login" data-target="#loginWindow" data-toggle="modal">LOGIN</a></li>    
示例#3
0
 public static function getImages($fullPart = true)
 {
     if (count(self::$images)) {
         return self::$images;
     }
     $images = array();
     //general
     $dir = 'app/skin/assets/images';
     if ($handle = opendir($dir)) {
         while (false !== ($entry = readdir($handle))) {
             if ($entry != "." && $entry != "..") {
                 $names = explode('.', $entry);
                 $name = $names[0];
                 $images[$name] = $fullPart ? OpenSms::getBaseUrl() . $dir . '/' . $entry : $dir . '/' . $entry;
             }
         }
         closedir($handle);
     }
     //current theme
     $themeName = self::getCurrentTheme()->name;
     $dir = "app/skin/{$themeName}/assets/images";
     if ($handle = opendir($dir)) {
         $themeImages = array();
         while (false !== ($entry = readdir($handle))) {
             if ($entry != "." && $entry != "..") {
                 $names = explode('.', $entry);
                 $name = $names[0];
                 $themeImages[$name] = $fullPart ? OpenSms::getBaseUrl() . $dir . '/' . $entry : $dir . '/' . $entry;
             }
         }
         closedir($handle);
     }
     $images[OpenSms::CURRENT_THEME_KEY] = $themeImages;
     self::$images = $images;
     return self::$images;
 }
示例#4
0
                            <th>Version</th>
                            <th>Author</th>
                            <th></th>
                        </tr>
                        </thead>

                        <tbody>
                        <?php 
$sn = 0;
foreach ($this->data['themes'] as $theme) {
    ?>
                            <tr>
                                <td>
                                    <img style="margin-bottom: 10px; width: 250px" alt="No Screen shot"
                                         src="<?php 
    echo !empty($theme->screenShot) ? $theme->screenShot : OpenSms::getBaseUrl() . OpenSms::NO_IMAGE;
    ?>
" class="image img-responsive"/>
                                   </td>
                                <td><?php 
    echo $theme->name;
    ?>
</td>
                                <td><?php 
    echo $theme->key;
    ?>
</td>
                                <td><?php 
    echo $theme->version;
    ?>
</td>
示例#5
0
echo $this->data['theme']->url;
?>
</td>
                                </tr>
                            </table>

                        </div><!-- /.box-body -->
                    </div><!-- /.box -->


                </div><!-- /.col -->

                <div class="col-md-8">
                    <img style="margin-bottom: 10px;" alt="No Screen shot"
                         src="<?php 
echo !empty($this->data['theme']->screenShot) ? $this->data['theme']->screenShot : OpenSms::getBaseUrl() . OpenSms::NO_IMAGE;
?>
" class="image img-responsive"/>

                    <?php 
if (count($this->data['theme']->fields) > 0) {
    ?>
                        <!-- field -->
                        <div class="box box-success">
                            <div class="box-header with-border">
                                <h3 class="box-title">Fields</h3>
                                <div class="box-tools pull-right">
                                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                                </div>
                            </div><!-- /.box-header -->
                            <div class="box-body">
示例#6
0
 protected function renderSpecialView($position)
 {
     $views = OpenSms::getViews($position);
     foreach ($views as $view) {
         switch ($view->type) {
             case OpenSms::VIEW_TYPE_STYLE:
                 echo html_entity_decode("<link href='" . OpenSms::getBaseUrl() . OpenSms::DESIGN_PATH . $view->content . "' rel='stylesheet'/>");
                 break;
             case OpenSms::VIEW_TYPE_SCRIPT:
                 echo html_entity_decode("<script src='" . OpenSms::getBaseUrl() . OpenSms::DESIGN_PATH . $view->content . "' type='text/javascript'></script>");
                 break;
             case OpenSms::VIEW_TYPE_HTML:
             case OpenSms::VIEW_TYPE_RAW:
                 if ($view->isFile) {
                     require_once OpenSms::DESIGN_PATH . $view->content;
                 } else {
                     echo $view->type == OpenSms::VIEW_TYPE_HTML ? html_entity_decode($view->content) : $view->content;
                 }
                 break;
         }
     }
 }