Exemplo n.º 1
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<div>
  <div var="Config"></div>
</div>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, $this->getClassName());
        return $template;
    }
Exemplo n.º 2
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<div class="user-content-top">
  <div class="container">
    <h1><span var="fullname"></span> <small var="username"></small></h1>
    <div class="pull-right" var="misc" choice="show"></div>
  </div>
</div>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, get_class($this));
        return $template;
    }
Exemplo n.º 3
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<div>
  <h1>LTI Base Home Page</h1>
  <p><strong>Your Current Permissions:</strong></p>
  <ul>
    <li choice="public">Public</li>
    <li choice="student">Student</li>
    <li choice="staff">Staff</li>
    <li choice="admin">Admin</li>
  </ul>


<hr/>
  <div class="row">
    <div class="col-sm-4">
      <h2>Cell 1</h2>
      <p>
        Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac
        cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit
        amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a role="button" href="#" class="btn btn-default">View details »</a></p>
    </div>
    <div class="col-sm-4">
      <h2>Cell 2</h2>
      <p>
        Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac
        cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
        Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
      </p>
      <p><a role="button" href="#" class="btn btn-default">View details »</a></p>
   </div>
    <div class="col-sm-4">
      <h2>Cell 3</h2>
      <p>
        Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
        Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus
        commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
      </p>
      <p><a role="button" href="#" class="btn btn-default">View details »</a></p>
    </div>
  </div>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>z
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</div>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, $this->getClassName());
        return $template;
    }
Exemplo n.º 4
0
    /**
     * makeTemplate
     *
     * @return \Dom\Template
     */
    public function makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<div class="panel panel-default" var="widget">
  <div class="panel-heading">
    <h3 class="panel-title"><i class="fa fa-bars" var="icon" choice="icon"></i> <span var="title">Panel title</span></h3>
    <ul class="w-tabs" choice="tabs">
      <li repeat="li" var="li"><a href="#edit" var="a">Tab</a></li>
    </ul>
    <div class="buttons" choice="buttons"><a href="#" class="btn btn-xs"><i class="fa fa-times"></i></a></div>
  </div>
  <div class="panel-body" var="content"></div>
</div>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, $this->getClassName());
        return $template;
    }
Exemplo n.º 5
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<ul class="nav navbar-nav navbar-right navbar-user">
    <li class="dropdown messages-dropdown" choice="hide">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-envelope"></i> Messages <span class="badge">7</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li class="dropdown-header">7 New Messages</li>
        <li class="message-preview">
          <a href="#">
            <span class="avatar"><img src="http://placehold.it/50x50"/></span>
            <span class="name">John Smith:</span>
            <span class="message">Hey there, I wanted to ask you something...</span>
            <span class="time"><i class="fa fa-clock-o"></i> 4:34 PM</span>
          </a>
        </li>
        <li class="divider"></li>
        <li class="message-preview">
          <a href="#">
            <span class="avatar"><img src="http://placehold.it/50x50"/></span>
            <span class="name">John Smith:</span>
            <span class="message">Hey there, I wanted to ask you something...</span>
            <span class="time"><i class="fa fa-clock-o"></i> 4:34 PM</span>
          </a>
        </li>
        <li class="divider"></li>
        <li class="message-preview">
          <a href="#">
            <span class="avatar"><img src="http://placehold.it/50x50"/></span>
            <span class="name">John Smith:</span>
            <span class="message">Hey there, I wanted to ask you something...</span>
            <span class="time"><i class="fa fa-clock-o"></i> 4:34 PM</span>
          </a>
        </li>
        <li class="divider"></li>
        <li><a href="#">View Inbox <span class="badge">7</span></a></li>
      </ul>
    </li>
    <li class="dropdown alerts-dropdown" choice="hide">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell"></i> Alerts <span class="badge">3</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="#">Default <span class="label label-default">Default</span></a></li>
        <li><a href="#">Primary <span class="label label-primary">Primary</span></a></li>
        <li><a href="#">Success <span class="label label-success">Success</span></a></li>
        <li><a href="#">Info <span class="label label-info">Info</span></a></li>
        <li><a href="#">Warning <span class="label label-warning">Warning</span></a></li>
        <li><a href="#">Danger <span class="label label-danger">Danger</span></a></li>
        <li class="divider"></li>
        <li><a href="#">View All</a></li>
      </ul>
    </li>
    <li class="dropdown user-dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span var="username">John Smith</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="/admin/profile.html"><i class="fa fa-user"></i> Profile</a></li>
        <li choice="hide"><a href="#"><i class="fa fa-envelope"></i> Inbox <span class="badge">7</span></a></li>
        <li><a href="/admin/settings.html"><i class="fa fa-gear"></i> Settings</a></li>
        <li class="divider"></li>
        <li><a href="/logout.html"><i class="fa fa-power-off"></i> Log Out</a></li>
      </ul>
    </li>
    <li><a href="/logout.html"><i class="fa fa-power-off"></i> Log Out</a></li>
