Beispiel #1
0
    return $text ? 'true' : 'false';
}
function text2text($text)
{
    return $text ? $text : 'false';
}
function js2bool2text($function)
{
    return '<script type="text/javascript">
document.write(' . $function . '() ? "true" : "false");
</script>';
}
function js2text($function)
{
    return '<script type="text/javascript">
var t;
if(t = ' . $function . '())
    document.write(t);
else
    document.write("false");
</script>';
}
echo HTML_Decorator::html_start()->render();
echo Site_Decorator::head()->set_title('MWF About')->render();
echo HTML_Decorator::body_start()->render();
echo Site_Decorator::header()->set_title('MWF Device')->render();
echo Site_Decorator::content_full()->set_padded()->add_header('The Framework')->add_subheader('Server Info')->add_section(label('User Agent') . $_SERVER['HTTP_USER_AGENT'])->add_section(label('IP Address') . $_SERVER['REMOTE_ADDR'])->add_subheader('JS Classification')->add_section(label('mwf.classification.isMobile()') . js2bool2text('mwf.classification.isMobile'))->add_section(label('mwf.classification.isBasic()') . js2bool2text('mwf.classification.isBasic'))->add_section(label('mwf.classification.isStandard()') . js2bool2text('mwf.classification.isStandard'))->add_section(label('mwf.classification.isFull()') . js2bool2text('mwf.classification.isFull'))->add_section(label('mwf.classification.isOverride()') . js2bool2text('mwf.classification.isOverride'))->add_section(label('mwf.classification.isPreview()') . js2bool2text('mwf.classification.isPreview'))->add_subheader('PHP Classification')->add_section(label('Classification::is_mobile()') . bool2text(Classification::is_mobile()))->add_section(label('Classification::is_basic()') . bool2text(Classification::is_basic()))->add_section(label('Classification::is_standard()') . bool2text(Classification::is_standard()))->add_section(label('Classification::is_full()') . bool2text(Classification::is_full()))->add_section(label('Classification::is_override()') . bool2text(Classification::is_override()))->add_section(label('Classification::is_preview()') . bool2text(Classification::is_preview()))->add_subheader('JS User Agent')->add_section(label('mwf.userAgent.getOS()') . js2text('mwf.userAgent.getOS'))->add_section(label('mwf.userAgent.getOSVersion()') . js2text('mwf.userAgent.getOSVersion'))->add_section(label('mwf.userAgent.getBrowser()') . js2text('mwf.userAgent.getBrowser'))->add_section(label('mwf.userAgent.getBrowserEngine()') . js2text('mwf.userAgent.getBrowserEngine'))->add_section(label('mwf.userAgent.getBrowserEngineVersion()') . js2text('mwf.userAgent.getBrowserEngineVersion'))->add_subheader('PHP User Agent')->add_section(label('User_Agent::get_os()') . text2text(User_Agent::get_os()))->add_section(label('User_Agent::get_os_version()') . text2text(User_Agent::get_os_version()))->add_section(label('User_Agent::get_browser()') . text2text(User_Agent::get_browser()))->add_section(label('User_Agent::get_browser_engine()') . text2text(User_Agent::get_browser_engine()))->add_section(label('User_Agent::get_browser_engine_version()') . text2text(User_Agent::get_browser_engine_version()))->add_subheader('JS Screen')->add_section(label('mwf.screen.getHeight()') . js2text('mwf.screen.getHeight'))->add_section(label('mwf.screen.getWidth()') . js2text('mwf.screen.getWidth'))->add_section(label('mwf.screen.getPixelRatio()') . js2text('mwf.screen.getPixelRatio'))->add_subheader('PHP Screen')->add_section(label('Screen::get_height()') . text2text(Screen::get_height()))->add_section(label('Screen::get_width()') . text2text(Screen::get_width()))->add_section(label('Screen::get_pixel_ratio()') . text2text(Screen::get_pixel_ratio()))->render();
echo Site_Decorator::button_full()->set_padded()->add_option(Config::get('global', 'back_to_home_text'), Config::get('global', 'site_url'))->render();
echo Site_Decorator::default_footer()->render();
echo HTML_Decorator::body_end()->render();
echo HTML_Decorator::html_end()->render();
Beispiel #2
0
You may use this Software WITHOUT CHARGE for any purpose, subject to the
restrictions in this license. Some of those allowable uses or purposes which can
 be non-commercial are teaching, academic research, use in your own environment
