Skip to content

Instantly share code, notes, and snippets.

@sandeepone
Last active December 17, 2015 22:28
Show Gist options
  • Save sandeepone/5681837 to your computer and use it in GitHub Desktop.
Save sandeepone/5681837 to your computer and use it in GitHub Desktop.
Gleez popup demo on Gleez CMS
<?php defined('SYSPATH') OR die('No direct access to script'); ?>
<div class="bs-example" style="padding-bottom: 24px;">
<a data-toggle="popup" data-target11="#myModal" href="demo.html" class="btn btn-primary btn-large">Launch demo modal</a>
<a data-toggle="popup" data-title="Popup One" href="/admin/tags/add" class="btn btn-primary btn-large">Launch demo modal</a>
</div><!-- /example -->
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Test extends Template {
public function action_mpopup()
{
Assets::css('popup', 'media/css/popup.css', array('bootstrap'), array('media' => 'screen', 'weight' => 15));
Assets::js('form', 'media/js/jquery.form.js', NULL, FALSE, array('weight' => 15));
Assets::js('ajaxform', 'media/js/gleez.ajaxform.js', NULL, FALSE, array('weight' => 17));
Assets::js('popup', 'media/js/gleez.popup.js', NULL, FALSE, array('weight' => 20));
$this->title = __('Popup Demo');
$this->response->body(View::factory('test'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment