Revert "move theme specific files to theme dir"
This reverts commit e332d1074f
.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<div class="generic-content-wrapper-styled">
|
||||
<h1>{{$message}}</h1>
|
||||
</div>
|
@@ -1,519 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
{{if $notself}}
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<button id="connection-dropdown" class="btn btn-outline-secondary btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fa fa-cog"></i> {{$tools_label}}
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
|
||||
<a class="dropdown-item" href="{{$tools.view.url}}" title="{{$tools.view.title}}">{{$tools.view.label}}</a>
|
||||
<a class="dropdown-item" href="{{$tools.recent.url}}" title="{{$tools.recent.title}}">{{$tools.recent.label}}</a>
|
||||
{{if $tools.fetchvc}}
|
||||
<a class="dropdown-item" href="{{$tools.fetchvc.url}}" title="{{$tools.fetchvc.title}}">{{$tools.fetchvc.label}}</a>
|
||||
{{/if}}
|
||||
<a class="dropdown-item" href="#" title="{{$tools.refresh.title}}" onclick="window.location.href='{{$tools.refresh.url}}'; return false;">{{$tools.refresh.label}}</a>
|
||||
<a class="dropdown-item" href="#" title="{{$tools.rephoto.title}}" onclick="window.location.href='{{$tools.rephoto.url}}'; return false;">{{$tools.rephoto.label}}</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#" title="{{$tools.block.title}}" onclick="window.location.href='{{$tools.block.url}}'; return false;">{{$tools.block.label}}</a>
|
||||
<a class="dropdown-item" href="#" title="{{$tools.ignore.title}}" onclick="window.location.href='{{$tools.ignore.url}}'; return false;">{{$tools.ignore.label}}</a>
|
||||
<a class="dropdown-item" href="#" title="{{$tools.archive.title}}" onclick="window.location.href='{{$tools.archive.url}}'; return false;">{{$tools.archive.label}}</a> <a class="dropdown-item" href="#" title="{{$tools.hide.title}}" onclick="window.location.href='{{$tools.hide.url}}'; return false;">{{$tools.hide.label}}</a>
|
||||
<a class="dropdown-item" href="#" title="{{$tools.delete.title}}" onclick="window.location.href='{{$tools.delete.url}}'; return false;">{{$tools.delete.label}}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{if $abook_prev || $abook_next}}
|
||||
<div class="btn-group">
|
||||
<a href="connedit/{{$abook_prev}}{{if $section}}?f=§ion={{$section}}{{/if}}" class="btn btn-outline-secondary btn-sm{{if ! $abook_prev}} disabled{{/if}}" ><i class="fa fa-backward"></i></a>
|
||||
<div class="btn-group" >
|
||||
<button class="btn btn-outline-secondary btn-sm{{if $is_pending}} disabled{{/if}}" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-bars"></i></button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
|
||||
{{foreach $sections as $s}}
|
||||
<a class="dropdown-item" href="{{$s.url}}" title="{{$s.title}}">{{$s.label}}</a>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
||||
<a href="connedit/{{$abook_next}}{{if $section}}?f=§ion={{$section}}{{/if}}" class="btn btn-outline-secondary btn-sm{{if ! $abook_next}} disabled{{/if}}" ><i class="fa fa-forward"></i></a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<h2>{{$header}}</h2>
|
||||
</div>
|
||||
<div class="section-content-wrapper-np">
|
||||
{{if $notself}}
|
||||
{{foreach $tools as $tool}}
|
||||
{{if $tool.info}}
|
||||
<div class="section-content-danger-wrapper">
|
||||
<div>
|
||||
{{$tool.info}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
<div class="section-content-info-wrapper">
|
||||
<div>
|
||||
{{$addr_text}} <strong>'{{$addr}}'</strong>
|
||||
</div>
|
||||
{{if $locstr}}
|
||||
<div>
|
||||
{{$loc_text}} {{$locstr}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $last_update}}
|
||||
<div>
|
||||
{{$lastupdtext}} {{$last_update}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<form id="abook-edit-form" action="connedit/{{$contact_id}}" method="post" >
|
||||
|
||||
<input type="hidden" name="contact_id" value="{{$contact_id}}">
|
||||
<input type="hidden" name="section" value="{{$section}}">
|
||||
|
||||
<div class="panel-group" id="contact-edit-tools" role="tablist" aria-multiselectable="true">
|
||||
{{if $notself}}
|
||||
|
||||
{{if $is_pending}}
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="pending-tool">
|
||||
<h3>
|
||||
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#pending-tool-collapse" aria-expanded="true" aria-controls="pending-tool-collapse">
|
||||
{{$pending_label}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="pending-tool-collapse" class="panel-collapse collapse show" role="tabpanel" aria-labelledby="pending-tool">
|
||||
<div class="section-content-tools-wrapper">
|
||||
{{include file="field_checkbox.tpl" field=$unapproved}}
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if ! $is_pending}}
|
||||
<div id="template-form-vcard-org" class="form-group form-vcard-org">
|
||||
<div class="form-group form-vcard-org">
|
||||
<input type="text" name="org" value="" placeholder="{{$org_label}}">
|
||||
<i data-remove="vcard-org" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-title" class="form-group form-vcard-title">
|
||||
<div class="form-group form-vcard-title">
|
||||
<input type="text" name="title" value="" placeholder="{{$title_label}}">
|
||||
<i data-remove="vcard-title" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-tel" class="form-group form-vcard-tel">
|
||||
<select name="tel_type[]">
|
||||
<option value="CELL">{{$mobile}}</option>
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="tel[]" value="" placeholder="{{$tel_label}}">
|
||||
<i data-remove="vcard-tel" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-email" class="form-group form-vcard-email">
|
||||
<select name="email_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="email[]" value="" placeholder="{{$email_label}}">
|
||||
<i data-remove="vcard-email" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-impp" class="form-group form-vcard-impp">
|
||||
<select name="impp_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="impp[]" value="" placeholder="{{$impp_label}}">
|
||||
<i data-remove="vcard-impp" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-url" class="form-group form-vcard-url">
|
||||
<select name="url_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="url[]" value="" placeholder="{{$url_label}}">
|
||||
<i data-remove="vcard-url" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-adr" class="form-group form-vcard-adr">
|
||||
<div class="form-group">
|
||||
<select name="adr_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<label>{{$adr_label}}</label>
|
||||
<i data-remove="vcard-adr" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$po_box}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$extra}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$street}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$locality}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$region}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$zip_code}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$country}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-note" class="form-group form-vcard-note">
|
||||
<label>{{$note_label}}</label>
|
||||
<i data-remove="vcard-note" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
<textarea name="note" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="section-content-wrapper-np">
|
||||
<div id="vcard-cancel-{{$vcard.id}}" class="vcard-cancel vcard-cancel-btn" data-id="{{$vcard.id}}" data-action="cancel"><i class="fa fa-close"></i></div>
|
||||
<div id="vcard-add-field-{{$vcard.id}}" class="dropdown pull-right vcard-add-field">
|
||||
<button data-toggle="dropdown" type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle"><i class="fa fa-plus"></i> {{$add_field}}</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="add-vcard-org"{{if $vcard.org}} style="display: none"{{/if}}><a href="#" data-add="vcard-org" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$org_label}}</a></li>
|
||||
<li class="add-vcard-title"{{if $vcard.title}} style="display: none"{{/if}}><a href="#" data-add="vcard-title" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$title_label}}</a></li>
|
||||
<li class="add-vcard-tel"><a href="#" data-add="vcard-tel" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$tel_label}}</a></li>
|
||||
<li class="add-vcard-email"><a href="#" data-add="vcard-email" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$email_label}}</a></li>
|
||||
<li class="add-vcard-impp"><a href="#" data-add="vcard-impp" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$impp_label}}</a></li>
|
||||
<li class="add-vcard-url"><a href="#" data-add="vcard-url" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$url_label}}</a></li>
|
||||
<li class="add-vcard-adr"><a href="#" data-add="vcard-adr" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$adr_label}}</a></li>
|
||||
<li class="add-vcard-note"{{if $vcard.note}} style="display: none"{{/if}}><a href="#" data-add="vcard-note" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$note_label}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="vcard-header-{{$vcard.id}}" class="vcard-header" data-id="{{$vcard.id}}" data-action="open">
|
||||
<i class="vcard-fn-preview fa fa-address-card-o"></i>
|
||||
<span id="vcard-preview-{{$vcard.id}}" class="vcard-preview">
|
||||
{{if $vcard.fn}}<span class="vcard-fn-preview">{{$vcard.fn}}</span>{{/if}}
|
||||
{{if $vcard.emails.0.address}}<span class="vcard-email-preview d-none d-md-table-cell"><a href="mailto:{{$vcard.emails.0.address}}">{{$vcard.emails.0.address}}</a></span>{{/if}}
|
||||
{{if $vcard.tels.0}}<span class="vcard-tel-preview d-none d-md-table-cell">{{$vcard.tels.0.nr}}{{if $is_mobile}} <a class="btn btn-outline-secondary btn-sm" href="tel:{{$vcard.tels.0.nr}}"><i class="fa fa-phone connphone"></i></a>{{/if}}</span>{{/if}}
|
||||
</span>
|
||||
<input id="vcard-fn-{{$vcard.id}}" class="vcard-fn" type="text" name="fn" value="{{$vcard.fn}}" size="{{$vcard.fn|count_characters:true}}" placeholder="{{$name_label}}">
|
||||
</div>
|
||||
</div>
|
||||
<div id="vcard-info-{{$vcard.id}}" class="vcard-info section-content-wrapper">
|
||||
|
||||
<div class="vcard-org form-group">
|
||||
<div class="form-vcard-org-wrapper">
|
||||
{{if $vcard.org}}
|
||||
<div class="form-group form-vcard-org">
|
||||
<input type="text" name="org" value="{{$vcard.org}}" size="{{$vcard.org|count_characters:true}}" placeholder="{{$org_label}}">
|
||||
<i data-remove="vcard-org" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-title form-group">
|
||||
<div class="form-vcard-title-wrapper">
|
||||
{{if $vcard.title}}
|
||||
<div class="form-group form-vcard-title">
|
||||
<input type="text" name="title" value="{{$vcard.title}}" size="{{$vcard.title|count_characters:true}}" placeholder="{{$title_label}}">
|
||||
<i data-remove="vcard-title" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="vcard-tel form-group">
|
||||
<div class="form-vcard-tel-wrapper">
|
||||
{{if $vcard.tels}}
|
||||
{{foreach $vcard.tels as $tel}}
|
||||
<div class="form-group form-vcard-tel">
|
||||
<select name="tel_type[]">
|
||||
<option value=""{{if $tel.type.0 != 'CELL' && $tel.type.0 != 'HOME' && $tel.type.0 != 'WORK' && $tel.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$tel.type.1}}</option>
|
||||
<option value="CELL"{{if $tel.type.0 == 'CELL'}} selected="selected"{{/if}}>{{$mobile}}</option>
|
||||
<option value="HOME"{{if $tel.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $tel.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $tel.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="tel[]" value="{{$tel.nr}}" size="{{$tel.nr|count_characters:true}}" placeholder="{{$tel_label}}">
|
||||
<i data-remove="vcard-tel" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="vcard-email form-group">
|
||||
<div class="form-vcard-email-wrapper">
|
||||
{{if $vcard.emails}}
|
||||
{{foreach $vcard.emails as $email}}
|
||||
<div class="form-group form-vcard-email">
|
||||
<select name="email_type[]">
|
||||
<option value=""{{if $email.type.0 != 'HOME' && $email.type.0 != 'WORK' && $email.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$email.type.1}}</option>
|
||||
<option value="HOME"{{if $email.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $email.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $email.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="email[]" value="{{$email.address}}" size="{{$email.address|count_characters:true}}" placeholder="{{$email_label}}">
|
||||
<i data-remove="vcard-email" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-impp form-group">
|
||||
<div class="form-vcard-impp-wrapper">
|
||||
{{if $vcard.impps}}
|
||||
{{foreach $vcard.impps as $impp}}
|
||||
<div class="form-group form-vcard-impp">
|
||||
<select name="impp_type[]">
|
||||
<option value=""{{if $impp.type.0 != 'HOME' && $impp.type.0 != 'WORK' && $impp.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$impp.type.1}}</option>
|
||||
<option value="HOME"{{if $impp.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $impp.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $impp.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="impp[]" value="{{$impp.address}}" size="{{$impp.address|count_characters:true}}" placeholder="{{$impp_label}}">
|
||||
<i data-remove="vcard-impp" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-url form-group">
|
||||
<div class="form-vcard-url-wrapper">
|
||||
{{if $vcard.urls}}
|
||||
{{foreach $vcard.urls as $url}}
|
||||
<div class="form-group form-vcard-url">
|
||||
<select name="url_type[]">
|
||||
<option value=""{{if $url.type.0 != 'HOME' && $url.type.0 != 'WORK' && $url.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$url.type.1}}</option>
|
||||
<option value="HOME"{{if $url.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $url.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $url.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="url[]" value="{{$url.address}}" size="{{$url.address|count_characters:true}}" placeholder="{{$url_label}}">
|
||||
<i data-remove="vcard-url" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-adr form-group">
|
||||
<div class="form-vcard-adr-wrapper">
|
||||
{{if $vcard.adrs}}
|
||||
{{foreach $vcard.adrs as $adr}}
|
||||
<div class="form-group form-vcard-adr">
|
||||
<div class="form-group">
|
||||
<label>{{$adr_label}}</label>
|
||||
<select name="adr_type[]">
|
||||
<option value=""{{if $adr.type.0 != 'HOME' && $adr.type.0 != 'WORK' && $adr.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$adr.type.1}}</option>
|
||||
<option value="HOME"{{if $adr.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $adr.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $adr.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<i data-remove="vcard-adr" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.0}}" size="{{$adr.address.0|count_characters:true}}" placeholder="{{$po_box}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.1}}" size="{{$adr.address.1|count_characters:true}}" placeholder="{{$extra}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.2}}" size="{{$adr.address.2|count_characters:true}}" placeholder="{{$street}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.3}}" size="{{$adr.address.3|count_characters:true}}" placeholder="{{$locality}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.4}}" size="{{$adr.address.4|count_characters:true}}" placeholder="{{$region}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.5}}" size="{{$adr.address.5|count_characters:true}}" placeholder="{{$zip_code}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.6}}" size="{{$adr.address.6|count_characters:true}}" placeholder="{{$country}}">
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-note form-group form-vcard-note">
|
||||
<div class="form-vcard-note-wrapper">
|
||||
{{if $vcard.note}}
|
||||
<label>{{$note_label}}</label>
|
||||
<i data-remove="vcard-note" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
<textarea name="note" class="form-control">{{$vcard.note}}</textarea>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $affinity}}
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="affinity-tool">
|
||||
<h3>
|
||||
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#affinity-tool-collapse" aria-expanded="true" aria-controls="affinity-tool-collapse">
|
||||
{{$affinity}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="affinity-tool-collapse" class="panel-collapse collapse{{if $section == 'affinity'}} show{{/if}}" role="tabpanel" aria-labelledby="affinity-tool">
|
||||
<div class="section-content-tools-wrapper">
|
||||
{{if $slide}}
|
||||
<div class="form-group"><strong>{{$lbl_slider}}</strong></div>
|
||||
{{$slide}}
|
||||
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
|
||||
{{/if}}
|
||||
|
||||
{{if $multiprofs}}
|
||||
<div class="form-group">
|
||||
<strong>{{$lbl_vis2}}</strong>
|
||||
{{$profile_select}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $connfilter}}
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="fitert-tool">
|
||||
<h3>
|
||||
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#fitert-tool-collapse" aria-expanded="true" aria-controls="fitert-tool-collapse">
|
||||
{{$connfilter_label}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="fitert-tool-collapse" class="panel-collapse collapse{{if $section == 'filter' }} show{{/if}}" role="tabpanel" aria-labelledby="fitert-tool">
|
||||
<div class="section-content-tools-wrapper">
|
||||
{{include file="field_textarea.tpl" field=$incl}}
|
||||
{{include file="field_textarea.tpl" field=$excl}}
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<input type="hidden" name="{{$incl.0}}" value="{{$incl.2}}" />
|
||||
<input type="hidden" name="{{$excl.0}}" value="{{$excl.2}}" />
|
||||
{{/if}}
|
||||
|
||||
{{if $rating}}
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="rating-tool">
|
||||
<h3>
|
||||
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#rating-tool-collapse" aria-expanded="true" aria-controls="rating-tool-collapse">
|
||||
{{$lbl_rating}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="rating-tool-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="rating-tool">
|
||||
<div class="section-content-tools-wrapper">
|
||||
<div class="section-content-warning-wrapper">
|
||||
{{$rating_info}}
|
||||
</div>
|
||||
<div class="form-group"><strong>{{$lbl_rating_label}}</strong></div>
|
||||
{{$rating}}
|
||||
{{include file="field_textarea.tpl" field=$rating_text}}
|
||||
<input id="contact-rating-mirror" type="hidden" name="rating" value="{{$rating_val}}" />
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{if ! $is_pending}}
|
||||
<div class="panel">
|
||||
{{if $notself}}
|
||||
<div class="section-subtitle-wrapper" role="tab" id="perms-tool">
|
||||
<h3>
|
||||
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#perms-tool-collapse" aria-expanded="true" aria-controls="perms-tool-collapse">
|
||||
{{$permlbl}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div id="perms-tool-collapse" class="panel-collapse collapse{{if $self || $section === 'perms'}} show{{/if}}" role="tabpanel" aria-labelledby="perms-tool">
|
||||
<div class="section-content-tools-wrapper">
|
||||
<div class="section-content-warning-wrapper">
|
||||
{{if $notself}}{{$permnote}}{{/if}}
|
||||
{{if $self}}{{$permnote_self}}{{/if}}
|
||||
</div>
|
||||
|
||||
{{if $permcat_enable}}
|
||||
<div class="loading-role-rotator"></div>
|
||||
<a href="settings/permcats" class="pull-right"><i class="fa fa-plus"></i> {{$permcat_new}}</a>
|
||||
{{include file="field_select.tpl" field=$permcat}}
|
||||
{{/if}}
|
||||
|
||||
<table id="perms-tool-table" class=form-group>
|
||||
<tr>
|
||||
<td></td>
|
||||
{{if $notself}}
|
||||
<td class="abook-them">{{$them}}</td>
|
||||
{{/if}}
|
||||
<td colspan="2" class="abook-me">{{$me}}</td>
|
||||
</tr>
|
||||
{{foreach $perms as $prm}}
|
||||
{{include file="field_acheckbox.tpl" field=$prm}}
|
||||
{{/foreach}}
|
||||
</table>
|
||||
|
||||
{{if $self}}
|
||||
<div>
|
||||
<div class="section-content-info-wrapper">
|
||||
{{$autolbl}}
|
||||
</div>
|
||||
{{include file="field_checkbox.tpl" field=$autoperms}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
@@ -1,9 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<p>{{$newmembertext}}</p>
|
||||
|
||||
{{if $profilebadge}}<div id="profile-badge" class="badges"><img src="images/emoticons/smiley-thumbsup.gif"></div>{{/if}}
|
||||
{{if $contactbadge}}<div id="contact-badge" class="badges"><img src="images/emoticons/smiley-thumbsup.gif"></div>{{/if}}
|
||||
{{if $keywordsbadge}}<div id="keywords-badge" class="badges"><img src="images/emoticons/smiley-thumbsup.gif"></div>{{/if}}
|
||||
{{if $channelsbadge}}<div id="channels-badge" class="badges"><img src="images/emoticons/smiley-thumbsup.gif"></div>{{/if}}
|
||||
|
||||
</div>
|
@@ -1,64 +0,0 @@
|
||||
<form>
|
||||
<div class="modal" id="aclModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">
|
||||
<i id="dialog-perms-icon" class="fa fa-fw"></i> {{$aclModalTitle}}
|
||||
{{if $helpUrl}}
|
||||
<a target="hubzilla-help" href="{{$helpUrl}}" class="contextual-help-tool" title="Help and documentation"><i class="fa fa-fw fa-question"></i></a>
|
||||
{{/if}}
|
||||
</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="section-content-wrapper">
|
||||
{{if $aclModalDesc}}
|
||||
<div id="acl-dialog-description" class="section-content-info-wrapper">{{$aclModalDesc}}</div>
|
||||
{{/if}}
|
||||
<label for="acl-select">{{$select_label}}</label>
|
||||
<select id="acl-select" name="optionsRadios" class="form-control form-group">
|
||||
<option id="acl-showall" value="public" {{$public_selected}}>{{$showall}}</option>
|
||||
{{$groups}}
|
||||
<option id="acl-onlyme" value="onlyme" {{$justme_selected}}>{{$onlyme}}</option>
|
||||
<option id="acl-custom" value="custom" {{$custom_selected}}>{{$custom}}</option>
|
||||
</select>
|
||||
|
||||
{{if $showallOrigin}}
|
||||
<div id="acl-info" class="form-group">
|
||||
<i class="fa fa-info-circle"></i> {{$showallOrigin}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div id="acl-wrapper">
|
||||
<div id="acl-list">
|
||||
<input class="form-control" type="text" id="acl-search" placeholder=" {{$search}}">
|
||||
<small class="text-muted">{{$showlimitedDesc}}</small>
|
||||
<div id="acl-list-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="acl-list-item" rel="acl-template" style="display:none">
|
||||
<div class="acl-item-header">
|
||||
<img class="menu-img-1" data-src="{0}"> {1}
|
||||
</div>
|
||||
<button class="acl-button-hide btn btn-sm btn-outline-danger"><i class="fa fa-times"></i> {{$hide}}</button>
|
||||
<button class="acl-button-show btn btn-sm btn-outline-success"><i class="fa fa-check"></i> {{$show}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer clear">
|
||||
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{$aclModalDismiss}}</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</form>
|
||||
<script>
|
||||
// compatibility issue with bootstrap v4
|
||||
//$('[data-toggle="popover"]').popover(); // Init the popover, if present
|
||||
|
||||
if(typeof acl=="undefined"){
|
||||
acl = new ACL(
|
||||
baseurl+"/acl"
|
||||
);
|
||||
}
|
||||
</script>
|
@@ -1,23 +0,0 @@
|
||||
<h2>{{$title}}</h2>
|
||||
|
||||
<h3>{{$account.account_email}}</h3>
|
||||
|
||||
|
||||
<form action="admin/account_edit/{{$account.account_id}}" method="post" >
|
||||
<input type="hidden" name="aid" value="{{$account.account_id}}" />
|
||||
|
||||
{{include file="field_password.tpl" field=$pass1}}
|
||||
{{include file="field_password.tpl" field=$pass2}}
|
||||
|
||||
{{if $z_server_role == 'pro'}}
|
||||
{{include file="field_select.tpl" field=$account_level}}
|
||||
{{else}}
|
||||
<input type="hidden" name="account_level" value="{{$account_level.2}}" />
|
||||
{{/if}}
|
||||
{{include file="field_select.tpl" field=$account_language}}
|
||||
{{include file="field_input.tpl" field=$service_class}}
|
||||
|
||||
|
||||
<input type="submit" name="submit" value="{{$submit}}" />
|
||||
|
||||
</form>
|
@@ -1,88 +0,0 @@
|
||||
<script>
|
||||
function confirm_delete(uname){
|
||||
return confirm( "{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
function confirm_delete_multi(){
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
function toggle_selectall(cls){
|
||||
$("."+cls).prop("checked", !$("."+cls).prop("checked"));
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div class="generic-content-wrapper-styled" id="adminpage">
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/accounts" method="post">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
|
||||
<h3>{{$h_pending}}</h3>
|
||||
{{if $pending}}
|
||||
<table id="pending">
|
||||
<thead>
|
||||
<tr>
|
||||
{{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $pending as $u}}
|
||||
<tr>
|
||||
<td class="created">{{$u.account_created}}</td>
|
||||
<td class="email">{{$u.account_email}}</td>
|
||||
<td class="checkbox_bulkedit"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}"></td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" class="btn btn-outline-secondary btn-sm" title="{{$approve}}"><i class="fa fa-thumbs-o-up admin-icons"></i></a>
|
||||
<a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" class="btn btn-outline-secondary btn-sm" title="{{$deny}}"><i class="fa fa-thumbs-o-down admin-icons"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="selectall"><a href="#" onclick="return toggle_selectall('pending_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"> <input type="submit" name="page_users_approve" value="{{$approve}}"></div>
|
||||
{{else}}
|
||||
<p>{{$no_pending}}</p>
|
||||
{{/if}}
|
||||
|
||||
|
||||
<h3>{{$h_users}}</h3>
|
||||
{{if $users}}
|
||||
<table id="users">
|
||||
<thead>
|
||||
<tr>
|
||||
{{foreach $th_users as $th}}<th><a href="{{$base}}&key={{$th.1}}&dir={{$odir}}">{{$th.0}}</a></th>{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $users as $u}}
|
||||
<tr>
|
||||
<td class="account_id">{{$u.account_id}}</td>
|
||||
<td class="email">{{if $u.blocked}}
|
||||
<a href="admin/account_edit/{{$u.account_id}}"><i>{{$u.account_email}}</i></a>
|
||||
{{else}}
|
||||
<a href="admin/account_edit/{{$u.account_id}}"><strong>{{$u.account_email}}</strong></a>
|
||||
{{/if}}</td>
|
||||
<td class="channels">{{$u.channels}}</td>
|
||||
<td class="register_date">{{$u.account_created}}</td>
|
||||
<td class="login_date">{{$u.account_lastlog}}</td>
|
||||
<td class="account_expires">{{$u.account_expires}}</td>
|
||||
<td class="service_class">{{$u.account_service_class}}</td>
|
||||
<td class="checkbox_bulkedit"><input type="checkbox" class="users_ckbx" id="id_user_{{$u.account_id}}" name="user[]" value="{{$u.account_id}}"><input type="hidden" name="blocked[]" value="{{$u.blocked}}"></td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/admin/accounts/{{if ($u.blocked)}}un{{/if}}block/{{$u.account_id}}?t={{$form_security_token}}" class="btn btn-outline-secondary btn-sm" title='{{if ($u.blocked)}}{{$unblock}}{{else}}{{$block}}{{/if}}'><i class="fa fa-ban admin-icons{{if ($u.blocked)}} dim{{/if}}"></i></a><a href="{{$baseurl}}/admin/accounts/delete/{{$u.account_id}}?t={{$form_security_token}}" class="btn btn-outline-secondary btn-sm" title='{{$delete}}' onclick="return confirm_delete('{{$u.name}}')"><i class="fa fa-trash-o admin-icons"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="selectall"><a href="#" onclick="return toggle_selectall('users_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit"><input type="submit" name="page_users_block" value="{{$block}}/{{$unblock}}"> <input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"></div>
|
||||
{{else}}
|
||||
NO USERS?!?
|
||||
{{/if}}
|
||||
</form>
|
||||
</div>
|
@@ -1,46 +0,0 @@
|
||||
<script>
|
||||
// update pending count //
|
||||
$(function(){
|
||||
|
||||
$("nav").bind('nav-update', function(e,data){
|
||||
var elm = $('#pending-update');
|
||||
var register = $(data).find('register').text();
|
||||
if (register=="0") { register=""; elm.hide();} else { elm.show(); }
|
||||
elm.html(register);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="widget">
|
||||
<h3>{{$admtxt}}</h3>
|
||||
<ul class="nav nav-pills flex-column">
|
||||
{{foreach $admin as $link}}
|
||||
<li class="nav-item"><a class="nav-link" href='{{$link.0}}'>{{$link.1}}{{if $link.3}}<span id='{{$link.3}}' title='{{$link.4}}'></span>{{/if}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{if $admin.update}}
|
||||
<ul class="nav nav-pills flex-column">
|
||||
<li class="nav-item"><a class="nav-link" href='{{$admin.update.0}}'>{{$admin.update.1}}</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href=''>Important Changes</a></li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{if $plugins}}
|
||||
<div class="widget">
|
||||
<h3>{{$plugadmtxt}}</h3>
|
||||
<ul class="nav nav-pills flex-column">
|
||||
{{foreach $plugins as $l}}
|
||||
<li class="nav-item"><a class="nav-link" href='{{$l.0}}'>{{$l.1}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="widget">
|
||||
<h3>{{$logtxt}}</h3>
|
||||
<ul class="nav nav-pills flex-column">
|
||||
<li class="nav-item"><a class="nav-link" href='{{$logs.0}}'>{{$logs.1}}</a></li>
|
||||
</ul>
|
||||
</div>
|
@@ -1,51 +0,0 @@
|
||||
<script>
|
||||
function confirm_delete(uname){
|
||||
return confirm( "{{$confirm_delete}}".format(uname));
|
||||
}
|
||||
function confirm_delete_multi(){
|
||||
return confirm("{{$confirm_delete_multi}}");
|
||||
}
|
||||
function selectall(cls){
|
||||
$("."+cls).attr('checked','checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div class = "generic-content-wrapper-styled" id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/channels" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<h3>{{$h_channels}}</h3>
|
||||
{{if $channels}}
|
||||
<table id='channels'>
|
||||
<thead>
|
||||
<tr>
|
||||
{{foreach $th_channels as $th}}<th><a href="{{$base}}&key={{$th.1}}&dir={{$odir}}">{{$th.0}}</a></th>{{/foreach}}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{foreach $channels as $c}}
|
||||
<tr>
|
||||
<td class='channel_id'>{{$c.channel_id}}</td>
|
||||
<td class='channel_name'><a href="channel/{{$c.channel_address}}">{{$c.channel_name}}</a></td>
|
||||
<td class='channel_address'>{{$c.channel_address}}</td>
|
||||
<td class="checkbox_bulkedit"><input type="checkbox" class="channels_ckbx" id="id_channel_{{$c.channel_id}}" name="channel[]" value="{{$c.channel_id}}"/></td>
|
||||
<td class="tools">
|
||||
<a href="{{$baseurl}}/admin/channels/block/{{$c.channel_id}}?t={{$form_security_token}}" class="btn btn-default btn-xs" title='{{if ($c.blocked)}}{{$unblock}}{{else}}{{$block}}{{/if}}'><i class='fa fa-ban admin-icons {{if ($c.blocked)}}dim{{/if}}'></i></a>
|
||||
<a href="{{$baseurl}}/admin/channels/code/{{$c.channel_id}}?t={{$form_security_token}}" class="btn btn-default btn-xs{{if ($c.allowcode)}} btn-danger{{/if}}" title='{{if ($c.allowcode)}}{{$uncode}}{{else}}{{$code}}{{/if}}'><i class='fa fa-terminal admin-icons {{if ($c.allowcode)}}dim{{/if}}'></i></a>
|
||||
<a href="{{$baseurl}}/admin/channels/delete/{{$c.channel_id}}?t={{$form_security_token}}" class="btn btn-default btn-xs" title='{{$delete}}' onclick="return confirm_delete('{{$c.channel_name}}')"><i class='fa fa-trash-o admin-icons'></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='selectall'><a href='#' onclick="return selectall('channels_ckbx');">{{$select_all}}</a></div>
|
||||
<div class="submit"><input type="submit" name="page_channels_block" value="{{$block}}/{{$unblock}}" /> <input type="submit" name="page_channels_code" value="{{$code}}/{{$uncode}}" /> <input type="submit" name="page_channels_delete" value="{{$delete}}" onclick="return confirm_delete_multi()" /></div>
|
||||
{{else}}
|
||||
NO CHANNELS?!?
|
||||
{{/if}}
|
||||
</form>
|
||||
</div>
|
@@ -1,27 +0,0 @@
|
||||
<div class="generic-content-wrapper-styled" id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<table id='server'>
|
||||
<thead>
|
||||
<tr>
|
||||
{{foreach $th_hubloc as $th}}<th>{{$th}}</th>{{/foreach}}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{{foreach $hubloc as $hub}}<tr>
|
||||
<td>{{$hub.hubloc_id}}</td><td>{{$hub.hubloc_addr}}</td><td>{{$hub.hubloc_host}}</td><td>{{$hub.hubloc_status}}</td>
|
||||
<td>
|
||||
<form action="{{$baseurl}}/admin/hubloc" method="post">
|
||||
<input type="hidden" name="hublocid" value="{{$hub.hubloc_id}}">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
<input type='hidden' name='url' value='{{$hub.hubloc_host}}'>
|
||||
<input type="submit" name="check" value="check" >
|
||||
<input type="submit" name="repair" value="repair" ></td>
|
||||
</form>
|
||||
</tr>{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
@@ -1,19 +0,0 @@
|
||||
<div class="generic-content-wrapper-styled" id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/logs" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$debugging}}
|
||||
{{include file="field_input.tpl" field=$logfile}}
|
||||
{{include file="field_select.tpl" field=$loglevel}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_logs" value="{{$submit}}" /></div>
|
||||
|
||||
</form>
|
||||
|
||||
<h3>{{$logname}}</h3>
|
||||
<div style="width:100%; height:400px; overflow: auto; "><pre>{{$data}}</pre></div>
|
||||
<!-- <iframe src='{{$baseurl}}/{{$logname}}' style="width:100%; height:400px"></iframe> -->
|
||||
<!-- <div class="submit"><input type="submit" name="page_logs_clear_log" value="{{$clear}}" /></div> -->
|
||||
</div>
|
@@ -1,190 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
{{if $allowManageRepos}}
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-success btn-sm" onclick="openClose('form');">{{$managerepos}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<h2 id="title">{{$title}} - {{$page}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="form" class="section-content-tools-wrapper"{{if !$expandform}} style="display:none;"{{/if}}>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="section-title-wrapper" style="margin-top: 20px;">
|
||||
<h2>{{$installedtitle}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="table-responsive section-content-tools-wrapper">
|
||||
<table class="table table-responsive table-striped table-hover">
|
||||
{{foreach $addonrepos as $repo}}
|
||||
<tr>
|
||||
<td style="width: 70%;">
|
||||
<span class="pull-left">{{$repo.name}}</span><span id="update-message-{{$repo.name}}" style="margin-left: 20px;"></span>
|
||||
</td>
|
||||
<td style="width: 15%;">
|
||||
<button class="btn btn-sm btn-primary pull-right" style="margin-left: 10px; margin-right: 10px;" onclick="updateAddonRepo('{{$repo.name}}'); return false;"><i class='fa fa-download'></i> {{$repoUpdateButton}}</button>
|
||||
</td>
|
||||
<td style="width: 15%;">
|
||||
<button class="btn btn-sm btn-danger pull-right" style="margin-left: 10px; margin-right: 0px;" onclick="removeAddonRepo('{{$repo.name}}'); return false;"><i class='fa fa-trash-o'></i> {{$repoRemoveButton}}</button>
|
||||
</td>
|
||||
<div class="clear"></div>
|
||||
</td></tr>
|
||||
{{/foreach}}
|
||||
</table>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="section-title-wrapper">
|
||||
<h2>{{$addnewrepotitle}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{{$form}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="chat-rotator-wrapper" class="center-block">
|
||||
<div id="chat-rotator"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="section-content-wrapper-np">
|
||||
{{foreach $plugins as $p}}
|
||||
<div class="section-content-tools-wrapper" id="pluginslist">
|
||||
<div class="contact-info plugin {{$p.1}}">
|
||||
{{if ! $p.2.disabled}}
|
||||
<a class='toggleplugin' href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}?a=t&t={{$form_security_token}}' title="{{if $p.1==on}}Disable{{else}}Enable{{/if}}" ><i class='fa {{if $p.1==on}}fa-check-square-o{{else}}fa-square-o{{/if}} admin-icons'></i></a>
|
||||
{{else}}
|
||||
<i class='fa fa-stop admin-icons'></i>
|
||||
{{/if}}
|
||||
<a href='{{$baseurl}}/admin/{{$function}}/{{$p.0}}'><span class='name'>{{$p.2.name}}</span></a> - <span class="version">{{$p.2.version}}</span>{{if $p.2.disabled}} {{$disabled}}{{/if}}
|
||||
{{if $p.2.experimental}} {{$experimental}} {{/if}}{{if $p.2.unsupported}} {{$unsupported}} {{/if}}
|
||||
|
||||
<div class='desc'>{{$p.2.description}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{$newRepoModal}}
|
||||
<script>
|
||||
|
||||
// TODO: Implement a simple interface controller that reconfigures the modal dialog
|
||||
// for each action in a more organized way
|
||||
|
||||
function adminPluginsAddRepo() {
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").removeClass('btn-success');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").addClass('btn-primary');
|
||||
var repoURL = $('#id_repoURL').val();
|
||||
var repoName = $('#id_repoName').val();
|
||||
$('#chat-rotator').spin('tiny');
|
||||
$.post(
|
||||
"/admin/plugins/addrepo", {repoURL: repoURL, repoName: repoName},
|
||||
function(response) {
|
||||
$('#chat-rotator').spin(false);
|
||||
if (response.success) {
|
||||
var modalBody = $('#generic-modal-body-{{$newRepoModalID}}');
|
||||
modalBody.html('<div>'+response.repo.readme+'</div>');
|
||||
modalBody.append('<h2>Repo Info</h2><p>Message: ' + response.message + '</p>');
|
||||
modalBody.append('<h4>Branches</h4><p>'+JSON.stringify(response.repo.branches)+'</p>');
|
||||
modalBody.append('<h4>Remotes</h4><p>'+JSON.stringify(response.repo.remote)+'</p>');
|
||||
$('.modal-dialog').width('80%');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").off('click');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").click(function () {
|
||||
installAddonRepo();
|
||||
});
|
||||
$('#generic-modal-{{$newRepoModalID}}').modal();
|
||||
} else {
|
||||
window.console.log('Error adding repo :' + response['message']);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
'json');
|
||||
}
|
||||
|
||||
function installAddonRepo() {
|
||||
var repoURL = $('#id_repoURL').val();
|
||||
var repoName = $('#id_repoName').val();
|
||||
$.post(
|
||||
"/admin/plugins/installrepo", {repoURL: repoURL, repoName: repoName},
|
||||
function(response) {
|
||||
if (response.success) {
|
||||
$('#generic-modal-title-{{$newRepoModalID}}').html('Addon repo installed');
|
||||
var modalBody = $('#generic-modal-body-{{$newRepoModalID}}');
|
||||
modalBody.html('<h2>Repo Info</h2><p>Message: ' + response.message + '</p>');
|
||||
modalBody.append('<h4>Branches</h4><p>'+JSON.stringify(response.repo.branches)+'</p>');
|
||||
modalBody.append('<h4>Remotes</h4><p>'+JSON.stringify(response.repo.remote)+'</p>');
|
||||
$('.modal-dialog').width('80%');
|
||||
//$("#generic-modal-cancel-{{$newRepoModalID}}").hide();
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").html('OK');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").removeClass('btn-primary');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").addClass('btn-success');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").off('click');
|
||||
$("#generic-modal-ok-{{$newRepoModalID}}").click(function () {
|
||||
$('#generic-modal-{{$newRepoModalID}}').modal('hide');
|
||||
if(confirm('Repo installed. Click OK to refresh page.')) {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
$('#generic-modal-{{$newRepoModalID}}').modal();
|
||||
|
||||
} else {
|
||||
window.console.log('Error installing repo :' + response['message']);
|
||||
alert('Error installing addon repo!');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
'json');
|
||||
}
|
||||
function updateAddonRepo(repoName) {
|
||||
if(confirm('Are you sure you want to update the addon repo ' + repoName + '?')) {
|
||||
$.post(
|
||||
"/admin/plugins/updaterepo", {repoName: repoName},
|
||||
function(response) {
|
||||
if (response.success) {
|
||||
window.console.log('Addon repo '+repoName+' successfully updated :' + response['message']);
|
||||
//alert('Addon repo updated.');
|
||||
$('#update-message-' + repoName).css('background-color', 'yellow');
|
||||
$('#update-message-' + repoName).html('Repo updated!');
|
||||
setTimeout(function () {
|
||||
$('#update-message-' + repoName).html('');
|
||||
}, 60000);
|
||||
} else {
|
||||
window.console.log('Error updating repo :' + response['message']);
|
||||
//alert('Error updating addon repo!');
|
||||
$('#update-message-' + repoName).css('background-color', 'red');
|
||||
$('#update-message-' + repoName).html('Error updating repo!');
|
||||
setTimeout(function () {
|
||||
$('#update-message-' + repoName).html('');
|
||||
}, 60000);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
'json');
|
||||
}
|
||||
}
|
||||
function switchAddonRepoBranch(repoName) {
|
||||
window.console.log('switchAddonRepoBranch: ' + repoName);
|
||||
// TODO: Discover the available branches and create an interface to switch between them
|
||||
}
|
||||
|
||||
function removeAddonRepo(repoName) {
|
||||
// TODO: Unlink the addons
|
||||
if(confirm('Are you sure you want to remove the addon repo ' + repoName + '?')) {
|
||||
$.post(
|
||||
"/admin/plugins/removerepo", {repoName: repoName},
|
||||
function(response) {
|
||||
if (response.success) {
|
||||
window.console.log('Addon repo '+repoName+' successfully removed :' + response['message']);
|
||||
if(confirm('Repo deleted. Click OK to refresh page.')) {
|
||||
location.reload();
|
||||
}
|
||||
} else {
|
||||
window.console.log('Error removing repo :' + response['message']);
|
||||
alert('Error removing addon repo!');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
'json');
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
@@ -1,9 +0,0 @@
|
||||
<form id="add-plugin-repo-form" action="{{$post}}" method="post" >
|
||||
|
||||
<p class="descriptive-text">{{$desc}}</p>
|
||||
{{include file="field_input.tpl" field=$repoURL}}
|
||||
{{include file="field_input.tpl" field=$repoName}}
|
||||
<div class="btn-group pull-right">
|
||||
<button id="add-plugin-repo-submit" class="btn btn-primary" type="submit" name="submit" onclick="adminPluginsAddRepo(); return false;">{{$submit}}</button>
|
||||
</div>
|
||||
</form>
|
@@ -1,58 +0,0 @@
|
||||
<div class = "generic-content-wrapper-styled" id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<p>{{if ! $info.disabled}}<i class='toggleplugin fa {{if $status==on}}fa-check-square-o{{else}}fa-square-o{{/if}} admin-icons'></i>{{else}}<i class='fa fa-stop admin-icons'></i>{{/if}} {{$info.name}} - {{$info.version}}{{if ! $info.disabled}} : <a href="{{$baseurl}}/admin/{{$function}}/{{$plugin}}/?a=t&t={{$form_security_token}}">{{$action}}</a>{{/if}}</p>
|
||||
|
||||
{{if $info.disabled}}
|
||||
<p>{{$disabled}}</p>
|
||||
{{/if}}
|
||||
|
||||
<p>{{$info.description}}</p>
|
||||
|
||||
{{foreach $info.author as $a}}
|
||||
<p class="author">{{$str_author}}
|
||||
{{$a.name}}{{if $a.link}} {{$a.link}}{{/if}}
|
||||
</p>
|
||||
{{/foreach}}
|
||||
|
||||
{{if $info.minversion}}
|
||||
<p class="versionlimit">{{$str_minversion}}{{$info.minversion}}</p>
|
||||
{{/if}}
|
||||
{{if $info.maxversion}}
|
||||
<p class="versionlimit">{{$str_maxversion}}{{$info.maxversion}}</p>
|
||||
{{/if}}
|
||||
{{if $info.minphpversion}}
|
||||
<p class="versionlimit">{{$str_minphpversion}}{{$info.minphpversion}}</p>
|
||||
{{/if}}
|
||||
{{if $info.serverroles}}
|
||||
<p class="versionlimit">{{$str_serverroles}}{{$info.serverroles}}</p>
|
||||
{{/if}}
|
||||
{{if $info.requires}}
|
||||
<p class="versionlimit">{{$str_requires}}{{$info.requires}}</p>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{foreach $info.maintainer as $a}}
|
||||
<p class="maintainer">{{$str_maintainer}}
|
||||
{{$a.name}}{{if $a.link}} {{$a.link}}{{/if}}
|
||||
</p>
|
||||
{{/foreach}}
|
||||
|
||||
{{if $screenshot}}
|
||||
<a href="{{$screenshot.0}}" class='screenshot'><img src="{{$screenshot.0}}" alt="{{$screenshot.1}}" /></a>
|
||||
{{/if}}
|
||||
|
||||
{{if $admin_form}}
|
||||
<h3>{{$settings}}</h3>
|
||||
<form method="post" action="{{$baseurl}}/admin/{{$function}}/{{$plugin}}/">
|
||||
{{$admin_form}}
|
||||
</form>
|
||||
{{/if}}
|
||||
|
||||
{{if $readme}}
|
||||
<h3>Readme</h3>
|
||||
<div id="plugin_readme">
|
||||
{{$readme}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
@@ -1,38 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper"><a title="{{$new}}" class="btn btn-primary btn-sm pull-right" href="admin/profs/new"><i class="fa fa-plus-circle"></i> {{$new}}</a><h2>{{$title}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="section-content-tools-wrapper">
|
||||
|
||||
<div class="section-content-info-wrapper">{{$all_desc}}
|
||||
<br /><br />
|
||||
{{$all}}
|
||||
</div>
|
||||
|
||||
<form action="admin/profs" method="post">
|
||||
|
||||
{{include file="field_textarea.tpl" field=$basic}}
|
||||
{{include file="field_textarea.tpl" field=$advanced}}
|
||||
|
||||
<input type="submit" name="submit" value="{{$submit}}" />
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
{{if $cust_fields}}
|
||||
<br /><br />
|
||||
<div><strong>{{$cust_field_desc}}</strong></div>
|
||||
<br />
|
||||
|
||||
<table width="100%">
|
||||
{{foreach $cust_fields as $field}}
|
||||
<tr><td>{{$field.field_name}}</td><td>{{$field.field_desc}}</td><td><a class="btn btn-danger btn-sm" href="admin/profs/drop/{{$field.id}}" title="{{$drop}}"><i class="fa fa-trash-o"></i> {{$drop}}</a> <a class="btn btn-sm" title="{{$edit}}" href="admin/profs/{{$field.id}}" ><i class="fa fa-pencil"></i></a></td></tr>
|
||||
{{/foreach}}
|
||||
</table>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
@@ -1,15 +0,0 @@
|
||||
<div class="generic-content-wrapper-styled">
|
||||
<h3>{{$banner}}</h3>
|
||||
|
||||
{{if $hasentries}}
|
||||
|
||||
<table cellpadding="10" id="admin-queue-table"><tr><td>{{$numentries}} </td><td>{{$desturl}}</td><td>{{$priority}}</td><td> </td><td> </td></tr>
|
||||
|
||||
{{foreach $entries as $e}}
|
||||
|
||||
<tr><td>{{$e.total}}</td><td>{{$e.outq_posturl}}</td><td>{{$e.priority}}</td>{{if $expert}}<td><a href="admin/queue?f=&drophub={{$e.eurl}}" title="{{$nukehub}}" class="btn btn-outline-secondary"><i class="fa fa-times"></i><a></td><td><a href="admin/queue?f=&emptyhub={{$e.eurl}}" title="{{$empty}}" class="btn btn-outline-secondary"><i class="fa fa-trash-o"></i></a></td>{{/if}}</tr>
|
||||
{{/foreach}}
|
||||
|
||||
</table>
|
||||
|
||||
{{/if}}
|
@@ -1,33 +0,0 @@
|
||||
<div class="generic-content-wrapper-styled" id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/security" method="post">
|
||||
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$block_public}}
|
||||
{{include file="field_checkbox.tpl" field=$transport_security}}
|
||||
{{include file="field_checkbox.tpl" field=$content_security}}
|
||||
{{include file="field_checkbox.tpl" field=$embed_sslonly}}
|
||||
|
||||
{{include file="field_textarea.tpl" field=$allowed_email}}
|
||||
{{include file="field_textarea.tpl" field=$not_allowed_email}}
|
||||
|
||||
{{include file="field_textarea.tpl" field=$whitelisted_sites}}
|
||||
{{include file="field_textarea.tpl" field=$blacklisted_sites}}
|
||||
|
||||
{{include file="field_textarea.tpl" field=$whitelisted_channels}}
|
||||
{{include file="field_textarea.tpl" field=$blacklisted_channels}}
|
||||
|
||||
{{include file="field_textarea.tpl" field=$embed_allow}}
|
||||
{{include file="field_textarea.tpl" field=$embed_deny}}
|
||||
|
||||
|
||||
<div class="admin-submit-wrapper" >
|
||||
<input type="submit" name="submit" class="admin-submit" value="{{$submit}}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
@@ -1,31 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<h2>{{$title}}</h2>
|
||||
</div>
|
||||
<form action="admin/features" method="post" autocomplete="off">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
<div class="panel-group" id="settings" role="tablist" aria-multiselectable="true">
|
||||
{{foreach $features as $g => $f}}
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper" role="tab" id="{{$g}}-settings-title">
|
||||
<h3>
|
||||
<a data-toggle="collapse" data-parent="#settings" href="#{{$g}}-settings-content" aria-expanded="true" aria-controls="{{$g}}-settings-collapse">
|
||||
{{$f.0}}
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div id="{{$g}}-settings-content" class="panel-collapse collapse{{if $g == 'general'}} in{{/if}}" role="tabpanel" aria-labelledby="{{$g}}-settings-title">
|
||||
<div class="section-content-tools-wrapper">
|
||||
{{foreach $f.1 as $fcat}}
|
||||
{{include file="field_checkbox.tpl" field=$fcat.0}}
|
||||
{{include file="field_checkbox.tpl" field=$fcat.1}}
|
||||
{{/foreach}}
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="submit" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
@@ -1,101 +0,0 @@
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
$("#cnftheme").colorbox({
|
||||
width: 800,
|
||||
onLoad: function(){
|
||||
var theme = $("#id_theme :selected").val();
|
||||
$("#cnftheme").attr('href',"{{$baseurl}}/admin/themes/"+theme);
|
||||
},
|
||||
onComplete: function(){
|
||||
$(this).colorbox.resize();
|
||||
$("#colorbox form").submit(function(e){
|
||||
var url = $(this).attr('action');
|
||||
// can't get .serialize() to work...
|
||||
var data={};
|
||||
$(this).find("input").each(function(){
|
||||
data[$(this).attr('name')] = $(this).val();
|
||||
});
|
||||
$(this).find("select").each(function(){
|
||||
data[$(this).attr('name')] = $(this).children(":selected").val();
|
||||
});
|
||||
console.log(":)", url, data);
|
||||
|
||||
$.post(url, data, function(data) {
|
||||
if(timer) clearTimeout(timer);
|
||||
NavUpdate();
|
||||
$.colorbox.close();
|
||||
})
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="adminpage" class="generic-content-wrapper-styled">
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
|
||||
<form action="{{$baseurl}}/admin/site" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
{{include file="field_input.tpl" field=$sitename}}
|
||||
{{include file="field_select.tpl" field=$server_role}}
|
||||
|
||||
{{if $z_server_role == 'pro'}}
|
||||
{{include file="field_select.tpl" field=$techlevel}}
|
||||
{{include file="field_checkbox.tpl" field=$techlock}}
|
||||
{{/if}}
|
||||
|
||||
{{include file="field_textarea.tpl" field=$banner}}
|
||||
{{include file="field_textarea.tpl" field=$siteinfo}}
|
||||
{{include file="field_textarea.tpl" field=$admininfo}}
|
||||
|
||||
{{include file="field_input.tpl" field=$reply_address}}
|
||||
{{include file="field_input.tpl" field=$from_email}}
|
||||
{{include file="field_input.tpl" field=$from_email_name}}
|
||||
|
||||
{{include file="field_select.tpl" field=$language}}
|
||||
{{include file="field_select.tpl" field=$theme}}
|
||||
{{include file="field_select.tpl" field=$theme_mobile}}
|
||||
{{include file="field_input.tpl" field=$frontpage}}
|
||||
{{include file="field_checkbox.tpl" field=$mirror_frontpage}}
|
||||
{{include file="field_checkbox.tpl" field=$login_on_homepage}}
|
||||
{{include file="field_checkbox.tpl" field=$enable_context_help}}
|
||||
{{if $directory_server}}
|
||||
{{include file="field_select.tpl" field=$directory_server}}
|
||||
{{/if}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
<h3>{{$registration}}</h3>
|
||||
{{include file="field_input.tpl" field=$register_text}}
|
||||
{{include file="field_select.tpl" field=$register_policy}}
|
||||
{{include file="field_checkbox.tpl" field=$invite_only}}
|
||||
{{include file="field_select.tpl" field=$access_policy}}
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
<h3>{{$corporate}}</h3>
|
||||
{{include file="field_checkbox.tpl" field=$verify_email}}
|
||||
{{include file="field_checkbox.tpl" field=$feed_contacts}}
|
||||
{{include file="field_checkbox.tpl" field=$force_publish}}
|
||||
{{include file="field_checkbox.tpl" field=$disable_discover_tab}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
<h3>{{$advanced}}</h3>
|
||||
{{include file="field_input.tpl" field=$proxy}}
|
||||
{{include file="field_input.tpl" field=$proxyuser}}
|
||||
{{include file="field_input.tpl" field=$timeout}}
|
||||
{{include file="field_input.tpl" field=$delivery_interval}}
|
||||
{{include file="field_input.tpl" field=$delivery_batch_count}}
|
||||
{{include file="field_input.tpl" field=$poll_interval}}
|
||||
{{include file="field_input.tpl" field=$maxloadavg}}
|
||||
{{include file="field_input.tpl" field=$abandon_days}}
|
||||
{{include file="field_input.tpl" field=$default_expire_days}}
|
||||
|
||||
<div class="submit"><input type="submit" name="page_site" value="{{$submit}}" /></div>
|
||||
|
||||
</form>
|
||||
</div>
|
@@ -1,43 +0,0 @@
|
||||
<div class="generic-content-wrapper-styled" id='adminpage'>
|
||||
<h1>{{$title}} - {{$page}}</h1>
|
||||
{{if $adminalertmsg}}
|
||||
<p class="alert alert-warning" role="alert">{{$adminalertmsg}}</p>
|
||||
{{/if}}
|
||||
{{if $upgrade}}
|
||||
<p class="alert alert-warning" role="alert">{{$upgrade}}</p>
|
||||
{{/if}}
|
||||
<dl>
|
||||
<dt>{{$queues.label}}</dt>
|
||||
<dd>{{$queues.queue}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$accounts.0}}</dt>
|
||||
<dd>{{foreach from=$accounts.1 item=acc name=account}}<span title="{{$acc.label}}">{{$acc.val}}</span>{{if !$smarty.foreach.account.last}} / {{/if}}{{/foreach}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$pending.0}}</dt>
|
||||
<dd>{{$pending.1}}</dt>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$channels.0}}</dt>
|
||||
<dd>{{foreach from=$channels.1 item=ch name=chan}}<span title="{{$ch.label}}">{{$ch.val}}</span>{{if !$smarty.foreach.chan.last}} / {{/if}}{{/foreach}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$plugins.0}}</dt>
|
||||
<dd>
|
||||
{{foreach $plugins.1 as $p}} {{$p}} {{/foreach}}
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$version.0}}</dt>
|
||||
<dd>{{$version.1}} - {{$build}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$vmaster.0}}</dt>
|
||||
<dd>{{$vmaster.1}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>{{$vdev.0}}</dt>
|
||||
<dd>{{$vdev.1}}</dd>
|
||||
</dl>
|
||||
</div>
|
@@ -1,22 +0,0 @@
|
||||
<div id="photo-album-edit-wrapper" class="section-content-tools-wrapper">
|
||||
<form name="photo-album-edit-form" id="photo-album-edit-form" action="photos/{{$nickname}}/album/{{$hexalbum}}" method="post" >
|
||||
<div class="form-group">
|
||||
<label id="photo-album-edit-name-label" for="photo-album-edit-name">{{$nametext}}</label>
|
||||
<input type="text" name="albumname" placeholder="{{$name_placeholder}}" value="{{$album}}" class="form-control" list="dl-album-edit" />
|
||||
<datalist id="dl-album-edit">
|
||||
{{foreach $albums as $al}}
|
||||
{{if $al.text}}
|
||||
<option value="{{$al.text}}">
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</datalist>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button id="photo-album-edit-submit" type="submit" name="submit" class="btn btn-primary btn-sm pull-right" />{{$submit}}</button>
|
||||
<button id="photo-album-edit-drop" type="submit" name="dropalbum" value="{{$dropsubmit}}" class="btn btn-danger btn-sm pull-left" onclick="return confirmDelete();" />{{$dropsubmit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<div id="photo-album-edit-end" class="clear"></div>
|
||||
</div>
|
||||
|
||||
|
@@ -1,4 +0,0 @@
|
||||
<div class="pager">
|
||||
{{if $has_less}}<a href="{{$url}}&page={{$prevpage}}" class="pager-prev">{{$less}}</a>{{/if}}
|
||||
{{if $has_more}}{{if $has_less}} | {{/if}}<a href="{{$url}}&page={{$nextpage}}" class="pager-next">{{$more}}</a>{{/if}}
|
||||
</div>
|
@@ -1,66 +0,0 @@
|
||||
<config>
|
||||
<site>
|
||||
<name>{{$config.site.name}}</name>
|
||||
<server>{{$config.site.server}}</server>
|
||||
<theme>default</theme>
|
||||
<path></path>
|
||||
<logo>{{$config.site.logo}}</logo>
|
||||
|
||||
<fancy>true</fancy>
|
||||
<language>en</language>
|
||||
<email>{{$config.site.email}}</email>
|
||||
<broughtby></broughtby>
|
||||
<broughtbyurl></broughtbyurl>
|
||||
<timezone>UTC</timezone>
|
||||
<closed>{{$config.site.closed}}</closed>
|
||||
|
||||
<inviteonly>false</inviteonly>
|
||||
<private>{{$config.site.private}}</private>
|
||||
<textlimit>{{$config.site.textlimit}}</textlimit>
|
||||
<ssl>{{$config.site.ssl}}</ssl>
|
||||
<sslserver>{{$config.site.sslserver}}</sslserver>
|
||||
<shorturllength>30</shorturllength>
|
||||
|
||||
</site>
|
||||
<license>
|
||||
<type>cc</type>
|
||||
<owner></owner>
|
||||
<url>http://creativecommons.org/licenses/by/3.0/</url>
|
||||
<title>Creative Commons Attribution 3.0</title>
|
||||
<image>http://i.creativecommons.org/l/by/3.0/80x15.png</image>
|
||||
|
||||
</license>
|
||||
<nickname>
|
||||
<featured></featured>
|
||||
</nickname>
|
||||
<profile>
|
||||
<biolimit></biolimit>
|
||||
</profile>
|
||||
<group>
|
||||
<desclimit></desclimit>
|
||||
</group>
|
||||
<notice>
|
||||
|
||||
<contentlimit></contentlimit>
|
||||
</notice>
|
||||
<throttle>
|
||||
<enabled>false</enabled>
|
||||
<count>20</count>
|
||||
<timespan>600</timespan>
|
||||
</throttle>
|
||||
<xmpp>
|
||||
|
||||
<enabled>false</enabled>
|
||||
<server>INVALID SERVER</server>
|
||||
<port>5222</port>
|
||||
<user>update</user>
|
||||
</xmpp>
|
||||
<integration>
|
||||
<source>StatusNet</source>
|
||||
|
||||
</integration>
|
||||
<attachments>
|
||||
<uploads>false</uploads>
|
||||
<file_quota>0</file_quota>
|
||||
</attachments>
|
||||
</config>
|
@@ -1,5 +0,0 @@
|
||||
<users type="array">
|
||||
{{foreach $users as $user}}
|
||||
{{include file="api_user_xml.tpl"}}
|
||||
{{/foreach}}
|
||||
</users>
|
@@ -1,6 +0,0 @@
|
||||
<hash>
|
||||
<remaining-hits type="integer">{{$hash.remaining_hits}}</remaining-hits>
|
||||
<hourly-limit type="integer">{{$hash.hourly_limit}}</hourly-limit>
|
||||
<reset-time type="datetime">{{$hash.reset_time}}</reset-time>
|
||||
<reset_time_in_seconds type="integer">{{$hash.resettime_in_seconds}}</reset_time_in_seconds>
|
||||
</hash>
|
@@ -1,46 +0,0 @@
|
||||
<status>{{if $status}}
|
||||
<created_at>{{$status.created_at}}</created_at>
|
||||
<id>{{$status.id}}</id>
|
||||
<text>{{$status.text}}</text>
|
||||
<source>{{$status.source}}</source>
|
||||
<truncated>{{$status.truncated}}</truncated>
|
||||
<in_reply_to_status_id>{{$status.in_reply_to_status_id}}</in_reply_to_status_id>
|
||||
<in_reply_to_user_id>{{$status.in_reply_to_user_id}}</in_reply_to_user_id>
|
||||
<favorited>{{$status.favorited}}</favorited>
|
||||
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$status.geo}}</geo>
|
||||
<coordinates>{{$status.coordinates}}</coordinates>
|
||||
<place>{{$status.place}}</place>
|
||||
<contributors>{{$status.contributors}}</contributors>
|
||||
<user>
|
||||
<id>{{$status.user.id}}</id>
|
||||
<name>{{$status.user.name}}</name>
|
||||
<screen_name>{{$status.user.screen_name}}</screen_name>
|
||||
<location>{{$status.user.location}}</location>
|
||||
<description>{{$status.user.description}}</description>
|
||||
<profile_image_url>{{$status.user.profile_image_url}}</profile_image_url>
|
||||
<url>{{$status.user.url}}</url>
|
||||
<protected>{{$status.user.protected}}</protected>
|
||||
<followers_count>{{$status.user.followers}}</followers_count>
|
||||
<profile_background_color>{{$status.user.profile_background_color}}</profile_background_color>
|
||||
<profile_text_color>{{$status.user.profile_text_color}}</profile_text_color>
|
||||
<profile_link_color>{{$status.user.profile_link_color}}</profile_link_color>
|
||||
<profile_sidebar_fill_color>{{$status.user.profile_sidebar_fill_color}}</profile_sidebar_fill_color>
|
||||
<profile_sidebar_border_color>{{$status.user.profile_sidebar_border_color}}</profile_sidebar_border_color>
|
||||
<friends_count>{{$status.user.friends_count}}</friends_count>
|
||||
<created_at>{{$status.user.created_at}}</created_at>
|
||||
<favourites_count>{{$status.user.favourites_count}}</favourites_count>
|
||||
<utc_offset>{{$status.user.utc_offset}}</utc_offset>
|
||||
<time_zone>{{$status.user.time_zone}}</time_zone>
|
||||
<profile_background_image_url>{{$status.user.profile_background_image_url}}</profile_background_image_url>
|
||||
<profile_background_tile>{{$status.user.profile_background_tile}}</profile_background_tile>
|
||||
<profile_use_background_image>{{$status.user.profile_use_background_image}}</profile_use_background_image>
|
||||
<notifications></notifications>
|
||||
<geo_enabled>{{$status.user.geo_enabled}}</geo_enabled>
|
||||
<verified>{{$status.user.verified}}</verified>
|
||||
<following></following>
|
||||
<statuses_count>{{$status.user.statuses_count}}</statuses_count>
|
||||
<lang>{{$status.user.lang}}</lang>
|
||||
<contributors_enabled>{{$status.user.contributors_enabled}}</contributors_enabled>
|
||||
</user>
|
||||
{{/if}}</status>
|
@@ -1 +0,0 @@
|
||||
<ok>{{$ok}}</ok>
|
@@ -1,90 +0,0 @@
|
||||
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/">
|
||||
<generator uri="http://status.net" version="0.9.7">StatusNet</generator>
|
||||
<id>{{$rss.self}}</id>
|
||||
<title>Friendika</title>
|
||||
<subtitle>Friendika API feed</subtitle>
|
||||
<logo>{{$rss.logo}}</logo>
|
||||
<updated>{{$rss.atom_updated}}</updated>
|
||||
<link type="text/html" rel="alternate" href="{{$rss.alternate}}"/>
|
||||
<link type="application/atom+xml" rel="self" href="{{$rss.self}}"/>
|
||||
|
||||
|
||||
<author>
|
||||
<activity:obj_type>http://activitystrea.ms/schema/1.0/person</activity:obj_type>
|
||||
<uri>{{$user.url}}</uri>
|
||||
<name>{{$user.name}}</name>
|
||||
<link rel="alternate" type="text/html" href="{{$user.url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
|
||||
<georss:point></georss:point>
|
||||
<poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
|
||||
<poco:displayName>{{$user.name}}</poco:displayName>
|
||||
<poco:urls>
|
||||
<poco:type>homepage</poco:type>
|
||||
<poco:value>{{$user.url}}</poco:value>
|
||||
<poco:primary>true</poco:primary>
|
||||
</poco:urls>
|
||||
<statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
|
||||
</author>
|
||||
|
||||
<!--Deprecation warning: activity:subject is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
|
||||
<activity:subject>
|
||||
<activity:obj_type>http://activitystrea.ms/schema/1.0/person</activity:obj_type>
|
||||
<id>{{$user.contact_url}}</id>
|
||||
<title>{{$user.name}}</title>
|
||||
<link rel="alternate" type="text/html" href="{{$user.url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
|
||||
<poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
|
||||
<poco:displayName>{{$user.name}}</poco:displayName>
|
||||
<poco:urls>
|
||||
<poco:type>homepage</poco:type>
|
||||
<poco:value>{{$user.url}}</poco:value>
|
||||
<poco:primary>true</poco:primary>
|
||||
</poco:urls>
|
||||
<statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
|
||||
</activity:subject>
|
||||
|
||||
|
||||
{{foreach $statuses as $status}}
|
||||
<entry>
|
||||
<activity:obj_type>{{$status.objecttype}}</activity:obj_type>
|
||||
<id>{{$status.message_id}}</id>
|
||||
<title>{{$status.text}}</title>
|
||||
<content type="html">{{$status.statusnet_html}}</content>
|
||||
<link rel="alternate" type="text/html" href="{{$status.url}}"/>
|
||||
<activity:verb>{{$status.verb}}</activity:verb>
|
||||
<published>{{$status.published}}</published>
|
||||
<updated>{{$status.updated}}</updated>
|
||||
|
||||
<link rel="self" type="application/atom+xml" href="{{$status.self}}"/>
|
||||
<link rel="edit" type="application/atom+xml" href="{{$status.edit}}"/>
|
||||
<statusnet:notice_info local_id="{{$status.id}}" source="{{$status.source}}" >
|
||||
</statusnet:notice_info>
|
||||
|
||||
<author>
|
||||
<activity:obj_type>http://activitystrea.ms/schema/1.0/person</activity:obj_type>
|
||||
<uri>{{$status.user.url}}</uri>
|
||||
<name>{{$status.user.name}}</name>
|
||||
<link rel="alternate" type="text/html" href="{{$status.user.url}}"/>
|
||||
<link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$status.user.profile_image_url}}"/>
|
||||
|
||||
<georss:point/>
|
||||
<poco:preferredUsername>{{$status.user.screen_name}}</poco:preferredUsername>
|
||||
<poco:displayName>{{$status.user.name}}</poco:displayName>
|
||||
<poco:address/>
|
||||
<poco:urls>
|
||||
<poco:type>homepage</poco:type>
|
||||
<poco:value>{{$status.user.url}}</poco:value>
|
||||
<poco:primary>true</poco:primary>
|
||||
</poco:urls>
|
||||
</author>
|
||||
<link rel="ostatus:conversation" type="text/html" href="{{$status.url}}"/>
|
||||
|
||||
</entry>
|
||||
{{/foreach}}
|
||||
</feed>
|
@@ -1,26 +0,0 @@
|
||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:twitter="http://api.twitter.com">
|
||||
<channel>
|
||||
<title>Friendika</title>
|
||||
<link>{{$rss.alternate}}</link>
|
||||
<atom:link type="application/rss+xml" rel="self" href="{{$rss.self}}"/>
|
||||
<description>Friendika timeline</description>
|
||||
<language>{{$rss.language}}</language>
|
||||
<ttl>40</ttl>
|
||||
<image>
|
||||
<link>{{$user.link}}</link>
|
||||
<title>{{$user.name}}'s items</title>
|
||||
<url>{{$user.profile_image_url}}</url>
|
||||
</image>
|
||||
|
||||
{{foreach $statuses as $status}}
|
||||
<item>
|
||||
<title>{{$status.user.name}}: {{$status.text}}</title>
|
||||
<description>{{$status.text}}</description>
|
||||
<pubDate>{{$status.created_at}}</pubDate>
|
||||
<guid>{{$status.url}}</guid>
|
||||
<link>{{$status.url}}</link>
|
||||
<twitter:source>{{$status.source}}</twitter:source>
|
||||
</item>
|
||||
{{/foreach}}
|
||||
</channel>
|
||||
</rss>
|
@@ -1,20 +0,0 @@
|
||||
<statuses type="array" xmlns:statusnet="http://status.net/schema/api/1/">
|
||||
{{foreach $statuses as $status}} <status>
|
||||
<text>{{$status.text}}</text>
|
||||
<truncated>{{$status.truncated}}</truncated>
|
||||
<created_at>{{$status.created_at}}</created_at>
|
||||
<in_reply_to_status_id>{{$status.in_reply_to_status_id}}</in_reply_to_status_id>
|
||||
<source>{{$status.source}}</source>
|
||||
<id>{{$status.id}}</id>
|
||||
<in_reply_to_user_id>{{$status.in_reply_to_user_id}}</in_reply_to_user_id>
|
||||
<in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$status.geo}}</geo>
|
||||
<favorited>{{$status.favorited}}</favorited>
|
||||
{{include file="api_user_xml.tpl" user=$status.user}} <statusnet:html>{{$status.statusnet_html}}</statusnet:html>
|
||||
<statusnet:conversation_id>{{$status.statusnet_conversation_id}}</statusnet:conversation_id>
|
||||
<url>{{$status.url}}</url>
|
||||
<coordinates>{{$status.coordinates}}</coordinates>
|
||||
<place>{{$status.place}}</place>
|
||||
<contributors>{{$status.contributors}}</contributors>
|
||||
</status>
|
||||
{{/foreach}}</statuses>
|
@@ -1,46 +0,0 @@
|
||||
<user>
|
||||
<id>{{$user.id}}</id>
|
||||
<name>{{$user.name}}</name>
|
||||
<screen_name>{{$user.screen_name}}</screen_name>
|
||||
<location>{{$user.location}}</location>
|
||||
<description>{{$user.description}}</description>
|
||||
<profile_image_url>{{$user.profile_image_url}}</profile_image_url>
|
||||
<url>{{$user.url}}</url>
|
||||
<protected>{{$user.protected}}</protected>
|
||||
<followers_count>{{$user.followers_count}}</followers_count>
|
||||
<friends_count>{{$user.friends_count}}</friends_count>
|
||||
<created_at>{{$user.created_at}}</created_at>
|
||||
<favourites_count>{{$user.favourites_count}}</favourites_count>
|
||||
<utc_offset>{{$user.utc_offset}}</utc_offset>
|
||||
<time_zone>{{$user.time_zone}}</time_zone>
|
||||
<statuses_count>{{$user.statuses_count}}</statuses_count>
|
||||
<following>{{$user.following}}</following>
|
||||
<profile_background_color>{{$user.profile_background_color}}</profile_background_color>
|
||||
<profile_text_color>{{$user.profile_text_color}}</profile_text_color>
|
||||
<profile_link_color>{{$user.profile_link_color}}</profile_link_color>
|
||||
<profile_sidebar_fill_color>{{$user.profile_sidebar_fill_color}}</profile_sidebar_fill_color>
|
||||
<profile_sidebar_border_color>{{$user.profile_sidebar_border_color}}</profile_sidebar_border_color>
|
||||
<profile_background_image_url>{{$user.profile_background_image_url}}</profile_background_image_url>
|
||||
<profile_background_tile>{{$user.profile_background_tile}}</profile_background_tile>
|
||||
<profile_use_background_image>{{$user.profile_use_background_image}}</profile_use_background_image>
|
||||
<notifications>{{$user.notifications}}</notifications>
|
||||
<geo_enabled>{{$user.geo_enabled}}</geo_enabled>
|
||||
<verified>{{$user.verified}}</verified>
|
||||
<lang>{{$user.lang}}</lang>
|
||||
<contributors_enabled>{{$user.contributors_enabled}}</contributors_enabled>
|
||||
<status>{{if $user.status}}
|
||||
<created_at>{{$user.status.created_at}}</created_at>
|
||||
<id>{{$user.status.id}}</id>
|
||||
<text>{{$user.status.text}}</text>
|
||||
<source>{{$user.status.source}}</source>
|
||||
<truncated>{{$user.status.truncated}}</truncated>
|
||||
<in_reply_to_status_id>{{$user.status.in_reply_to_status_id}}</in_reply_to_status_id>
|
||||
<in_reply_to_user_id>{{$user.status.in_reply_to_user_id}}</in_reply_to_user_id>
|
||||
<favorited>{{$user.status.favorited}}</favorited>
|
||||
<in_reply_to_screen_name>{{$user.status.in_reply_to_screen_name}}</in_reply_to_screen_name>
|
||||
<geo>{{$user.status.geo}}</geo>
|
||||
<coordinates>{{$user.status.coordinates}}</coordinates>
|
||||
<place>{{$user.status.place}}</place>
|
||||
<contributors>{{$user.status.contributors}}</contributors>
|
||||
{{/if}}</status>
|
||||
</user>
|
@@ -1,30 +0,0 @@
|
||||
{{if !$navapps}}
|
||||
<div class="app-container">
|
||||
<div class="app-detail{{if $deleted}} app-deleted{{/if}}">
|
||||
<a href="{{$app.url}}"{{if $app.target}} target="{{$app.target}}"{{/if}}{{if $app.desc}} title="{{$app.desc}}{{if $app.price}} ({{$app.price}}){{/if}}"{{else}}title="{{$app.name}}"{{/if}}>{{if $icon}}<i class="app-icon fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="80" height="80" />{{/if}}
|
||||
<div class="app-name" style="text-align:center;">{{$app.name}}</div>
|
||||
</a>
|
||||
</div>
|
||||
{{if $app.type !== 'system'}}
|
||||
{{if $purchase}}
|
||||
<div class="app-purchase">
|
||||
<a href="{{$app.page}}" class="btn btn-outline-secondary" title="{{$purchase}}" ><i class="fa fa-external"></i></a>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $install || $update || $delete || $feature}}
|
||||
<div class="app-tools">
|
||||
<form action="{{$hosturl}}appman" method="post">
|
||||
<input type="hidden" name="papp" value="{{$app.papp}}" />
|
||||
{{if $install}}<button type="submit" name="install" value="{{$install}}" class="btn btn-outline-secondary btn-sm" title="{{$install}}" ><i class="fa fa-arrow-circle-o-down" ></i></button>{{/if}}
|
||||
{{if $edit}}<input type="hidden" name="appid" value="{{$app.guid}}" /><button type="submit" name="edit" value="{{$edit}}" class="btn btn-outline-secondary btn-sm" title="{{$edit}}" ><i class="fa fa-pencil" ></i></button>{{/if}}
|
||||
{{if $delete}}<button type="submit" name="delete" value="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" class="btn btn-outline-secondary btn-sm" title="{{if $deleted}}{{$undelete}}{{else}}{{$delete}}{{/if}}" ><i class="fa fa-trash-o drop-icons"></i></button>{{/if}}
|
||||
{{if $feature}}<button type="submit" name="feature" value="feature" class="btn btn-outline-secondary btn-sm" title="{{if $featured}}{{$remove}}{{else}}{{$add}}{{/if}}"><i class="fa fa-star"{{if $featured}} style="color: gold"{{/if}}></i></button>{{/if}}
|
||||
</form>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<a class="dropdown-item" href="{{$app.url}}">{{if $icon}}<i class="generic-icons-nav fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" style="margin-right:9px;"/>{{/if}}{{$app.name}}</a>
|
||||
{{/if}}
|
||||
|
@@ -1,40 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<h2>{{$banner}}</h2>
|
||||
</div>
|
||||
|
||||
<div class="clearfix section-content-wrapper">
|
||||
<form action="appman" method="post">
|
||||
{{if $guid}}
|
||||
<input type="hidden" name="guid" value="{{$guid}}" />
|
||||
{{/if}}
|
||||
{{if $author}}
|
||||
<input type="hidden" name="author" value="{{$author}}" />
|
||||
{{/if}}
|
||||
{{if $addr}}
|
||||
<input type="hidden" name="addr" value="{{$addr}}" />
|
||||
{{/if}}
|
||||
|
||||
<input type="hidden" name="requires" value="{{$requires}}" />
|
||||
<input type="hidden" name="system" value="{{$system}}" />
|
||||
<input type="hidden" name="plugin" value="{{$plugin}}" />
|
||||
|
||||
|
||||
{{include file="field_input.tpl" field=$name}}
|
||||
{{include file="field_input.tpl" field=$categories}}
|
||||
{{include file="field_input.tpl" field=$url}}
|
||||
{{include file="field_textarea.tpl" field=$desc}}
|
||||
{{include file="field_input.tpl" field=$photo}}
|
||||
{{include file="field_input.tpl" field=$version}}
|
||||
{{include file="field_input.tpl" field=$price}}
|
||||
{{include file="field_input.tpl" field=$page}}
|
||||
|
||||
{{if $embed}}
|
||||
{{include file="field_textarea.tpl" field=$embed}}
|
||||
{{/if}}
|
||||
|
||||
<button class="btn btn-primary float-right" type="submit" name="submit" value="{{$submit}}">{{$submit}}</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"
|
||||
xmlns:thr="http://purl.org/syndication/thread/1.0"
|
||||
xmlns:at="http://purl.org/atompub/tombstones/1.0"
|
||||
xmlns:media="http://purl.org/syndication/atommedia"
|
||||
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0"
|
||||
xmlns:zot="http://purl.org/zot"
|
||||
xmlns:as="http://activitystrea.ms/spec/1.0/"
|
||||
xmlns:georss="http://www.georss.org/georss"
|
||||
xmlns:poco="http://portablecontacts.net/spec/1.0"
|
||||
xmlns:ostatus="http://ostatus.org/schema/1.0"
|
||||
xmlns:statusnet="http://status.net/schema/api/1/" >
|
||||
|
||||
<id>{{$feed_id}}</id>
|
||||
<title>{{$feed_title}}</title>
|
||||
<generator uri="http://hubzilla.org" version="{{$version}}">{{$red}}</generator>
|
||||
<link rel="license" href="http://creativecommons.org/licenses/by/3.0/" />
|
||||
<link rel="alternate" type="text/html" href="{{$profile_page}}" />
|
||||
{{if $author}}
|
||||
{{$author}}
|
||||
{{/if}}
|
||||
|
||||
<updated>{{$feed_updated}}</updated>
|
||||
|
||||
<zot:owner>
|
||||
<name>{{$name}}</name>
|
||||
<uri>{{$profile_page}}</uri>
|
||||
<link rel="photo" type="{{$mimephoto}}" media:width="175" media:height="175" href="{{$photo}}" />
|
||||
<link rel="avatar" type="{{$mimephoto}}" media:width="175" media:height="175" href="{{$photo}}" />
|
||||
</zot:owner>
|
@@ -1,31 +0,0 @@
|
||||
<form id="attach_edit_form_{{$file.id}}" action="filestorage/{{$channelnick}}/{{$file.id}}/edit" method="post" class="acl-form" data-form_id="attach_edit_form_{{$file.id}}" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
|
||||
<input type="hidden" name="channelnick" value="{{$channelnick}}" />
|
||||
<input type="hidden" name="filehash" value="{{$file.hash}}" />
|
||||
<input type="hidden" name="uid" value="{{$uid}}" />
|
||||
<input type="hidden" name="fileid" value="{{$file.id}}" />
|
||||
{{if !$isadir}}{{include file="field_checkbox.tpl" field=$notify}}{{/if}}
|
||||
{{if $isadir}}{{include file="field_checkbox.tpl" field=$recurse}}{{/if}}
|
||||
<div id="attach-edit-tools-share" class="btn-group form-group">
|
||||
{{if !$isadir}}
|
||||
<a href="/rpost?attachment=[attachment]{{$file.hash}},{{$file.revision}}[/attachment]" id="attach-btn" class="btn btn-outline-secondary btn-sm" title="{{$attach_btn_title}}">
|
||||
<i class="fa fa-share-square-o jot-icons"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
<button id="link-btn" class="btn btn-outline-secondary btn-sm" type="button" onclick="openClose('link-code');" title="{{$link_btn_title}}">
|
||||
<i class="fa fa-link jot-icons"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div id="attach-edit-perms" class="btn-group pull-right">
|
||||
<button id="dbtn-acl" class="btn btn-outline-secondary btn-sm" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" type="button">
|
||||
<i id="jot-perms-icon" class="fa fa-{{$lockstate}} jot-icons"></i>
|
||||
</button>
|
||||
<button id="dbtn-submit" class="btn btn-primary btn-sm" type="submit" name="submit">
|
||||
{{$submit}}
|
||||
</button>
|
||||
</div>
|
||||
<div id="link-code" class="form-group">
|
||||
<label for="">{{$cpldesc}}</label>
|
||||
<input type="text" class="form-control" id="linkpasteinput" name="cutpasteextlink" value="{{$cloudpath}}" onclick="this.select();"/>
|
||||
</div>
|
||||
</form>
|
||||
|
@@ -1,10 +0,0 @@
|
||||
{{if $count}}
|
||||
<div id="birthday-notice" class="birthday-notice fakelink {{$classtoday}}" onclick="openClose('birthday-wrapper');">{{$event_reminders}} ({{$count}})</div>
|
||||
<div id="birthday-wrapper" style="display: none;" ><div id="birthday-title">{{$event_title}}</div>
|
||||
<div id="birthday-title-end"></div>
|
||||
{{foreach $events as $event}}
|
||||
<div class="birthday-list" id="birthday-{{$event.id}}"></a> <a href="{{$event.link}}">{{$event.title}}</a> {{$event.date}} </div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
@@ -1,69 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
{{if $editor}}
|
||||
<div class="pull-right">
|
||||
<button id="webpage-create-btn" class="btn btn-sm btn-success" onclick="openClose('block-editor');"><i class="fa fa-pencil-square-o"></i> {{$create}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<h2>{{$title}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{{if $editor}}
|
||||
<div id="block-editor" class="section-content-tools-wrapper">
|
||||
{{$editor}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $pages}}
|
||||
<div id="pagelist-content-wrapper" class="section-content-wrapper-np">
|
||||
<table id="block-list-table">
|
||||
<tr>
|
||||
<th width="1%">{{$name}}</th>
|
||||
<th width="94%">{{$blocktitle}}</th>
|
||||
<th width="1%"></th>
|
||||
<th width="1%"></th>
|
||||
<th width="1%"></th>
|
||||
<th width="1%" class="d-none d-md-table-cell">{{$created}}</th>
|
||||
<th width="1%" class="d-none d-md-table-cell">{{$edited}}</th>
|
||||
</tr>
|
||||
{{foreach $pages as $key => $items}}
|
||||
{{foreach $items as $item}}
|
||||
<tr id="block-list-item-{{$item.url}}">
|
||||
<td>
|
||||
{{if $view}}
|
||||
<a href="block/{{$channel}}/{{$item.name}}" title="{{$view}}">{{$item.name}}</a>
|
||||
{{else}}
|
||||
{{$item.name}}
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{$item.title}}
|
||||
</td>
|
||||
<td class="webpage-list-tool">
|
||||
{{if $edit}}
|
||||
<a href="{{$baseurl}}/{{$item.url}}" title="{{$edit}}"><i class="fa fa-pencil"></i></a>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td class="webpage-list-tool">
|
||||
{{if $item.bb_element}}
|
||||
<a href="rpost?attachment={{$item.bb_element}}" title="{{$share}}"><i class="fa fa-share-square-o"></i></a>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td class="webpage-list-tool">
|
||||
{{if $edit}}
|
||||
<a href="#" title="{{$delete}}" onclick="dropItem('item/drop/{{$item.url}}', '#block-list-item-{{$item.url}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td class="d-none d-md-table-cell">
|
||||
{{$item.created}}
|
||||
</td>
|
||||
<td class="d-none d-md-table-cell">
|
||||
{{$item.edited}}
|
||||
</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
{{/foreach}}
|
||||
</table>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
{{/if}}
|
||||
</div>
|
@@ -1,10 +0,0 @@
|
||||
{{if $rooms}}
|
||||
<div id="chatroom_bookmarks" class="widget">
|
||||
<h3>{{$header}}</h3>
|
||||
<ul class="bookmarkchat nav nav-pills nav-stacked">
|
||||
{{foreach $rooms as $room}}
|
||||
<li><a href="{{$room.xchat_url}}">{{$room.xchat_desc}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
@@ -1,65 +0,0 @@
|
||||
<script>
|
||||
|
||||
var bParam_cmd = "{{$baseurl}}/update_{{$pgtype}}";
|
||||
|
||||
|
||||
var bParam_uid = {{$uid}};
|
||||
var bParam_gid = {{$gid}};
|
||||
var bParam_cid = {{$cid}};
|
||||
var bParam_cmin = {{$cmin}};
|
||||
var bParam_cmax = {{$cmax}};
|
||||
var bParam_star = {{$star}};
|
||||
var bParam_liked = {{$liked}};
|
||||
var bParam_conv = {{$conv}};
|
||||
var bParam_spam = {{$spam}};
|
||||
var bParam_new = {{$nouveau}};
|
||||
var bParam_page = {{$page}};
|
||||
var bParam_wall = {{$wall}};
|
||||
var bParam_list = {{$list}};
|
||||
var bParam_fh = {{$fh}};
|
||||
var bParam_static = {{$static}};
|
||||
|
||||
var bParam_search = "{{$search}}";
|
||||
var bParam_xchan = "{{$xchan}}";
|
||||
var bParam_order = "{{$order}}";
|
||||
var bParam_file = "{{$file}}";
|
||||
var bParam_cats = "{{$cats}}";
|
||||
var bParam_tags = "{{$tags}}";
|
||||
var bParam_dend = "{{$dend}}";
|
||||
var bParam_dbegin = "{{$dbegin}}";
|
||||
var bParam_mid = "{{$mid}}";
|
||||
var bParam_verb = "{{$verb}}";
|
||||
|
||||
function buildCmd() {
|
||||
var udargs = ((page_load) ? "/load" : "");
|
||||
var bCmd = bParam_cmd + udargs + "?f=" ;
|
||||
if(bParam_uid) bCmd = bCmd + "&p=" + bParam_uid;
|
||||
if(bParam_cmin != 0) bCmd = bCmd + "&cmin=" + bParam_cmin;
|
||||
if(bParam_cmax != 99) bCmd = bCmd + "&cmax=" + bParam_cmax;
|
||||
if(bParam_gid != 0) { bCmd = bCmd + "&gid=" + bParam_gid; } else
|
||||
if(bParam_cid != 0) { bCmd = bCmd + "&cid=" + bParam_cid; }
|
||||
if(bParam_static != 0) { bCmd = bCmd + "&static=" + bParam_static; }
|
||||
if(bParam_star != 0) bCmd = bCmd + "&star=" + bParam_star;
|
||||
if(bParam_liked != 0) bCmd = bCmd + "&liked=" + bParam_liked;
|
||||
if(bParam_conv!= 0) bCmd = bCmd + "&conv=" + bParam_conv;
|
||||
if(bParam_spam != 0) bCmd = bCmd + "&spam=" + bParam_spam;
|
||||
if(bParam_new != 0) bCmd = bCmd + "&new=" + bParam_new;
|
||||
if(bParam_wall != 0) bCmd = bCmd + "&wall=" + bParam_wall;
|
||||
if(bParam_list != 0) bCmd = bCmd + "&list=" + bParam_list;
|
||||
if(bParam_fh != 0) bCmd = bCmd + "&fh=" + bParam_fh;
|
||||
if(bParam_search != "") bCmd = bCmd + "&search=" + bParam_search;
|
||||
if(bParam_xchan != "") bCmd = bCmd + "&xchan=" + bParam_xchan;
|
||||
if(bParam_order != "") bCmd = bCmd + "&order=" + bParam_order;
|
||||
if(bParam_file != "") bCmd = bCmd + "&file=" + bParam_file;
|
||||
if(bParam_cats != "") bCmd = bCmd + "&cat=" + bParam_cats;
|
||||
if(bParam_tags != "") bCmd = bCmd + "&tag=" + bParam_tags;
|
||||
if(bParam_dend != "") bCmd = bCmd + "&dend=" + bParam_dend;
|
||||
if(bParam_dbegin != "") bCmd = bCmd + "&dbegin=" + bParam_dbegin;
|
||||
if(bParam_mid != "") bCmd = bCmd + "&mid=" + bParam_mid;
|
||||
if(bParam_verb != "") bCmd = bCmd + "&verb=" + bParam_verb;
|
||||
if(bParam_page != 1) bCmd = bCmd + "&page=" + bParam_page;
|
||||
return(bCmd);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@@ -1,12 +0,0 @@
|
||||
<div id="categories-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<div id="categories-sidebar-desc">{{$desc}}</div>
|
||||
|
||||
<ul class="nav nav-pills flex-column">
|
||||
<li class="nav-item"><a href="{{$base}}" class="nav-link{{if $sel_all}} active{{/if}}">{{$all}}</a></li>
|
||||
{{foreach $terms as $term}}
|
||||
<li class="nav-item"><a href="{{$base}}?f=&cat={{$term.name}}" class="nav-link{{if $term.selected}} active{{/if}}">{{$term.name}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
|
||||
</div>
|
@@ -1,462 +0,0 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$(document).on('click', '.vcard-header, .vcard-cancel-btn', updateView);
|
||||
$(document).on('click', '.add-field', doAdd);
|
||||
$(document).on('click', '.remove-field', doRemove);
|
||||
|
||||
function updateView() {
|
||||
var id = $(this).data('id');
|
||||
var action = $(this).data('action');
|
||||
var header = $('#vcard-header-' + id);
|
||||
var cancel = $('#vcard-cancel-' + id);
|
||||
var addField = $('#vcard-add-field-' + id);
|
||||
var info = $('#vcard-info-' + id);
|
||||
var vcardPreview = $('#vcard-preview-' + id);
|
||||
var fn = $('#vcard-fn-' + id);
|
||||
|
||||
if(action === 'open') {
|
||||
$(header).addClass('active');
|
||||
$(cancel).show();
|
||||
$(addField).show();
|
||||
$(info).show();
|
||||
$(fn).show();
|
||||
$(vcardPreview).hide();
|
||||
}
|
||||
else {
|
||||
$(header).removeClass('active');
|
||||
$(cancel).hide();
|
||||
$(addField).hide();
|
||||
$(info).hide();
|
||||
$(fn).hide();
|
||||
$(vcardPreview).show();
|
||||
}
|
||||
}
|
||||
|
||||
function doAdd(e) {
|
||||
e.preventDefault();
|
||||
var what = $(this).data('add');
|
||||
var id = $(this).data('id');
|
||||
var element = '#template-form-' + what;
|
||||
var where = '#card_form_' + id;
|
||||
|
||||
$(element + ' .remove-field').attr('data-id', id)
|
||||
|
||||
if(what === 'vcard-adr') {
|
||||
var adrCount = $(where + ' .form-' + what).length;
|
||||
var attrName = 'adr[' + adrCount + '][]';
|
||||
$(element + ' input').attr('name', attrName);
|
||||
}
|
||||
|
||||
if(what === 'vcard-org' || what === 'vcard-title' || what === 'vcard-note') {
|
||||
$(where + ' .add-' + what).hide()
|
||||
}
|
||||
|
||||
$(element).clone().removeAttr('id').appendTo(where + ' .form-' + what + '-wrapper');
|
||||
}
|
||||
|
||||
function doRemove() {
|
||||
var what = $(this).data('remove');
|
||||
var element = $(this).parents('div.form-' + what);
|
||||
var where = '#card_form_' + $(this).data('id');
|
||||
|
||||
if(what === 'vcard-org' || what === 'vcard-title' || what === 'vcard-note') {
|
||||
$(where + ' .add-' + what).show()
|
||||
}
|
||||
|
||||
$(element).remove();
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
<div id="template-form-vcard-org" class="form-group form-vcard-org">
|
||||
<div class="form-group form-vcard-org">
|
||||
<input type="text" name="org" value="" placeholder="{{$org_label}}">
|
||||
<i data-remove="vcard-org" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-title" class="form-group form-vcard-title">
|
||||
<div class="form-group form-vcard-title">
|
||||
<input type="text" name="title" value="" placeholder="{{$title_label}}">
|
||||
<i data-remove="vcard-title" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-tel" class="form-group form-vcard-tel">
|
||||
<select name="tel_type[]">
|
||||
<option value="CELL">{{$mobile}}</option>
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="tel[]" value="" placeholder="{{$tel_label}}">
|
||||
<i data-remove="vcard-tel" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-email" class="form-group form-vcard-email">
|
||||
<select name="email_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="email[]" value="" placeholder="{{$email_label}}">
|
||||
<i data-remove="vcard-email" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-impp" class="form-group form-vcard-impp">
|
||||
<select name="impp_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="impp[]" value="" placeholder="{{$impp_label}}">
|
||||
<i data-remove="vcard-impp" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-url" class="form-group form-vcard-url">
|
||||
<select name="url_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="url[]" value="" placeholder="{{$url_label}}">
|
||||
<i data-remove="vcard-url" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-adr" class="form-group form-vcard-adr">
|
||||
<div class="form-group">
|
||||
<select name="adr_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<label>{{$adr_label}}</label>
|
||||
<i data-remove="vcard-adr" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$po_box}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$extra}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$street}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$locality}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$region}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$zip_code}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="" value="" placeholder="{{$country}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="template-form-vcard-note" class="form-group form-vcard-note">
|
||||
<label>{{$note_label}}</label>
|
||||
<i data-remove="vcard-note" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
<textarea name="note" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<button type="button" class="btn btn-success btn-sm float-right" onclick="openClose('create_form')"><i class="fa fa-plus-circle"></i> {{$add_card}}</button>
|
||||
<h2>{{$displayname}}</h2>
|
||||
</div>
|
||||
<div id="create_form" class="section-content-tools-wrapper">
|
||||
<form id="card_form_new" method="post" action="">
|
||||
<input type="hidden" name="target" value="{{$id}}">
|
||||
<div class="dropdown pull-right">
|
||||
<button data-toggle="dropdown" type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle"><i class="fa fa-plus"></i> {{$add_field}}</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a class="dropdown-item add-vcard-org add-field" style="display: none" href="#" data-add="vcard-org" data-id="new">{{$org_label}}</a>
|
||||
<a class="dropdown-item add-vcard-title add-field" style="display: none" href="#" data-add="vcard-title" data-id="new">{{$title_label}}</a>
|
||||
<a class="dropdown-item add-vcard-tel add-field" href="#" data-add="vcard-tel" data-id="new">{{$tel_label}}</a>
|
||||
<a class="dropdown-item add-vcard-email add-field" href="#" data-add="vcard-email" data-id="new">{{$email_label}}</a>
|
||||
<a class="dropdown-item add-vcard-impp add-field" href="#" data-add="vcard-impp" data-id="new">{{$impp_label}}</a>
|
||||
<a class="dropdown-item add-vcard-url add-field" href="#" data-add="vcard-url" data-id="new">{{$url_label}}</a>
|
||||
<a class="dropdown-item add-vcard-adr add-field" href="#" data-add="vcard-adr" data-id="new">{{$adr_label}}</a>
|
||||
<a class="dropdown-item add-vcard-note add-field" href="#" data-add="vcard-note" data-id="new">{{$note_label}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-fn-create form-group">
|
||||
<div class="form-vcard-fn-wrapper">
|
||||
<div class="form-group form-vcard-fn">
|
||||
<div class="vcard-nophoto"><i class="fa fa-user"></i></div><input type="text" name="fn" value="" placeholder="{{$name_label}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-org form-group">
|
||||
<div class="form-vcard-org-wrapper">
|
||||
<div class="form-group form-vcard-org">
|
||||
<input type="text" name="org" value="" placeholder="{{$org_label}}">
|
||||
<i data-remove="vcard-org" data-id="new" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-title form-group">
|
||||
<div class="form-vcard-title-wrapper">
|
||||
<div class="form-group form-vcard-title">
|
||||
<input type="text" name="title" value="" placeholder="{{$title_label}}">
|
||||
<i data-remove="vcard-title" data-id="new" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-tel form-group">
|
||||
<div class="form-vcard-tel-wrapper">
|
||||
<div class="form-group form-vcard-tel">
|
||||
<select name="tel_type[]">
|
||||
<option value="CELL">{{$mobile}}</option>
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="tel[]" value="" placeholder="{{$tel_label}}">
|
||||
<i data-remove="vcard-tel" data-id="new" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="vcard-email form-group">
|
||||
<div class="form-vcard-email-wrapper">
|
||||
<div class="form-group form-vcard-email">
|
||||
<select name="email_type[]">
|
||||
<option value="HOME">{{$home}}</option>
|
||||
<option value="WORK">{{$work}}</option>
|
||||
<option value="OTHER">{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="email[]" value="" placeholder="{{$email_label}}">
|
||||
<i data-remove="vcard-email" data-id="new" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-impp form-group">
|
||||
<div class="form-vcard-impp-wrapper">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-url form-group">
|
||||
<div class="form-vcard-url-wrapper">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-adr form-group">
|
||||
<div class="form-vcard-adr-wrapper">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-note form-group">
|
||||
<div class="form-vcard-note-wrapper">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" name="create" value="create_card" class="btn btn-primary btn-sm pull-right">{{$create}}</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="openClose('create_form')">{{$cancel}}</button>
|
||||
<div class="clear"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{{foreach $cards as $card}}
|
||||
<form id="card_form_{{$card.id}}" method="post" action="">
|
||||
<input type="hidden" name="target" value="{{$id}}">
|
||||
<input type="hidden" name="uri" value="{{$card.uri}}">
|
||||
<div class="section-content-wrapper-np">
|
||||
<div id="vcard-cancel-{{$card.id}}" class="vcard-cancel vcard-cancel-btn" data-id="{{$card.id}}" data-action="cancel"><i class="fa fa-close"></i></div>
|
||||
<div id="vcard-add-field-{{$card.id}}" class="dropdown pull-right vcard-add-field">
|
||||
<button data-toggle="dropdown" type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle"><i class="fa fa-plus"></i> {{$add_field}}</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a class="dropdown-item add-vcard-org add-field"{{if $card.org}} style="display: none"{{/if}} href="#" data-add="vcard-org" data-id="{{$card.id}}">{{$org_label}}</a>
|
||||
<a class="dropdown-item add-vcard-title add-field"{{if $card.title}} style="display: none"{{/if}} href="#" data-add="vcard-title" data-id="{{$card.id}}">{{$title_label}}</a>
|
||||
<a class="dropdown-item add-vcard-tel add-field" href="#" data-add="vcard-tel" data-id="{{$card.id}}">{{$tel_label}}</a>
|
||||
<a class="dropdown-item add-vcard-email add-field" href="#" data-add="vcard-email" data-id="{{$card.id}}">{{$email_label}}</a>
|
||||
<a class="dropdown-item add-vcard-impp add-field" href="#" data-add="vcard-impp" data-id="{{$card.id}}">{{$impp_label}}</a>
|
||||
<a class="dropdown-item add-vcard-url add-field" href="#" data-add="vcard-url" data-id="{{$card.id}}">{{$url_label}}</a>
|
||||
<a class="dropdown-item add-vcard-adr add-field" href="#" data-add="vcard-adr" data-id="{{$card.id}}">{{$adr_label}}</a>
|
||||
<a class="dropdown-item add-vcard-note add-field"{{if $card.note}} style="display: none"{{/if}} href="#" data-add="vcard-note" data-id="{{$card.id}}">{{$note_label}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="vcard-header-{{$card.id}}" class="vcard-header" data-id="{{$card.id}}" data-action="open">
|
||||
{{if $card.photo}}<img class="vcard-photo" src="{{$card.photo}}" width="32px" height="32px">{{else}}<div class="vcard-nophoto"><i class="fa fa-user"></i></div>{{/if}}
|
||||
<span id="vcard-preview-{{$card.id}}" class="vcard-preview">
|
||||
{{if $card.fn}}<span class="vcard-fn-preview">{{$card.fn}}</span>{{/if}}
|
||||
{{if $card.emails.0.address}}<span class="vcard-email-preview hidden-xs">{{$card.emails.0.address}}</span>{{/if}}
|
||||
{{if $card.tels.0}}<span class="vcard-tel-preview hidden-xs">{{$card.tels.0.nr}}</span>{{/if}}
|
||||
</span>
|
||||
<input id="vcard-fn-{{$card.id}}" class="vcard-fn" type="text" name="fn" value="{{$card.fn}}" size="{{$card.fn|count_characters:true}}" placeholder="{{$name_label}}">
|
||||
</div>
|
||||
</div>
|
||||
<div id="vcard-info-{{$card.id}}" class="vcard-info section-content-wrapper">
|
||||
|
||||
<div class="vcard-org form-group">
|
||||
<div class="form-vcard-org-wrapper">
|
||||
{{if $card.org}}
|
||||
<div class="form-group form-vcard-org">
|
||||
<input type="text" name="org" value="{{$card.org}}" size="{{$card.org|count_characters:true}}" placeholder="{{$org_label}}">
|
||||
<i data-remove="vcard-org" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-title form-group">
|
||||
<div class="form-vcard-title-wrapper">
|
||||
{{if $card.title}}
|
||||
<div class="form-group form-vcard-title">
|
||||
<input type="text" name="title" value="{{$card.title}}" size="{{$card.title|count_characters:true}}" placeholder="{{$title_label}}">
|
||||
<i data-remove="vcard-title" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="vcard-tel form-group">
|
||||
<div class="form-vcard-tel-wrapper">
|
||||
{{if $card.tels}}
|
||||
{{foreach $card.tels as $tel}}
|
||||
<div class="form-group form-vcard-tel">
|
||||
<select name="tel_type[]">
|
||||
<option value=""{{if $tel.type.0 != 'CELL' && $tel.type.0 != 'HOME' && $tel.type.0 != 'WORK' && $tel.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$tel.type.1}}</option>
|
||||
<option value="CELL"{{if $tel.type.0 == 'CELL'}} selected="selected"{{/if}}>{{$mobile}}</option>
|
||||
<option value="HOME"{{if $tel.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $tel.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $tel.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="tel[]" value="{{$tel.nr}}" size="{{$tel.nr|count_characters:true}}" placeholder="{{$tel_label}}">
|
||||
<i data-remove="vcard-tel" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="vcard-email form-group">
|
||||
<div class="form-vcard-email-wrapper">
|
||||
{{if $card.emails}}
|
||||
{{foreach $card.emails as $email}}
|
||||
<div class="form-group form-vcard-email">
|
||||
<select name="email_type[]">
|
||||
<option value=""{{if $email.type.0 != 'HOME' && $email.type.0 != 'WORK' && $email.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$email.type.1}}</option>
|
||||
<option value="HOME"{{if $email.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $email.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $email.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="email[]" value="{{$email.address}}" size="{{$email.address|count_characters:true}}" placeholder="{{$email_label}}">
|
||||
<i data-remove="vcard-email" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-impp form-group">
|
||||
<div class="form-vcard-impp-wrapper">
|
||||
{{if $card.impps}}
|
||||
{{foreach $card.impps as $impp}}
|
||||
<div class="form-group form-vcard-impp">
|
||||
<select name="impp_type[]">
|
||||
<option value=""{{if $impp.type.0 != 'HOME' && $impp.type.0 != 'WORK' && $impp.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$impp.type.1}}</option>
|
||||
<option value="HOME"{{if $impp.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $impp.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $impp.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="impp[]" value="{{$impp.address}}" size="{{$impp.address|count_characters:true}}" placeholder="{{$impp_label}}">
|
||||
<i data-remove="vcard-impp" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-url form-group">
|
||||
<div class="form-vcard-url-wrapper">
|
||||
{{if $card.urls}}
|
||||
{{foreach $card.urls as $url}}
|
||||
<div class="form-group form-vcard-url">
|
||||
<select name="url_type[]">
|
||||
<option value=""{{if $url.type.0 != 'HOME' && $url.type.0 != 'WORK' && $url.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$url.type.1}}</option>
|
||||
<option value="HOME"{{if $url.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $url.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $url.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<input type="text" name="url[]" value="{{$url.address}}" size="{{$url.address|count_characters:true}}" placeholder="{{$url_label}}">
|
||||
<i data-remove="vcard-url" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-adr form-group">
|
||||
<div class="form-vcard-adr-wrapper">
|
||||
{{if $card.adrs}}
|
||||
{{foreach $card.adrs as $adr}}
|
||||
<div class="form-group form-vcard-adr">
|
||||
<div class="form-group">
|
||||
<label>{{$adr_label}}</label>
|
||||
<select name="adr_type[]">
|
||||
<option value=""{{if $adr.type.0 != 'HOME' && $adr.type.0 != 'WORK' && $adr.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$adr.type.1}}</option>
|
||||
<option value="HOME"{{if $adr.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||
<option value="WORK"{{if $adr.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||
<option value="OTHER"{{if $adr.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||
</select>
|
||||
<i data-remove="vcard-adr" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.0}}" size="{{$adr.address.0|count_characters:true}}" placeholder="{{$po_box}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.1}}" size="{{$adr.address.1|count_characters:true}}" placeholder="{{$extra}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.2}}" size="{{$adr.address.2|count_characters:true}}" placeholder="{{$street}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.3}}" size="{{$adr.address.3|count_characters:true}}" placeholder="{{$locality}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.4}}" size="{{$adr.address.4|count_characters:true}}" placeholder="{{$region}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.5}}" size="{{$adr.address.5|count_characters:true}}" placeholder="{{$zip_code}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.6}}" size="{{$adr.address.6|count_characters:true}}" placeholder="{{$country}}">
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="vcard-note form-group form-vcard-note">
|
||||
<div class="form-vcard-note-wrapper">
|
||||
{{if $card.note}}
|
||||
<label>{{$note_label}}</label>
|
||||
<i data-remove="vcard-note" data-id="{{$card.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||
<textarea name="note" class="form-control">{{$card.note}}</textarea>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button type="submit" name="update" value="update_card" class="btn btn-primary btn-sm pull-right">{{$update}}</button>
|
||||
<button type="submit" name="delete" value="delete_card" class="btn btn-danger btn-sm">{{$delete}}</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm vcard-cancel-btn" data-id="{{$card.id}}" data-action="cancel">{{$cancel}}</button>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</form>
|
||||
{{/foreach}}
|
||||
</div>
|
@@ -1,349 +0,0 @@
|
||||
<script>
|
||||
|
||||
var new_event = [];
|
||||
var new_event_id = Math.random().toString(36).substring(7);
|
||||
var views = {'month' : '{{$month}}', 'agendaWeek' : '{{$week}}', 'agendaDay' : '{{$day}}', 'listMonth' : '{{$list_month}}', 'listWeek' : '{{$list_week}}', 'listDay' : '{{$list_day}}'};
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#calendar').fullCalendar({
|
||||
eventSources: [ {{$sources}} ],
|
||||
|
||||
header: false,
|
||||
eventTextColor: 'white',
|
||||
|
||||
lang: '{{$lang}}',
|
||||
firstDay: {{$first_day}},
|
||||
|
||||
monthNames: aStr['monthNames'],
|
||||
monthNamesShort: aStr['monthNamesShort'],
|
||||
dayNames: aStr['dayNames'],
|
||||
dayNamesShort: aStr['dayNamesShort'],
|
||||
allDayText: aStr['allday'],
|
||||
|
||||
timeFormat: 'HH:mm',
|
||||
timezone: 'local',
|
||||
|
||||
defaultTimedEventDuration: '01:00:00',
|
||||
snapDuration: '00:15:00',
|
||||
|
||||
dayClick: function(date, jsEvent, view) {
|
||||
|
||||
if(new_event.length)
|
||||
$('#calendar').fullCalendar( 'removeEventSource', new_event);
|
||||
|
||||
$('#event_uri').val('');
|
||||
$('#id_title').val('New event');
|
||||
$('#calendar_select').val($("#calendar_select option:first").val()).attr('disabled', false);
|
||||
$('#id_dtstart').val(date.format());
|
||||
$('#id_dtend').val(date.hasTime() ? date.add(1, 'hours').format() : date.add(1, 'days').format());
|
||||
$('#id_description').val('');
|
||||
$('#id_location').val('');
|
||||
$('#event_submit').val('create_event').html('Create');
|
||||
$('#event_delete').hide();
|
||||
|
||||
new_event = [{ id: new_event_id, title : 'New event', start: $('#id_dtstart').val(), end: $('#id_dtend').val(), editable: true, color: '#bbb' }]
|
||||
$('#calendar').fullCalendar( 'addEventSource', new_event);
|
||||
},
|
||||
|
||||
eventClick: function(event, jsEvent, view) {
|
||||
|
||||
if(event.id == new_event_id) {
|
||||
$(window).scrollTop(0);
|
||||
$('.section-content-tools-wrapper, #event_form_wrapper').show();
|
||||
$('#recurrence_warning').hide();
|
||||
$('#id_title').focus().val('');
|
||||
return false;
|
||||
}
|
||||
|
||||
if($('main').hasClass('fullscreen') && view.type !== 'month' && event.rw)
|
||||
$('#calendar').fullCalendar('option', 'height', 'auto');
|
||||
|
||||
if(new_event.length && event.rw) {
|
||||
$('#calendar').fullCalendar( 'removeEventSource', new_event);
|
||||
}
|
||||
|
||||
if(!event.recurrent && event.rw) {
|
||||
var start_clone = moment(event.start);
|
||||
var noend_allday = start_clone.add(1, 'day').format('YYYY-MM-DD');
|
||||
|
||||
$(window).scrollTop(0);
|
||||
$('.section-content-tools-wrapper, #event_form_wrapper').show();
|
||||
$('#recurrence_warning').hide();
|
||||
$('#id_title').focus();
|
||||
|
||||
$('#event_uri').val(event.uri);
|
||||
$('#id_title').val(event.title);
|
||||
$('#calendar_select').val(event.calendar_id[0] + ':' + event.calendar_id[1]).attr('disabled', true);
|
||||
$('#id_dtstart').val(event.start.format());
|
||||
$('#id_dtend').val(event.end ? event.end.format() : event.start.hasTime() ? '' : noend_allday);
|
||||
$('#id_description').val(event.description);
|
||||
$('#id_location').val(event.location);
|
||||
$('#event_submit').val('update_event').html('Update');
|
||||
$('#event_delete').show();
|
||||
}
|
||||
else if(event.recurrent && event.rw) {
|
||||
$('.section-content-tools-wrapper, #recurrence_warning').show();
|
||||
$('#event_form_wrapper').hide();
|
||||
$('#event_uri').val(event.uri);
|
||||
$('#calendar_select').val(event.calendar_id[0] + ':' + event.calendar_id[1]).attr('disabled', true);
|
||||
}
|
||||
},
|
||||
|
||||
eventResize: function(event, delta, revertFunc) {
|
||||
|
||||
$('#id_title').val(event.title);
|
||||
$('#id_dtstart').val(event.start.format());
|
||||
$('#id_dtend').val(event.end.format());
|
||||
|
||||
$.post( 'cdav/calendar', {
|
||||
'update': 'resize',
|
||||
'id[]': event.calendar_id,
|
||||
'uri': event.uri,
|
||||
'dtstart': event.start ? event.start.format() : '',
|
||||
'dtend': event.end ? event.end.format() : ''
|
||||
})
|
||||
.fail(function() {
|
||||
revertFunc();
|
||||
});
|
||||
},
|
||||
|
||||
eventDrop: function(event, delta, revertFunc) {
|
||||
|
||||
var start_clone = moment(event.start);
|
||||
var noend_allday = start_clone.add(1, 'day').format('YYYY-MM-DD');
|
||||
|
||||
$('#id_title').val(event.title);
|
||||
$('#id_dtstart').val(event.start.format());
|
||||
$('#id_dtend').val(event.end ? event.end.format() : event.start.hasTime() ? '' : noend_allday);
|
||||
|
||||
$.post( 'cdav/calendar', {
|
||||
'update': 'drop',
|
||||
'id[]': event.calendar_id,
|
||||
'uri': event.uri,
|
||||
'dtstart': event.start ? event.start.format() : '',
|
||||
'dtend': event.end ? event.end.format() : event.start.hasTime() ? '' : noend_allday
|
||||
})
|
||||
.fail(function() {
|
||||
revertFunc();
|
||||
});
|
||||
},
|
||||
|
||||
loading: function(isLoading, view) {
|
||||
$('#events-spinner').spin('tiny');
|
||||
$('#events-spinner > i').css('color', 'transparent');
|
||||
if(!isLoading) {
|
||||
$('#events-spinner').spin(false);
|
||||
$('#events-spinner > i').css('color', '');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// echo the title
|
||||
var view = $('#calendar').fullCalendar('getView');
|
||||
|
||||
$('#title').text(view.title);
|
||||
|
||||
$('#view_selector').html(views[view.name]);
|
||||
|
||||
$('.color-edit').colorpicker({ input: '.color-edit-input' });
|
||||
|
||||
$(document).on('click','#fullscreen-btn', on_fullscreen);
|
||||
$(document).on('click','#inline-btn', on_inline);
|
||||
|
||||
$(document).on('click','#event_submit', on_submit);
|
||||
$(document).on('click','#event_more', on_more);
|
||||
$(document).on('click','#event_cancel, #event_cancel_recurrent', reset_form);
|
||||
$(document).on('click','#event_delete, #event_delete_recurrent', on_delete);
|
||||
|
||||
});
|
||||
|
||||
function changeView(action, viewName) {
|
||||
$('#calendar').fullCalendar(action, viewName);
|
||||
var view = $('#calendar').fullCalendar('getView');
|
||||
|
||||
if($('main').hasClass('fullscreen'))
|
||||
if(view.name !== 'month')
|
||||
$('.section-content-tools-wrapper').css('display') === 'none' ? on_fullscreen() : on_inline() ;
|
||||
else
|
||||
on_fullscreen();
|
||||
else
|
||||
on_inline();
|
||||
|
||||
$('#title').text(view.title);
|
||||
$('#view_selector').html(views[view.name]);
|
||||
}
|
||||
|
||||
function add_remove_json_source(source, color, editable, status) {
|
||||
|
||||
if(status === undefined)
|
||||
status = 'fa-calendar-check-o';
|
||||
|
||||
if(status === 'drop') {
|
||||
reset_form();
|
||||
$('#calendar').fullCalendar( 'removeEventSource', source );
|
||||
return;
|
||||
}
|
||||
|
||||
var parts = source.split('/');
|
||||
var id = parts[4];
|
||||
|
||||
var selector = '#calendar-btn-' + id;
|
||||
|
||||
if($(selector).hasClass('fa-calendar-o')) {
|
||||
$('#calendar').fullCalendar( 'addEventSource', { url: source, color: color, editable: editable });
|
||||
$(selector).removeClass('fa-calendar-o');
|
||||
$(selector).addClass(status);
|
||||
$.get('/cdav/calendar/switch/' + id + '/1');
|
||||
}
|
||||
else {
|
||||
$('#calendar').fullCalendar( 'removeEventSource', source );
|
||||
$(selector).removeClass(status);
|
||||
$(selector).addClass('fa-calendar-o');
|
||||
$.get('/cdav/calendar/switch/' + id + '/0');
|
||||
}
|
||||
}
|
||||
|
||||
function on_fullscreen() {
|
||||
var view = $('#calendar').fullCalendar('getView');
|
||||
if(($('.section-content-tools-wrapper').css('display') === 'none') || ($('.section-content-tools-wrapper').css('display') !== 'none' && view.type === 'month'))
|
||||
$('#calendar').fullCalendar('option', 'height', $(window).height() - $('.section-title-wrapper').outerHeight(true) - 2); // -2 is for border width (.generic-content-wrapper top and bottom) of .generic-content-wrapper
|
||||
}
|
||||
|
||||
function on_inline() {
|
||||
var view = $('#calendar').fullCalendar('getView');
|
||||
((view.type === 'month') ? $('#calendar').fullCalendar('option', 'height', '') : $('#calendar').fullCalendar('option', 'height', 'auto'));
|
||||
}
|
||||
|
||||
function on_submit() {
|
||||
$.post( 'cdav/calendar', {
|
||||
'submit': $('#event_submit').val(),
|
||||
'target': $('#calendar_select').val(),
|
||||
'uri': $('#event_uri').val(),
|
||||
'title': $('#id_title').val(),
|
||||
'dtstart': $('#id_dtstart').val(),
|
||||
'dtend': $('#id_dtend').val(),
|
||||
'description': $('#id_description').val(),
|
||||
'location': $('#id_location').val()
|
||||
})
|
||||
.done(function() {
|
||||
$('#calendar').fullCalendar( 'refetchEventSources', [ {{$sources}} ] );
|
||||
reset_form();
|
||||
});
|
||||
}
|
||||
|
||||
function on_delete() {
|
||||
$.post( 'cdav/calendar', {
|
||||
'delete': 'delete',
|
||||
'target': $('#calendar_select').val(),
|
||||
'uri': $('#event_uri').val(),
|
||||
})
|
||||
.done(function() {
|
||||
$('#calendar').fullCalendar( 'refetchEventSources', [ {{$sources}} ] );
|
||||
reset_form();
|
||||
});
|
||||
}
|
||||
|
||||
function reset_form() {
|
||||
$('.section-content-tools-wrapper, #event_form_wrapper, #recurrence_warning').hide();
|
||||
|
||||
$('#event_submit').val('');
|
||||
$('#calendar_select').val('');
|
||||
$('#event_uri').val('');
|
||||
$('#id_title').val('');
|
||||
$('#id_dtstart').val('');
|
||||
$('#id_dtend').val('');
|
||||
|
||||
if(new_event.length)
|
||||
$('#calendar').fullCalendar( 'removeEventSource', new_event);
|
||||
|
||||
if($('#more_block').hasClass('open'))
|
||||
on_more();
|
||||
|
||||
if($('main').hasClass('fullscreen'))
|
||||
on_fullscreen();
|
||||
}
|
||||
|
||||
function on_more() {
|
||||
if($('#more_block').hasClass('open')) {
|
||||
$('#event_more').html('<i class="fa fa-caret-down"></i> {{$more}}');
|
||||
$('#more_block').removeClass('open').hide();
|
||||
}
|
||||
else {
|
||||
$('#event_more').html('<i class="fa fa-caret-up"></i> {{$less}}');
|
||||
$('#more_block').addClass('open').show();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<div class="float-right">
|
||||
<div class="dropdown">
|
||||
<button id="view_selector" type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown"></button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'month'); return false;">{{$month}}</a></li>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'agendaWeek'); return false;">{{$week}}</a></li>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'agendaDay'); return false;">{{$day}}</a></li>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'listMonth'); return false;">{{$list_month}}</a></li>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'listWeek'); return false;">{{$list_week}}</a></li>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'listDay'); return false;">{{$list_day}}</a></li>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="changeView('prev', false);" title="{{$prev}}"><i class="fa fa-backward"></i></button>
|
||||
<button id="events-spinner" class="btn btn-outline-secondary btn-sm" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye"></i></button>
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="changeView('next', false);" title="{{$next}}"><i class="fa fa-forward"></i></button>
|
||||
</div>
|
||||
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen();"><i class="fa fa-expand"></i></button>
|
||||
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false);"><i class="fa fa-compress"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<h2 id="title"></h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="section-content-tools-wrapper" style="display: none">
|
||||
<div id="recurrence_warning" style="display: none">
|
||||
<div class="section-content-warning-wrapper">
|
||||
{{$recurrence_warning}}
|
||||
</div>
|
||||
<div>
|
||||
<button id="event_delete_recurrent" type="button" class="btn btn-danger btn-sm">{{$delete_all}}</button>
|
||||
<button id="event_cancel_recurrent" type="button" class="btn btn-outline-secondary btn-sm">{{$cancel}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="event_form_wrapper" style="display: none">
|
||||
<form id="event_form" method="post" action="">
|
||||
<input id="event_uri" type="hidden" name="uri" value="">
|
||||
{{include file="field_input.tpl" field=$title}}
|
||||
<label for="calendar_select">{{$calendar_select_label}}</label>
|
||||
<select id="calendar_select" name="target" class="form-control form-group">
|
||||
{{foreach $writable_calendars as $writable_calendar}}
|
||||
<option value="{{$writable_calendar.id.0}}:{{$writable_calendar.id.1}}">{{$writable_calendar.displayname}}{{if $writable_calendar.sharer}} ({{$writable_calendar.sharer}}){{/if}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
<div id="more_block" style="display: none;">
|
||||
{{include file="field_input.tpl" field=$dtstart}}
|
||||
{{include file="field_input.tpl" field=$dtend}}
|
||||
{{include file="field_textarea.tpl" field=$description}}
|
||||
{{include file="field_textarea.tpl" field=$location}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="pull-right">
|
||||
<button id="event_more" type="button" class="btn btn-outline-secondary btn-sm"><i class="fa fa-caret-down"></i> {{$more}}</button>
|
||||
<button id="event_submit" type="button" value="" class="btn btn-primary btn-sm"></button>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<button id="event_delete" type="button" class="btn btn-danger btn-sm">{{$delete}}</button>
|
||||
<button id="event_cancel" type="button" class="btn btn-outline-secondary btn-sm">{{$cancel}}</button>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section-content-wrapper-np">
|
||||
<div id="calendar"></div>
|
||||
</div>
|
||||
</div>
|
@@ -1,66 +0,0 @@
|
||||
<div class="widget">
|
||||
<h3>{{$addressbooks_label}}</h3>
|
||||
{{foreach $addressbooks as $addressbook}}
|
||||
<div id="addressbook-{{$addressbook.id}}" class="ml-3">
|
||||
<div class="form-group">
|
||||
<i class="fa fa-user generic-icons"></i><a href="/cdav/addressbook/{{$addressbook.id}}">{{$addressbook.displayname}}</a>
|
||||
<div class="float-right">
|
||||
<i id="edit-icon" class="fa fa-pencil fakelink generic-icons" onclick="openClose('edit-addressbook-{{$addressbook.id}}')"></i>
|
||||
<a href="/cdav/addressbooks/{{$addressbook.ownernick}}/{{$addressbook.uri}}/?export"><i id="download-icon" class="fa fa-cloud-download fakelink generic-icons"></i></a>
|
||||
<a href="#" onclick="dropItem('/cdav/addressbook/drop/{{$addressbook.id}}', '#addressbook-{{$addressbook.id}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="edit-addressbook-{{$addressbook.id}}" class="sub-menu" style="display: none;">
|
||||
<form id="edit-addressbook-{{$addressbook.id}}" method="post" action="">
|
||||
<label for="edit-{{$addressbook.id}}">{{$edit_label}}</label>
|
||||
<div id="edit-form-{{$addressbook.id}}" class="form-group">
|
||||
<input id="id-{{$addressbook.id}}" name="id" type="hidden" value="{{$addressbook.id}}">
|
||||
<input id="edit-{{$addressbook.id}}" name="{DAV:}displayname" type="text" value="{{$addressbook.displayname}}" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" name="edit" value="edit" class="btn btn-primary btn-sm">{{$edit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
|
||||
<div class="widget">
|
||||
<h3>{{$tools_label}}</h3>
|
||||
<ul class="nav nav-pills flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openClose('create-addressbook'); return false;"><i class="fa fa-user-plus generic-icons"></i> {{$create_label}}</a>
|
||||
</li>
|
||||
<div id="create-addressbook" class="sub-menu-wrapper">
|
||||
<div class="sub-menu">
|
||||
<form method="post" action="">
|
||||
<div class="form-group">
|
||||
<input id="create" name="{DAV:}displayname" type="text" placeholder="{{$create_placeholder}}" class="form-control form-group">
|
||||
<button type="submit" name="create" value="create" class="btn btn-primary btn-sm">{{$create}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openClose('upload-form'); return false;"><i class="fa fa-cloud-upload generic-icons"></i> {{$import_label}}</a>
|
||||
</li>
|
||||
<div id="upload-form" class="sub-menu-wrapper">
|
||||
<div class="sub-menu">
|
||||
<div class="form-group">
|
||||
<select id="import" name="target" class="form-control">
|
||||
<option value="">{{$import_placeholder}}</option>
|
||||
{{foreach $addressbooks as $addressbook}}
|
||||
<option value="{{$addressbook.id}}">{{$addressbook.displayname}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-control-file w-100" id="addressbook-upload-choose" type="file" name="userfile" />
|
||||
</div>
|
||||
<button class="btn btn-primary btn-sm" type="submit" name="a_upload" value="a_upload">{{$upload}}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
@@ -1,121 +0,0 @@
|
||||
{{if $my_calendars}}
|
||||
<div class="widget">
|
||||
<h3>{{$my_calendars_label}}</h3>
|
||||
{{foreach $my_calendars as $calendar}}
|
||||
<div id="calendar-{{$calendar.calendarid}}">
|
||||
<div class="ml-3{{if !$calendar@last}} form-group{{/if}}">
|
||||
<i id="calendar-btn-{{$calendar.calendarid}}" class="fa {{if $calendar.switch}}fa-calendar-check-o{{else}}fa-calendar-o{{/if}} generic-icons fakelink" onclick="add_remove_json_source('{{$calendar.json_source}}', '{{$calendar.color}}', {{$calendar.editable}})" style="color: {{$calendar.color}};"></i>{{$calendar.displayname}}
|
||||
<div class="float-right">
|
||||
<i id="edit-icon" class="fa fa-pencil fakelink generic-icons" onclick="openClose('edit-calendar-{{$calendar.calendarid}}')"></i>
|
||||
<a href="/cdav/calendars/{{$calendar.ownernick}}/{{$calendar.uri}}/?export"><i id="download-icon" class="fa fa-cloud-download fakelink generic-icons"></i></a>
|
||||
<i id="share-icon" class="fa fa-share-alt fakelink generic-icons" onclick="openClose('share-calendar-{{$calendar.calendarid}}')"></i>
|
||||
<a href="#" onclick="var drop = dropItem('/cdav/calendar/drop/{{$calendar.calendarid}}/{{$calendar.instanceid}}', '#calendar-{{$calendar.calendarid}}'); if(drop) { add_remove_json_source('{{$calendar.json_source}}', '{{$calendar.color}}', {{$calendar.editable}}, 'drop'); } return false;"><i class="fa fa-trash-o drop-icons"></i></a>
|
||||
</div>
|
||||
<div id="share-calendar-{{$calendar.calendarid}}" class="sub-menu" style="display: none; border-color: {{$calendar.color}};">
|
||||
{{if $calendar.sharees}}
|
||||
{{foreach $calendar.sharees as $sharee}}
|
||||
<div id="sharee-{{$calendar.calendarid}}" class="form-group">
|
||||
<i class="fa fa-share generic-icons"></i>{{$sharee.name}} {{$sharee.access}}
|
||||
<div class="pull-right">
|
||||
<a href="#" onclick="dropItem('/cdav/calendar/dropsharee/{{$calendar.calendarid}}/{{$calendar.instanceid}}/{{$sharee.hash}}', '#sharee-{{$calendar.calendarid}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
<form method="post" action="">
|
||||
<label for="share-{{$calendar.calendarid}}">{{$share_label}}</label>
|
||||
<input name="calendarid" type="hidden" value="{{$calendar.calendarid}}">
|
||||
<input name="instanceid" type="hidden" value="{{$calendar.instanceid}}">
|
||||
<div class="form-group">
|
||||
<select id="share-{{$calendar.calendarid}}" name="sharee" class="form-control">
|
||||
{{$sharee_options}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<select name="access" class="form-control">
|
||||
{{$access_options}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" name="share" value="share" class="btn btn-primary btn-sm">{{$share}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="edit-calendar-{{$calendar.calendarid}}" class="sub-menu" style="display: none; border-color: {{$calendar.color}};">
|
||||
<form id="edit-calendar-{{$calendar.calendarid}}" method="post" action="" class="colorpicker-component color-edit">
|
||||
<input id="id-{{$calendar.calendarid}}" name="id" type="hidden" value="{{$calendar.calendarid}}:{{$calendar.instanceid}}">
|
||||
<input id="color-{{$calendar.calendarid}}" name="color" type="hidden" value="{{$calendar.color}}" class="color-edit-input">
|
||||
<label for="edit-form-{{$calendar.calendarid}}">{{$edit_label}}</label>
|
||||
<div id="edit-form-{{$calendar.calendarid}}" class="input-group form-group">
|
||||
<input id="create-{{$calendar.calendarid}}" name="{DAV:}displayname" type="text" value="{{$calendar.displayname}}" class="form-control">
|
||||
<span class="input-group-addon"><i></i></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" name="edit" value="edit" class="btn btn-primary btn-sm">{{$edit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $shared_calendars}}
|
||||
<div class="widget">
|
||||
<h3>{{$shared_calendars_label}}</h3>
|
||||
{{foreach $shared_calendars as $calendar}}
|
||||
<div id="shared-calendar-{{$calendar.calendarid}}" class="ml-3{{if !$calendar@last}} form-group{{/if}}">
|
||||
<i id="calendar-btn-{{$calendar.calendarid}}" class="fa {{if $calendar.switch}}{{if $calendar.access == 'read-write'}}fa-calendar-check-o{{else}}fa-calendar-times-o{{/if}}{{else}}fa-calendar-o{{/if}} generic-icons fakelink" onclick="add_remove_json_source('{{$calendar.json_source}}', '{{$calendar.color}}', {{$calendar.editable}}, {{if $calendar.access == 'read-write'}}'fa-calendar-check-o'{{else}}'fa-calendar-times-o'{{/if}})" style="color: {{$calendar.color}};"></i>{{$calendar.displayname}} ({{$calendar.sharer}})
|
||||
<div class="pull-right">
|
||||
<a href="/cdav/calendars/{{$calendar.ownernick}}/{{$calendar.uri}}/?export"><i id="download-icon" class="fa fa-cloud-download fakelink generic-icons"></i></a>
|
||||
<a href="#" onclick="var drop = dropItem('/cdav/calendar/drop/{{$calendar.calendarid}}/{{$calendar.instanceid}}', '#shared-calendar-{{$calendar.calendarid}}'); if(drop) { add_remove_json_source('{{$calendar.json_source}}', '{{$calendar.color}}', {{$calendar.editable}}, 'drop'); } return false;"><i class="fa fa-trash-o drop-icons"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="widget">
|
||||
<h3>{{$tools_label}}</h3>
|
||||
<div class="nav nav-pills flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openClose('create-calendar'); return false;"><i class="fa fa-calendar-plus-o generic-icons"></i> {{$create_label}}</a>
|
||||
</li>
|
||||
<div id="create-calendar" class="sub-menu-wrapper">
|
||||
<div class="sub-menu">
|
||||
<form method="post" action="" class="colorpicker-component color-edit">
|
||||
<input id="color" name="color" type="hidden" value="#3a87ad" class="color-edit-input">
|
||||
<div id="create-form" class="input-group form-group">
|
||||
<input id="create" name="{DAV:}displayname" type="text" placeholder="{{$create_placeholder}}" class="form-control">
|
||||
<span class="input-group-addon"><i></i></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" name="create" value="create" class="btn btn-primary btn-sm">{{$create}}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openClose('upload-form'); return false;"><i class="fa fa-cloud-upload generic-icons"></i> {{$import_label}}</a>
|
||||
</li>
|
||||
<div id="upload-form" class="sub-menu-wrapper">
|
||||
<div class="sub-menu">
|
||||
<form enctype="multipart/form-data" method="post" action="">
|
||||
<div class="form-group">
|
||||
<select id="import" name="target" class="form-control">
|
||||
<option value="">{{$import_placeholder}}</option>
|
||||
{{foreach $writable_calendars as $writable_calendar}}
|
||||
<option value="{{$writable_calendar.id.0}}:{{$writable_calendar.id.1}}">{{$writable_calendar.displayname}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input class="form-control-file w-100" id="event-upload-choose" type="file" name="userfile" />
|
||||
</div>
|
||||
<button class="btn btn-primary btn-sm" type="submit" name="c_upload" value="c_upload">{{$upload}}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -1,49 +0,0 @@
|
||||
<div class="section-subtitle-wrapper">
|
||||
<div class="pull-right">
|
||||
{{if $channel.default_links}}
|
||||
{{if $channel.default}}
|
||||
<div>
|
||||
<i class="fa fa-check-square-o"></i> {{$msg_default}}
|
||||
</div>
|
||||
{{else}}
|
||||
<a href="manage/{{$channel.channel_id}}/default" class="make-default-link">
|
||||
<i class="fa fa-square-o"></i> {{$msg_make_default}}
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{if $channel.delegate}}
|
||||
{{$delegated_desc}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<h3>
|
||||
{{if $selected == $channel.channel_id}}
|
||||
<i class="selected-channel fa fa-circle" title="{{$msg_selected}}"></i>
|
||||
{{/if}}
|
||||
{{if $channel.delegate}}
|
||||
<i class="fa fa-arrow-circle-right" title="{{$delegated_desc}}"></i>
|
||||
{{/if}}
|
||||
{{if $selected != $channel.channel_id}}<a href="{{$channel.link}}" title="{{$channel.channel_name}}">{{/if}}
|
||||
{{$channel.channel_name}}
|
||||
{{if $selected != $channel.channel_id}}</a>{{/if}}
|
||||
</h3>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="section-content-wrapper">
|
||||
<div class="channel-photo-wrapper">
|
||||
{{if $selected != $channel.channel_id}}<a href="{{$channel.link}}" class="channel-selection-photo-link" title="{{$channel.channel_name}}">{{/if}}
|
||||
<img class="channel-photo" src="{{$channel.xchan_photo_m}}" alt="{{$channel.channel_name}}" />
|
||||
{{if $selected != $channel.channel_id}}</a>{{/if}}
|
||||
</div>
|
||||
<div class="channel-notifications-wrapper">
|
||||
{{if !$channel.delegate}}
|
||||
<div class="channel-notification">
|
||||
<i class="fa fa-envelope{{if $channel.mail != 0}} new-notification{{/if}}"></i>
|
||||
{{if $channel.mail != 0}}<a href="manage/{{$channel.channel_id}}/mail/combined">{{/if}}{{$channel.mail|string_format:$mail_format}}{{if $channel.mail != 0}}</a>{{/if}}
|
||||
</div>
|
||||
<div class="channel-notification">
|
||||
<i class="fa fa-user{{if $channel.intros != 0}} new-notification{{/if}}"></i>
|
||||
{{if $channel.intros != 0}}<a href='manage/{{$channel.channel_id}}/connections/ifpending'>{{/if}}{{$channel.intros|string_format:$intros_format}}{{if $channel.intros != 0}}</a>{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
@@ -1,7 +0,0 @@
|
||||
{{if $channels}}
|
||||
<select name="dest_channel" id="dest-channel-select">
|
||||
{{foreach $channels as $c}}
|
||||
<option {{if $c.channel_id == $selected}}selected="selected"{{/if}} value="{{$c.channel_id}}">{{$c.channel_name}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
{{/if}}
|
@@ -1,43 +0,0 @@
|
||||
<h2>{{$title}}</h2>
|
||||
|
||||
<form action="import" method="post" enctype="multipart/form-data" id="import-channel-form">
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
||||
<div id="import-desc" class="descriptive-paragraph">{{$desc}}</div>
|
||||
|
||||
<label for="import-filename" id="label-import-filename" class="import-label" >{{$label_filename}}</label>
|
||||
<input type="file" name="filename" id="import-filename" class="import-input" value="" />
|
||||
<div id="import-filename-end" class="import-field-end"></div>
|
||||
|
||||
<div id="import-choice" class="descriptive-paragraph">{{$choice}}</div>
|
||||
|
||||
<label for="import-old-address" id="label-import-old-address" class="import-label" >{{$label_old_address}}</label>
|
||||
<input type="text" name="old_address" id="import-old-address" class="import-input" value="" />
|
||||
<div id="import-old-address-end" class="import-field-end"></div>
|
||||
|
||||
<label for="import-old-email" id="label-import-old-email" class="import-label" >{{$label_old_email}}</label>
|
||||
<input type="text" name="email" id="import-old-email" class="import-input" value="{{$email}}" />
|
||||
<div id="import-old-email-end" class="import-field-end"></div>
|
||||
|
||||
<label for="import-old-pass" id="label-import-old-pass" class="import-label" >{{$label_old_pass}}</label>
|
||||
<input type="password" name="password" id="import-old-pass" class="import-input" value="{{$pass}}" />
|
||||
<div id="import-old-pass-end" class="import-field-end"></div>
|
||||
|
||||
<input type="checkbox" name="import_posts" id="import-posts" value="1" />
|
||||
<label for="import-posts" id="label-import-posts">{{$label_import_posts}}</label>
|
||||
<div id="import-posts-end" class="import-field-end"></div>
|
||||
|
||||
<div id="import-common-desc" class="descriptive-paragraph">{{$common}}</div>
|
||||
|
||||
<input type="checkbox" name="make_primary" id="import-make-primary" value="1" />
|
||||
<label for="import-make-primary" id="label-import-make-primary">{{$label_import_primary}}</label>
|
||||
<div id="import-make-primary-end" class="import-field-end"></div>
|
||||
|
||||
<input type="checkbox" name="moving" id="import-moving" value="1" />
|
||||
<label for="import-moving" id="label-import-moving">{{$label_import_moving}}</label>
|
||||
<div id="import-moving-end" class="import-field-end"></div>
|
||||
|
||||
<input type="submit" name="submit" id="import-submit-button" value="{{$submit}}" />
|
||||
<div id="import-submit-end" class="import-field-end"></div>
|
||||
|
||||
<div id="import-common-desc" class="descriptive-paragraph">{{$pleasewait}}</div>
|
||||
</form>
|
@@ -1,24 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<a class="btn btn-success btn-sm pull-right" href="{{$create.0}}" title="{{$create.1}}"><i class="fa fa-plus-circle"></i> {{$create.2}}</a>
|
||||
<h2>{{$header}}</h2>
|
||||
</div>
|
||||
<div class="section-content-wrapper-np">
|
||||
{{if $channel_usage_message}}
|
||||
<div id="channel-usage-message" class="section-content-warning-wrapper">
|
||||
{{$channel_usage_message}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div id="channels-desc" class="section-content-info-wrapper">
|
||||
{{$desc}}
|
||||
</div>
|
||||
{{foreach $all_channels as $chn}}
|
||||
{{include file="channel.tpl" channel=$chn}}
|
||||
{{/foreach}}
|
||||
{{if $delegates}}
|
||||
{{foreach $delegates as $chn}}
|
||||
{{include file="channel.tpl" channel=$chn}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
@@ -1 +0,0 @@
|
||||
<a href="{{$url}}">{{$url}}</a>
|
File diff suppressed because one or more lines are too long
@@ -1,5 +0,0 @@
|
||||
<div id="chatroom_members" class="widget">
|
||||
<h3>{{$header}}</h3>
|
||||
<div id="chatMembers"></div>
|
||||
</div>
|
||||
|
@@ -1,12 +0,0 @@
|
||||
<div id="chatroom-new" class="section-content-tools-wrapper">
|
||||
<form id="chatroom-new-form" action="chat" method="post" class="acl-form" data-form_id="chatroom-new-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
|
||||
{{include file="field_input.tpl" field=$name}}
|
||||
{{include file="field_input.tpl" field=$chat_expire}}
|
||||
<div class="btn-group pull-right">
|
||||
<button id="dbtn-acl" class="btn btn-outline-secondary" data-toggle="modal" data-target="#aclModal" title="{{$permissions}}" onclick="return false;" ><i id="jot-perms-icon" class="fa fa-{{$lockstate}}"></i></button>
|
||||
<button id="dbtn-submit" class="acl-submit btn btn-primary" type="submit" name="submit" value="{{$submit}}" data-formid="chatroom-new-form">{{$submit}}</button>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</form>
|
||||
</div>
|
||||
{{$acl}}
|
@@ -1,10 +0,0 @@
|
||||
<div id="chatroom_list" class="widget">
|
||||
<h3>{{$header}}</h3>
|
||||
<ul class="nav nav-pills flex-column">
|
||||
<li class="nav-item"><a class="nav-link" href="{{$baseurl}}/chat/{{$nickname}}">{{$overview}}</a></li>
|
||||
{{foreach $items as $item}}
|
||||
<li class="nav-item"><a class="nav-link" href="{{$baseurl}}/chat/{{$nickname}}/{{$item.cr_id}}"><span class="badge pull-right">{{$item.cr_inroom}}</span>{{$item.cr_name}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
|
@@ -1,41 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
{{if $is_owner}}
|
||||
<button type="button" class="btn btn-success btn-sm pull-right acl-form-trigger" onclick="openClose('chatroom-new');" data-form_id="chatroom-new-form"><i class="fa fa-plus-circle"></i> {{$newroom}}</button>
|
||||
{{/if}}
|
||||
<h2>{{$header}}</h2>
|
||||
</div>
|
||||
{{if $is_owner}}
|
||||
{{$chatroom_new}}
|
||||
{{/if}}
|
||||
{{if $rooms}}
|
||||
<div class="section-content-wrapper-np">
|
||||
<table id="chatrooms-index">
|
||||
<tr>
|
||||
<th width="97%">{{$name}}</th>
|
||||
<th width="1%">{{$expire}}</th>
|
||||
<th width="1%" class="chatrooms-index-tool"></th>
|
||||
<th width="1%"></th>
|
||||
</tr>
|
||||
{{foreach $rooms as $room}}
|
||||
<tr class="chatroom-index-row">
|
||||
<td><a href="{{$baseurl}}/chat/{{$nickname}}/{{$room.cr_id}}">{{$room.cr_name}}</a></td>
|
||||
<td>{{$room.cr_expire}} min</td>
|
||||
<td class="chatrooms-index-tool{{if $room.allow_cid || $room.allow_gid || $room.deny_cid || $room.deny_gid}} dropdown float-right{{/if}}">
|
||||
{{if $room.allow_cid || $room.allow_gid || $room.deny_cid || $room.deny_gid}}
|
||||
<i class="fa fa-lock lockview" data-toggle="dropdown" onclick="lockview('chatroom',{{$room.cr_id}});"></i>
|
||||
<ul id="panel-{{$room.cr_id}}" class="lockview-panel dropdown-menu"></ul>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td><span class="badge badge-default">{{$room.cr_inroom}}</span></td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="section-content-wrapper">
|
||||
{{$norooms}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
@@ -1,4 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
{{include file="cloud_header.tpl"}}
|
||||
{{include file="cloud_directory.tpl"}}
|
||||
</div>
|
@@ -1,42 +0,0 @@
|
||||
<div id="files-mkdir-tools" class="section-content-tools-wrapper">
|
||||
<label for="files-mkdir">{{$folder_header}}</label>
|
||||
<form id="mkdir-form" method="post" action="file_upload" class="acl-form" data-form_id="mkdir-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
|
||||
<input type="hidden" name="folder" value="{{$folder}}" />
|
||||
<input type="hidden" name="channick" value="{{$channick}}" />
|
||||
<input type="hidden" name="return_url" value="{{$return_url}}" />
|
||||
<input id="files-mkdir" type="text" name="filename" class="form-control form-group">
|
||||
<div class="pull-right btn-group">
|
||||
<div class="btn-group">
|
||||
{{if $lockstate}}
|
||||
<button class="btn btn-outline-secondary btn-sm" data-toggle="modal" data-target="#aclModal" type="button">
|
||||
<i class="jot-perms-icon fa fa-{{$lockstate}}"></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
<button class="btn btn-primary btn-sm pull-right" type="submit" value="{{$folder_submit}}">{{$folder_submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="files-upload-tools" class="section-content-tools-wrapper">
|
||||
{{if $quota.limit || $quota.used}}<div class="{{if $quota.warning}}section-content-danger-wrapper{{else}}section-content-info-wrapper{{/if}}">{{if $quota.warning}}<strong>{{$quota.warning}} </strong>{{/if}}{{if $quota.desc}}{{$quota.desc}}<br><br>{{/if}}{{$info}}</div>{{/if}}
|
||||
<form id="ajax-upload-files" method="post" action="file_upload" enctype="multipart/form-data" class="acl-form" data-form_id="ajax-upload-files" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
|
||||
<input type="hidden" name="directory" value="{{$path}}" />
|
||||
<input type="hidden" name="channick" value="{{$channick}}" />
|
||||
<input type="hidden" name="return_url" value="{{$return_url}}" />
|
||||
<label for="files-upload">{{$upload_header}}</label>
|
||||
<input class="form-group pull-left" id="files-upload" type="file" name="userfile">
|
||||
<div class="pull-right btn-group">
|
||||
<div class="btn-group">
|
||||
{{if $lockstate}}
|
||||
<button class="btn btn-outline-secondary btn-sm" data-toggle="modal" data-target="#aclModal" type="button">
|
||||
<i class="jot-perms-icon fa fa-{{$lockstate}}"></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
<button id="upload-submit" class="btn btn-primary btn-sm pull-right" type="submit" name="submit" value="{{$upload_submit}}">{{$upload_submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{{$aclselect}}
|
@@ -1,45 +0,0 @@
|
||||
<div id="cloud-drag-area" class="section-content-wrapper-np">
|
||||
<table id="cloud-index">
|
||||
<tr>
|
||||
<th width="1%"></th>
|
||||
<th width="92%">{{$name}}</th>
|
||||
<th width="1%"></th><th width="1%"></th><th width="1%"></th><th width="1%"></th>
|
||||
<th width="1%">{{*{{$type}}*}}</th>
|
||||
<th width="1%" class="d-none d-md-table-cell">{{$size}}</th>
|
||||
<th width="1%" class="d-none d-md-table-cell">{{$lastmod}}</th>
|
||||
</tr>
|
||||
{{if $parentpath}}
|
||||
<tr>
|
||||
<td><i class="fa fa-level-up"></i>{{*{{$parentpath.icon}}*}}</td>
|
||||
<td><a href="{{$parentpath.path}}" title="{{$parent}}">..</a></td>
|
||||
<td></td><td></td><td></td><td></td>
|
||||
<td>{{*[{{$parent}}]*}}</td>
|
||||
<td class="d-none d-md-table-cell"></td>
|
||||
<td class="d-none d-md-table-cell"></td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
<tr id="new-upload-progress-bar--1"></tr> {{* this is needed to append the upload files in the right order *}}
|
||||
{{foreach $entries as $item}}
|
||||
<tr id="cloud-index-{{$item.attachId}}">
|
||||
<td><i class="fa {{$item.iconFromType}}" title="{{$item.type}}"></i></td>
|
||||
<td><a href="{{$item.fullPath}}">{{$item.displayName}}</a></td>
|
||||
{{if $item.is_owner}}
|
||||
<td class="cloud-index-tool">{{$item.attachIcon}}</td>
|
||||
<td id="file-edit-{{$item.attachId}}" class="cloud-index-tool"></td>
|
||||
<td class="cloud-index-tool"><i class="fakelink fa fa-pencil" onclick="filestorage(event, '{{$nick}}', {{$item.attachId}});"></i></td>
|
||||
<td class="cloud-index-tool"><a href="#" title="{{$delete}}" onclick="dropItem('{{$item.fileStorageUrl}}/{{$item.attachId}}/delete', '#cloud-index-{{$item.attachId}},#cloud-tools-{{$item.attachId}}'); return false;"><i class="fa fa-trash-o drop-icons"></i></a></td>
|
||||
|
||||
{{else}}
|
||||
<td></td><td></td><td></td><td></td>
|
||||
{{/if}}
|
||||
<td>{{*{{$item.type}}*}}</td>
|
||||
<td class="d-none d-md-table-cell">{{$item.sizeFormatted}}</td>
|
||||
<td class="d-none d-md-table-cell">{{$item.lastmodified}}</td>
|
||||
</tr>
|
||||
<tr id="cloud-tools-{{$item.attachId}}">
|
||||
<td id="perms-panel-{{$item.attachId}}" colspan="9"></td>
|
||||
</tr>
|
||||
|
||||
{{/foreach}}
|
||||
</table>
|
||||
</div>
|
@@ -1,16 +0,0 @@
|
||||
<div class="section-title-wrapper">
|
||||
{{if $actionspanel}}
|
||||
<div class="pull-right">
|
||||
{{if $is_owner}}
|
||||
<a href="/sharedwithme" class="btn btn-sm btn-outline-secondary"><i class="fa fa-cloud-download"></i> {{$shared}}</a>
|
||||
{{/if}}
|
||||
<button id="files-create-btn" class="btn btn-sm btn-primary" onclick="openClose('files-mkdir-tools'); closeMenu('files-upload-tools');"><i class="fa fa-folder-o"></i> {{$create}}</button>
|
||||
<button id="files-upload-btn" class="btn btn-sm btn-success" onclick="openClose('files-upload-tools'); closeMenu('files-mkdir-tools');"><i class="fa fa-arrow-circle-o-up"></i> {{$upload}}</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<h2>{{$header}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
{{if $actionspanel}}
|
||||
{{$actionspanel}}
|
||||
{{/if}}
|
@@ -1,67 +0,0 @@
|
||||
{{if $threaded}}
|
||||
<div class="comment-wwedit-wrapper threaded" id="comment-edit-wrapper-{{$id}}" style="display: block;">
|
||||
{{else}}
|
||||
<div class="comment-wwedit-wrapper" id="comment-edit-wrapper-{{$id}}" style="display: block;">
|
||||
{{/if}}
|
||||
<form class="comment-edit-form" style="display: block;" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">
|
||||
<input type="hidden" name="type" value="{{$type}}" />
|
||||
<input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
|
||||
<input type="hidden" name="parent" value="{{$parent}}" />
|
||||
<input type="hidden" name="return" value="{{$return_path}}" />
|
||||
<input type="hidden" name="jsreload" value="{{$jsreload}}" />
|
||||
<input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
|
||||
<textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpenUI(this,{{$id}});" onBlur="commentCloseUI(this,{{$id}});" ondragenter="linkdropper(event);" ondragleave="linkdropexit(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" >{{$comment}}</textarea>
|
||||
{{if $qcomment}}
|
||||
<select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
|
||||
<option value=""></option>
|
||||
{{foreach $qcomment as $qc}}
|
||||
<option value="{{$qc}}">{{$qc}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
{{/if}}
|
||||
<div id="comment-tools-{{$id}}" class="pt-2 comment-tools">
|
||||
<div id="comment-edit-bb-{{$id}}" class="btn-toolbar pull-left">
|
||||
<div class="btn-group mr-2">
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$edbold}}" onclick="insertbbcomment('{{$comment}}','b', {{$id}}); return false;">
|
||||
<i class="fa fa-bold comment-icon"></i>
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$editalic}}" onclick="insertbbcomment('{{$comment}}','i', {{$id}}); return false;">
|
||||
<i class="fa fa-italic comment-icon"></i>
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$eduline}}" onclick="insertbbcomment('{{$comment}}','u', {{$id}}); return false;">
|
||||
<i class="fa fa-underline comment-icon"></i>
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$edquote}}" onclick="insertbbcomment('{{$comment}}','quote', {{$id}}); return false;">
|
||||
<i class="fa fa-quote-left comment-icon"></i>
|
||||
</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$edcode}}" onclick="insertbbcomment('{{$comment}}','code', {{$id}}); return false;">
|
||||
<i class="fa fa-terminal comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group mr-2">
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$edurl}}" onclick="insertCommentURL('{{$comment}}',{{$id}}); return false;">
|
||||
<i class="fa fa-link comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
{{if $feature_encrypt}}
|
||||
<div class="btn-group mr-2">
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$encrypt}}" onclick="red_encrypt('{{$cipher}}','#comment-edit-text-' + '{{$id}}',''); return false;">
|
||||
<i class="fa fa-key comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{$comment_buttons}}
|
||||
</div>
|
||||
<div class="btn-group float-right" id="comment-edit-submit-wrapper-{{$id}}">
|
||||
{{if $preview}}
|
||||
<button id="comment-edit-presubmit-{{$id}}" class="btn btn-outline-secondary btn-sm" onclick="preview_comment({{$id}}); return false;" title="{{$preview}}">
|
||||
<i class="fa fa-eye comment-icon" ></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
<button id="comment-edit-submit-{{$id}}" class="btn btn-primary btn-sm" type="submit" name="button-submit" onclick="post_comment({{$id}}); return false;">{{$submit}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="comment-edit-preview-{{$id}}" class="comment-edit-preview"></div>
|
@@ -1,15 +0,0 @@
|
||||
<div class="profile-match-wrapper">
|
||||
<div class="profile-match-photo">
|
||||
<a href="{{$url}}">
|
||||
<img src="{{$photo}}" alt="{{$name}}" width="80" height="80" title="{{$name}} [{{$url}}]" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="profile-match-break"></div>
|
||||
<div class="profile-match-name">
|
||||
<a href="{{$url}}" title="{{$name}}[{{$tags}}]">{{$name}}</a>
|
||||
</div>
|
||||
{{if $note}}
|
||||
<div class="profile-match-note">{{$note}}</div>
|
||||
{{/if}}
|
||||
<div class="profile-match-end"></div>
|
||||
</div>
|
@@ -1,17 +0,0 @@
|
||||
<div class="mb-4 d-none d-md-block">
|
||||
<ul class="nav nav-tabs nav-fill">
|
||||
{{foreach $tabs as $tab}}
|
||||
<li class="nav-item"{{if $tab.id}} id="{{$tab.id}}"{{/if}}><a class="nav-link{{if $tab.sel}} {{$tab.sel}}{{/if}}" href="{{$tab.url}}"{{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="d-md-none dropdown clearfix" style="position:fixed; right:7px; top:4.5rem; z-index:1020">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm float-right" data-toggle="dropdown">
|
||||
<i class="fa fa-bars"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
{{foreach $tabs as $tab}}
|
||||
<a class="dropdown-item{{if $tab.sel}} {{$tab.sel}}{{/if}}" href="{{$tab.url}}"{{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
@@ -1,48 +0,0 @@
|
||||
<div id="contact-entry-wrapper-{{$contact.id}}">
|
||||
<div class="section-subtitle-wrapper clearfix">
|
||||
<div class="pull-right">
|
||||
{{if $contact.approve && $contact.ignore}}
|
||||
<form action="connedit/{{$contact.id}}" method="post" >
|
||||
<button type="submit" class="btn btn-success btn-sm" name="pending" value="1" title="{{$contact.approve_hover}}"><i class="fa fa-check"></i> {{$contact.approve}}</button>
|
||||
|
||||
<a href="connedit/{{$contact.id}}/ignore" class="btn btn-warning btn-sm" title="{{$contact.ignore_hover}}"><i class="fa fa-ban"></i> {{$contact.ignore}}</a>
|
||||
|
||||
{{/if}}
|
||||
<a href="#" class="btn btn-danger btn-sm" title="{{$contact.delete_hover}}" onclick="dropItem('{{$contact.deletelink}}', '#contact-entry-wrapper-{{$contact.id}}'); return false;"><i class="fa fa-trash-o"></i> {{$contact.delete}}</a>
|
||||
<a href="{{$contact.link}}" class="btn btn-outline-secondary btn-sm" title="{{$contact.edit_hover}}"><i class="fa fa-pencil"></i></a>
|
||||
{{if $contact.approve}}
|
||||
</form>
|
||||
{{/if}}
|
||||
</div>
|
||||
<h3>{{if $contact.public_forum}}<i class="fa fa-comments-o"></i> {{/if}}<a href="{{$contact.url}}" title="{{$contact.img_hover}}" >{{$contact.name}}</a>{{if $contact.phone}} <a class="btn btn-outline-secondary btn-sm" href="tel:{{$contact.phone}}" title="{{$contact.call}}"><i class="fa fa-phone connphone"></i></a>{{/if}}</h3>
|
||||
</div>
|
||||
<div class="section-content-tools-wrapper">
|
||||
<div class="contact-photo-wrapper" >
|
||||
<a href="{{$contact.url}}" title="{{$contact.img_hover}}" ><img class="directory-photo-img {{if $contact.classes}}{{$contact.classes}}{{/if}}" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
|
||||
</div>
|
||||
<div class="contact-info">
|
||||
{{if $contact.status}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$contact.status_label}}:</span> {{$contact.status}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $contact.connected}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$contact.connected_label}}:</span> <span class="autotime" title="{{$contact.connected}}"></span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $contact.webbie}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$contact.webbie_label}}:</span> {{$contact.webbie}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $contact.network}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$contact.network_label}}:</span> {{$contact.network}} - <a href="{{$contact.recentlink}}">{{$contact.recent_label}}</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -1,36 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper clearfix">
|
||||
<div class="dropdown pull-right">
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="openClose('contacts-search-form'); $('#contacts-search').focus()">
|
||||
<i class="fa fa-search"></i> {{$label}}
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{{$sort}}">
|
||||
<i class="fa fa-sort"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
{{foreach $tabs as $menu}}
|
||||
<a class="dropdown-item" href="{{$menu.url}}">{{$menu.label}}</a>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
||||
{{if $finding}}<h2>{{$finding}}</h2>{{else}}<h2>{{$header}}{{if $total}} ({{$total}}){{/if}}</h2>{{/if}}
|
||||
</div>
|
||||
<div id="contacts-search-form" class="section-content-tools-wrapper">
|
||||
<form action="{{$cmd}}" method="get" >
|
||||
<div class="input-group form-group">
|
||||
<input type="text" name="search" id="contacts-search" class="form-control" onfocus="this.select();" value="{{$search}}" placeholder="{{$desc}}" />
|
||||
<div class="input-group-btn">
|
||||
<button id="contacts-search-submit" class="btn btn-outline-secondary" type="submit" name="submit" value="{{$submit}}"><i class="fa fa-fw fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="connections-wrapper clearfix">
|
||||
{{foreach $contacts as $contact}}
|
||||
{{include file="connection_template.tpl"}}
|
||||
{{/foreach}}
|
||||
<div id="page-end"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>$(document).ready(function() { loadingPage = false;});</script>
|
||||
<div id="page-spinner"></div>
|
@@ -1,14 +0,0 @@
|
||||
<div id="contact-block" class="widget">
|
||||
<h3>{{$contacts}}</h3>
|
||||
{{if $micropro}}
|
||||
{{if $viewconnections}}
|
||||
<a class="allcontact-link" href="viewconnections/{{$nickname}}">{{$viewconnections}}</a>
|
||||
{{/if}}
|
||||
<div class='contact-block-content'>
|
||||
{{foreach $micropro as $m}}
|
||||
{{$m}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
@@ -1,30 +0,0 @@
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
tinyMCE.init({
|
||||
theme : "advanced",
|
||||
mode : "{{$editselect}}",
|
||||
elements: "contact-edit-info",
|
||||
plugins : "bbcode",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "center",
|
||||
theme_advanced_styles : "blockquote,code",
|
||||
gecko_spellcheck : true,
|
||||
entity_encoding : "raw",
|
||||
add_unload_trigger : false,
|
||||
remove_linebreaks : false,
|
||||
force_p_newlines : false,
|
||||
force_br_newlines : true,
|
||||
forced_root_block : '',
|
||||
content_css: "{{$baseurl}}/view/custom_tinymce.css"
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
@@ -1,20 +0,0 @@
|
||||
<div id="contact-slider" class="slider form-group"><input id="contact-range" type="text" name="fake-closeness" value="{{$val}}" /></div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// The slider does not render correct if width is given in % and
|
||||
// the slider container is hidden (display: none) during rendering.
|
||||
// So let's unhide it to render and hide again afterwards.
|
||||
if(!$("#affinity-tool-collapse").hasClass("in")) {
|
||||
$("#affinity-tool-collapse").addClass("in");
|
||||
makeContactSlider();
|
||||
$("#affinity-tool-collapse").removeClass("in");
|
||||
}
|
||||
else {
|
||||
makeContactSlider();
|
||||
}
|
||||
});
|
||||
|
||||
function makeContactSlider() {
|
||||
$("#contact-range").jRange({ from: {{$min|default:'0'}}, to: 99, step: 1, scale: [{{$labels}}], width:'98%', showLabels: false, onstatechange: function(v) { $("#contact-closeness-mirror").val(v); } });
|
||||
}
|
||||
</script>
|
@@ -1,8 +0,0 @@
|
||||
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
|
||||
<div class="contact-entry-photo-wrapper" >
|
||||
<a href="{{$contact.link}}" title="{{$contact.img_hover}}" ><img class="contact-block-img" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
|
||||
</div>
|
||||
<div class="contact-entry-photo-end" ></div>
|
||||
<div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >{{$contact.name}}</div>
|
||||
<div class="contact-entry-end" ></div>
|
||||
</div>
|
@@ -1,3 +0,0 @@
|
||||
{{foreach $contacts as $contact}}
|
||||
{{include file="connection_template.tpl"}}
|
||||
{{/foreach}}
|
@@ -1,17 +0,0 @@
|
||||
{{foreach $threads as $thread}}
|
||||
<div id="thread-wrapper-{{$thread.id}}" class="thread-wrapper">
|
||||
{{foreach $thread.items as $item}}
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$thread.id}}" class="hide-comments-total">{{$thread.num_comments}}</span> <span id="hide-comments-{{$thread.id}}" class="hide-comments fakelink" onclick="showHideComments({{$thread.id}});">{{$thread.hide_text}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$thread.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||
|
||||
{{include file="{{$item.template}}"}}
|
||||
|
||||
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/foreach}}
|
@@ -1,5 +0,0 @@
|
||||
<div id="threads-begin"></div>
|
||||
<div id="threads-end"></div>
|
||||
<div id="conversation-end"></div>
|
||||
<div id="page-spinner"></div>
|
||||
|
@@ -1,250 +0,0 @@
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
||||
<span id="hide-comments-{{$item.id}}" class="hide-comments">{{$item.hide_text}}</span> <span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} mb-4 generic-content-wrapper h-entry {{else}} u-comment h-cite {{/if}} item_{{$item.submid}}">
|
||||
<a name="item_{{$item.id}}" ></a>
|
||||
<div class="wall-item-outside-wrapper{{if $item.is_comment}} comment{{/if}}{{if $item.previewing}} preview{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
|
||||
<div class="clearfix wall-item-content-wrapper{{if $item.is_comment}} comment{{/if}}" id="wall-item-content-wrapper-{{$item.id}}">
|
||||
{{if $item.photo}}
|
||||
<div class="wall-photo-item" id="wall-photo-item-{{$item.id}}">
|
||||
{{$item.photo}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.event}}
|
||||
<div class="wall-event-item" id="wall-event-item-{{$item.id}}">
|
||||
{{$item.event}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.title && !$item.event}}
|
||||
<div class="p-2{{if $item.is_new}} bg-primary text-white{{/if}} wall-item-title h3{{if !$item.photo}} rounded-top{{/if}}" id="wall-item-title-{{$item.id}}">
|
||||
{{if $item.title_tosource}}{{if $item.plink}}<a href="{{$item.plink.href}}" title="{{$item.title}} ({{$item.plink.title}})">{{/if}}{{/if}}{{$item.title}}{{if $item.title_tosource}}{{if $item.plink}}</a>{{/if}}{{/if}}
|
||||
</div>
|
||||
{{if ! $item.is_new}}
|
||||
<hr class="m-0">
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<div class="p-2 clearfix wall-item-head{{if $item.is_new && !$item.title && !$item.event && !$item.is_comment}} wall-item-head-new rounded-top{{/if}}">
|
||||
<div class="wall-item-info" id="wall-item-info-{{$item.id}}" >
|
||||
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}} h-card p-author" id="wall-item-photo-wrapper-{{$item.id}}">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-photo-link u-url" id="wall-item-photo-link-{{$item.id}}"><img src="{{$item.thumb}}" class="wall-item-photo{{$item.sparkle}} u-photo p-name" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" /></a>
|
||||
</div>
|
||||
</div>
|
||||
{{if $item.lock}}
|
||||
<div class="wall-item-lock dropdown">
|
||||
<i class="fa fa-lock lockview" data-toggle="dropdown" title="{{$item.lock}}" onclick="lockview('item',{{$item.id}});" ></i>
|
||||
<div id="panel-{{$item.id}}" class="dropdown-menu"></div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="wall-item-author">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.via}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}
|
||||
</div>
|
||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}">
|
||||
{{if $item.verified}}<i class="fa fa-check item-verified" title="{{$item.verified}}"></i> {{elseif $item.forged}}<i class="fa fa-exclamation item-forged" title="{{$item.forged}}"></i> {{/if}}{{if $item.location}}<span class="wall-item-location p-location" id="wall-item-location-{{$item.id}}">{{$item.location}}, </span>{{/if}}<span class="autotime" title="{{$item.isotime}}"><time class="dt-published" datetime="{{$item.isotime}}">{{$item.localtime}}</time>{{if $item.editedtime}} {{$item.editedtime}}{{/if}}{{if $item.expiretime}} {{$item.expiretime}}{{/if}}</span>{{if $item.editedtime}} <i class="fa fa-pencil"></i>{{/if}} {{if $item.app}}<span class="item.app">{{$item.str_app}}</span>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{if $item.body}}
|
||||
<div class="p-2 wall-item-content clearfix" id="wall-item-content-{{$item.id}}">
|
||||
<div class="wall-item-body e-content" id="wall-item-body-{{$item.id}}" >
|
||||
{{$item.body}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.has_tags}}
|
||||
<div class="p-2 wall-item-tools clearfix">
|
||||
|
||||
<div class="body-tags">
|
||||
<span class="tag">{{$item.mentions}} {{$item.tags}} {{$item.categories}} {{$item.folders}}</span>
|
||||
</div>
|
||||
{{**
|
||||
{{if $item.mentions}}
|
||||
<div class="body-tags" id="item-mentions">
|
||||
<span class="tag">{{$item.mentions}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.tags}}
|
||||
<div class="body-tags" id="item-tags">
|
||||
<span class="tag">{{$item.tags}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.categories}}
|
||||
<div class="body-tags" id="item-categories">
|
||||
<span class="tag p-category">{{$item.categories}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.folders}}
|
||||
<div class="body-tags" id="item-folders">
|
||||
<span class="tag">{{$item.folders}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
**}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="p-2 clearfix wall-item-tools">
|
||||
<div class="wall-item-tools-right pull-right">
|
||||
{{if $item.toplevel && $item.emojis && $item.reactions}}
|
||||
<div class="btn-group dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-react-{{$item.id}}">
|
||||
<i class="fa fa-smile-o"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
{{foreach $item.reactions as $react}}
|
||||
<a class="dropdown-item clearfix" href="#" onclick="jotReact({{$item.id}},'{{$react}}'); return false;"><img class="menu-img-2" src="/images/emoji/{{$react}}.png" alt="{{$react}}" /></a>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="btn-group dropdown">
|
||||
{{if $item.like}}
|
||||
<button type="button" title="{{$item.like.0}}" class="btn btn-outline-secondary btn-sm" onclick="dolike({{$item.id}},'like'); return false;">
|
||||
<i class="fa fa-thumbs-o-up{{if $item.my_responses.like}} ivoted{{/if}}" ></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
{{if $item.dislike}}
|
||||
<button type="button" title="{{$item.dislike.0}}" class="btn btn-outline-secondary btn-sm" onclick="dolike({{$item.id}},'dislike'); return false;">
|
||||
<i class="fa fa-thumbs-o-down{{if $item.my_responses.dislike}} ivoted{{/if}}" ></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
{{if $item.isevent}}
|
||||
<div class="btn-group dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-attend-menu-{{$item.id}}" title="{{$item.attend_title}}">
|
||||
<i class="fa fa-calendar-check-o"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#" title="{{$item.attend.0}}" onclick="itemAddToCal({{$item.id}}); dolike({{$item.id}},'attendyes'); return false;">
|
||||
<i class="item-act-list fa fa-check{{if $item.my_responses.attend}} ivoted{{/if}}" ></i> {{$item.attend.0}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.attend.1}}" onclick="itemAddToCal({{$item.id}}), dolike({{$item.id}},'attendno'); return false;">
|
||||
<i class="item-act-list fa fa-times{{if $item.my_responses.attendno}} ivoted{{/if}}" ></i> {{$item.attend.1}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.attend.2}}" onclick="itemAddToCal({{$item.id}}); dolike({{$item.id}},'attendmaybe'); return false;">
|
||||
<i class="item-act-list fa fa-question{{if $item.my_responses.attendmaybe}} ivoted{{/if}}" ></i> {{$item.attend.2}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.canvote}}
|
||||
<div class="btn-group dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-consensus-menu-{{$item.id}}" title="{{$item.vote_title}}">
|
||||
<i class="fa fa-check-square-o"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu" role="menu" aria-labelledby="wall-item-consensus-menu-{{$item.id}}">
|
||||
<a class="dropdown-item" href="#" title="{{$item.conlabels.0}}" onclick="dolike({{$item.id}},'agree'); return false;">
|
||||
<i class="item-act-list fa fa-check{{if $item.my_responses.agree}} ivoted{{/if}}" ></i> {{$item.conlabels.0}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.conlabels.1}}" onclick="dolike({{$item.id}},'disagree'); return false;">
|
||||
<i class="item-act-list fa fa-times{{if $item.my_responses.disagree}} ivoted{{/if}}" ></i> {{$item.conlabels.1}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.conlabels.2}}" onclick="dolike({{$item.id}},'abstain'); return false;">
|
||||
<i class="item-act-list fa fa-question{{if $item.my_responses.abstain}} ivoted{{/if}}" ></i> {{$item.conlabels.2}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-menu-{{$item.id}}">
|
||||
<i class="fa fa-cog"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="wall-item-menu-{{$item.id}}">
|
||||
{{if $item.share}}
|
||||
<a class="dropdown-item" href="#" onclick="jotShare({{$item.id}}); return false"><i class="generic-icons-nav fa fa-fw fa-retweet" title="{{$item.share.0}}"></i>{{$item.share.0}}</a>
|
||||
{{/if}}
|
||||
{{if $item.plink}}
|
||||
<a class="dropdown-item" href="{{$item.plink.href}}" title="{{$item.plink.title}}" class="u-url"><i class="generic-icons-nav fa fa-fw fa-external-link"></i>{{$item.plink.title}}</a>
|
||||
{{/if}}
|
||||
{{if $item.edpost}}
|
||||
<a class="dropdown-item" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"><i class="generic-icons-nav fa fa-fw fa-pencil"></i>{{$item.edpost.1}}</a>
|
||||
{{/if}}
|
||||
{{if $item.tagger}}
|
||||
<a class="dropdown-item" href="#" onclick="itemTag({{$item.id}}); return false;"><i id="tagger-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-tag" title="{{$item.tagger.tagit}}"></i>{{$item.tagger.tagit}}</a>
|
||||
{{/if}}
|
||||
{{if $item.filer}}
|
||||
<a class="dropdown-item" href="#" onclick="itemFiler({{$item.id}}); return false;"><i id="filer-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-folder-open" title="{{$item.filer}}"></i>{{$item.filer}}</a>
|
||||
{{/if}}
|
||||
{{if $item.bookmark}}
|
||||
<a class="dropdown-item" href="#" onclick="itemBookmark({{$item.id}}); return false;"><i id="bookmarker-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-bookmark" title="{{$item.bookmark}}"></i>{{$item.bookmark}}</a>
|
||||
{{/if}}
|
||||
{{if $item.addtocal}}
|
||||
<a class="dropdown-item" href="#" onclick="itemAddToCal({{$item.id}}); return false;"><i id="addtocal-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-calendar" title="{{$item.addtocal}}"></i>{{$item.addtocal}}</a>
|
||||
{{/if}}
|
||||
{{if $item.star}}
|
||||
<a class="dropdown-item" href="#" onclick="dostar({{$item.id}}); return false;"><i id="starred-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-star {{$item.star.isstarred}}" title="{{$item.star.toggle}}"></i>{{$item.star.toggle}}</a>
|
||||
{{/if}}
|
||||
{{if $item.thread_action_menu}}
|
||||
{{foreach $item.thread_action_menu as $mitem}}
|
||||
<a class="dropdown-item" {{if $mitem.href}}href="{{$mitem.href}}"{{/if}} {{if $mitem.action}}onclick="{{$mitem.action}}"{{/if}} {{if $mitem.title}}title="{{$mitem.title}}"{{/if}} ><i class="generic-icons-nav fa fa-fw fa-{{$mitem.icon}}"></i>{{$mitem.title}}</a>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if $item.drop.dropping}}
|
||||
<a class="dropdown-item" href="#" onclick="dropItem('item/drop/{{$item.id}}', '#thread-wrapper-{{$item.id}}'); return false;" title="{{$item.drop.delete}}" ><i class="generic-icons-nav fa fa-fw fa-trash-o"></i>{{$item.drop.delete}}</a>
|
||||
{{/if}}
|
||||
{{if $item.thread_author_menu}}
|
||||
<div class="dropdown-divider"></div>
|
||||
{{foreach $item.thread_author_menu as $mitem}}
|
||||
<a class="dropdown-item" {{if $mitem.href}}href="{{$mitem.href}}"{{/if}} {{if $mitem.action}}onclick="{{$mitem.action}}"{{/if}} {{if $mitem.title}}title="{{$mitem.title}}"{{/if}} >{{$mitem.title}}</a>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if $item.edpost && $item.dreport}}
|
||||
<a class="dropdown-item" href="dreport/{{$item.mid}}">{{$item.dreport}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="like-rotator-{{$item.id}}" class="like-rotator"></div>
|
||||
|
||||
{{if $item.responses || $item.attachments}}
|
||||
<div class="wall-item-tools-left{{if ($item.responses.count > 1) || ($item.responses.count && $item.attachments)}} btn-group{{/if}}">
|
||||
{{if $item.attachments}}
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle" data-toggle="dropdown" id="attachment-menu-{{$item.id}}"><i class="fa fa-paperclip"></i></button>
|
||||
<div class="dropdown-menu">{{$item.attachments}}</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{foreach $item.responses as $verb=>$response}}
|
||||
{{if $response.count}}
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle"{{if $response.modal}} data-toggle="modal" data-target="#{{$verb}}Modal-{{$item.id}}"{{else}} data-toggle="dropdown"{{/if}} id="wall-item-{{$verb}}-{{$item.id}}">{{$response.count}} {{$response.button}}</button>
|
||||
{{if $response.modal}}
|
||||
<div class="modal" id="{{$verb}}Modal-{{$item.id}}">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">{{$response.count}} {{$response.button}}</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body response-list">
|
||||
<ul class="nav nav-pills flex-column">{{foreach $response.list as $liker}}<li class="nav-item">{{$liker}}</li>{{/foreach}}</ul>
|
||||
</div>
|
||||
<div class="modal-footer clear">
|
||||
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{$item.modal_dismiss}}</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
{{else}}
|
||||
<div class="dropdown-menu">{{foreach $response.list as $liker}}{{$liker}}{{/foreach}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{if $item.toplevel}}
|
||||
{{foreach $item.children as $child}}
|
||||
{{include file="{{$child.template}}" item=$child}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if $item.comment}}
|
||||
<div class="p-2 wall-item-comment-wrapper{{if $item.children}} wall-item-comment-wrapper-wc{{/if}}" >
|
||||
{{$item.comment}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{if $item.comment_lastcollapsed}}
|
||||
</div>
|
||||
{{/if}}
|
@@ -1,251 +0,0 @@
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
||||
<span id="hide-comments-{{$item.id}}" class="hide-comments">{{$item.hide_text}}</span> <span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">{{$item.num_comments}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
<div id="thread-wrapper-{{$item.id}}" class="thread-wrapper{{if $item.toplevel}} {{$item.toplevel}} mb-4 generic-content-wrapper h-entry {{else}} u-comment h-cite {{/if}} item_{{$item.submid}}">
|
||||
<a name="item_{{$item.id}}" ></a>
|
||||
<div class="wall-item-outside-wrapper{{if $item.is_comment}} comment{{/if}}{{if $item.previewing}} preview{{/if}}" id="wall-item-outside-wrapper-{{$item.id}}" >
|
||||
<div class="clearfix wall-item-content-wrapper{{if $item.is_comment}} comment{{/if}}" id="wall-item-content-wrapper-{{$item.id}}">
|
||||
{{if $item.photo}}
|
||||
<div class="wall-photo-item" id="wall-photo-item-{{$item.id}}">
|
||||
{{$item.photo}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.event}}
|
||||
<div class="wall-event-item" id="wall-event-item-{{$item.id}}">
|
||||
{{$item.event}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.title && !$item.event}}
|
||||
<div class="p-2{{if $item.is_new}} bg-primary text-white{{/if}} wall-item-title h3{{if !$item.photo}} rounded-top{{/if}}" id="wall-item-title-{{$item.id}}">
|
||||
{{if $item.title_tosource}}{{if $item.plink}}<a href="{{$item.plink.href}}" title="{{$item.title}} ({{$item.plink.title}})">{{/if}}{{/if}}{{$item.title}}{{if $item.title_tosource}}{{if $item.plink}}</a>{{/if}}{{/if}}
|
||||
</div>
|
||||
{{if ! $item.is_new}}
|
||||
<hr class="m-0">
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<div class="p-2 clearfix wall-item-head{{if $item.is_new && !$item.title && !$item.event && !$item.is_comment}} wall-item-head-new rounded-top{{/if}}">
|
||||
<div class="wall-item-info" id="wall-item-info-{{$item.id}}" >
|
||||
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}} h-card p-author" id="wall-item-photo-wrapper-{{$item.id}}">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-photo-link u-url" id="wall-item-photo-link-{{$item.id}}"><img src="{{$item.thumb}}" class="wall-item-photo{{$item.sparkle}} u-photo p-name" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" /></a>
|
||||
</div>
|
||||
</div>
|
||||
{{if $item.lock}}
|
||||
<div class="wall-item-lock dropdown">
|
||||
<i class="fa fa-lock lockview" data-toggle="dropdown" title="{{$item.lock}}" onclick="lockview('item',{{$item.id}});" ></i>
|
||||
<div id="panel-{{$item.id}}" class="dropdown-menu"></div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="wall-item-author">
|
||||
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.via}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}
|
||||
</div>
|
||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}">
|
||||
{{if $item.verified}}<i class="fa fa-check item-verified" title="{{$item.verified}}"></i> {{elseif $item.forged}}<i class="fa fa-exclamation item-forged" title="{{$item.forged}}"></i> {{/if}}{{if $item.location}}<span class="wall-item-location p-location" id="wall-item-location-{{$item.id}}">{{$item.location}}, </span>{{/if}}<span class="autotime" title="{{$item.isotime}}"><time class="dt-published" datetime="{{$item.isotime}}">{{$item.localtime}}</time>{{if $item.editedtime}} {{$item.editedtime}}{{/if}}{{if $item.expiretime}} {{$item.expiretime}}{{/if}}</span>{{if $item.editedtime}} <i class="fa fa-pencil"></i>{{/if}} {{if $item.app}}<span class="item.app">{{$item.str_app}}</span>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{if $item.body}}
|
||||
<div class="p-2 wall-item-content clearfix" id="wall-item-content-{{$item.id}}">
|
||||
<div class="wall-item-body e-content" id="wall-item-body-{{$item.id}}" >
|
||||
{{$item.body}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.has_tags}}
|
||||
<div class="p-2 wall-item-tools clearfix">
|
||||
|
||||
<div class="body-tags">
|
||||
<span class="tag">{{$item.mentions}} {{$item.tags}} {{$item.categories}} {{$item.folders}}</span>
|
||||
</div>
|
||||
{{**
|
||||
{{if $item.mentions}}
|
||||
<div class="body-tags" id="item-mentions">
|
||||
<span class="tag">{{$item.mentions}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.tags}}
|
||||
<div class="body-tags" id="item-tags">
|
||||
<span class="tag">{{$item.tags}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.categories}}
|
||||
<div class="body-tags" id="item-categories">
|
||||
<span class="tag p-category">{{$item.categories}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.folders}}
|
||||
<div class="body-tags" id="item-folders">
|
||||
<span class="tag">{{$item.folders}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
**}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="p-2 clearfix wall-item-tools">
|
||||
<div class="wall-item-tools-right pull-right">
|
||||
{{if $item.toplevel && $item.emojis && $item.reactions}}
|
||||
<div class="btn-group dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-react-{{$item.id}}">
|
||||
<i class="fa fa-smile-o"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
{{foreach $item.reactions as $react}}
|
||||
<a class="dropdown-item clearfix" href="#" onclick="jotReact({{$item.id}},'{{$react}}'); return false;"><img class="menu-img-2" src="/images/emoji/{{$react}}.png" alt="{{$react}}" /></a>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="btn-group dropdown">
|
||||
{{if $item.like}}
|
||||
<button type="button" title="{{$item.like.0}}" class="btn btn-outline-secondary btn-sm" onclick="dolike({{$item.id}},'like'); return false;">
|
||||
<i class="fa fa-thumbs-o-up{{if $item.my_responses.like}} ivoted{{/if}}" ></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
{{if $item.dislike}}
|
||||
<button type="button" title="{{$item.dislike.0}}" class="btn btn-outline-secondary btn-sm" onclick="dolike({{$item.id}},'dislike'); return false;">
|
||||
<i class="fa fa-thumbs-o-down{{if $item.my_responses.dislike}} ivoted{{/if}}" ></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
{{if $item.isevent}}
|
||||
<div class="btn-group dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-attend-menu-{{$item.id}}" title="{{$item.attend_title}}">
|
||||
<i class="fa fa-calendar-check-o"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#" title="{{$item.attend.0}}" onclick="itemAddToCal({{$item.id}}); dolike({{$item.id}},'attendyes'); return false;">
|
||||
<i class="item-act-list fa fa-check{{if $item.my_responses.attend}} ivoted{{/if}}" ></i> {{$item.attend.0}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.attend.1}}" onclick="itemAddToCal({{$item.id}}), dolike({{$item.id}},'attendno'); return false;">
|
||||
<i class="item-act-list fa fa-times{{if $item.my_responses.attendno}} ivoted{{/if}}" ></i> {{$item.attend.1}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.attend.2}}" onclick="itemAddToCal({{$item.id}}); dolike({{$item.id}},'attendmaybe'); return false;">
|
||||
<i class="item-act-list fa fa-question{{if $item.my_responses.attendmaybe}} ivoted{{/if}}" ></i> {{$item.attend.2}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.canvote}}
|
||||
<div class="btn-group dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-consensus-menu-{{$item.id}}" title="{{$item.vote_title}}">
|
||||
<i class="fa fa-check-square-o"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu" role="menu" aria-labelledby="wall-item-consensus-menu-{{$item.id}}">
|
||||
<a class="dropdown-item" href="#" title="{{$item.conlabels.0}}" onclick="dolike({{$item.id}},'agree'); return false;">
|
||||
<i class="item-act-list fa fa-check{{if $item.my_responses.agree}} ivoted{{/if}}" ></i> {{$item.conlabels.0}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.conlabels.1}}" onclick="dolike({{$item.id}},'disagree'); return false;">
|
||||
<i class="item-act-list fa fa-times{{if $item.my_responses.disagree}} ivoted{{/if}}" ></i> {{$item.conlabels.1}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" title="{{$item.conlabels.2}}" onclick="dolike({{$item.id}},'abstain'); return false;">
|
||||
<i class="item-act-list fa fa-question{{if $item.my_responses.abstain}} ivoted{{/if}}" ></i> {{$item.conlabels.2}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" id="wall-item-menu-{{$item.id}}">
|
||||
<i class="fa fa-cog"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="wall-item-menu-{{$item.id}}">
|
||||
{{if $item.share}}
|
||||
<a class="dropdown-item" href="#" onclick="jotShare({{$item.id}}); return false"><i class="generic-icons-nav fa fa-fw fa-retweet" title="{{$item.share.0}}"></i>{{$item.share.0}}</a>
|
||||
{{/if}}
|
||||
{{if $item.plink}}
|
||||
<a class="dropdown-item" href="{{$item.plink.href}}" title="{{$item.plink.title}}" class="u-url"><i class="generic-icons-nav fa fa-fw fa-external-link"></i>{{$item.plink.title}}</a>
|
||||
{{/if}}
|
||||
{{if $item.edpost}}
|
||||
<a class="dropdown-item" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"><i class="generic-icons-nav fa fa-fw fa-pencil"></i>{{$item.edpost.1}}</a>
|
||||
{{/if}}
|
||||
{{if $item.tagger}}
|
||||
<a class="dropdown-item" href="#" onclick="itemTag({{$item.id}}); return false;"><i id="tagger-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-tag" title="{{$item.tagger.tagit}}"></i>{{$item.tagger.tagit}}</a>
|
||||
{{/if}}
|
||||
{{if $item.filer}}
|
||||
<a class="dropdown-item" href="#" onclick="itemFiler({{$item.id}}); return false;"><i id="filer-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-folder-open" title="{{$item.filer}}"></i>{{$item.filer}}</a>
|
||||
{{/if}}
|
||||
{{if $item.bookmark}}
|
||||
<a class="dropdown-item" href="#" onclick="itemBookmark({{$item.id}}); return false;"><i id="bookmarker-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-bookmark" title="{{$item.bookmark}}"></i>{{$item.bookmark}}</a>
|
||||
{{/if}}
|
||||
{{if $item.addtocal}}
|
||||
<a class="dropdown-item" href="#" onclick="itemAddToCal({{$item.id}}); return false;"><i id="addtocal-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-calendar" title="{{$item.addtocal}}"></i>{{$item.addtocal}}</a>
|
||||
{{/if}}
|
||||
{{if $item.star}}
|
||||
<a class="dropdown-item" href="#" onclick="dostar({{$item.id}}); return false;"><i id="starred-{{$item.id}}" class="generic-icons-nav fa fa-fw fa-star {{$item.star.isstarred}}" title="{{$item.star.toggle}}"></i>{{$item.star.toggle}}</a>
|
||||
{{/if}}
|
||||
{{if $item.thread_action_menu}}
|
||||
{{foreach $item.thread_action_menu as $mitem}}
|
||||
<a class="dropdown-item" {{if $mitem.href}}href="{{$mitem.href}}"{{/if}} {{if $mitem.action}}onclick="{{$mitem.action}}"{{/if}} {{if $mitem.title}}title="{{$mitem.title}}"{{/if}} ><i class="generic-icons-nav fa fa-fw fa-{{$mitem.icon}}"></i>{{$mitem.title}}</a>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if $item.drop.dropping}}
|
||||
<a class="dropdown-item" href="#" onclick="dropItem('item/drop/{{$item.id}}', '#thread-wrapper-{{$item.id}}'); return false;" title="{{$item.drop.delete}}" ><i class="generic-icons-nav fa fa-fw fa-trash-o"></i>{{$item.drop.delete}}</a>
|
||||
{{/if}}
|
||||
{{if $item.thread_author_menu}}
|
||||
<div class="dropdown-divider"></div>
|
||||
{{foreach $item.thread_author_menu as $mitem}}
|
||||
<a class="dropdown-item" {{if $mitem.href}}href="{{$mitem.href}}"{{/if}} {{if $mitem.action}}onclick="{{$mitem.action}}"{{/if}} {{if $mitem.title}}title="{{$mitem.title}}"{{/if}} >{{$mitem.title}}</a>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if $item.edpost && $item.dreport}}
|
||||
<a class="dropdown-item" href="dreport/{{$item.mid}}">{{$item.dreport}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="like-rotator-{{$item.id}}" class="like-rotator"></div>
|
||||
<div class="wall-item-tools-left{{if $item.unseen_comments || $item.like_count || $item.dislike_count || $item.attachments}} btn-group{{/if}}">
|
||||
{{if $item.attachments}}
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle" data-toggle="dropdown" id="attachment-menu-{{$item.id}}"><i class="fa fa-paperclip"></i></button>
|
||||
<ul class="dropdown-menu" role="menu" aria-labelledby="attachment-menu-{{$item.id}}">{{$item.attachments}}</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="wall-item-list-comments btn-group">
|
||||
<a class="btn btn-outline-secondary btn-sm" href="{{$item.viewthread}}">
|
||||
{{$item.comment_count_txt}}{{if $item.unseen_comments}}<span class="unseen-wall-indicator-{{$item.id}}">, {{$item.list_unseen_txt}}</span>{{/if}}
|
||||
</a>
|
||||
</div>
|
||||
{{if $item.unseen_comments}}
|
||||
<div class="unseen-wall-indicator-{{$item.id}} btn-group">
|
||||
<button class="btn btn-outline-secondary btn-sm" title="{{$item.markseen}}" onclick="markItemRead({{$item.id}}); return false;">
|
||||
<i class="fa fa-check-square-o"></i>
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.responses }}
|
||||
{{foreach $item.responses as $verb=>$response}}
|
||||
{{if $response.count}}
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle"{{if $response.modal}} data-toggle="modal" data-target="#{{$verb}}Modal-{{$item.id}}"{{else}} data-toggle="dropdown"{{/if}} id="wall-item-{{$verb}}-{{$item.id}}">{{$response.count}} {{$response.button}}</button>
|
||||
{{if $response.modal}}
|
||||
<div class="modal" id="{{$verb}}Modal-{{$item.id}}">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">{{$response.count}} {{$response.button}}</h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body response-list">
|
||||
<ul class="nav nav-pills flex-column">{{foreach $response.list as $liker}}<li class="nav-item">{{$liker}}</li>{{/foreach}}</ul>
|
||||
</div>
|
||||
<div class="modal-footer clear">
|
||||
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{$item.modal_dismiss}}</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
{{else}}
|
||||
<div class="dropdown-menu">{{foreach $response.list as $liker}}{{$liker}}{{/foreach}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{if $item.comment_lastcollapsed}}
|
||||
</div>
|
||||
{{/if}}
|
@@ -1,20 +0,0 @@
|
||||
<div id="threads-begin"></div>
|
||||
{{foreach $threads as $thread}}
|
||||
<div id="thread-wrapper-{{$thread.id}}" class="thread-wrapper generic-content-wrapper">
|
||||
{{foreach $thread.items as $item}}
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$thread.id}}" class="hide-comments-total">{{$thread.num_comments}}</span> <span id="hide-comments-{{$thread.id}}" class="hide-comments fakelink" onclick="showHideComments({{$thread.id}});">{{$thread.hide_text}}</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$thread.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
{{if $item.comment_lastcollapsed}}</div>{{/if}}
|
||||
|
||||
{{include file="{{$item.template}}"}}
|
||||
|
||||
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/foreach}}
|
||||
<div id="threads-end"></div>
|
||||
<div id="conversation-end"></div>
|
@@ -1,4 +0,0 @@
|
||||
{{foreach $threads as $item}}
|
||||
{{include file="{{$item.template}}"}}
|
||||
{{/foreach}}
|
||||
|
@@ -1,29 +0,0 @@
|
||||
<div id="profile-photo-content" class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<h2>{{$title}}</h2>
|
||||
</div>
|
||||
<div class="section-content-wrapper">
|
||||
|
||||
<form enctype="multipart/form-data" action="cover_photo" method="post">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<div id="profile-photo-upload-wrapper">
|
||||
|
||||
<label id="profile-photo-upload-label" class="form-label" for="profile-photo-upload">{{$lbl_upfile}}</label>
|
||||
<input name="userfile" class="form-input" type="file" id="profile-photo-upload" size="48" />
|
||||
<div class="clear"></div>
|
||||
<br />
|
||||
<br />
|
||||
<div id="profile-photo-submit-wrapper">
|
||||
<input type="submit" name="submit" id="profile-photo-submit" value="{{$submit}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<br />
|
||||
<br />
|
||||
<div id="profile-photo-link-select-wrapper">
|
||||
{{$select}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -1,76 +0,0 @@
|
||||
<script>
|
||||
var aside_padding_top;
|
||||
var section_padding_top;
|
||||
var coverSlid = false;
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
aside_padding_top = parseInt($('aside').css('padding-top'));
|
||||
section_padding_top = parseInt($('section').css('padding-top'));
|
||||
|
||||
$(document).on('click', slideUpCover);
|
||||
|
||||
if($('#cover-photo').length && $(window).width() > 755) {
|
||||
if($(window).scrollTop() < $('#cover-photo').height()) {
|
||||
$('.navbar').removeClass('fixed-top');
|
||||
$('main').css('margin-top', - $('nav').outerHeight(true) + 'px');
|
||||
$('main').css('opacity', 0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('#cover-photo').remove();
|
||||
coverSlid = true;
|
||||
}
|
||||
});
|
||||
|
||||
$(window).scroll(function () {
|
||||
if($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() >= $('#cover-photo').height()) {
|
||||
$('.navbar').addClass('fixed-top');
|
||||
$('main').css('margin-top', '');
|
||||
$('main').css('opacity', 1);
|
||||
coverSlid = true;
|
||||
}
|
||||
else if ($('#cover-photo').length && $(window).width() > 755 && $(window).scrollTop() < $('#cover-photo').height()){
|
||||
if(coverSlid) {
|
||||
$(window).scrollTop(Math.ceil($('#cover-photo').height()));
|
||||
setTimeout(function(){ coverSlid = false; }, 1000);
|
||||
}
|
||||
else {
|
||||
if($(window).scrollTop() < $('#cover-photo').height()) {
|
||||
$('.navbar').removeClass('fixed-top');
|
||||
$('main').css('margin-top', - $('nav').outerHeight(true) + 'px');
|
||||
$('main').css('opacity', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
if($('#cover-photo').length && $('main').css('opacity') < 1) {
|
||||
$('main').css('opacity', ($(window).scrollTop()/$('#cover-photo').height()).toFixed(1));
|
||||
}
|
||||
});
|
||||
|
||||
$(window).resize(function () {
|
||||
if($('#cover-photo').length && $(window).width() < 755) {
|
||||
$('#cover-photo').remove();
|
||||
$('.navbar').addClass('fixed-top');
|
||||
$('main').css('opacity', 1);
|
||||
coverSlid = true;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function slideUpCover() {
|
||||
if(coverSlid) {
|
||||
return;
|
||||
}
|
||||
$('html, body').animate({scrollTop: Math.ceil($('#cover-photo').height()) + 'px' });
|
||||
return;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="cover-photo" title="{{$hovertitle}}">
|
||||
{{$photo_html}}
|
||||
<div id="cover-photo-caption">
|
||||
<h1>{{$title}}</h1>
|
||||
<h3>{{$subtitle}}</h3>
|
||||
</div>
|
||||
</div>
|
@@ -1,58 +0,0 @@
|
||||
<h1>{{$title}}</h1>
|
||||
<p id="cropimage-desc">
|
||||
{{$desc}}
|
||||
</p>
|
||||
<div id="cropimage-wrapper">
|
||||
<img src="{{$image_url}}" id="croppa" class="imgCrop" alt="{{$title}}" />
|
||||
</div>
|
||||
<div id="cropimage-preview-wrapper" >
|
||||
<div id="previewWrap" ></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function onEndCrop( coords, dimensions ) {
|
||||
$( 'x1' ).value = coords.x1;
|
||||
$( 'y1' ).value = coords.y1;
|
||||
$( 'x2' ).value = coords.x2;
|
||||
$( 'y2' ).value = coords.y2;
|
||||
$( 'width' ).value = dimensions.width;
|
||||
$( 'height' ).value = dimensions.height;
|
||||
}
|
||||
|
||||
Event.observe( window, 'load', function() {
|
||||
new Cropper.ImgWithPreview(
|
||||
'croppa',
|
||||
{
|
||||
previewWrap: 'previewWrap',
|
||||
minWidth: 300,
|
||||
minHeight: 300,
|
||||
maxWidth: 1024,
|
||||
maxHeight: 1024,
|
||||
ratioDim: { x: 100, y:100 },
|
||||
displayOnInit: true,
|
||||
onEndCrop: onEndCrop
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
|
||||
<form action="profile_photo/{{$resource}}" id="crop-image-form" method="post" />
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<input type='hidden' name='profile' value='{{$profile}}'>
|
||||
<input type="hidden" name="cropfinal" value="1" />
|
||||
<input type="hidden" name="xstart" id="x1" />
|
||||
<input type="hidden" name="ystart" id="y1" />
|
||||
<input type="hidden" name="xfinal" id="x2" />
|
||||
<input type="hidden" name="yfinal" id="y2" />
|
||||
<input type="hidden" name="height" id="height" />
|
||||
<input type="hidden" name="width" id="width" />
|
||||
|
||||
<div id="crop-image-submit-wrapper" >
|
||||
<input type="submit" name="submit" value="{{$done}}" />
|
||||
</div>
|
||||
|
||||
</form>
|
@@ -1,58 +0,0 @@
|
||||
<h1>{{$title}}</h1>
|
||||
<p id="cropimage-desc">
|
||||
{{$desc}}
|
||||
</p>
|
||||
<div id="cropimage-wrapper">
|
||||
<img src="{{$image_url}}" id="croppa" class="imgCrop" alt="{{$title}}" />
|
||||
</div>
|
||||
<div id="cropimage-preview-wrapper" >
|
||||
<div id="previewWrap" ></div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function onEndCrop( coords, dimensions ) {
|
||||
$( 'x1' ).value = coords.x1;
|
||||
$( 'y1' ).value = coords.y1;
|
||||
$( 'x2' ).value = coords.x2;
|
||||
$( 'y2' ).value = coords.y2;
|
||||
$( 'width' ).value = dimensions.width;
|
||||
$( 'height' ).value = dimensions.height;
|
||||
}
|
||||
|
||||
Event.observe( window, 'load', function() {
|
||||
new Cropper.ImgWithPreview(
|
||||
'croppa',
|
||||
{
|
||||
previewWrap: 'previewWrap',
|
||||
minWidth: 240,
|
||||
minHeight: 87,
|
||||
maxWidth: 320,
|
||||
maxHeight: 116,
|
||||
ratioDim: { x: 100, y:36 },
|
||||
displayOnInit: true,
|
||||
onEndCrop: onEndCrop
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
|
||||
<form action="cover_photo/{{$resource}}" id="crop-image-form" method="post" />
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
<input type='hidden' name='profile' value='{{$profile}}'>
|
||||
<input type="hidden" name="cropfinal" value="1" />
|
||||
<input type="hidden" name="xstart" id="x1" />
|
||||
<input type="hidden" name="ystart" id="y1" />
|
||||
<input type="hidden" name="xfinal" id="x2" />
|
||||
<input type="hidden" name="yfinal" id="y2" />
|
||||
<input type="hidden" name="height" id="height" />
|
||||
<input type="hidden" name="width" id="width" />
|
||||
|
||||
<div id="crop-image-submit-wrapper" >
|
||||
<input type="submit" name="submit" value="{{$done}}" />
|
||||
</div>
|
||||
|
||||
</form>
|
@@ -1,4 +0,0 @@
|
||||
<script type="text/javascript" src="library/cropper/lib/prototype.js" language="javascript"></script>
|
||||
<script type="text/javascript" src="library/cropper/lib/scriptaculous.js?load=effects,builder,dragdrop" language="javascript"></script>
|
||||
<script type="text/javascript" src="library/cropper/cropper.js" language="javascript"></script>
|
||||
<link rel="stylesheet" href="library/cropper/cropper.css" type="text/css" />
|
@@ -1,57 +0,0 @@
|
||||
<h3>{{$header}}</h3>
|
||||
|
||||
<div id="delegate-desc" class="delegate-desc">{{$desc}}</div>
|
||||
|
||||
{{if $managers}}
|
||||
<h3>{{$head_managers}}</h3>
|
||||
|
||||
{{foreach $managers as $x}}
|
||||
|
||||
<div class="contact-block-div">
|
||||
<a class="contact-block-link" href="#" >
|
||||
<img class="contact-block-img" src="{{$base}}/photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/foreach}}
|
||||
<div class="clear"></div>
|
||||
<hr />
|
||||
{{/if}}
|
||||
|
||||
|
||||
<h3>{{$head_delegates}}</h3>
|
||||
|
||||
{{if $delegates}}
|
||||
{{foreach $delegates as $x}}
|
||||
|
||||
<div class="contact-block-div">
|
||||
<a class="contact-block-link" href="{{$base}}/delegate/remove/{{$x.uid}}" >
|
||||
<img class="contact-block-img" src="{{$base}}/photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/foreach}}
|
||||
<div class="clear"></div>
|
||||
{{else}}
|
||||
{{$none}}
|
||||
{{/if}}
|
||||
<hr />
|
||||
|
||||
|
||||
<h3>{{$head_potentials}}</h3>
|
||||
{{if $potentials}}
|
||||
{{foreach $potentials as $x}}
|
||||
|
||||
<div class="contact-block-div">
|
||||
<a class="contact-block-link" href="{{$base}}/delegate/add/{{$x.uid}}" >
|
||||
<img class="contact-block-img" src="{{$base}}/photo/thumb/{{$x.uid}}" title="{{$x.username}} ({{$x.nickname}})" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{/foreach}}
|
||||
<div class="clear"></div>
|
||||
{{else}}
|
||||
{{$none}}
|
||||
{{/if}}
|
||||
<hr />
|
||||
|
@@ -1,9 +0,0 @@
|
||||
<div id="design-tools" class="widget design-tools">
|
||||
<h3>{{$title}}</h3>
|
||||
<div class="nav nav-pills flex-column">
|
||||
<a class="nav-link" href="blocks/{{$who}}">{{$blocks}}</a>
|
||||
<a class="nav-link" href="menu{{if $sys}}?f=&sys=1{{/if}}">{{$menus}}</a>
|
||||
<a class="nav-link" href="layouts/{{$who}}">{{$layout}}</a>
|
||||
<a class="nav-link" href="webpages/{{$who}}">{{$pages}}</a>
|
||||
</div>
|
||||
</div>
|
@@ -1,69 +0,0 @@
|
||||
<div style="display:none;">
|
||||
<dl class="entity_uid">
|
||||
<dt>Uid</dt>
|
||||
<dd>
|
||||
<span class="uid p-uid">{{$diaspora.guid}}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class='entity_nickname'>
|
||||
<dt>Nickname</dt>
|
||||
<dd>
|
||||
<span class="nickname p-nickname">{{$diaspora.nickname}}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class='entity_full_name'>
|
||||
<dt>Full name</dt>
|
||||
<dd>
|
||||
<span class='fn p-name'>{{$diaspora.fullname}}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<dl class='entity_first_name'>
|
||||
<dt>First name</dt>
|
||||
<dd>
|
||||
<span class='given_name p-given-name'>{{$diaspora.firstname}}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class='entity_family_name'>
|
||||
<dt>Family name</dt>
|
||||
<dd>
|
||||
<span class='family_name p-family-name'>{{$diaspora.lastname}}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="entity_url">
|
||||
<dt>URL</dt>
|
||||
<dd>
|
||||
<a href="{{$diaspora.podloc}}/" id="pod_location" class="url" rel="me" >{{$diaspora.podloc}}/</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="entity_photo">
|
||||
<dt>Photo</dt>
|
||||
<dd>
|
||||
<img class="photo u-photo avatar" height="300" width="300" src="{{$diaspora.photo300}}" />
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="entity_photo_medium">
|
||||
<dt>Photo</dt>
|
||||
<dd>
|
||||
<img class="photo u-photo avatar" height="100" width="100" src="{{$diaspora.photo100}}" />
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="entity_photo_small">
|
||||
<dt>Photo</dt>
|
||||
<dd>
|
||||
<img class="photo u-photo avatar" height="50" width="50" src="{{$diaspora.photo50}}" />
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="entity_searchable">
|
||||
<dt>Searchable</dt>
|
||||
<dd>
|
||||
<span class="searchable">{{$diaspora.searchable}}</span>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="entity_key">
|
||||
<dt>Key</dt>
|
||||
<dd>
|
||||
<pre class="key">{{$diaspora.pubkey}}</pre>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
@@ -1,8 +0,0 @@
|
||||
<div class="widget" id="dir_sort_links">
|
||||
<h3>{{$header}}</h3>
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$safemode}}
|
||||
{{include file="field_checkbox.tpl" field=$globaldir}}
|
||||
{{include file="field_checkbox.tpl" field=$pubforums}}
|
||||
|
||||
</div>
|
@@ -1,4 +0,0 @@
|
||||
{{foreach $entries as $entry}}
|
||||
{{include file="direntry.tpl"}}
|
||||
{{/foreach}}
|
||||
|
@@ -1,22 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper clearfix">
|
||||
<div class="btn-group pull-right">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{{$sort}}">
|
||||
<i class="fa fa-sort"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a class="dropdown-item" href="directory?f=&order=date{{$suggest}}">{{$date}}</a>
|
||||
<a class="dropdown-item" href="directory?f=&order=normal{{$suggest}}">{{$normal}}</a>
|
||||
<a class="dropdown-item" href="directory?f=&order=reversedate{{$suggest}}">{{$reversedate}}</a>
|
||||
<a class="dropdown-item" href="directory?f=&order=reverse{{$suggest}}">{{$reverse}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<h2>{{$dirlbl}}{{if $search}}: {{$safetxt}}{{/if}}</h2>
|
||||
</div>
|
||||
{{foreach $entries as $entry}}
|
||||
{{include file="direntry.tpl"}}
|
||||
{{/foreach}}
|
||||
<div id="page-end"></div>
|
||||
</div>
|
||||
<script>$(document).ready(function() { loadingPage = false;});</script>
|
||||
<div id="page-spinner"></div>
|
@@ -1,77 +0,0 @@
|
||||
<div class="directory-item{{if $entry.safe}} safe{{/if}}" id="directory-item-{{$entry.hash}}" >
|
||||
<div class="section-subtitle-wrapper clearfix">
|
||||
<div class="pull-right">
|
||||
{{if $entry.viewrate}}
|
||||
{{if $entry.total_ratings}}<a href="ratings/{{$entry.hash}}" id="dir-rating-{{$entry.hash}}" class="btn btn-outline-secondary btn-sm">{{$entry.total_ratings}}</a>{{/if}}
|
||||
{{/if}}
|
||||
{{if $entry.ignlink}}
|
||||
<a class="directory-ignore btn btn-warning btn-sm" href="{{$entry.ignlink}}"> {{$entry.ignore_label}}</a>
|
||||
{{/if}}
|
||||
{{if $entry.connect}}
|
||||
<a class="btn btn-success btn-sm" href="{{$entry.connect}}"><i class="fa fa-plus connect-icon"></i> {{$entry.conn_label}}</a>
|
||||
{{/if}}
|
||||
{{if $entry.viewrate}}
|
||||
{{if $entry.canrate}}<button class="btn btn-outline-secondary btn-sm" onclick="doRatings('{{$entry.hash}}'); return false;" ><i class="fa fa-pencil"></i><span id="edited-{{$entry.hash}}" class="required" id="edited-{{$entry.hash}}" style="display: none;" > *</span></button>{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<h3>{{if $entry.public_forum}}<i class="fa fa-comments-o" title="{{$entry.forum_label}} @{{$entry.nickname}}+"></i> {{/if}}<a href='{{$entry.profile_link}}' >{{$entry.name}}</a>{{if $entry.online}} <i class="fa fa-asterisk online-now" title="{{$entry.online}}"></i>{{/if}}</h3>
|
||||
</div>
|
||||
<div class="section-content-tools-wrapper directory-collapse">
|
||||
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.hash}}" >
|
||||
<div class="contact-photo" id="directory-photo-{{$entry.hash}}" >
|
||||
<a href="{{$entry.profile_link}}" class="directory-profile-link" id="directory-profile-link-{{$entry.hash}}" >
|
||||
<img class="directory-photo-img" src="{{$entry.photo}}" alt="{{$entry.alttext}}" title="{{$entry.alttext}}" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contact-info">
|
||||
{{if $entry.common_friends}}
|
||||
<div id="dir-common" class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.common_label}}</span> {{$entry.common_count}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.pdesc}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.pdesc_label}}</span> {{$entry.pdesc}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.age}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.age_label}}</span> {{$entry.age}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.location}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.location_label}}</span> {{$entry.location}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.hometown}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.hometown_label}}</span> {{$entry.hometown}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.homepage}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.homepage}}</span> {{$entry.homepageurl}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.kw}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.kw}}</span> {{$entry.keywords}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{if $entry.about}}
|
||||
<div class="contact-info-element">
|
||||
<span class="contact-info-label">{{$entry.about_label}}</span> {{$entry.about}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -1,8 +0,0 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".comment-edit-wrapper textarea").editor_autocomplete(baseurl+"/acl?f=&n=1");
|
||||
// make auto-complete work in more places
|
||||
$(".wall-item-comment-wrapper textarea").editor_autocomplete(baseurl+"/acl?f=&n=1");
|
||||
});
|
||||
</script>
|
||||
|
@@ -1,28 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
{{if $table == 'item'}}
|
||||
<div class="dropdown pull-right">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{{$options}}">
|
||||
<i class="fa fa-sort-desc"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="dreport/push/{{$mid}}">{{$push}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
<h2>{{$title}}</h2>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
{{if $entries}}
|
||||
{{foreach $entries as $e}}
|
||||
<tr>
|
||||
<td width="40%">{{$e.name}}</td>
|
||||
<td width="20%">{{$e.result}}</td>
|
||||
<td width="20%">{{$e.time}}</td>
|
||||
</tr>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</table>
|
||||
</div>
|
@@ -1,14 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
{{if $delete}}
|
||||
<div class="pull-right">
|
||||
<a href="item/drop/{{$id}}" id="delete-btn" class="btn btn-sm btn-danger" onclick="return confirmDelete();"><i class="fa fa-trash-o"></i> {{$delete}}</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
<h2>{{$title}}</h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="webpage-editor" class="section-content-tools-wrapper">
|
||||
{{$editor}}
|
||||
</div>
|
||||
</div>
|
@@ -1,27 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>{{$banner}}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<table style="border:1px solid #ccc; background-color: #FFFFFF; color: #000000;">
|
||||
<tbody>
|
||||
<tr><td colspan="2" style="background:#43488A; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src="{{$notify_icon}}"><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">{{$product}}</div><div style="clear: both;"></div></td></tr>
|
||||
|
||||
|
||||
<tr><td style="padding-top:22px;" colspan="2">{{$preamble}}</td></tr>
|
||||
|
||||
|
||||
<tr><td style="padding-left:22px;padding-top:22px;width:60px;" valign="top" rowspan=3><a href="{{$source_link}}"><img style="border:0px;width:48px;height:48px;" src="{{$source_photo}}"></a></td>
|
||||
<td style="padding-top:22px;"><a href="{{$source_link}}">{{$source_name}}</a></td></tr>
|
||||
<tr><td style="font-weight:bold;padding-bottom:5px;">{{$title}}</td></tr>
|
||||
<tr><td style="padding-right:22px;">{{$htmlversion}}</td></tr>
|
||||
<tr><td style="padding-top:11px;" colspan="2">{{$hsitelink}}</td></tr>
|
||||
<tr><td style="padding:11px 0;" colspan="2">{{$hitemlink}}</td></tr>
|
||||
<tr><td></td><td>{{$thanks}}</td></tr>
|
||||
<tr><td></td><td>{{$site_admin}}</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@@ -1,13 +0,0 @@
|
||||
{{$preamble}}
|
||||
|
||||
{{$title}}
|
||||
|
||||
{{$textversion}}
|
||||
|
||||
{{$tsitelink}}
|
||||
|
||||
{{$titemlink}}
|
||||
|
||||
{{$thanks}}
|
||||
{{$site_admin}}
|
||||
|
@@ -1,16 +0,0 @@
|
||||
{{foreach $events as $event}}
|
||||
<div class="event-wrapper">
|
||||
<div class="event">
|
||||
<div class="event-owner">
|
||||
{{if $event.item.author.xchan_name}}<a href="{{$event.item.author.xchan_url}}" ><img src="{{$event.item.author.xchan_photo_s}}">{{$event.item.author.xchan_name}}</a>{{/if}}
|
||||
</div>
|
||||
{{$event.html}}
|
||||
<div class="event-buttons">
|
||||
{{if $event.item.plink}}<a href="{{$event.plink.0}}" title="{{$event.plink.1}}" class="plink-event-link"><i class="fa fa-external-link btn btn-outline-secondary" ></i></a>{{/if}}
|
||||
{{if $event.edit}}<a href="{{$event.edit.0}}" title="{{$event.edit.1}}" class="edit-event-link"><i class="fa fa-pencil btn btn-outline-secondary"></i></a>{{/if}}
|
||||
{{if $event.drop}}<a href="{{$event.drop.0}}" title="{{$event.drop.1}}" class="drop-event-link"><i class="fa fa-trash-o btn btn-outline-secondary"></i></a>{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
@@ -1,14 +0,0 @@
|
||||
{{foreach $events as $event}}
|
||||
<div class="event-wrapper">
|
||||
<div class="event">
|
||||
<div class="event-owner">
|
||||
{{if $event.item.author.xchan_name}}<a href="{{$event.item.author.xchan_url}}" ><img src="{{$event.item.author.xchan_photo_s}}">{{$event.item.author.xchan_name}}</a>{{/if}}
|
||||
</div>
|
||||
{{$event.html}}
|
||||
<div class="event-buttons">
|
||||
{{if $event.item.plink}}<a href="{{$event.plink.0}}" title="{{$event.plink.1}}" class="plink-event-link"><i class="fa fa-external-link btn btn-outline-secondary" ></i></a>{{/if}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{/foreach}}
|
@@ -1,130 +0,0 @@
|
||||
<form id="event-edit-form" action="{{$post}}" method="post" class="acl-form" data-form_id="event-edit-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
|
||||
|
||||
<input type="hidden" name="event_id" value="{{$eid}}" />
|
||||
<input type="hidden" name="event_hash" value="{{$event_hash}}" />
|
||||
<input type="hidden" name="xchan" value="{{$xchan}}" />
|
||||
<input type="hidden" name="mid" value="{{$mid}}" />
|
||||
<input type="hidden" name="type" value="{{$type}}" />
|
||||
<input type="hidden" name="preview" id="event-edit-preview" value="0" />
|
||||
|
||||
|
||||
{{include file="field_input.tpl" field=$summary}}
|
||||
|
||||
{{if $tz_choose}}
|
||||
{{include file="field_select_grouped.tpl" field=$timezone}}
|
||||
{{/if}}
|
||||
|
||||
{{$s_dsel}}
|
||||
|
||||
{{$f_dsel}}
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$nofinish}}
|
||||
|
||||
<div id="advanced" style="display:none">
|
||||
|
||||
{{include file="field_checkbox.tpl" field=$adjust}}
|
||||
|
||||
{{if $catsenabled}}
|
||||
<div id="event-category-text"><b>{{$c_text}}</b></div>
|
||||
<div id="events-category-wrap">
|
||||
<input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" data-role="cat-tagsinput" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<div id="event-desc-text"><b>{{$d_text}}</b></div>
|
||||
<textarea id="comment-edit-text-desc" class="form-control" name="desc" >{{$d_orig}}</textarea>
|
||||
</div>
|
||||
<div id="comment-tools-desc" class="comment-tools" style="display: block;" >
|
||||
<div id="comment-edit-bb-desc" class="btn-toolbar">
|
||||
<div class='btn-group mr-2'>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'desc');">
|
||||
<i class="fa fa-bold comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'desc');">
|
||||
<i class="fa fa-italic comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'desc');">
|
||||
<i class="fa fa-underline comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edquote}}" onclick="insertbbcomment('none','quote','desc');">
|
||||
<i class="fa fa-quote-left comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'desc');">
|
||||
<i class="fa fa-terminal comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'desc');">
|
||||
<i class="fa fa-camera comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'desc');">
|
||||
<i class="fa fa-link comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'desc');">
|
||||
<i class="fa fa-video-camera comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<div id="event-location-text"><b>{{$l_text}}</b></div>
|
||||
<textarea id="comment-edit-text-loc" class="form-control" name="location">{{$l_orig}}</textarea>
|
||||
</div>
|
||||
<div id="comment-tools-loc" class="comment-tools" style="display: block;" >
|
||||
<div id="comment-edit-bb-loc" class="btn-toolbar">
|
||||
<div class='btn-group mr-2'>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'loc');">
|
||||
<i class="fa fa-bold comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'loc');">
|
||||
<i class="fa fa-italic comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'loc');">
|
||||
<i class="fa fa-underline comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edquote}}" onclick="insertbbcomment('none','quote','loc');">
|
||||
<i class="fa fa-quote-left comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'loc');">
|
||||
<i class="fa fa-terminal comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class='btn-group'>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'loc');">
|
||||
<i class="fa fa-camera comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'loc');">
|
||||
<i class="fa fa-link comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'loc');">
|
||||
<i class="fa fa-video-camera comment-icon"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$mapper}}" onclick="insertbbcomment('none','map','loc');">
|
||||
<i class="fa fa-globe comment-icon"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm" onclick="openClose('advanced');">{{$advanced}}</button>
|
||||
<div class="btn-group float-right">
|
||||
<button id="event-edit-preview-btn" class="btn btn-outline-secondary btn-sm" type="button" title="{{$preview}}" onclick="doEventPreview();"><i class="fa fa-eye" ></i></button>
|
||||
{{if ! $eid}}
|
||||
<button id="dbtn-acl" class="btn btn-outline-secondary btn-sm" type="button" data-toggle="modal" data-target="#aclModal" title="{{$perms_label}}"><i id="jot-perms-icon" class="fa fa-{{$lockstate}}"></i></button>
|
||||
{{/if}}
|
||||
<button id="event-submit" class="btn btn-primary btn-sm" type="submit" name="submit">{{$submit}}</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{{if ! $eid}}
|
||||
{{$acl}}
|
||||
{{/if}}
|
@@ -1,160 +0,0 @@
|
||||
<link rel='stylesheet' type='text/css' href='{{$baseurl}}/library/fullcalendar/fullcalendar.css' />
|
||||
<script language="javascript" type="text/javascript" src="{{$baseurl}}/library/moment/moment.min.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="{{$baseurl}}/library/fullcalendar/locale-all.js"></script>
|
||||
|
||||
<script>
|
||||
function showEvent(eventid) {
|
||||
$.get(
|
||||
'{{$baseurl}}{{$module_url}}/?id='+eventid,
|
||||
function(data){
|
||||
$.colorbox({ scrolling: false, html: data, onComplete: function() { $.colorbox.resize(); }});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function doEventPreview() {
|
||||
$('#event-edit-preview').val(1);
|
||||
$.post('events',$('#event-edit-form').serialize(), function(data) {
|
||||
$.colorbox({ html: data });
|
||||
});
|
||||
$('#event-edit-preview').val(0);
|
||||
}
|
||||
|
||||
function exportDate() {
|
||||
var moment = $('#events-calendar').fullCalendar('getDate');
|
||||
var sT = 'events/' + moment.year() + '/' + (moment.month() + 1) + '/export';
|
||||
window.location.href=sT;
|
||||
}
|
||||
|
||||
function changeView(action, viewName) {
|
||||
$('#events-calendar').fullCalendar(action, viewName);
|
||||
var view = $('#events-calendar').fullCalendar('getView');
|
||||
|
||||
if(view.type !== 'month' && !$('main').hasClass('fullscreen')) {
|
||||
$('#events-calendar').fullCalendar('option', 'height', 'auto');
|
||||
}
|
||||
else {
|
||||
$('#events-calendar').fullCalendar('option', 'height', '');
|
||||
}
|
||||
|
||||
if($('main').hasClass('fullscreen')) {
|
||||
$('#events-calendar').fullCalendar('option', 'height', $(window).height() - $('.section-title-wrapper').outerHeight(true) - 2); // -2 is for border width (.generic-content-wrapper top and bottom) of .generic-content-wrapper
|
||||
}
|
||||
|
||||
$('#title').text(view.title);
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#events-calendar').fullCalendar({
|
||||
events: '{{$baseurl}}{{$module_url}}/json',
|
||||
header: false,
|
||||
eventTextColor: 'white',
|
||||
lang: '{{$lang}}',
|
||||
firstDay: {{$first_day}},
|
||||
|
||||
eventLimit: 3,
|
||||
|
||||
monthNames: aStr['monthNames'],
|
||||
monthNamesShort: aStr['monthNamesShort'],
|
||||
dayNames: aStr['dayNames'],
|
||||
dayNamesShort: aStr['dayNamesShort'],
|
||||
|
||||
allDayText: aStr['allday'],
|
||||
timeFormat: 'HH:mm',
|
||||
eventClick: function(calEvent, jsEvent, view) {
|
||||
showEvent(calEvent.id);
|
||||
},
|
||||
loading: function(isLoading, view) {
|
||||
$('#events-spinner').spin('tiny');
|
||||
$('#events-spinner > i').css('color', 'transparent');
|
||||
if(!isLoading) {
|
||||
$('#events-spinner').spin(false);
|
||||
$('#events-spinner > i').css('color', '');
|
||||
$('td.fc-day').dblclick(function() {
|
||||
openMenu('form');
|
||||
//window.location.href='/events/new?start='+$(this).data('date');
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
eventRender: function(event, element, view) {
|
||||
|
||||
//console.log(view.name);
|
||||
if (event.item['author']['xchan_name']==null) return;
|
||||
|
||||
switch(view.name){
|
||||
case "month":
|
||||
element.find(".fc-title").html(
|
||||
"<img src='{0}' style='height:12px;width:12px;' title='{1}'> <span title='{3}{4}'>{2}</span>".format(
|
||||
event.item['author']['xchan_photo_s'],
|
||||
event.item['author']['xchan_name'],
|
||||
event.title,
|
||||
event.item.description ? event.item.description + "\r\n\r\n" : '',
|
||||
event.item.location ? aStr['location'] + ': ' + event.item.location.replace(/(<([^>]+)>)/ig,"") : ''
|
||||
));
|
||||
break;
|
||||
case "agendaWeek":
|
||||
element.find(".fc-title").html(
|
||||
"<img src='{0}' style='height:12px;width:12px;'> {1}: <span title='{3}{4}'>{2}</span>".format(
|
||||
event.item['author']['xchan_photo_s'],
|
||||
event.item['author']['xchan_name'],
|
||||
event.title,
|
||||
event.item.description ? event.item.description + "\r\n\r\n" : '',
|
||||
event.item.location ? aStr['location'] + ': ' + event.item.location.replace(/(<([^>]+)>)/ig,"") : ''
|
||||
));
|
||||
break;
|
||||
case "agendaDay":
|
||||
element.find(".fc-title").html(
|
||||
"<img src='{0}' style='height:12px;width:12px;'> {1}: <span title='{3}{4}'>{2}</span>".format(
|
||||
event.item['author']['xchan_photo_s'],
|
||||
event.item['author']['xchan_name'],
|
||||
event.title,
|
||||
event.item.description ? event.item.description + "\r\n\r\n" : '',
|
||||
event.item.location ? aStr['location'] + ': ' + event.item.location.replace(/(<([^>]+)>)/ig,"") : ''
|
||||
));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// center on date
|
||||
// @fixme does not work for cal/$nick module_url
|
||||
var args=location.href.replace(baseurl,"").split("/");
|
||||
{{if $modparams == 2}}
|
||||
if (args.length>=5) {
|
||||
$("#events-calendar").fullCalendar('gotoDate',args[3] , args[4]-1);
|
||||
}
|
||||
{{else}}
|
||||
if (args.length>=4) {
|
||||
$("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1);
|
||||
}
|
||||
{{/if}}
|
||||
|
||||
// show event popup
|
||||
var hash = location.hash.split("-")
|
||||
if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]);
|
||||
|
||||
// echo the title
|
||||
var view = $('#events-calendar').fullCalendar('getView');
|
||||
$('#title').text(view.title);
|
||||
|
||||
// shift the finish time date on start time date change automagically
|
||||
var origsval = $('#id_start_text').val();
|
||||
$('#id_start_text').change(function() {
|
||||
var origfval = $('#id_finish_text').val();
|
||||
if(origfval) {
|
||||
var sval = $('#id_start_text').val();
|
||||
var diff = moment(sval).diff(origsval);
|
||||
var fval = moment(origfval).add(diff, 'millisecond').format("YYYY-MM-DD HH:mm");
|
||||
$('#id_finish_text').val(fval);
|
||||
origsval = sval;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@@ -1,10 +0,0 @@
|
||||
{{if $description}}
|
||||
<div class="event-item-description">
|
||||
{{$description}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $location}}
|
||||
<div class="event-item-location">
|
||||
<span class="event-item-label">{{$location_label}}</span> <span class="event-item-location">{{$location}}</span>
|
||||
</div>
|
||||
{{/if}}
|
@@ -1,11 +0,0 @@
|
||||
<div class="event-item-title">
|
||||
<h3><i class="fa fa-calendar"></i> {{$title}}</h3>
|
||||
</div>
|
||||
<div class="event-item-start">
|
||||
<span class="event-item-label">{{$dtstart_label}}</span> <span class="dtstart" title="{{$dtstart_title}}">{{$dtstart_dt}}</span>
|
||||
</div>
|
||||
{{if $finish}}
|
||||
<div class="event-item-start">
|
||||
<span class="event-item-label">{{$dtend_label}}</span> <span class="dtend" title="{{$dtend_title}}">{{$dtend_dt}}</span>
|
||||
</div>
|
||||
{{/if}}
|
@@ -1,31 +0,0 @@
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<div class="pull-right">
|
||||
<div class="dropdown">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> {{$view_label}}</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'month'); return false;">{{$month}}</a>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'agendaWeek'); return false;">{{$week}}</a>
|
||||
<a class="dropdown-item" href="#" onclick="changeView('changeView', 'agendaDay'); return false;">{{$day}}</a>
|
||||
</div>
|
||||
<button class="btn btn-success btn-sm" onclick="openClose('form');">{{$new_event.1}}</button>
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="changeView('prev', false);" title="{{$prev}}"><i class="fa fa-backward"></i></button>
|
||||
<button id="events-spinner" class="btn btn-outline-secondary btn-sm" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye"></i></button>
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="changeView('next', false);" title="{{$next}}"><i class="fa fa-forward"></i></button>
|
||||
</div>
|
||||
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen();"><i class="fa fa-expand"></i></button>
|
||||
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false);"><i class="fa fa-compress"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<h2 id="title"></h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="form" class="section-content-tools-wrapper"{{if !$expandform}} style="display:none;"{{/if}}>
|
||||
{{$form}}
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="section-content-wrapper-np">
|
||||
<div id="events-calendar"></div>
|
||||
</div>
|
||||
</div>
|
@@ -1,20 +0,0 @@
|
||||
{{$tabs}}
|
||||
<div class="generic-content-wrapper">
|
||||
<div class="section-title-wrapper">
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="changeView('prev', false);" title="{{$prev}}"><i class="fa fa-backward"></i></button>
|
||||
<button id="events-spinner" class="btn btn-outline-secondary btn-sm" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye"></i></button>
|
||||
<button class="btn btn-outline-secondary btn-sm" onclick="changeView('next', false);" title="{{$next}}"><i class="fa fa-forward"></i></button>
|
||||
</div>
|
||||
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen();"><i class="fa fa-expand"></i></button>
|
||||
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false);"><i class="fa fa-compress"></i></button>
|
||||
</div>
|
||||
<h2 id="title"></h2>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="section-content-wrapper-np">
|
||||
<div id="events-calendar"></div>
|
||||
</div>
|
||||
</div>
|
@@ -1,8 +0,0 @@
|
||||
<div class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li><a href="#" onclick="changeView('changeView', 'month'); return false;">{{$month}}</a></li>
|
||||
<li><a href="#" onclick="changeView('changeView', 'agendaWeek'); return false;">{{$week}}</a></li>
|
||||
<li><a href="#" onclick="changeView('changeView', 'agendaDay'); return false;">{{$day}}</a></li>
|
||||
</ul>
|
||||
</div>
|
@@ -1,10 +0,0 @@
|
||||
{{if $count}}
|
||||
<div id="event-notice" class="birthday-notice fakelink {{$classtoday}}" onclick="openClose('event-wrapper');">{{$event_reminders}} ({{$count}})</div>
|
||||
<div id="event-wrapper" style="display: none;" ><div id="event-title">{{$event_title}}</div>
|
||||
<div id="event-title-end"></div>
|
||||
{{foreach $events as $event}}
|
||||
<div class="event-list" id="event-{{$event.id}}"></a> <a href="events/{{$event.link}}">{{$event.title}}</a> {{$event.date}} </div>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user