Example #1
0
/**
 * Set the theme
 * @param Mixed $css String or array
 */
function use_plop_theme($class = '', $theme = null)
{
    if (!$theme) {
        $theme = sfPlop::get('sf_plop_theme');
    }
    if (preg_match('/\\s/', $theme) !== false) {
        $subthemes = explode(' ', $theme);
        $theme = array_shift($subthemes);
        $class .= ' ' . implode(' ', $subthemes);
    }
    $themes = sfPlop::get('sf_plop_loaded_themes');
    if ($theme != false && is_string($theme) && isset($themes[$theme])) {
        if (isset($themes[$theme]['css'])) {
            use_plop_stylesheet($themes[$theme]['css']);
        }
        if (isset($themes[$theme]['js'])) {
            use_plop_javascript($themes[$theme]['js']);
        }
    } else {
        $theme = '';
    }
    if (has_slot('sf_plop_theme') && $theme == sfPlop::get('sf_plop_theme')) {
        slot('sf_plop_theme', get_slot('sf_plop_theme') . $theme . ' ' . $class);
    } else {
        slot('sf_plop_theme', $theme . ' ' . $class);
    }
}
Example #2
0
/**
 * seo_admin_bar
 *
 * @return includes an SEO menu bar in your project to edit meta and sitemap data
 * @author Brent Shaffer
 */
function seo_admin_bar()
{
    if (has_slot('seo_admin_bar')) {
        include_slot('seo_admin_bar');
    } else {
        include_component('csSEO', 'seo_admin_bar');
    }
}
Example #3
0
<?php 
    include_slot('op_mobile_footer_menu');
}
?>

<?php 
echo op_within_page_link('');
?>
<a name="bottom"></a>

<?php 
include_component('default', 'nav', array('type' => 'mobile_global', 'line' => false));
?>

