private static function initialize() { if (self::$initialized) { return; } self::$initialized = true; }
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WTableColumn"); //{{{ WTableHeader class WTableHeader extends WTableColumn { protected $sorter = "non_existent"; // {{{ __construct /** * Method description * * More detailed method description * @param void */ function __construct($id = null) { parent::__construct($id); }
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WControl"); //{{{ WHidden class WHidden extends WControl { // {{{ __construct /** * Method description * * More detailed method description * @param void */ function __construct($id = null) { parent::__construct($id); } // }}}
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WObject"); //{{{ WPageHandler class WPageHandler extends WObject { const MAX_STORED_STEPS = 32; protected $handler_object = null, $goto_url = null, $object_from_id = null, $object_method = null; // {{{ parseParams /** * Method description * * More detailed method description * @param object $params * @return void */ function parseParams(SimpleXMLElement $params) {
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WEdit"); //{{{ WCalendar class WCalendar extends WEdit { protected $date_format = "yy-mm-dd"; // {{{ __construct /** * Method description * * More detailed method description * @param void */ function __construct($id = null) { parent::__construct($id); }
<?php add_action('agreable_app_theme_init', function () { $key = 'partnership'; include_once get_template_directory() . "/custom-fields/WidgetLoader.php"; $widgets = WidgetLoader::findByUsage('partnership'); register_field_group(array('key' => $key . '_widgets_group', 'title' => 'Body', 'fields' => array(array('key' => $key . '_widgets', 'label' => 'Content Widgets', 'name' => 'widgets', 'prefix' => '', 'type' => 'flexible_content', 'instructions' => 'The body of the content is built up with widgets', 'required' => 1, 'conditional_logic' => 0, 'button_label' => 'Add Widget', 'min' => 1, 'max' => '', 'layouts' => $widgets)), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'partnership'))), 'menu_order' => 2, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => array(0 => 'the_content', 1 => 'discussion', 2 => 'comments'))); });
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WHyperLink"); //{{{ WHyperLink class WBackLink extends WHyperLink { // {{{ buildComplete /** * Method description * * More detailed method description * @param void * @return void */ function buildComplete() { if (!isset($this->tpl)) { $this->tpl = $this->createTemplate();
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id:$ // WidgetLoader::load("WComponent"); Autoload::addVendor("feed"); //{{{ WFeedLink class WFeedLink extends WComponent { protected $title = null, $href = null, $type = Feed::ATOM; // {{{ __construct /** * Method description * * More detailed method description * @param void */ function __construct($id = null) { parent::__construct($id);
<?php $installPage = isset($url[1]) ? $url[1] : ""; // Main Installation Navigation WidgetLoader::add("SidePanel", 10, ' <div class="panel-box"> <ul class="panel-slots"> <li class="nav-slot"><a href="/">Return Home<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "" ? " nav-active" : "") . '"><a href="/install">Welcome<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "config-server" ? " nav-active" : "") . '"><a href="/install/config-server">Server Configuration<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "config-site" ? " nav-active" : "") . '"><a href="/install/config-site">Site Configuration<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "config-database" ? " nav-active" : "") . '"><a href="/install/setup-database">Database Configuration<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "classes-core" ? " nav-active" : "") . '"><a href="/install/classes-core">Install Core Classes<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "classes-plugin" ? " nav-active" : "") . '"><a href="/install/classes-plugin">Install Plugin Classes<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "classes-app" ? " nav-active" : "") . '"><a href="/install/classes-app">Install App Classes<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "app-custom" ? " nav-active" : "") . '"><a href="/install/app-custom">Custom App Install<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "complete" ? " nav-active" : "") . '"><a href="/install/complete">Installation Complete!<span class="icon-circle-right nav-arrow"></span></a></li> </ul> </div>'); /* <li class="nav-slot' . ($installPage == "connect-handle" ? " nav-active" : "") . '"><a href="/install/connect-handle">Site Admin<span class="icon-circle-right nav-arrow"></span></a></li> <li class="nav-slot' . ($installPage == "connect-auth" ? " nav-active" : "") . '"><a href="/install/connect-auth">Confirm Auth Key<span class="icon-circle-right nav-arrow"></span></a></li> */
echo ' </div> <!-- End "content" --> <div style="padding-top:60px;"></div> </div> <!-- End "viewport-wrap" --> </div> <!-- End "content-wrap" -->'; // Display the Mobile Menu echo ' <!-- Mobile Menu --> <div id="mobile-menu" class="modal-bg" onclick="toggleMenu()" style="position:absolute; top:0px; left:0px; display:none; width:100%; z-index:500; height:100%;"><div style="padding:10px; z-index:600; margin-bottom:80px;">'; // Default to using the side panel if no mobile panel exists if (!isset(WidgetLoader::$slots['MobilePanel']) and isset(WidgetLoader::$slots['SidePanel'])) { $widgetList = WidgetLoader::get("SidePanel"); } else { $widgetList = WidgetLoader::get("MobilePanel"); } foreach ($widgetList as $widgetContent) { echo $widgetContent; } echo ' </div></div>'; $uniCom = URL::unifaction_com(); // Footer echo ' <!-- Standard Footer --> <div id="footer"> <ul id="footer-left"> <li class="mobile-link"><a href="javascript:toggleMenu();">Menu</a></li> <li class="mobile-link"><a href="' . URL::unifaction_com() . '/mobile-menu">All Sites</a></li> </ul>
<?php add_action('agreable_app_theme_init', function () { $key = 'longform'; include_once get_template_directory() . "/custom-fields/WidgetLoader.php"; $widgets = WidgetLoader::findByUsage('longform'); register_field_group(array('key' => $key . '_widgets_group', 'title' => 'Body', 'fields' => array(array('key' => $key . '_widgets', 'label' => 'Content Widgets', 'name' => 'widgets', 'prefix' => '', 'type' => 'flexible_content', 'instructions' => 'The body of the content is built up with widgets', 'required' => 1, 'conditional_logic' => 0, 'button_label' => 'Add Widget', 'min' => 1, 'max' => '', 'layouts' => $widgets)), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'longform'))), 'menu_order' => 2, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => array(0 => 'the_content', 1 => 'discussion', 2 => 'comments'))); });
<?php include_once __DIR__ . "/../WidgetLoader.php"; $content_widgets = WidgetLoader::findByUsage("post"); $widgets_acf = array('key' => 'widgets_group', 'title' => 'Body', 'fields' => array(array('key' => 'post_widgets', 'label' => 'Content Widgets', 'name' => 'widgets', 'prefix' => '', 'type' => 'flexible_content', 'instructions' => 'The body of the content is built up of widgets', 'required' => 1, 'button_label' => 'Add Widget', 'min' => 1, 'layouts' => $content_widgets)), 'location' => array(array(array('param' => 'post_type', 'operator' => '==', 'value' => 'post'))), 'menu_order' => 2, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label'); $widgets_acf = apply_filters('agreable_base_theme_widgets_acf', $widgets_acf); register_field_group($widgets_acf);
<?php if (!function_exists('register_field_group')) { return; } $contextType = "category"; include_once __DIR__ . "/../WidgetLoader.php"; $widget_layouts_main = WidgetLoader::findByUsage("category", "main"); $widget_layouts_sidebar = WidgetLoader::findByUsage("category", "sidebar"); $category_widgets_acf = array('key' => 'category_widgets_group', 'title' => 'Category widgets', 'fields' => array(array('key' => 'category_widgets', 'label' => 'Category Widgets', 'name' => 'widgets', 'prefix' => '', 'type' => 'flexible_content', 'instructions' => 'The widgets that make up this category', 'required' => 0, 'button_label' => 'Add Widget', 'min' => 1, 'layouts' => $widget_layouts_main)), 'location' => array(array(array('param' => 'taxonomy', 'operator' => '==', 'value' => 'category')), array(array('param' => 'post_type', 'operator' => '==', 'value' => 'page'))), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => array(0 => 'the_content')); $category_widgets_acf = apply_filters('agreable_base_theme_category_widgets_acf', $category_widgets_acf); register_field_group($category_widgets_acf);
/** * Handles POST data while AJAX request. * It works like {Controller::handlePOST} and signaatures will be checked unless * form is on the current page and <code>no_check</code> attribute is not specified. * * Typical use-case of this function is posting form with javascript with * <code>$(form).serialize()</code> method or <code>ajaxSubmit</code> from * jquert.form plugin. * * Instead of redirects, like in <code>Controller::handlePOST()</code> * method, <code>exit()</code> calls will be used. * * Another difference is that no "save form values and show error boxes" sequence * is used. If some checker of validator error are present, <code>exit()</code> * will terminate futher form processing. * * Additionally, unlike <code>Controller::handlePOST</code>, handler methods could specify * <code>responce_string</code> to return status of form processing. It will be echo'ed at once. * * @param null * @return null */ protected function handlePOST() { $this->trigger("BeforeHandlePOST", $this); if ($this->post->isEmpty()) { Header::redirect(requestURI(true), Header::SEE_OTHER); } $formid = null; WidgetLoader::load("WForm"); list($formid) = explode(":", $this->post->{WForm::signature_name}); if (!empty($formid) && !in_array($formid, $this->no_check_forms)) { $this->trigger("BeforeCheckSignature", $this); if (!$this->checkSignature($this->post->{WForm::signature_name})) { exit("Error while checking POST data 1"); } POSTErrors::flushErrors(); $this->trigger("BeforeCheckByRules", array(&$this->post, $this->post->{WForm::signature_name})); POSTChecker::checkByRules($this->post->{WForm::signature_name}, $this->checker_rules, $this->checker_messages); POSTChecker::checkFiles($this->post->{WForm::signature_name}, $this->file_rules, $this->checker_messages); if (POSTErrors::hasErrors()) { //Header::redirect(requestURI(true), Header::SEE_OTHER); exit("Error while checking POST data 2"); } $this->trigger("BeforeCallHandlers", array($this, &$formid)); try { DataUpdaterPool::callCheckers($formid); } catch (CheckerException $e) { exit("Error " . $e->getMessage() . " in widget " . $e->getWidgetName); } DataUpdaterPool::callHandlers($formid); DataUpdaterPool::callFinalize($formid); } else { try { DataUpdaterPool::callCheckers($formid); } catch (CheckerException $e) { exit("Error " . $e->getMessage() . " in widget " . $e->getWidgetName); } DataUpdaterPool::callHandlers($formid); DataUpdaterPool::callFinalize($formid); } $this->trigger("AfterHandlePOST", $this); if (isset($this->response_string)) { $this->trigger("AfterHeadBodyTailResponce", array($this, &$this->response_string)); echo $this->response_string; } }
* modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Cassea Project nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WJavaScript"); //{{{ WHyperLinkJS class WHyperLinkJS extends WJavaScript { protected $onblur = null, $onfocus = null; } //}}}
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WTextarea"); //{{{ WMarkdown class WMarkdown extends WTextarea { private $preview_template = null; // {{{ __construct /** * Method description * * More detailed method description * @param void */ function __construct($id = null) { parent::__construct($id); }
* * THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id: WForm.php 104 2009-05-29 15:39:01Z point $ // WidgetLoader::load("WContainer"); //{{{ WForm class WForm extends WContainer { var $action = null, $enctype = "multipart/form-data", $method = "post", $items = null, $no_check = 0, $inner_valuecheckers = array(), $vc_rules = array(), $vc_messages = array(), $form_signature = null; const signature_name = "__sig"; const no_check_attribute = "no_check"; //const formid_name = "__formname"; // {{{ __construct /** * Method description * * More detailed method description * @param void */ function __construct($id = null)
</ul> </div>'; // Load the Core Navigation Panel require ROOT_PATH . "/parent-apps/Standard/includes/core_panel_" . ENVIRONMENT . ".php"; echo ' <div id="content-wrap"> <div style="padding-top:60px;"></div>'; // Load the widgets contained in the "UniFactionMenu" container, if applicable $widgetList = WidgetLoader::get("UniFactionMenu"); foreach ($widgetList as $widgetContent) { echo $widgetContent; } echo ' <div id="viewport-wrap">'; // Draw the Left Panel echo ' <!-- Side Panel --> <div id="panel">'; echo ' <div id="panel-left">'; // Load the widgets contained in the "SidePanel" container $widgetList = WidgetLoader::get("SidePanel"); foreach ($widgetList as $widgetContent) { echo $widgetContent; } echo ' </div> <!-- Panel Nav --> </div>'; echo ' <div id="panel-right"></div> <div id="content">' . Alert::display();
<?php // UniFaction Dropdown Menu WidgetLoader::add("UniFactionMenu", 10, ' <div class="menu-wrap hide-600"> <ul class="menu">' . (isset($uniMenu) ? $uniMenu : '') . ' <li class="menu-slot show-tablet"><a href="' . URL::unn_today() . '">News</a><ul><li class="dropdown-slot"><a href="' . URL::unn_today() . '">World News</a></li><li class="dropdown-slot"><a href="' . URL::unn_today() . '/USA">US News</a></li></ul> <li class="menu-slot"><a href="' . URL::entertainment_unifaction_com() . '">Entertainment</a><ul><li class="dropdown-slot"><a href="' . URL::entertainment_unifaction_com() . '/Books">Books</a></li><li class="dropdown-slot"><a href="' . URL::entertainment_unifaction_com() . '/Gaming">Gaming</a></li><li class="dropdown-slot"><a href="' . URL::entertainment_unifaction_com() . '/Movies">Movies</a></li><li class="dropdown-slot"><a href="' . URL::entertainment_unifaction_com() . '/Music">Music</a></li><li class="dropdown-slot"><a href="' . URL::entertainment_unifaction_com() . '/Shows">Shows</a></li><li class="dropdown-slot"><a href="' . URL::thenooch_org() . '">The Nooch</a></li></ul> </li><li class="menu-slot hide-800"><a href="' . URL::sports_unifaction_com() . '">Sports</a><ul><li class="dropdown-slot"><a href="' . URL::gotrek_today() . '">GoTrek</a></li></ul> </li><li class="menu-slot hide-800"><a href="' . URL::tech_unifaction_com() . '">Tech</a> </li><li class="menu-slot hide-1000"><a href="' . URL::science_unifaction_com() . '">Science</a> </li><li class="menu-slot hide-1000"><a href="' . URL::design4_today() . '">Design4</a> </li><li class="menu-slot hide-1200"><a href="' . URL::fashion_unifaction_com() . '">Fashion</a> </li><li class="menu-slot hide-1200"><a href="' . URL::travel_unifaction_com() . '">Travel</a> </li><li class="menu-slot hide-1200"><a href="' . URL::food_unifaction_com() . '">Food</a> </li><li class="menu-slot show-1200"><a href="' . URL::sports_unifaction_com() . '">More</a><ul><li class="dropdown-slot show-800"><a href="' . URL::sports_unifaction_com() . '">Sports</a></li><li class="dropdown-slot show-800"><a href="' . URL::gotrek_today() . '">GoTrek</a></li><li class="dropdown-slot show-800"><a href="' . URL::tech_unifaction_com() . '">Tech</a></li><li class="dropdown-slot show-1000"><a href="' . URL::science_unifaction_com() . '">Science</a></li><li class="dropdown-slot show-1000"><a href="' . URL::design4_today() . '">Design4</a></li><li class="dropdown-slot"><a href="' . URL::fashion_unifaction_com() . '">Fashion</a></li><li class="dropdown-slot"><a href="' . URL::travel_unifaction_com() . '">Travel</a></li><li class="dropdown-slot"><a href="' . URL::food_unifaction_com() . '">Food</a></li></ul> </ul> </div>');
* THIS SOFTWARE IS PROVIDED BY CASSEA PROJECT ''AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL CASSEA PROJECT BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. }}} -*/ // // $Id$ // WidgetLoader::load("WObject"); WidgetLoader::load("WJSEvent"); //{{{ WJavaScript class WJavaScript extends WObject { protected $onclick = null, $ondblclick = null, $onmousedown = null, $onmouseup = null, $onmouseover = null, $onmousemove = null, $onmouseout = null, $onkeypress = null, $onkeydown = null, $onkeyup = null, $beforewidget = array(), $afterwidget = array(); private $src = null, $media = null, $condition = null, $priority = null; // {{{ generateJS /** * Method description * * More detailed method description * @param void * @return string */ function generateJS() {