예제 #1
0
파일: _footer.php 프로젝트: verenate/gri
<?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 
}
예제 #2
0
파일: homeTemplate.php 프로젝트: hashir/UoA
// Defining the <body> class
slot('a-body-class', 'a-home');
?>

<?php 
// Breadcrumb is removed for the home page template because it is redundant
slot('a-breadcrumb', '');
?>

<?php 
// Subnav is removed for the home page template because it is redundant
slot('a-subnav', '');
?>

<?php 
a_slot('home-banner', 'aSlideshow', array('width' => 960, 'height' => 300, 'resizeType' => 'c', 'flexHeight' => false, 'constraints' => array('minimum-width' => 960, 'minimum-height' => 300), 'arrows' => true, 'interval' => 8, 'random' => true, 'title' => false, 'description' => false, 'credit' => false, 'position' => true, 'transition' => 'crossfade', 'duration' => 500, 'itemTemplate' => 'homeBannerItem', 'allowed_variants' => array('autoplay', 'normal')));
?>

<?php 
include_partial('a/areaTemplate', array('name' => 'body', 'width' => 680));
?>

<?php 
include_partial('a/areaTemplate', array('name' => 'sidebar', 'width' => 240));
?>

<?php 
slot('a-footer');
?>
<div class='a-footer-wrapper clearfix'>
	<div class='a-footer clearfix'>
예제 #3
0
    ?>
    <?php 
} else {
    ?>
      <div id="a-header">
        <?php 
    if (has_slot('a-logo')) {
        ?>
          <?php 
        include_slot('a-logo');
        ?>
        <?php 
    } else {
        ?>
          <?php 
        a_slot("logo", 'aButton', array("global" => true, "width" => 360, "flexHeight" => true, "resizeType" => "s", "link" => "/", "defaultImage" => "/apostrophePlugin/images/cmstest-sample-logo.png"));
        ?>
        <?php 
    }
    ?>
      </div>
    <?php 
}
?>

    <?php 
// Perhaps we want some of this on non-CMS pages like 'reorganize' but we can't
?>
    <?php 
// spew PHP warnings, so fix that before you take away this if
?>
예제 #4
0
파일: _footer.php 프로젝트: hashir/UoA
<?php

use_helper('a');
?>

<?php 
$page = aTools::getCurrentNonAdminPage();
?>
	
<?php 
a_slot('footer', 'aRichText', array('global' => true, 'edit' => isset($page) && $sf_user->hasCredential('cms_admin') ? true : false));
?>

<?php 
// Feel free to shut these off in app.yml or override the footer partial in your app
if (sfConfig::get('app_a_credit', true)) {
    ?>
  <div class="a-attribution apostrophe">Built with <a href="http://www.apostrophenow.com/">Apostrophe</a></div>
<?php 
}
?>

<?php 
if (sfConfig::get('app_a_servergroveCredit', false)) {
    ?>
	<div class="a-attribution servergrove">
  	<?php 
    echo link_to(image_tag('/images/sg80x20_g.png'), 'https://secure.servergrove.com/clients/aff.php?aff=037', array('title' => 'Hosted by ServerGrove'));
    ?>
		<p class="a-help">Hosted by ServerGrove</p>
	</div>
예제 #5
0
<?php 
// If there are no slots, show some default text
if (!count($slots)) {
    ?>
	<h3>
		<?php 
    echo a_('Oops! You don\'t have anything in your media library.');
    ?>
<br/>
		<?php 
    echo a_('Do you want to <a href="#upload-images" class="a-add-media-toggle">add some media?</a>');
    ?>
	</h3>
<?php 
}
?>

<?php 
// Only display this area if there is content in it OR if the user is logged-in & admin.
// Note: The sandbox pages.yml fixtures pre-populate an 'en' RichText slot with the media message.
if (count($slots) || $sf_user->hasCredential('admin')) {
    ?>
	<?php 
    a_slot('body', 'aRichText', array('tool' => 'Main', 'slug' => '/admin/error-a-media', 'editLabel' => 'Edit Message'));
}
?>
</div>

<?php 
// This works with the default text supplied above and if the end-user adds the class of 'a-add-media-toggle' to anything in richtext
a_js_call('$(".a-add-media-toggle").click(function(event){ event.preventDefault(); $("#a-media-add").show(); });');
예제 #6
0
파일: layout.php 프로젝트: hashir/UoA
    include_slot('a-header');
    ?>
	    <?php 
} else {
    ?>
	        <?php 
    if (has_slot('a-logo')) {
        ?>
	          <?php 
        include_slot('a-logo');
        ?>
	        <?php 
    } else {
        ?>
	          <?php 
        a_slot('logo', 'aButton', array('edit' => isset($page) && $sf_user->hasCredential('cms_admin') ? true : false, 'defaultImage' => '/apostrophePlugin/images/asandbox-logo.png', 'link' => url_for('@homepage'), 'global' => true, 'width' => 360, 'flexHeight' => true, 'resizeType' => 's'));
        ?>
	        <?php 
    }
    ?>
	    <?php 
}
?>
  	</div>

		<?php 
if (has_slot('a-tabs')) {
    ?>
			<?php 
    include_slot('a-tabs');
    ?>