<div class="panel-heading">
	<span class="panel-title" data-icon="hdd-o">@lang('widgets::core.title.template')</span>
</div>
<div class="note note-info no-margin-b">
	<div class="row">
		<div class="col-sm-12">
			<strong>@lang('widgets::core.settings.template_parameters'): </strong>
			@foreach ($commentKeys as $param)
				{!! UI::label($param) !!}
			@endforeach
		</div>
	</div>
</div>

<?php 
$defaultTemplateButton = $widget->getDefaultFrontendTemplate() ? link_to_route('backend.widget.template', UI::hidden(trans('widgets::core.button.defaultTemplate'), ['sm', 'xs']), [$widget->id], ['data-icon' => 'desktop', 'class' => 'btn popup fancybox.iframe btn-default btn-labeled', 'id' => 'defaultTemplateButton']) : null;
?>

{!! view('widgets::snippet.snippet_select', [
'template' => $widget->template,
'default' => $defaultTemplateButton
]) !!}

<div class="panel-body">
	<div class="form-group form-inline">
		<label class="control-label col-xs-2">@lang('widgets::core.settings.header')</label>
		<div class="col-xs-10">
			{!! Form::text('settings[header]', $widget->getHeader(), ['class' => 'form-control', 'size' => 40]) !!}
		</div>
	</div>
</div>
Пример #2
0
		<div id="main-navbar-collapse" class="collapse navbar-collapse main-navbar-collapse">
			<div>
				<div class="right clearfix">
					<ul class="nav navbar-nav pull-right right-navbar-nav">
						<?php 
Observer::notify('view_navbar_menu');
?>
						<li>
							<?php 
echo HTML::anchor(Route::get('backend')->uri(array('controller' => 'system', 'action' => 'settings')), UI::icon('cogs fa-lg'));
?>
						</li>
						<li>
							<?php 
echo HTML::anchor(URL::base(TRUE), UI::hidden(__('View Site')), array('target' => 'blank', 'data-icon' => 'globe fa-lg text-info'));
?>
						</li>
						<?php 
