示例#1
0
<?php

themes\add_asset('ckeditor.js', 'ckeditor', array(), 'footer');
themes\add_asset('jquery.js', 'ckeditor/adapters', array(), 'footer');
themes\add_asset('mwi_ckeditor.js', 'ckeditor', array('scripts'), 'footer');
?>

@if(isset($news))
<div style="margin-top:30px;" class="row">
    <div class="span12">
        {{ Form::open(URL::base().'/'.ADM_URI.'/splashscreen/flash_news/'.$news->id, 'PUT', array('class' => 'form-horizontal')) }}
        <div style="display:none">
        {{ Form::token() }}
        </div>
        <div class="draggable-field ui-sortable">
            <div class="control-group {{ $errors->has('name') ? 'error' : '' }}">
                <label class="control-label" for="name">{{ Lang::line('splashscreen::flashnews.Title')->get(ADM_LANG) }}</label>
                <div class="controls">
                    {{ Form::text('name', $news->title) }}
                    <span class="required-icon"></span>
                    @if(isset($errors) and $errors->has('name'))
                    <span class="help-inline">{{ $errors->first('name') }}</span>
                    @endif
                </div>
            </div>

            <div class="control-group {{ $errors->has('slug') ? 'error' : '' }}">
              <label class="control-label" for="slug">{{ Lang::line('splashscreen::lang.Handler')->get(ADM_LANG) }}</label>
              <div class="controls">
                <a class="btn" href="{{ URL::base()}}/flash_news/{{$news->slug}}">{{ URL::base()}}/flash_news/{{$news->slug}}</a>
              </div>
示例#2
0
<?php

themes\add_asset('field_order.js', 'mod: splashscreen/js', array(), 'footer');
?>
@if(isset($settings))
<div class="row">
    <div style="margin-top:15px;" class="span12">

        {{ Form::open(URL::base().'/'.ADM_URI.'/'.'splashscreen', 'PUT', array('class' => 'form-horizontal')) }}
        <div style="display:none">
            {{ Form::token() }}
        </div>  

        <ul class="nav nav-tabs" id="myTab">
        @foreach($sections as $section)
        <li><a data-toggle="tab" href="#{{ $section }}">{{Str::title(str_replace('_', ' ', $section))}}</a></li>
        @endforeach
        </ul>
        
        <div class="tab-content" style="overflow:visible;">
            @foreach($sections as $section)
                
                <div class="tab-pane" id="{{ $section }}">
                    <div class="ui-sortable">
                        @foreach($this->data['settings'] as $module => $setting)
                            @if($setting->section == $section)
                                @if(isset($setting->type) and !empty($setting->type))
                                    @if($setting->type == 'hidden')
                                        {{ call_user_func("\Form::mwi_field", $setting) }}
                                    @else
                                         @if($setting->slug == 'splashscreen_slug' or $setting->slug == 'splashscreen_flash_news_handler')
示例#3
0
<?php

themes\add_asset('check_slug.js', 'mod: groups/js', array(), 'footer');
?>
<div style="margin-top:25px;" class="row">
    <div class="span12">
        {{Form::open( URL::base() .'/'.ADM_URI.'/groups/', 'POST', array('class' => 'form-horizontal'))}}
        <div style="display:none">
            {{Form::token()}}
        </div>
        <div class="form_inputs">

            <div class="control-group {{ $errors->has('name') ? 'error' : '' }}">
                <label for="name" class="control-label">{{ Lang::line('groups::lang.Name')->get(ADM_LANG) }}</label>
                <div class="controls">
                    {{ Form::text('name', Input::old('name', '')) }}
                    <span class="required-icon"></span>
                    <span class="help-inline">{{ $errors->has('name') ? $errors->first('name') : '' }}</span>
                </div>
            </div>

            <div class="control-group {{ $errors->has('slug') ? 'error' : '' }}">
                <label for="slug" class="control-label">{{ Lang::line('groups::lang.Short Name')->get(ADM_LANG) }}</label>
                <div class="controls">
                    {{ Form::text('slug', Input::old('slug', '')) }}
                    <span class="required-icon"></span>
                    <span class="help-inline">{{ $errors->has('slug') ? $errors->first('slug') : '' }}</span>
                </div>
            </div>

             <div class="control-group {{ $errors->has('description') ? 'error' : '' }}">
示例#4
0
<?php

