~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to theme/default/html/layout_designer.php

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Xibo - Digital Signage - http://www.xibo.org.uk
4
 
 * Copyright (C) 2006-2013 Daniel Garner
5
 
 *
6
 
 * This file is part of Xibo.
7
 
 *
8
 
 * Xibo is free software: you can redistribute it and/or modify
9
 
 * it under the terms of the GNU Affero General Public License as published by
10
 
 * the Free Software Foundation, either version 3 of the License, or
11
 
 * any later version. 
12
 
 *
13
 
 * Xibo is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU Affero General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Affero General Public License
19
 
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
20
 
 *
21
 
 * Theme variables:
22
 
 *      layout_form_edit_url = Layout Edit form URL
23
 
 *      layout_form_edit_background_url = Layout Background edit form URL
24
 
 *      layout_form_schedulenow_url = Layout Schedule Now URL
25
 
 *      layout = Layout Name
26
 
 *      jumplist_id = The ID of the Jump List
27
 
 *      jumplist_form_meta = Form META required to show the jump list
28
 
 *      jumplist_pager = The Paging Control on the Jump List
29
 
 *      jumplist_filter_pinned = Whether the Jump List filter form is pinned
30
 
 *      jumplist_list_pinned = Whether the Jump List filter form is pinned
31
 
 *      jumplist_arrow_direction = The Arrow for the List popout
32
 
 *      jumplist_filter_name = The jump list filter name
33
 
 */
34
 
use Xibo\Helper\Theme;
35
 
 
36
 
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
37
 
?>
38
 
<div class="pull-right">
39
 
        <select id="layoutJumpList" data-live-search="true">
40
 
                <?php foreach(Theme::Get('layouts') as $layout) { /* @var \Xibo\Entity\Layout $layout */ ?>
41
 
                <option value="<?php echo $layout->layoutId; ?>"<?php echo ($layout->layoutId == Theme::Get('layoutId') ? ' selected' : ''); ?>><?php echo $layout->layout; ?></option>
42
 
                <?php } ?>
43
 
        </select>
44
 
</div>
45
 
<div class="row">
46
 
        <div class="col-md-2">
47
 
                <div class="btn-group">
48
 
                        <button class="btn dropdown-toggle" data-toggle="dropdown">
49
 
                                <?php echo Theme::Translate('Options'); ?>
50
 
                                <span class="caret"></span>
51
 
                        </button>
52
 
                        <ul class="dropdown-menu">
53
 
                                <li><a class="XiboAjaxSubmit" href="<?php echo Theme::Get('layout_form_addregion_url'); ?>" title="<?php echo Theme::Translate('Add Region'); ?>"><span><?php echo Theme::Translate('Add Region'); ?></span></a></li>
54
 
                                <li><a class="XiboFormButton" href="<?php echo Theme::Get('layout_form_edit_url'); ?>" title="<?php echo Theme::Translate('Edit the Layout Properties'); ?>"><span><?php echo Theme::Translate('Background Properties'); ?></span></a></li>
55
 
                                <li class="divider"></li>
56
 
                <li><a href="<?php echo Theme::Get('layout_form_preview_url'); ?>" title="<?php echo Theme::Translate('Preview Layout'); ?>" target="_blank"><span><?php echo Theme::Translate('Preview Layout'); ?></span></a></li>
57
 
                                <li><a class="XiboFormButton" href="<?php echo Theme::Get('layout_form_schedulenow_url'); ?>" title="<?php echo Theme::Translate('Schedule Now'); ?>"><span><?php echo Theme::Translate('Schedule Now'); ?></span></a></li>
58
 
                                <li><a class="XiboFormButton" href="<?php echo Theme::Get('layout_form_savetemplate_url'); ?>" title="<?php echo Theme::Translate('Save Template'); ?>"><span><?php echo Theme::Translate('Save Template'); ?></span></a></li>
59
 
                                <?php if (Theme::Get('layoutVersion') >= 2) { ?>
60
 
                                <li class="divider"></li>
61
 
                                <li><a href="<?php echo Theme::Get('layout_zoom_in_url'); ?>"><span><?php echo Theme::Translate('Shrink Designer'); ?></span></a></li>
62
 
                                <li><a href="<?php echo Theme::Get('layout_zoom_out_url'); ?>"><span><?php echo Theme::Translate('Enlarge Designer'); ?></span></a></li>
63
 
                                <?php } else { ?>
64
 
                                <li class="divider"></li>
65
 
                                <li><a class="XiboFormButton" href="<?php echo Theme::Get('layout_upgrade_url'); ?>"><span><?php echo Theme::Translate('Upgrade Layout'); ?></span></a></li>
66
 
                                <?php } ?>
67
 
                        </ul>
68
 
                </div>
69
 
        </div>
70
 
        <div class="col-md-5">
71
 
                <h4><?php echo Theme::Translate('Layout Design'); ?> - <?php echo Theme::Get('layout'); ?></h4>
72
 
        </div>
73
 
        <div class="col-md-1 layout-status">
74
 
        </div>
75
 
        <div class="col-md-2 layout-meta">
76
 
        </div>
77
 
</div>
78
 
<div class="row">
79
 
        <div class="col-md-12">
80
 
                <?php echo Theme::Get('layout_designer_editor'); ?>
81
 
        </div>
82
 
</div>
83
 
<?php if (Theme::Get('layoutVersion') < 2) { ?>
84
 
<div class="row">
85
 
        <div class="col-md-offset-1 col-md-5">
86
 
                <p class="alert alert-danger"><?php echo Theme::Translate('This is an old format layout, please consider upgrading using the options menu'); ?></p>
87
 
        </div>
88
 
</div>
89
 
<?php } ?>
90
 
<?php if (Theme::Get('designerScale') < 0.41) { ?>
91
 
<div class="row">
92
 
        <div class="col-md-offset-1 col-md-5">
93
 
                <p class="alert alert-danger"><?php echo Theme::Translate('This Layout is very large, so we have disabled region drag and drop. You could enlarge the designer from the options menu or use Region Options to Manually Position your regions.'); ?></p>
94
 
        </div>
95
 
</div>
96
 
<?php } ?>