if (Auth::is_logged_in()) {
    ?>
						<li class="dropdown user-menu">
							<a href="#" class="dropdown-toggle user-menu" data-toggle="dropdown">
								<?php 
    echo Auth::get_record()->gravatar(25);
    ?>
								<span><?php 
    echo Auth::get_username();
    ?>
</span>
							</a>
Пример #3
0
<div id="page-tree" class="panel">
	<div class="panel-heading">
		<?php 
if (Acl::check('page.add')) {
    ?>
		<?php 
    echo UI::button(UI::hidden(__('Add page')), array('class' => 'btn-default', 'href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'add')), 'icon' => UI::icon('plus'), 'data-hotkeys' => 'ctrl+a'));
    ?>
		<?php 
}
?>

		<?php 
if (Acl::check('page.sort')) {
    ?>
		<?php 
    echo UI::button(__('Reorder'), array('id' => 'pageMapReorderButton', 'class' => 'btn-primary btn-sm', 'icon' => UI::icon('sort'), 'data-hotkeys' => 'ctrl+s'));
    ?>
		<?php 
}
?>

		<div class="panel-heading-controls hidden-xs hidden-sm">
			<?php 
echo View::factory('page/blocks/search');
?>
		</div>
	</div>

	<table id="page-tree-header" class="table table-primary">
		<thead>
Пример #4
0
    ?>
: </strong>
				<?php 
    foreach ($params as $param) {
        ?>
				<?php 
        echo UI::label($param);
        ?>
				<?php 
    }
    ?>
			</div>
		</div>
	</div>
	<?php 
    echo View::factory('helper/snippet_select', array('template' => $widget->template, 'default' => $widget->default_template() ? UI::button(UI::hidden(__('Default template'), array('sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'widgets', 'action' => 'template', 'id' => $widget->id)), 'icon' => UI::icon('desktop'), 'id' => 'defaultTemplateButton', 'class' => 'popup fancybox.iframe btn-default')) : NULL));
    ?>
	
	
	<?php 
}
?>

	<?php 
if ($widget->use_caching() and ACL::check('widgets.cache')) {
    ?>
	<div class="panel-heading">
		<span class="panel-title" data-icon="hdd-o"><?php 
    echo __('Caching');
    ?>
</span>
Пример #5
0
	<div class="panel-heading">
		<?php 
    if (ACL::check('layout.add')) {
        ?>
		<?php 
        echo UI::button(UI::hidden(__('Add layout')), array('icon' => UI::icon('plus'), 'href' => Route::get('backend')->uri(array('controller' => 'layout', 'action' => 'add')), 'data-hotkeys' => 'ctrl+a', 'class' => 'btn-primary'));
        ?>
		<?php 
    }
    ?>

		<?php 
    if (ACL::check('layout.rebuild')) {
        ?>
		<?php 
        echo UI::button(UI::hidden(__('Rebuild blocks')), array('icon' => UI::icon('refresh'), 'class' => 'btn-inverse btn-xs', 'data-api-url' => 'layout.rebuild', 'data-method' => Request::POST));
        ?>
		<?php 
    }
    ?>
	</div>
	<?php 
} else {
    ?>
	<div class="alert alert-danger alert-dark no-margin-b">
		<?php 
    echo __('Folder :folder is not writable', array(':folder' => LAYOUTS_SYSPATH));
    ?>
	</div>
	<?php 
}
Пример #6
0
?>
				
				<div class="btn-group">
					<?php 
if (ACL::check('snippet.edit')) {
    ?>
					<?php 
    echo UI::button(UI::hidden(__('Edit snippet'), array('md', 'sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'snippet', 'action' => 'edit', 'id' => $template)), 'icon' => UI::icon('edit'), 'class' => 'popup fancybox.iframe btn-primary' . $hidden, 'id' => 'EditTemplateButton'));
    ?>
					<?php 
}
?>

					<?php 
if (ACL::check('snippet.add')) {
    ?>
					<?php 
    echo UI::button(UI::hidden(__('Add snippet'), array('md', 'sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'snippet', 'action' => 'add')), 'icon' => UI::icon('plus'), 'class' => 'popup fancybox.iframe btn-success', 'id' => 'AddTemplateButton'));
    ?>
					<?php 
}
?>

					<?php 
echo $default;
?>
				</div>
			</div>
		</div>
	</div>
</div>
Пример #7
0
}
?>
		
		<?php 
if ($datasource->has_access('document.remove')) {
    ?>
		<button type="button" data-action="remove" class="btn btn-warning action disabled" data-icon="trash-o" title="<?php 
    echo __('Remove');
    ?>
"></button>
		<?php 
}
?>
	</div>

	<div class="btn-group">
		<?php 
if ($datasource->has_access('document.create')) {
    ?>
		<?php 
    echo UI::button(UI::hidden(__('Create document')), array('href' => Route::get('datasources')->uri(array('controller' => 'document', 'directory' => $datasource->type(), 'action' => 'create')) . URL::query(array('ds_id' => $datasource->id())), 'icon' => UI::icon('plus'), 'data-hotkeys' => 'ctrl+a', 'class' => 'btn-primary'));
    ?>
		<?php 
}
?>
	</div>
	
	<?php 
Observer::notify('datasource.headline.actions', $datasource);
?>
</div>
Пример #8
0
<?php

echo UI::button(__('Save'), array('class' => 'btn-success btn-save btn-lg', 'icon' => UI::icon('retweet'), 'name' => 'continue', 'data-hotkeys' => 'ctrl+s'));
?>
&nbsp;&nbsp;
<?php 
echo UI::button(__('Save and Close'), array('class' => 'btn-save-close btn-default hidden-xs', 'icon' => UI::icon('check'), 'name' => 'commit', 'data-hotkeys' => 'ctrl+shift+s'));
?>
&nbsp;&nbsp;&nbsp;&nbsp;

<?php 
echo HTML::anchor($uri, UI::hidden(__('Cancel')), array('data-icon' => 'ban', 'class' => 'btn btn-close btn-sm btn-outline'));