<?php 
if (has_slot('op_mobile_footer')) {
    include_slot('op_mobile_footer');
} else {
    if ($sf_user->hasCredential('SNSMember')) {
        ?>
<table width="100%">
<tbody><tr><td align="center" bgcolor="<?php 
        echo $op_color["core_color_2"];
        ?>
">
<font color="<?php 
        echo $op_color["core_color_18"];
        ?>
"><a href="<?php 
        echo url_for('@homepage');
        ?>
Example #4
0
  <div class="mainDiv">
  	<div class="globalheader">
    	<?php 
include_component('home', 'globalheader');
?>
    </div>
    <div class="header">
      <?php 
include_component('home', 'header');
?>
    </div>
    <div class="content">
      <div class="leftmenu">
        <div class="leftmenucontent">
          <?php 
if (has_slot('leftmenu')) {
    ?>
          	<?php 
    include_slot('leftmenu');
    ?>
          <?php 
}
?>
        </div>
      </div>
      <div class="contentMain"> <?php 
echo $sf_data->getRaw('sf_content');
?>
 </div>
    </div>
    <div class="footermark"> 
Example #5
0
<?php 
}
?>

<div id="body">
<?php 
if (has_slot('submenu')) {
    ?>
<ul id="submenu">
<?php 
    include_slot('submenu');
    ?>
</ul>
<?php 
}
if (has_slot('title')) {
    ?>
<h2><?php 
    include_slot('title');
    ?>
</h2>
<?php 
}
?>

<?php 
if ($sf_user->hasFlash('error')) {
    ?>
<p id="flashError" class="flash"><?php 
    echo __($sf_user->getFlash('error'));
    ?>
Example #6
0
  		</ul>
  		<ul id="partners">
        <li class="partner_wearenashville"><a href="http://www.wearenashville.org" title="We Are Nashville">We Are Nashville</a></li>
        <li class="partner_nashvillest"><a href="http://www.nashvillest.com" title="Nashvillest">Nashvillest</a></li>
        <li class="partner_unitedway"><a href="http://www.unitedwaynashville.org" title="United Way">United Way Nashville</a></li>
        <li class="partner_coolpeoplecare"><a href="http://coolpeoplecare.org" title="Cool People Care">Cool People Care</a></li>
      </ul>
  		<div class="center">&copy;<?php 
echo date('Y');
?>
 Donate Nashville</div>
		</div>
	</div>
	
	<?php 
if (has_slot('popUp')) {
    ?>
	 <div id="popup">
	   <?php 
    include_slot('popUp');
    ?>
	 </div>
	<?php 
}
?>
	
	
	<script type="text/javascript">
  var uservoiceOptions = {
    /* required */
    key: 'donatenashville',
Example #7
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php 
include_http_metas();
include_metas();
include_title();
include_stylesheets();
include_javascripts();
?>
	<link rel="Shortcut Icon" type="image/x-icon" href="favicon.ico" />
<?php 
if (has_slot('inline_styles')) {
    ?>
	<style type="text/css">
<?php 
    include_slot('inline_styles');
    ?>
	</style>
<?php 
}
?>
</head>
<body class="<?php 
echo $_request->getParameter('module') . '-' . $_request->getParameter('action');
?>
">

<?php 
if (0 && CORE_ENVIRONMENT !== 'prod') {
    ?>
Example #8
0
            <td class="remaining"><div id="counter"></div></td>
	            <td class="datetime"><div id="clocker"></div></td>
            <td class="languages">
              <div class="languages_floater">
                <ul>
                  <?php 
include_component('headerMenu', 'langSelect');
?>
                </ul>
              </div>
            </td>
          </tr>
        </table>
      </div>
      <div class="center" style="<?php 
if (has_slot('bannerHeader')) {
    ?>
background:url(<?php 
    include_slot('bannerHeader');
    ?>
) no-repeat center top;<?php 
}
?>
">
        <div class="banner">
          <?php 
include_slot('bannerLogo');
?>
        </div>
        <div class="controllers">
          <div class="searchbox">
$t->diag('get_partial()');
sfConfig::set('mod_module_partial_view_class', 'MyTest');

$t->is(get_partial('module/dummy'), '==RENDERED==', 'get_partial() uses the class specified in partial_view_class for the given module');
$t->is(get_partial('MODULE/dummy'), '==RENDERED==', 'get_partial() accepts a case-insensitive module name');

// slots tests
sfContext::getInstance()->inject('response', 'sfWebResponse');

$t->diag('get_slot()');
$t->is(get_slot('foo', 'baz'), 'baz', 'get_slot() retrieves default slot content');
slot('foo', 'bar');
$t->is(get_slot('foo', 'baz'), 'bar', 'get_slot() retrieves slot content');

$t->diag('has_slot()');
$t->ok(has_slot('foo'), 'has_slot() checks if a slot exists');
$t->ok(!has_slot('doo'), 'has_slot() checks if a slot does not exist');

$t->diag('include_slot()');
ob_start();
include_slot('foo');
$t->is(ob_get_clean(), 'bar', 'include_slot() prints out the content of an existing slot');

ob_start();
include_slot('doo');
$t->is(ob_get_clean(), '', 'include_slot() does not print out the content of an unexisting slot');

ob_start();
include_slot('doo', 'zoo');
$t->is(ob_get_clean(), 'zoo', 'include_slot() prints out the default content specified for an unexisting slot');
Example #10
0
    ?>
 				<?php 
    include_slot('a-breadcrumb');
    ?>
 		<?php 
} elseif ($page) {
    ?>
 				<?php 
    include_component('aNavigation', 'breadcrumb', array('root' => '/', 'active' => $page['slug'], 'name' => 'component', 'separator' => ' /'));
    ?>
 		<?php 
}
?>

     <?php 
if (has_slot('a-subnav')) {
    ?>
       <?php 
    include_slot('a-subnav');
    ?>
     <?php 
} elseif ($page) {
    ?>
 		  <?php 
    include_component('a', 'subnav', array('page' => $page));
    ?>
 		<?php 
}
?>

		<div id="a-content">
Example #11
0
        include_slot('og_title');
        ?>
" />
    <?php 
    } else {
        ?>
      <meta property="og:title" content="<?php 
        echo __('WEBSITE_HOMEPAGE_META_OG_TITLE');
        ?>
" />
    <?php 
    }
    ?>

    <?php 
    if (has_slot('og_description')) {
        ?>
      <meta property="og:description" content="<?php 
        include_slot('og_description');
        ?>
" />
    <?php 
    } else {
        ?>
      <meta property="og:description" content="<?php 
        echo __('WEBSITE_HOMEPAGE_SECONDARY_COPY');
        ?>
" />
    <?php 
    }
    ?>
Example #12
0
<?php 
echo $sf_content;
?>
</div>
<!-- Right Column -->
<div id="rightcolumn">

<div class="notes">
<?php 
include_component_slot('sidebar');
?>
</div>


<?php 
if (has_slot('filters')) {
    ?>
  <?php 
    include_slot('filters');
} else {
    ?>
	<!-- Notes / Articles Box 
	<div class="notes"><h2>This is a Notice!</h2>
	
	<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis dignissim vulputate leo. </p>
	<ul>
	<li>Donec mauris. Suspendisse potenti. </li>
	<li>Class aptent taciti sociosqu ad litora </li>
	<li>torquent per conubia nostra, per inceptos himenaeos. </li>
	<li>Aliquam molestie, erat non ultricies elementum, </li>
	<li>ante nulla hendrerit erat, sed laoreet </li>
Example #13
0
    echo __($sf_user->getFlash('notice'));
    ?>
      </div>
    <?php 
}
?>

    <div id="page-content">
      <?php 
echo $sf_content;
?>
    </div>
  </div>
  <div id="footer-spacer"></div>
</div>

<footer class="specific-footer">
  <?php 
echo Doctrine::getTable("Scripts")->getSingleton()->backend_bottom;
?>
</footer>
<?php 
if (!has_slot('disable_support')) {
    ?>

<?php 
}
?>
</body>
</html>
Example #14
0
?>

                    <?php 
if (has_slot('leftcol')) {
    ?>
                        <div class="three  columns">
                            <?php 
    include_slot('leftcol');
    ?>
                        </div>
                    <?php 
}
?>

                    <?php 
if (has_slot('leftcol')) {
    ?>
                        <div class="eight columns">
                        <?php 
} else {
    ?>
                            <div class="eight columns centered">
                            <?php 
}
?>
                                
                            <?php 
echo $sf_content;
?>
                        </div>
                    </div>
Example #15
0
            
                <div id="side_column">
                    <?php 
if (has_slot('sidebar')) {
    ?>
                        <?php 
    include_slot('sidebar');
    ?>
                    <?php 
}
?>
                </div><!-- end of side column -->

                <div id="main_column">
                    <?php 
if (has_slot('main')) {
    ?>
                        <?php 
    include_slot('main');
    ?>
                    <?php 
}
?>
                </div> <!-- end of main column -->

                <div class="cleaner"></div>
            </div> <!-- end of content -->
            <div id="templatemo_footer_bar">
                Copyright © 2010 <a href="http://kszk.sch.bme.hu/webteam">KSZK Webteam</a> |
                Designed by <a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a> |
                Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
Example #16
0
    <div class="padding">
<?php 
echo $core_content;
?>
    </div>
    <div id="footer">
      <p>Page generated in <span style="color:#ccc"><?php 
echo coreContext::getInstance()->getConfiguration()->timeEnd();
?>
</span> secs</p>
    </div>
  </div>

  <div id="leftcolumn">
    <?php 
if (has_slot('sidebar')) {
    ?>
      <?php 
    include_slot('sidebar');
    ?>
    <?php 
} else {
    ?>
      <!-- default sidebar code -->
      <?php 
    include_partial('global/mainMenu');
    ?>
    <?php 
}
?>
  </div>
Example #17
0
<!doctype html> 
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php 
include_title();
?>
        <?php 
include_stylesheets();
?>
        <?php 
include_javascripts();
?>
        <? if (has_slot('head'))
            include_slot('head'); ?>
        <script src="/js/jquery-1.4.2.min.js" type="text/javascript"></script>
        <script src="/js/masks.js" type="text/javascript"></script>
        <link href="/css/mobile.css" media="screen" type="text/css" rel="stylesheet"/>
        <link href="/css/formTablelessMobile.css" media="screen" type="text/css" rel="stylesheet"/>
        <link href="/favicon.png" type="image/png" rel="apple-touch-icon" />
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=yes;" />
        <meta names="apple-mobile-web-app-status-bar-style" content="black" />

    </head>
    <body onload="setTimeout(function() { window.scrollTo(0, 1); }, 100)">
        <div id="header"><img src="/images/makeminyanmobile.png" /></div>
        <div id="wrapper"><?php 
echo $sf_content;
?>
</div>
    </body>
</html>
Example #18
0
include_component('user', 'menu');
?>
            <?php 
include_component('event', 'last', array('sf_cache_key' => 'event'));
?>
            <?php 
include_component('location', 'last', array('sf_cache_key' => 'location'));
?>
            <?php 
include_component('comment', 'last', array('sf_cache_key' => 'comment'));
?>
            <?php 
include_component('profit', 'last', array('sf_cache_key' => 'profit'));
?>
            <?php 
if (has_slot('extra')) {
    ?>
            <?php 
    include_slot('extra');
    ?>
            <?php 
}
?>
        </div>

        <div id="right_layout">
            <?php 
if ($sf_user->hasFlash('notice')) {
    ?>
            <div class="alert alert-success">
                <?php 
Example #19
0
<?php

if (has_slot('a-footer')) {
    ?>
  <?php 
    include_slot('a-footer');
} else {
    ?>
  <?php 
    a_slot('footer', 'aRichText', array("global" => true));
}
// Feel free to shut this off in app.yml or override the footer partial in your app
if (sfConfig::get('app_a_credit', true)) {
    ?>
<div class="a-attribution">Built with <a href="http://www.apostrophenow.com/">Apostrophe</a></div>
<?php 
}
    <?php 
// CANONICAL for _old-s
$router = sfRouting::getInstance();
$currentRouteName = $router->getCurrentRouteName();
if (preg_match("/^(.+)_old\$/", $currentRouteName, $uriParts)) {
    if (has_slot('canonical_link')) {
        include_slot('canonical_link');
    } else {
        $newRouteURI = $uriParts[1];
        if ($router->hasRouteName($newRouteURI)) {
            $currentParams = $this->getContext()->getRequest()->extractParameters(array('sort', 'page', 'type', 'id', 'slug'));
            echo '<link rel="canonical" href="' . rtrim($this->getContext()->getController()->genUrl('', true), '/') . $router->generate($newRouteURI, $currentParams) . '" />';
        }
    }
}
if (has_slot('force_canonical')) {
    include_slot('force_canonical');
}
?>
    <meta name="viewport" content="width=device-width,initial-scale=1">

    <!-- HTML5 ✰ Boilerplate resetter -->
    <link rel="stylesheet" href="/css/reset.css" />

    <!-- 1140px Grid styles for IE -->
    <!--[if lte IE 9]><link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" /><![endif]-->

    <!-- The 1140px Grid - http://cssgrid.net/ -->
    <link rel="stylesheet" href="/css/1140.css" type="text/css" media="screen" />

    <!--css3-mediaqueries-js - http://code.google.com/p/css3-mediaqueries-js/ - Enables media queries in some unsupported browsers-->
Example #21
0
?>
</h2>
  	</div>
  	<div id="content">
      <div id="left">
        <?php 
echo $sf_content;
?>
      </div>

  	  <?php 
$menu = get_sympal_menu('primary');
?>
    	<div id="sidebar">
        <?php 
if (has_slot('sympal_right_sidebar')) {
    ?>
          <?php 
    echo get_slot('sympal_right_sidebar');
    ?>
        <?php 
}
?>

        <h2><?php 
echo __('Navigation');
?>
</h2>

        <?php 
if ($menu) {
Example #22
0
if (has_slot('title')) {
    ?>
              &#147;<?php 
    include_slot('title');
    ?>
&#148;
            <?php 
} else {
    ?>
              Questions and Answers!
            <?php 
}
?>
          </h1>
          <?php 
if (has_slot('subtitle')) {
    ?>
            <h4><?php 
    include_slot('subtitle');
    ?>
</h4>
          <?php 
}
?>
        </div>
      </div>
             
      <div id="bd" role="main"> 
        <div id="yui-main"> 
          <div class="yui-b">
            <div class="yui-g"> 
Example #23
0
?>
</li>
  <li<?php 
echo has_slot('menu_scripts_active') ? ' class="active"' : '';
?>
><?php 
echo link_to('Scripts', '@scripts_edit');
?>
</li>
  <li<?php 
echo has_slot('menu_logs_active') ? ' class="active"' : '';
?>
><?php 
echo link_to('Logs', '@logs');
?>
</li>
  <li<?php 
echo has_slot('menu_promo_active') ? ' class="active"' : '';
?>
><?php 
echo link_to('Promo Code', '@promo');
?>
</li>
  <li<?php 
echo has_slot('menu_type_template_active') ? ' class="active"' : '';
?>
><?php 
echo link_to('Type Template', '@type_template');
?>
</li>
</ul>
Example #24
0
<?php 
    include_slot('op_sidemenu');
    ?>
</div><!-- Left -->
<?php 
}
?>

<div id="Center">
<?php 
echo $sf_content;
?>
</div><!-- Center -->

<?php 
if (has_slot('op_bottom')) {
    ?>
<div id="Bottom">
<?php 
    include_slot('op_bottom');
    ?>
</div><!-- Bottom -->
<?php 
}
?>

</div><!-- Layout -->

<div id="sideBanner">
<?php 
include_component('default', 'sideBannerGadgets');
Example #25
0
<?php 
end_slot();
?>

<?php 
slot('project_name');
echo $decision->name;
end_slot();
?>

<?php 
slot('app_menu');
?>
<ul id="menu" class="nav nav-pills small">
  <li<?php 
echo has_slot('menu_alternative_active') ? ' class="active"' : ($sf_request->hasParameter('decision_id') ? '' : ' class="disabled"');
?>
>
    <a id="menu-link-response" href="<?php 
echo $sf_request->hasParameter('decision_id') ? url_for('@response?decision_id=' . $sf_request->getParameter('decision_id')) : 'javascript:void(0)';
?>
"><i class="fa fa fa-comment-o"></i> Responses</a>
  </li>
</ul>
<?php 
end_slot();
?>

<?php 
slot('app_toolbar');
?>
Example #26
0
	    jQuery(document).ready( function() {
	    	//jQuery(".tooltip").tooltip();
	      <?php 
if (has_component_slot('no_domain_user')) {
    ?>
    		<?php 
    include_component_slot('no_domain_user');
    ?>
    	<?php 
}
?>
	      <?php 
include_partial('global/js_init_general.js');
?>
	      <?php 
if (has_slot('js_document_ready')) {
    ?>
	        <?php 
    include_slot('js_document_ready');
    ?>
	      <?php 
}
?>
	    });

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-24814204-1']);
      _gaq.push(['_setDomainName', 'spreadly.com']);
      _gaq.push(['_setAllowHash', 'false']);
      _gaq.push(['_trackPageview']);
Example #27
0
<?php

use_helper('I18N');
if (has_slot('sf_apply_login')) {
    ?>
  <?php 
    include_slot('sf_apply_login');
} else {
    ?>
  <?php 
    if ($loggedIn) {
        ?>
    <?php 
        include_partial('sfApply/logoutPrompt');
        ?>
  <?php 
    } else {
        ?>
    <?php 
        include_partial('sfApply/loginPrompt', array("form" => $form));
        ?>
  <?php 
    }
}
Example #28
0
include_http_metas();
include_metas();
?>

<?php 
if (has_slot('title')) {
    ?>
<title><?php 
    include_slot('title');
    ?>
 - Exchange</title>
<?php 
} else {
    include_title();
}
if (has_slot('rss')) {
    include_slot('rss');
}
?>
</head>
<body>
<div class="header">
	<a href="/"><img src="/images/logo.png" alt="<?php 
echo Tools::get('name');
?>
" /></a>
	<div class="right">
		<?php 
$searchForm = new SearchForm();
?>
		<form method="post" action="/home/search">
Example #29
0
?>
          </div>
          <!--content ends-->
          
          <?php 
include_partial('global/sidebar');
?>

        </div>
        <!--main ends-->
        
        <?php 
include_partial('global/header');
?>
        <?php 
include_partial('global/footer');
?>
        
      </div>
    </div>
  </div>
  <!--wrapper ends-->
  <?php 
if (has_slot('popup')) {
    include_slot('popup');
}
?>
</body>
</html>

Example #30
0
if (!has_slot('sf_plop_admin') && $sf_user->isAuthenticated()) {
    ?>
    <?php 
    slot('sf_plop_admin');
    ?>
      <?php 
    include_partial('sfPlopCMS/toolbarCommon');
    ?>
    <?php 
    end_slot();
    ?>
  <?php 
}
?>
  <?php 
if (has_slot('sf_plop_admin')) {
    ?>
    <<?php 
    echo html5Tag('header');
    ?>
 class="w-toolbar">
      <?php 
    include_slot('sf_plop_admin');
    ?>
    </<?php 
    echo html5Tag('header');
    ?>
>
  <?php 
}
?>