</ul>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, get_class($this));
        return $template;
    }
Exemplo n.º 6
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<ul class="nav navbar-nav side-nav">
    <li class="active"><a href="/admin/index.html"><i class="fa fa-dashboard"></i> Dashboard</a></li>
    <li class="dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> System <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="/admin/settings.html">Settings</a></li>
        <li><a href="/admin/user/manager.html">Users</a></li>
        <li><a href="/admin/consumer/manager.html">LTI Consumers</a></li>
        <li choice="themes"><a href="/admin/theme/manager.html">Themes</a></li>
        <li choice="plugins"><a href="/admin/plugin/manager.html">Plugins</a></li>
        <li><a href="/admin/mail/log/manager.html">Log</a></li>
      </ul>
    </li>


    <li class="dropdown" choice="dev">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exclamation-triangle "></i> Dev Tools <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="/admin/_dev/tailLog.html" target="_blank">Tail Log</a></li>
        <li><a href="/admin/_dev/pageList.html">Dispacher List</a></li>
        <li><a href="/admin/_dev/migrate.html">SQL Migration</a></li>
        <li><a href="/admin/_dev/pluginHookList.html" choice="plugins">Plugin API List</a></li>
      </ul>
    </li>
    <li class="dropdown" choice="dev">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exclamation-triangle "></i> Design <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="/admin/_dev/type.html">Typography</a></li>
        <li><a href="/admin/_dev/form.html">Form</a></li>
        <li><a href="/admin/_dev/formTabs.html">Form Tabs</a></li>
        <li><a href="/admin/_dev/formStatic.html">Form Static</a></li>
        <li><a href="/admin/_dev/table.html">Tables</a></li>
        <li><a href="/admin/_dev/ui.html">UI</a></li>
      </ul>
    </li>
    <li class="divider"></li>
    <li style="position: absolute; bottom: 70px; left: 10px;"><small class=""><a href="http://www.tropotek.com/" target="_blank" style="color: #666;">&copy; Tropotek 2013</a></small></li>
</ul>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, $this->getClassName());
        return $template;
    }
Exemplo n.º 7
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<div class="Settings_Edit">

  <div var="Settings"></div>

</div>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, get_class($this));
        return $template;
    }
Exemplo n.º 8
0
    /**
     * makeTemplate
     *
     * @return string
     */
    public function __makeTemplate()
    {
        $xmlStr = <<<HTML
<?xml version="1.0" encoding="UTF-8"?>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><i class="fa fa-briefcase"></i> Actions</h3>
    <div class="buttons" choice="buttons"><a href="#" class="btn btn-mini"><i class="icon-remove"></i></a></div>
  </div>
  <div class="panel-body">
    <ul var="ul" repeat="ul" class="tk-iconNav">
      <li var="li" repeat="li" class=""><a href="#" var="a"><i choice="icon" var="icon"></i> <span var="a-text"></span></a></li>
    </ul>
  </div>
</div>
HTML;
        $template = \Mod\Dom\Loader::load($xmlStr, $this->getClassName());
        return $template;
    }