themes\add_asset('jquery.tagsinput.css', 'jquery', array(), 'header');
themes\add_asset('page-edit.css', 'mod: pages/css', array(), 'header');
?>

<?php 
themes\add_asset('codemirror.js', 'codemirror', array(), 'footer');
themes\add_asset('jquery.tagsinput.js', 'jquery', array(), 'footer');
themes\add_asset('form.js', 'mod: pages/css', array('scripts'), 'footer');
?>

<?php 
themes\add_asset('ckeditor.js', 'ckeditor', array(), 'footer');
themes\add_asset('jquery.js', 'ckeditor/adapters', array(), 'footer');
?>

<script type="text/javascript">

    var instance;

    function update_instance()
    {
        instance = CKEDITOR.currentInstance;
    }

    (function($) {
        $(function(){

            mwi.init_ckeditor = function(){
            $('textarea.wysiwyg-advanced').ckeditor({
示例#5
0
<?php

themes\add_asset('background-thumbnails.css', 'mod: splashscreen/css', array(), 'header');
themes\add_asset('jquery.form.js', 'mod: splashscreen/js', array('jquery'), 'footer');
?>



<div class="row">
    <div style="margin-top:15px;" class="span12">

        <ul class="nav nav-tabs" id="myTab">
            <li><a data-toggle="tab" href="#backgrounds">Loop Background Effect</a></li>
            <li><a data-toggle="tab" href="#daytimebkg">Day of Time Effect</a></li>
            <li><a data-toggle="tab" href="#logo">Logo</a></li>
        </ul>

        <div class="tab-content" style="overflow:visible;">

            <div class="tab-pane" id="backgrounds">

                <div style="margin:20px" class="offset5">
                    <h3>Upload the images that will be used by the loop background effect here.</h3>
                    <p> When using the "Loop Background" option, all images here will be looping on the splash screen, you can also set the time between each image in the settings section.</p>
                </div>
                <div>
                <div style="margin:20px" class="offset5">
                    {{ Form::open_for_files(URL::base().'/'.ADM_URI.'/'.'splashscreen/images_backgrounds', 'POST', array('class' => 'form-horizontal background')) }}
                    <div style="display:none">
                        {{ Form::token() }}
                        {{ Form::hidden('action', 'background') }}
示例#6
0
<?php 
themes\add_asset('index.css', 'mod: pages/css');
?>

<?php 
themes\add_asset('jquery.cooki.js', 'jquery', array('jquery'), 'footer');
themes\add_asset('jquery.colorbox.js', 'jquery', array('jquery'), 'footer');
themes\add_asset('jquery.ui.nestedSortable.js', 'jquery', array(), 'footer');
themes\add_asset('jquery.stickyscroll.js', 'jquery', array(), 'footer');
themes\add_asset('index.js', 'mod: pages/js', array('scripts'), 'footer');
?>

<div class="row">
<div class="span6">
    <br />
    
    <div class="">
        <div id="page-list">
            <ul class="sortable ui-sortable">
                {{ \Ioc::resolve('Menu')->make($pages, '', 'pages::partials.menu_li') }}
            </ul>
        </div>
    </div>
</div>

<div class="span6">

    <br />
    
    <div class="" >
示例#7
0
<?php

themes\add_asset('news.js', 'mod: splashscreen/js', array('scripts'), 'footer');
themes\add_asset('jquery.colorbox.js', 'jquery', array('jquery'), 'footer');
?>

<div id="flash-news-container">
@if(isset($news) and !empty($news))
<div class="offset4">{{ $pagination->links() }}</div>
{{ Form::open( URL::base().'/'.ADM_URI.'/splashscreen/flash_news/0', 'DELETE') }}
    <div style="display:none">
        {{Form::token()}}
    </div>   
    <div class="item">

        <table class="table table-bordered" border="0">
            <thead>
                <tr>
                    <th width="2%"><input name="action_to_all" value="" class="check-all" type="checkbox"></th>
                    <th>{{ __('splashscreen::flashnews.Title')->get(ADM_LANG) }}</th>
                    <th width="8%">{{ __('splashscreen::flashnews.Status')->get(ADM_LANG) }}</th>
                    <th width="15%">{{ __('splashscreen::flashnews.Date')->get(ADM_LANG) }}</th>
                    <th width="12%"></th>
                </tr>
            </thead>
            <tbody class="flash-news-container">
            @foreach($news as $the_news)
                <tr id="flash-news-row-{{$the_news->id}}">
                    <td>
                        <input name="action_to[]" value="{{ $the_news->id }}" type="checkbox">
                    </td>
示例#8
0
<?php

themes\add_asset('settings.js', 'mod: email/js', array(), 'footer');
?>

<div class="row">
    <div class="span12">
        {{ Form::open( URL::base().'/'.ADM_URI .'/email', 'PUT', array('class' => 'form-horizontal')) }}
            <div style="display:none">
                {{ Form::token() }}
            </div>

            <div class="draggable-fields" id="main">
                @foreach($this->data['setting_section'] as $module => $setting)
                    @if(isset($setting->type) and !empty($setting->type))
                        <div class="{{ $setting->class }} control-group {{ $errors->has($setting->slug) ? 'error' : '' }}">
                            <label for="name" class="control-label">{{ __('email::lang.'.$setting->title)->get(ADM_LANG) }}</label>
                            <div class="controls">
                            @if($setting->type == 'select')
                            {{ call_user_func("Form::select", $setting->slug, json_decode($setting->options, true), Input::old($setting->slug, $setting->value) , array('id' => $setting->slug, 'class' => $setting->class)) }}
                            @else
                            {{ call_user_func("Form::input", $setting->type, $setting->slug, $setting->value, array('id' => $setting->slug, 'class' => $setting->class)) }}
                                <span class="required-icon"></span>
                                @if(isset($errors) and $errors->has($setting->slug))
                                <span class="help-inline">{{ $errors->first($setting->slug) }}</span>
                                @endif
                            @endif
                            </div>
                        </div>
                    @endif
                @endforeach
示例#9
0
<?php

themes\add_asset('news.js', 'mod: splashscreen/js', array('scripts'), 'footer');
?>
@if(isset($news) and !empty($news))
<div class="offset4">{{ $pagination->links() }}</div>
{{ Form::open( URL::base().'/'.ADM_URI.'/splashscreen/flash_news/0', 'DELETE') }}
    <div style="display:none">
        {{Form::token()}}
    </div>   
    <div class="item">
        <div>
            <input type="text" value="" name="f_keywords">
            <a class="btn cancel" href="http://mwi.dev/admin/users">Reset</a>
        </div>
        <table class="table table-bordered" border="0">
            <thead>
                <tr>
                    <th width="2%"><input name="action_to_all" value="" class="check-all" type="checkbox"></th>
                    <th>{{ __('splashscreen::flashnews.Title')->get(ADM_LANG) }}</th>
                    <th width="8%">{{ __('splashscreen::flashnews.Status')->get(ADM_LANG) }}</th>
                    <th width="15%">{{ __('splashscreen::flashnews.Date')->get(ADM_LANG) }}</th>
                    <th width="12%"></th>
                </tr>
            </thead>
            <tbody>
            @foreach($news as $the_news)
                <tr id="flash-news-row-{{$the_news->id}}">
                    <td>
                        <input name="action_to[]" value="{{ $the_news->id }}" type="checkbox">
                    </td>
示例#10
0
<?php

themes\add_asset('registration.js', 'mod: registration/js', array(), 'footer');
?>

<div class="row">
    <div style="margin-top:15px;" class="span12">
    {{ Form::open(URL::base().'/'.ADM_URI.'/'.'registration', 'PUT', array('class' => 'form-horizontal')) }}
        <div style="display:none">
            {{ Form::token() }}
        </div>
            <div class="ui-sortable">
                @foreach($this->data['settings'] as $module => $setting)
                @if(isset($setting->type) and !empty($setting->type))
                    @if($setting->type == 'hidden')
                    {{ call_user_func("\Form::mwi_field", $setting) }}
                    @else
                        <div class="control-group {{ $errors->has($setting->slug) ? 'error' : '' }}">
                            <label for="{{ $setting->slug }}" class="control-label">{{ Lang::line('registration::lang.'.$setting->title)->get(ADM_LANG) }}</label>
                            <div class="controls">
                                {{ call_user_func("\Form::mwi_field", $setting) }}
                                @if($setting->type == 'text')
                                <span class="required-icon"></span>
                                @endif
                                <span class="help-inline">{{ $errors->has($setting->slug) ? $errors->first($setting->slug, '<small style="color:#dd3c10;">:message</small>') : Lang::line('registration::lang.'.$setting->description)->get(ADM_LANG) }}</span>
                                <span class="move-handle"></span>
                            </div>
                        </div>
                    @endif
                @endif
                @endforeach
示例#11
0
                            <option value="{{ $key }}" selected="selected">{{ $value }}</option>
                            @else
                            <option value="{{ $key }}">{{ $value }}</option>
                            @endif
                        @endforeach
                    </select>
                    @endif
                </form>
            
      </div>

    </div>
    <?php 
themes\add_asset('application.js', null, array(), 'footer');
?>
    <?php 
themes\add_asset('scripts.js', null, array(), 'footer');
?>
    <?php 
themes\add_asset('plugins.js', null, array(), 'footer');
?>
    {{ "\n".Asset::container('before_footer')->scripts() }}
    {{ "\n".Asset::container('footer')->scripts() }}
    {{ "\n".Asset::container('after_footer')->scripts() }}
    {{ "\n".Asset::container('before_modules_footer')->scripts() }}
    {{ "\n".Asset::container('modules_footer')->scripts() }}
    {{ "\n".Asset::container('after_modules_footer')->scripts() }}

  </body>
</html>
示例#12
0
<?php

themes\add_asset('region_filter.js', 'mod: opensim/js', array('scripts'), 'footer');
?>

<fieldset id="filters">
        <legend>Search</legend>
        <div class="span10 offset0">
        <form accept-charset="UTF-8" action="{{ URL::base().'/'.ADM_URI }}/opensim/regions" method="POST" class="form-inline">
            <div style="display:none">
                {{ Form::token() }}
            </div>  

            <input type="hidden" value="opensim" name="f_module">
            
            <ul style="float:left">
                <li style="float:left; margin:10px 5px">
                    <select name="search_by">
                        <option value="ownerName">Owner Name</option>
                        <option value="regionName">Region Name</option>
                    </select>
                </li>
                
                <li style="float:left; margin:10px 5px">
                    <input type="text" value="" name="search_for">
                </li>
                <li style="float:left; margin:10px 5px">
                    <a class="btn cancel" href="{{ URL::base().'/'.ADM_URI}}/opensim/regions">Reset</a>
                </li>
            </ul>
        </form>
示例#13
0
    <script src="{{ URL::base() }}/base/backend/assets/js/bootstrap-typeahead.js"></script>
    <script src="{{ URL::base() }}/base/backend/assets/js/application.js"></script>
    <!--<script src="{{ URL::base() }}/base/assets/js/bootbox.js"></script> -->

    <?php 
themes\add_asset('jquery-ui.min.js', 'jquery');
?>
    
    <?php 
themes\add_asset('jquery.colorbox.js', 'jquery', array(), 'page');
?>
    <?php 
themes\add_asset('scripts.js', null, array(), 'page');
?>
    <?php 
themes\add_asset('plugins.js', null, array(), 'page');
?>

    {{ Asset::scripts() }}
    {{ Asset::container('page')->scripts() }}

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="base/backend/assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="base/backend/assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="base/backend/assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="base/backend/assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="base/backend/assets/ico/apple-touch-icon-57-precomposed.png">
  </head>

  <body>
示例#14
0
<?php

themes\add_asset('permissions.js', 'mod: permissions/js', array('plugins'), 'footer');
?>
<div class="row">
    <div class="span12">
    {{Form::open(ADM_URI.'/permissions/'. $group_id, 'PUT', array('class' => 'form-horizontal', 'id' => 'edit-permissions'));}}
    <div style="display:none">
        {{ Form::hidden('group_id', $group_id ) }}
        {{Form::token()}}
    </div>
    <table class="table table-condensed">
        <thead>
            <tr>
                <th><input name="action_to_all" value="" id="check-all" class="check-all" title="{{__('permissions::lang.Check to grant FULL permissions to ALL MODULES for this group')->get(ADM_LANG)}}" type="checkbox">
                </th>
                <th>{{__('permissions::lang.Module')->get(ADM_LANG)}}</th>
                <th>{{__('permissions::lang.Roles')->get(ADM_LANG)}}</th>
            </tr>
        </thead>
        <tbody>
            @if(isset($permission_groups) and !empty($permission_groups))
                @foreach($permission_groups as $module_id => $permission)
            <tr>
                <td style="width: 30px">
                    <input name="modules[{{ $module_id }}]" value="{{ $module_id }}" id="{{ $module_id }}" class="select-row" title="{{__('permissions::lang.Check to give full access permission to the &quot;:group_title&quot; module for this group.', array('group_title' => $permission['name']))->get(ADM_LANG)}}" type="checkbox">
                </td>
                <td><label class="inline" for="">{{ $permission['name'] }}</label></td>
                <td>
                    @if(isset($permission['roles']) and !empty($permission['roles']))
                        @foreach($permission['roles'] as $role)
示例#15
0
<?php

themes\add_asset('navigation.css', 'mod: navigation/css', array(), 'header');
themes\add_asset('jquery.colorbox.js', 'jquery', array('jquery'), 'footer');
themes\add_asset('jquery.cooki.js', 'jquery', array(), 'footer');
themes\add_asset('jquery.ui.nestedSortable.js', 'jquery', array(), 'footer');
themes\add_asset('navigation.js', 'mod: navigation/js', array('scripts'), 'footer');
?>

@if(isset($navigation_groups) and !empty($navigation_groups))
    
    @foreach ($navigation_groups as $navigation)
    {{ View::make('navigation::backend.partials/groups/navigation_section', get_defined_vars())->with('navigation', $navigation) }}
    @endforeach

@else
    <div class="blank-slate">
        <p>{{ Lang::line('navigation::lang.There are no navigation groups')->get(ADM_LANG) }}</p>
    </div>
@endif
示例#16
0
<?php

themes\add_asset('jquery-ui.css', 'jquery', array(), 'header');
themes\add_asset('jquery.tagit.css', 'mod: settings/css', array(), 'header');
themes\add_asset('tagit.ui-zendesk.css', 'mod: settings/css', array(), 'header');
themes\add_asset('tag-it.js', 'mod: settings/js', array('scripts'), 'footer');
themes\add_asset('keywords.js', 'mod: settings/js', array('scripts'), 'footer');
?>
<style>
.controls ul {margin-left: 10px;}
</style>
<script>
    var keywords = {{ json_encode(explode(',', $keywords)) }};
</script>

<div class="row">
    <div style="margin-top:15px;" class="span12">
    {{ Form::open(URL::base().'/'.ADM_URI.'/'.'settings/keywords', 'PUT', array('class' => 'form-horizontal')) }}
        <div style="display:none">
            {{ Form::token() }}
        </div>
            <div class="ui-sortable">
                <div class="control-group {{ $errors->has('keywords') ? 'error' : '' }}">
                    <label for="keywords" class="control-label">{{ Lang::line('settings::lang.Application Keywords')->get(ADM_LANG) }}</label>
                    <div class="controls">
                       <input name="application_keywords" id="application_keywords" value="{{ $keywords }}">
                        
                        <span class="help-inline">{{ $errors->has('keywords') ? $errors->first('keywords', '<small style="color:#dd3c10;">:message</small>') : '' }}</span>
                    </div>
                </div>   
            </div>
示例#17
0
<?php

themes\add_asset('codemirror.css', 'codemirror', array(), 'page');
themes\add_asset('codemirror.js', 'codemirror', array('scripts'), 'before_footer');
?>

<?php 
themes\add_asset('xml.js', 'codemirror/mode/xml', array('codemirror'), 'before_footer');
themes\add_asset('javascript.js', 'codemirror/mode/javascript', array('codemirror'), 'before_footer');
themes\add_asset('css.js', 'codemirror/mode/css', array('codemirror'), 'before_footer');
themes\add_asset('markdown.js', 'codemirror/mode/markdown', array('codemirror'), 'before_footer');
themes\add_asset('htmlmixed.js', 'codemirror/mode/htmlmixed', array('codemirror'), 'before_footer');
?>

<div class="row">
    <div class="span12">
        {{ Form::open(URL::base().'/'.ADM_URI.'/themes/'.$theme_view->id, 'PUT') }}
            <div style="display:none">
            {{ Form::hidden('theme_id', $theme_view->id ) }}
            {{ Form::hidden('theme_slug', $theme_view->slug ) }}
            {{ Form::token() }}
            </div>
            <div>
                <div  id="page-layout-html">
                    <textarea name="layout_content" class="html_editor" id="html_editor"><?php 
echo $theme_view->layout_content;
?>
</textarea>
                </div>
            </div>