(whether that is a commercial, academic or non-profit company or organization)
and personal experimentation. You may use the software if you are a commercial
entity.')->add_paragraph('
There are two things you cannot do with this Software: The first is you cannot
incorporate it into a commercial product ("Commercial Use"), the second is you
cannot distribute this software or any modifications ("Derivative Work") of this
software and beyond that, you must share your changes to the Mobile Framework
with UCLA. We want everyone to benefit from the use of this product, we want it
to stay free, and we want to avoid it forking (or splintering) into disconnected
versions. Therefore; you may not use or distribute this Software or any
Derivative Works in any form for any purpose. Examples of prohibited purposes
would be licensing, leasing, or selling the Software, or distributing the
Software for use with other commercial products, or incorporating the Software
into a commercial product.')->add_paragraph('
You may create Derivative Works of the software for your own use only. You may
modify this Software and contribute it back to UCLA, but you may not distribute
the modified Software; all distribution must happen via UCLA\'s Office of
Information Technology Academic Application Architecture Group.  You may not
grant rights to the Software or Derivative Works to this software under this
License. For example, you may not distribute modifications of the Software under
any terms, or sublicense this software to others.')->add_section(HTML_Decorator::tag('p', 'You agree:')->render() . $ol->render())->render();
echo Site_Decorator::content_full()->set_padded()->add_header('Disclaimer')->add_paragraph('UCLA reserves the right to modify this license at any
time. Therefore, although this represents a working copy of the UCLA Mobile
Web Framework license, the latest version exists on the MWF site.')->add_paragraph(HTML_Decorator::tag('a', 'http://mwf.ucla.edu/license', array('href' => 'http://mwf.ucla.edu/license')), array('style' => 'text-align:center;'))->render();
echo Site_Decorator::button_full()->set_padded()->add_option(Config::get('global', 'back_to_home_text'), Config::get('global', 'site_url'))->render();
echo Site_Decorator::default_footer()->render();
echo HTML_Decorator::body_end()->render();
echo HTML_Decorator::html_end()->render();
Beispiel #3
0
 *
 * @author ebollens
 * @copyright Copyright (c) 2010-11 UC Regents
 * @license http://mwf.ucla.edu/license
 * @version 20110519
 *
 * @uses Decorator
 * @uses Site_Decorator
 * @uses HTML_Decorator
 * @uses HTML_Start_HTML_Decorator
 * @uses Head_Site_Decorator
 * @uses Body_Start_HTML_Decorator
 * @uses Header_Site_Decorator
 * @uses Content_Full_Site_Decorator
 * @uses Button_Full_Site_Decorator
 * @uses Default_Footer_Site_Decorator
 * @uses Body_End_HTML_Decorator
 * @uses HTML_End_HTML_Decorator
 */
require_once dirname(dirname(__FILE__)) . '/assets/config.php';
require_once dirname(dirname(__FILE__)) . '/assets/lib/decorator.class.php';
echo HTML_Decorator::html_start()->render();
echo Site_Decorator::head()->set_title('MWF About')->render();
echo HTML_Decorator::body_start()->render();
echo Site_Decorator::header()->set_title('MWF About')->render();
echo Site_Decorator::content_full()->set_padded()->add_header('The Framework')->add_paragraph('The UCLA Mobile Web Framework is a cross-platform web framework that focuses on mobile web standards, semantic markup, device agnosticism and graceful degradation, providing a robust presentation layer that allows applications to define a single set of markup optimized for HTML 5 capable devices that degrades gracefully to any HTML 4.01 or XHTML MP 2.0 compliant device including Blackberry, Windows Mobile and even T9 phones.')->render();
echo Site_Decorator::content_full()->set_padded()->add_header('The Initiative')->add_paragraph('The framework project began in early 2010 as a joint venture between the UCLA Office of Information Technology and UCLA Communications as a means to reach all campus mobile users via a single platform in a reasonable and cost-effective manner. The framework first went into production at the beginning of Fall 2010 with the launch of UCLA Mobile.')->add_paragraph('Over ten campus units are now participating at UCLA, four other campuses in the UC system have launched production applications using the framework, and a number of other institutions both in the UC and beyond are currently involved in the initiative.')->render();
echo Site_Decorator::button_full()->set_padded()->add_option(Config::get('global', 'back_to_home_text'), Config::get('global', 'site_url'))->render();
echo Site_Decorator::default_footer()->render();
echo HTML_Decorator::body_end()->render();
echo HTML_Decorator::html_end()->render();
Beispiel #4
0
 * @uses Button_Full_Site_Decorator
 * @uses Default_Footer_Site_Decorator
 * @uses Body_End_HTML_Decorator
 * @uses HTML_End_HTML_Decorator
 */
require_once dirname(dirname(__FILE__)) . '/assets/lib/decorator.class.php';
require_once dirname(dirname(__FILE__)) . '/assets/config.php';
$contributors = array('UC Los Angeles' => array('Eric Bollens', 'Ed Sakabu', 'Mike Takahashi', 'Joseph Madella', 'Nate Emerson', 'Zorayr Khalapyan'), 'UC Berkeley' => array('Sara Leavitt'), 'UC San Diego' => array('Mojgan Amini', 'Ike Lin'), 'UC San Francisco' => array('Richard Trott'));
echo HTML_Decorator::html_start()->render();
echo Site_Decorator::head()->set_title('MWF Credits')->render();
echo HTML_Decorator::body_start()->render();
echo Site_Decorator::header()->set_title('MWF Credits')->render();
echo Site_Decorator::content_full()->set_padded()->add_header('Project')->add_paragraph('<strong>Project Lead</strong><br>
                                Rose Rocchio (UCLA)<br>' . HTML_Decorator::tag('a', '*****@*****.**', array('href' => 'mailto:rrocchio@oit.ucla.edu')), array('style' => 'text-align:center;'))->add_paragraph('<strong>Technical Lead</strong><br>
                                Eric Bollens (UCLA)<br>' . HTML_Decorator::tag('a', '*****@*****.**', array('href' => 'mailto:ebollens@oit.ucla.edu')), array('style' => 'text-align:center;'))->add_paragraph('<strong>Systems Lead</strong><br>
                                Ed Sakabu (UCLA)<br>' . HTML_Decorator::tag('a', '*****@*****.**', array('href' => 'mailto:sakabu@ats.ucla.edu')), array('style' => 'text-align:center;'))->render();
$contributions = Site_Decorator::content_full()->set_padded()->add_header('Contributors')->add_paragraph('In addition to their own mobile applications, a number of participants have contributed code directly to the UCLA Mobile Web Framework.', array('style' => 'font-style:italic;'));
foreach ($contributors as $campus => $people) {
    $campus_contributors = '<strong>' . $campus . '</strong><br>';
    foreach ($people as $person) {
        $campus_contributors .= $person . '<br>';
    }
    $campus_contributors = substr($campus_contributors, 0, strlen($campus_contributors) - 4);
    $contributions->add_paragraph($campus_contributors, array('style' => 'text-align:center;'));
}
$contributions->add_paragraph('Beyond direct contributions, the input and suggestions of numerous others have made the UCLA Mobile Web Framework possible.', array('style' => 'font-style:italic;'));
echo $contributions->render();
echo Site_Decorator::button_full()->set_padded()->add_option(Config::get('global', 'back_to_home_text'), Config::get('global', 'site_url'))->render();
echo Site_Decorator::default_footer()->render();
echo HTML_Decorator::body_end()->render();
echo HTML_Decorator::html_end()->render();