# Copyright (c) 2007-2009 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: Base.pm,v 1.24 2011/03/27 18:09:46 nagler Exp $ package Bivio::PetShop::View::Base; use strict; use Bivio::Base 'View.ThreePartPage'; use Bivio::UI::ViewLanguageAUTOLOAD; our($VERSION) = sprintf('%d.%02d', q$Revision: 1.24 $ =~ /\d+/g); sub internal_xhtml_adorned { my($self) = shift; my(@res) = $self->SUPER::internal_xhtml_adorned(@_); view_unsafe_put( xhtml_dock_left => [sub { return vs_text_as_prose('xhtml_dock_left_standard'); }], xhtml_dock_center => Link(String('PetShop'), 'SITE_ROOT'), xhtml_header_center => IfWiki( '/StartPage', WikiText('@h2 inline WikiText btest'), IfWiki( '/WikiValidator_NOT_OK', WikiText('@invalidwikitag'), ), ), xhtml_footer_center => MobileToggler(), xhtml_head_tags => MobileDetector(), xhtml_footer_left => Join([ XLink('back_to_top'), IfMobile( '', DIV_pet_task_info(TaskInfo({})), ), ]), ); return @res; } 1;