Removed my version of jot.tpl

This commit is contained in:
Haakon Meland Eriksen 2015-11-28 16:23:17 +01:00
parent 2b2723cb74
commit cb7df797e1
31 changed files with 2496 additions and 2752 deletions

View File

@ -24,4 +24,6 @@ Abstraction of nomadic identity so that sending/receiving to/from singleton netw
CalDAV/CardDAV
E-Commerce
E-Commerce
Auto Updater

View File

@ -346,6 +346,7 @@ class Item extends BaseObject {
'owner_photo' => $this->get_owner_photo(),
'owner_name' => $this->get_owner_name(),
'photo' => $body['photo'],
'event' => $body['event'],
'has_tags' => $has_tags,
// Item toolbar buttons

View File

@ -697,6 +697,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $
'thumb' => $profile_avatar,
'title' => $item['title'],
'body' => $body['html'],
'event' => $body['event'],
'photo' => $body['photo'],
'tags' => $body['tags'],
'categories' => $body['categories'],

View File

@ -153,7 +153,7 @@ function dob($dob) {
* id and name of datetimepicker (defaults to "datetimepicker")
*/
function datesel($format, $min, $max, $default, $id = 'datepicker') {
return datetimesel($format, $min, $max, $default, $id,true, false, '', '');
return datetimesel($format, $min, $max, $default, '', $id,true, false, '', '');
}
/**
@ -168,7 +168,7 @@ function datesel($format, $min, $max, $default, $id = 'datepicker') {
* id and name of datetimepicker (defaults to "timepicker")
*/
function timesel($format, $h, $m, $id='timepicker') {
return datetimesel($format,new DateTime(),new DateTime(),new DateTime("$h:$m"),$id,false,true);
return datetimesel($format,new DateTime(),new DateTime(),new DateTime("$h:$m"),'', $id,false,true);
}
/**
@ -198,7 +198,7 @@ function timesel($format, $h, $m, $id='timepicker') {
* @todo Once browser support is better this could probably be replaced with
* native HTML5 date picker.
*/
function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false, $first_day = 0) {
function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false, $first_day = 0) {
$o = '';
$dateformat = '';
@ -207,11 +207,11 @@ function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pic
if($pickdate && $picktime) $dateformat .= ' ';
if($picktime) $dateformat .= 'H:i';
$minjs = $min ? ",minDate: new Date({$min->getTimestamp()}*1000), yearStart: " . $min->format('Y') : '';
$maxjs = $max ? ",maxDate: new Date({$max->getTimestamp()}*1000), yearEnd: " . $max->format('Y') : '';
$minjs = $min->getTimestamp() ? ",minDate: new Date({$min->getTimestamp()}*1000), yearStart: " . $min->format('Y') : '';
$maxjs = $max->getTimestamp() ? ",maxDate: new Date({$max->getTimestamp()}*1000), yearEnd: " . $max->format('Y') : '';
$input_text = $default ? 'value="' . date($dateformat, $default->getTimestamp()) . '"' : '';
$defaultdatejs = $default ? ",defaultDate: new Date({$default->getTimestamp()}*1000)" : '';
$input_text = $default->getTimestamp() ? date($dateformat, $default->getTimestamp()) : '';
$defaultdatejs = $default->getTimestamp() ? ",defaultDate: new Date({$default->getTimestamp()}*1000)" : '';
$pickers = '';
if(!$pickdate) $pickers .= ',datepicker: false';
@ -219,10 +219,10 @@ function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pic
$extra_js = '';
if($minfrom != '')
$extra_js .= "\$('#$minfrom').data('xdsoft_datetimepicker').setOptions({onChangeDateTime: function (currentDateTime) { \$('#$id').data('xdsoft_datetimepicker').setOptions({minDate: currentDateTime})}})";
$extra_js .= "\$('#id_$minfrom').data('xdsoft_datetimepicker').setOptions({onChangeDateTime: function (currentDateTime) { \$('#id_$id').data('xdsoft_datetimepicker').setOptions({minDate: currentDateTime})}})";
if($maxfrom != '')
$extra_js .= "\$('#$maxfrom').data('xdsoft_datetimepicker').setOptions({onChangeDateTime: function (currentDateTime) { \$('#$id').data('xdsoft_datetimepicker').setOptions({maxDate: currentDateTime})}})";
$extra_js .= "\$('#id_$maxfrom').data('xdsoft_datetimepicker').setOptions({onChangeDateTime: function (currentDateTime) { \$('#id_$id').data('xdsoft_datetimepicker').setOptions({maxDate: currentDateTime})}})";
$readable_format = $dateformat;
$readable_format = str_replace('Y','yyyy',$readable_format);
@ -231,10 +231,11 @@ function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pic
$readable_format = str_replace('H','HH',$readable_format);
$readable_format = str_replace('i','MM',$readable_format);
$o .= "<div class='date'><input type='text' placeholder='$readable_format' name='$id' id='$id' $input_text />";
$o .= (($required) ? '<span class="required" title="' . t('Required') . '" >*</span>' : '');
$o .= '</div>';
$o .= "<script type='text/javascript'>\$(function () {var picker = \$('#$id').datetimepicker({step:5,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs,dayOfWeekStart:$first_day}); $extra_js})</script>";
$tpl = get_markup_template('field_input.tpl');
$o .= replace_macros($tpl,array(
'$field' => array($id, $label, $input_text, (($required) ? t('Required') : ''), (($required) ? '*' : ''), 'placeholder="' . $readable_format . '"'),
));
$o .= "<script>\$(function () {var picker = \$('#id_$id').datetimepicker({step:5,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs,dayOfWeekStart:$first_day}); $extra_js})</script>";
return $o;
}

View File

@ -21,35 +21,37 @@ function format_event_html($ev) {
$bd_format = t('l F d, Y \@ g:i A') ; // Friday January 18, 2011 @ 8:01 AM
//todo: move this to template
$o = '<div class="vevent">' . "\r\n";
$o .= '<p class="summary event-summary">' . bbcode($ev['summary']) . '</p>' . "\r\n";
$o .= '<div class="event-title"><h3><i class="icon-calendar"></i>&nbsp;' . bbcode($ev['summary']) . '</h3></div>' . "\r\n";
$o .= '<p class="description event-description">' . bbcode($ev['description']) . '</p>' . "\r\n";
$o .= '<p class="event-start">' . t('Starts:') . ' <abbr class="dtstart" title="'
$o .= '<div class="event-start"><span class="event-label">' . t('Starts:') . '</span>&nbsp;<span class="dtstart" title="'
. datetime_convert('UTC', 'UTC', $ev['start'], (($ev['adjust']) ? ATOM_TIME : 'Y-m-d\TH:i:s' ))
. '" >'
. (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(),
$ev['start'] , $bd_format ))
: day_translate(datetime_convert('UTC', 'UTC',
$ev['start'] , $bd_format)))
. '</abbr></p>' . "\r\n";
. '</span></div>' . "\r\n";
if(! $ev['nofinish'])
$o .= '<p class="event-end" >' . t('Finishes:') . ' <abbr class="dtend" title="'
$o .= '<div class="event-end" ><span class="event-label">' . t('Finishes:') . '</span>&nbsp;<span class="dtend" title="'
. datetime_convert('UTC','UTC',$ev['finish'], (($ev['adjust']) ? ATOM_TIME : 'Y-m-d\TH:i:s' ))
. '" >'
. (($ev['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(),
$ev['finish'] , $bd_format ))
: day_translate(datetime_convert('UTC', 'UTC',
$ev['finish'] , $bd_format )))
. '</abbr></p>' . "\r\n";
. '</span></div>' . "\r\n";
$o .= '<div class="event-description">' . bbcode($ev['description']) . '</div>' . "\r\n";
if(strlen($ev['location']))
$o .= '<p class="event-location"> ' . t('Location:') . ' <span class="location">'
$o .= '<div class="event-location"><span class="event-label"> ' . t('Location:') . '</span>&nbsp;<span class="location">'
. bbcode($ev['location'])
. '</span></p>' . "\r\n";
. '</span></div>' . "\r\n";
$o .= '</div>' . "\r\n";
@ -785,6 +787,12 @@ function event_store_item($arr, $event) {
'type' => ACTIVITY_OBJ_EVENT,
'id' => z_root() . '/event/' . $r[0]['resource_id'],
'title' => $arr['summary'],
'start' => $arr['start'],
'finish' => $arr['finish'],
'nofinish' => $arr['nofinish'],
'description' => $arr['description'],
'location' => $arr['location'],
'adjust' => $arr['adjust'],
'content' => format_event_bbcode($arr),
'author' => array(
'name' => $r[0]['xchan_name'],
@ -887,7 +895,7 @@ function event_store_item($arr, $event) {
$item_arr['verb'] = ACTIVITY_POST;
$item_arr['item_wall'] = $item_wall;
$item_arr['item_origin'] = $item_origin;
$item_arr['item_thread_top'] = $item_thread_top;;
$item_arr['item_thread_top'] = $item_thread_top;
$attach = array(array(
'href' => z_root() . '/events/ical/' . urlencode($event['event_hash']),
@ -924,6 +932,12 @@ function event_store_item($arr, $event) {
'type' => ACTIVITY_OBJ_EVENT,
'id' => z_root() . '/event/' . $event['event_hash'],
'title' => $arr['summary'],
'start' => $arr['start'],
'finish' => $arr['finish'],
'nofinish' => $arr['nofinish'],
'description' => $arr['description'],
'location' => $arr['location'],
'adjust' => $arr['adjust'],
'content' => format_event_bbcode($arr),
'author' => array(
'name' => $x[0]['xchan_name'],

View File

@ -5,6 +5,7 @@
require_once("include/template_processor.php");
require_once("include/smarty.php");
require_once("include/bbcode.php");
// random string, there are 86 characters max in text mode, 128 for hex
// output is urlsafe
@ -1413,9 +1414,55 @@ function prepare_body(&$item,$attach = false) {
}
}
$event = array();
$is_event = (($item['obj_type'] === ACTIVITY_OBJ_EVENT) ? true : false);
if($is_event) {
$object = json_decode($item['object'],true);
//ensure compatibility with older items
if(array_key_exists('description', $object)) {
$bd_format = t('l F d, Y \@ g:i A') ; // Friday January 18, 2011 @ 8:01 AM
$event['header'] = '<div class="event-title"><h3><i class="icon-calendar"></i>&nbsp;' . bbcode($object['title']) . '</h3></div>' . "\r\n";
$event['header'] .= '<div class="event-start"><span class="event-label">' . t('Starts:') . '</span>&nbsp;<span class="dtstart" title="'
. datetime_convert('UTC', 'UTC', $object['start'], (($object['adjust']) ? ATOM_TIME : 'Y-m-d\TH:i:s' ))
. '" >'
. (($object['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(),
$object['start'] , $bd_format ))
: day_translate(datetime_convert('UTC', 'UTC',
$object['start'] , $bd_format)))
. '</span></div>' . "\r\n";
if(! $object['nofinish'])
$event['header'] .= '<div class="event-end" ><span class="event-label">' . t('Finishes:') . '</span>&nbsp;<span class="dtend" title="'
. datetime_convert('UTC','UTC',$object['finish'], (($object['adjust']) ? ATOM_TIME : 'Y-m-d\TH:i:s' ))
. '" >'
. (($object['adjust']) ? day_translate(datetime_convert('UTC', date_default_timezone_get(),
$object['finish'] , $bd_format ))
: day_translate(datetime_convert('UTC', 'UTC',
$object['finish'] , $bd_format )))
. '</span></div>' . "\r\n";
$event['content'] = '<div class="event-description">' . bbcode($object['description']) . '</div>' . "\r\n";
if(strlen($object['location']))
$event['content'] .= '<div class="event-location"><span class="event-label"> ' . t('Location:') . '</span>&nbsp;<span class="location">'
. bbcode($object['location'])
. '</span></div>' . "\r\n";
}
else {
$is_event = false;
}
}
$prep_arr = array(
'item' => $item,
'html' => $s,
'html' => $is_event ? $event['content'] : $s,
'event' => $event['header'],
'photo' => $photo
);
@ -1423,6 +1470,7 @@ function prepare_body(&$item,$attach = false) {
$s = $prep_arr['html'];
$photo = $prep_arr['photo'];
$event = $prep_arr['event'];
// q("update item set html = '%s' where id = %d",
// dbesc($s),
@ -1489,6 +1537,7 @@ function prepare_body(&$item,$attach = false) {
'item' => $item,
'photo' => $photo,
'html' => $s,
'event' => $event,
'categories' => $categories,
'folders' => $filer,
'tags' => $tags,

View File

@ -33,7 +33,7 @@ function editpost_content(&$a) {
}
if($itm[0]['resource_type'] === 'event' && $itm[0]['resource_id']) {
goaway(z_root() . '/events/event/' . $itm[0]['resource_id']);
goaway(z_root() . '/events/' . $itm[0]['resource_id'] . '?expandform=1');
}

View File

@ -91,7 +91,11 @@ function events_post(&$a) {
linkify_tags($a, $location, local_channel());
$action = ($event_hash == '') ? 'new' : "event/" . $event_hash;
$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish&type=$type";
//fixme: this url gives a wsod if there is a linebreak detected in one of the variables ($desc or $location)
//$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish&type=$type";
$onerror_url = $a->get_baseurl() . "/events";
if(strcmp($finish,$start) < 0 && !$nofinish) {
notice( t('Event can not end before it has started.') . EOL);
if(intval($_REQUEST['preview'])) {
@ -166,7 +170,7 @@ function events_post(&$a) {
'otype' => TERM_OBJ_POST,
'term' => trim($cat),
'url' => $channel['xchan_url'] . '?f=&cat=' . urlencode(trim($cat))
);
);
}
}
@ -273,25 +277,17 @@ function events_content(&$a) {
);
}
$plaintext = true;
// if(feature_enabled(local_channel(),'richtext'))
// $plaintext = false;
$first_day = get_pconfig(local_channel(),'system','cal_first_day');
$first_day = (($first_day) ? $first_day : 0);
$htpl = get_markup_template('event_head.tpl');
$a->page['htmlhead'] .= replace_macros($htpl,array(
'$baseurl' => $a->get_baseurl(),
'$editselect' => (($plaintext) ? 'none' : 'textareas'),
'$lang' => $a->language,
'$first_day' => $first_day
));
$o ="";
$o = '';
$channel = $a->get_channel();
@ -301,10 +297,6 @@ function events_content(&$a) {
$ignored = ((x($_REQUEST,'ignored')) ? " and ignored = " . intval($_REQUEST['ignored']) . " " : '');
if(argc() > 1) {
if(argc() > 2 && argv(1) == 'event') {
$mode = 'edit';
$event_id = argv(2);
}
if(argc() > 2 && argv(1) === 'add') {
$mode = 'add';
$item_id = intval(argv(2));
@ -313,15 +305,15 @@ function events_content(&$a) {
$mode = 'drop';
$event_id = argv(2);
}
if(argv(1) === 'new') {
$mode = 'new';
$event_id = '';
}
if(argc() > 2 && intval(argv(1)) && intval(argv(2))) {
$mode = 'view';
$y = intval(argv(1));
$m = intval(argv(2));
}
if(argc() <= 2) {
$mode = 'view';
$event_id = argv(1);
}
}
if($mode === 'add') {
@ -329,13 +321,164 @@ function events_content(&$a) {
killme();
}
if($mode == 'view') {
/* edit/create form */
if($event_id) {
$r = q("SELECT * FROM `event` WHERE event_hash = '%s' AND `uid` = %d LIMIT 1",
dbesc($event_id),
intval(local_channel())
);
if(count($r))
$orig_event = $r[0];
}
$channel = $a->get_channel();
// Passed parameters overrides anything found in the DB
if(!x($orig_event))
$orig_event = array();
// In case of an error the browser is redirected back here, with these parameters filled in with the previous values
/*
if(x($_REQUEST,'nofinish')) $orig_event['nofinish'] = $_REQUEST['nofinish'];
if(x($_REQUEST,'adjust')) $orig_event['adjust'] = $_REQUEST['adjust'];
if(x($_REQUEST,'summary')) $orig_event['summary'] = $_REQUEST['summary'];
if(x($_REQUEST,'description')) $orig_event['description'] = $_REQUEST['description'];
if(x($_REQUEST,'location')) $orig_event['location'] = $_REQUEST['location'];
if(x($_REQUEST,'start')) $orig_event['start'] = $_REQUEST['start'];
if(x($_REQUEST,'finish')) $orig_event['finish'] = $_REQUEST['finish'];
if(x($_REQUEST,'type')) $orig_event['type'] = $_REQUEST['type'];
*/
$n_checked = ((x($orig_event) && $orig_event['nofinish']) ? ' checked="checked" ' : '');
$a_checked = ((x($orig_event) && $orig_event['adjust']) ? ' checked="checked" ' : '');
$t_orig = ((x($orig_event)) ? $orig_event['summary'] : '');
$d_orig = ((x($orig_event)) ? $orig_event['description'] : '');
$l_orig = ((x($orig_event)) ? $orig_event['location'] : '');
$eid = ((x($orig_event)) ? $orig_event['id'] : 0);
$event_xchan = ((x($orig_event)) ? $orig_event['event_xchan'] : $channel['channel_hash']);
$mid = ((x($orig_event)) ? $orig_event['mid'] : '');
if(! x($orig_event))
$sh_checked = '';
else
$sh_checked = ((($orig_event['allow_cid'] === '<' . $channel['channel_hash'] . '>' || (! $orig_event['allow_cid'])) && (! $orig_event['allow_gid']) && (! $orig_event['deny_cid']) && (! $orig_event['deny_gid'])) ? '' : ' checked="checked" ' );
if($orig_event['event_xchan'])
$sh_checked .= ' disabled="disabled" ';
$sdt = ((x($orig_event)) ? $orig_event['start'] : 'now');
$fdt = ((x($orig_event)) ? $orig_event['finish'] : '+1 hour');
$tz = date_default_timezone_get();
if(x($orig_event))
$tz = (($orig_event['adjust']) ? date_default_timezone_get() : 'UTC');
// $syear = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'Y') : '0000');
// $smonth = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'm') : '00');
// $sday = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'd') : '00');
$syear = datetime_convert('UTC', $tz, $sdt, 'Y');
$smonth = datetime_convert('UTC', $tz, $sdt, 'm');
$sday = datetime_convert('UTC', $tz, $sdt, 'd');
// $shour = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'H') : '00');
// $sminute = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'i') : '00');
$shour = datetime_convert('UTC', $tz, $sdt, 'H');
$sminute = datetime_convert('UTC', $tz, $sdt, 'i');
$stext = datetime_convert('UTC',$tz,$sdt);
$stext = substr($stext,0,14) . "00:00";
// $fyear = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'Y') : '0000');
// $fmonth = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'm') : '00');
// $fday = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'd') : '00');
$fyear = datetime_convert('UTC', $tz, $fdt, 'Y');
$fmonth = datetime_convert('UTC', $tz, $fdt, 'm');
$fday = datetime_convert('UTC', $tz, $fdt, 'd');
// $fhour = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'H') : '00');
// $fminute = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'i') : '00');
$fhour = datetime_convert('UTC', $tz, $fdt, 'H');
$fminute = datetime_convert('UTC', $tz, $fdt, 'i');
$ftext = datetime_convert('UTC',$tz,$fdt);
$ftext = substr($ftext,0,14) . "00:00";
$type = ((x($orig_event)) ? $orig_event['type'] : 'event');
$f = get_config('system','event_input_format');
if(! $f)
$f = 'ymd';
$catsenabled = feature_enabled(local_channel(),'categories');
$category = '';
if($catsenabled && x($orig_event)){
$itm = q("select * from item where resource_type = 'event' and resource_id = '%s' and uid = %d limit 1",
dbesc($orig_event['event_hash']),
intval(local_channel())
);
$itm = fetch_post_tags($itm);
if($itm) {
$cats = get_terms_oftype($itm[0]['term'], TERM_CATEGORY);
foreach ($cats as $cat) {
if(strlen($category))
$category .= ', ';
$category .= $cat['term'];
}
}
}
require_once('include/acl_selectors.php');
$acl = new AccessList($channel);
$perm_defaults = $acl->get();
$tpl = get_markup_template('event_form.tpl');
$form = replace_macros($tpl,array(
'$post' => $a->get_baseurl() . '/events',
'$eid' => $eid,
'$type' => $type,
'$xchan' => $event_xchan,
'$mid' => $mid,
'$event_hash' => $event_id,
'$summary' => array('summary', t('Event Title'), $t_orig, t('Required'), '*'),
'$catsenabled' => $catsenabled,
'$placeholdercategory' => t('Categories (comma-separated list)'),
'$c_text' => t('Category'),
'$category' => $category,
'$required' => '<span class="required" title="' . t('Required') . '">*</span>',
'$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"), t('Start date and time'), 'start_text',true,true,'','',true,$first_day),
'$n_text' => t('Finish date and time are not known or not relevant'),
'$n_checked' => $n_checked,
'$f_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"), t('Finish date and time'),'finish_text',true,true,'start_text','',false,$first_day),
'$nofinish' => array('nofinish', t('Finish date and time are not known or not relevant'), $n_checked, '', array(t('No'),t('Yes')), 'onclick="enableDisableFinishDate();"'),
'$adjust' => array('adjust', t('Adjust for viewer timezone'), $a_checked, t('Important for events that happen in a particular place. Not practical for global holidays.'), array(t('No'),t('Yes'))),
'$a_text' => t('Adjust for viewer timezone'),
'$d_text' => t('Description'),
'$d_orig' => $d_orig,
'$l_text' => t('Location'),
'$l_orig' => $l_orig,
'$t_orig' => $t_orig,
'$sh_text' => t('Share this event'),
'$sh_checked' => $sh_checked,
'$share' => array('share', t('Share this event'), $sh_checked, '', array(t('No'),t('Yes'))),
'$preview' => t('Preview'),
'$permissions' => t('Permission settings'),
'$acl' => (($orig_event['event_xchan']) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $perm_defaults),false)),
'$submit' => t('Submit'),
'$advanced' => t('Advanced Options')
));
/* end edit/create form */
$thisyear = datetime_convert('UTC',date_default_timezone_get(),'now','Y');
$thismonth = datetime_convert('UTC',date_default_timezone_get(),'now','m');
if(! $y)
@ -347,7 +490,6 @@ function events_content(&$a) {
if(argc() === 4 && argv(3) === 'export')
$export = true;
// Put some limits on dates. The PHP date functions don't seem to do so well before 1900.
// An upper limit was chosen to keep search engines from exploring links millions of years in the future.
@ -424,9 +566,6 @@ function events_content(&$a) {
}
$links = array();
if($r && ! $export) {
@ -469,7 +608,7 @@ function events_content(&$a) {
$last_date = $d;
$edit = (intval($rr['item_wall']) ? array($a->get_baseurl().'/events/event/'.$rr['event_hash'],t('Edit event'),'','') : null);
$edit = array($a->get_baseurl().'/events/'.$rr['event_hash'].'?expandform=1',t('Edit event'),'','');
$drop = array($a->get_baseurl().'/events/drop/'.$rr['event_hash'],t('Delete event'),'','');
@ -524,24 +663,24 @@ function events_content(&$a) {
$o = replace_macros($tpl, array(
'$baseurl' => $a->get_baseurl(),
'$title' => t('Events'),
'$new_event'=> array($a->get_baseurl().'/events/new',t('New Event'),'',''),
'$new_event' => array($a->get_baseurl().'/events/new',t('New Event'),'',''),
'$previus' => array($a->get_baseurl()."/events/$prevyear/$prevmonth",t('Previous'),'',''),
'$next' => array($a->get_baseurl()."/events/$nextyear/$nextmonth",t('Next'),'',''),
'$export' => array($a->get_baseurl()."/events/$y/$m/export",t('Export'),'',''),
'$calendar' => cal($y,$m,$links, ' eventcal'),
'$export' => array($a->get_baseurl()."/events/$y/$m/export",t('Export'),'',''),
'$calendar' => cal($y,$m,$links, ' eventcal'),
'$events' => $events,
'$upload' => t('Import'),
'$submit' => t('Submit'),
'$prev' => t('Previous'),
'$next' => t('Next'),
'$today' => t('Today')
'$upload' => t('Import'),
'$submit' => t('Submit'),
'$prev' => t('Previous'),
'$next' => t('Next'),
'$today' => t('Today'),
'$form' => $form,
'$expandform' => ((x($_GET,'expandform')) ? true : false),
));
if (x($_GET,'id')){ echo $o; killme(); }
return $o;
}
if($mode === 'drop' && $event_id) {
@ -574,147 +713,4 @@ function events_content(&$a) {
}
}
if($mode === 'edit' && $event_id) {
$r = q("SELECT * FROM `event` WHERE event_hash = '%s' AND `uid` = %d LIMIT 1",
dbesc($event_id),
intval(local_channel())
);
if(count($r))
$orig_event = $r[0];
}
$channel = $a->get_channel();
// Passed parameters overrides anything found in the DB
if($mode === 'edit' || $mode === 'new') {
if(!x($orig_event)) $orig_event = array();
// In case of an error the browser is redirected back here, with these parameters filled in with the previous values
if(x($_REQUEST,'nofinish')) $orig_event['nofinish'] = $_REQUEST['nofinish'];
if(x($_REQUEST,'adjust')) $orig_event['adjust'] = $_REQUEST['adjust'];
if(x($_REQUEST,'summary')) $orig_event['summary'] = $_REQUEST['summary'];
if(x($_REQUEST,'description')) $orig_event['description'] = $_REQUEST['description'];
if(x($_REQUEST,'location')) $orig_event['location'] = $_REQUEST['location'];
if(x($_REQUEST,'start')) $orig_event['start'] = $_REQUEST['start'];
if(x($_REQUEST,'finish')) $orig_event['finish'] = $_REQUEST['finish'];
if(x($_REQUEST,'type')) $orig_event['type'] = $_REQUEST['type'];
$n_checked = ((x($orig_event) && $orig_event['nofinish']) ? ' checked="checked" ' : '');
$a_checked = ((x($orig_event) && $orig_event['adjust']) ? ' checked="checked" ' : '');
$t_orig = ((x($orig_event)) ? $orig_event['summary'] : '');
$d_orig = ((x($orig_event)) ? $orig_event['description'] : '');
$l_orig = ((x($orig_event)) ? $orig_event['location'] : '');
$eid = ((x($orig_event)) ? $orig_event['id'] : 0);
$event_xchan = ((x($orig_event)) ? $orig_event['event_xchan'] : $channel['channel_hash']);
$mid = ((x($orig_event)) ? $orig_event['mid'] : '');
if(! x($orig_event))
$sh_checked = '';
else
$sh_checked = ((($orig_event['allow_cid'] === '<' . $channel['channel_hash'] . '>' || (! $orig_event['allow_cid'])) && (! $orig_event['allow_gid']) && (! $orig_event['deny_cid']) && (! $orig_event['deny_gid'])) ? '' : ' checked="checked" ' );
if($orig_event['event_xchan'])
$sh_checked .= ' disabled="disabled" ';
$sdt = ((x($orig_event)) ? $orig_event['start'] : 'now');
$fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now');
$tz = date_default_timezone_get();
if(x($orig_event))
$tz = (($orig_event['adjust']) ? date_default_timezone_get() : 'UTC');
$syear = datetime_convert('UTC', $tz, $sdt, 'Y');
$smonth = datetime_convert('UTC', $tz, $sdt, 'm');
$sday = datetime_convert('UTC', $tz, $sdt, 'd');
$shour = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'H') : 0);
$sminute = ((x($orig_event)) ? datetime_convert('UTC', $tz, $sdt, 'i') : 0);
$stext = datetime_convert('UTC',$tz,$sdt);
$stext = substr($stext,0,14) . "00:00";
$fyear = datetime_convert('UTC', $tz, $fdt, 'Y');
$fmonth = datetime_convert('UTC', $tz, $fdt, 'm');
$fday = datetime_convert('UTC', $tz, $fdt, 'd');
$fhour = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'H') : 0);
$fminute = ((x($orig_event)) ? datetime_convert('UTC', $tz, $fdt, 'i') : 0);
$ftext = datetime_convert('UTC',$tz,$fdt);
$ftext = substr($ftext,0,14) . "00:00";
$type = ((x($orig_event)) ? $orig_event['type'] : 'event');
$f = get_config('system','event_input_format');
if(! $f)
$f = 'ymd';
$catsenabled = feature_enabled(local_channel(),'categories');
$category = '';
if($catsenabled && x($orig_event)){
$itm = q("select * from item where resource_type = 'event' and resource_id = '%s' and uid = %d limit 1",
dbesc($orig_event['event_hash']),
intval(local_channel())
);
$itm = fetch_post_tags($itm);
if($itm) {
$cats = get_terms_oftype($itm[0]['term'], TERM_CATEGORY);
foreach ($cats as $cat) {
if(strlen($category))
$category .= ', ';
$category .= $cat['term'];
}
}
}
require_once('include/acl_selectors.php');
$acl = new AccessList($channel);
$perm_defaults = $acl->get();
$tpl = get_markup_template('event_form.tpl');
$o .= replace_macros($tpl,array(
'$post' => $a->get_baseurl() . '/events',
'$eid' => $eid,
'$type' => $type,
'$xchan' => $event_xchan,
'$mid' => $mid,
'$event_hash' => $event_id,
'$title' => t('Event details'),
'$desc' => t('Starting date and Title are required.'),
'$catsenabled' => $catsenabled,
'$placeholdercategory' => t('Categories (comma-separated list)'),
'$category' => $category,
'$s_text' => t('Event Starts:'),
'$stext' => $stext,
'$ftext' => $ftext,
'$required' => '<span class="required" title="' . t('Required') . '">*</span>',
'$ModalCANCEL' => t('Cancel'),
'$ModalOK' => t('OK'),
'$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"),'start_text',true,true,'','',true,$first_day),
'$n_text' => t('Finish date/time is not known or not relevant'),
'$n_checked' => $n_checked,
'$f_text' => t('Event Finishes:'),
'$f_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"),'finish_text',true,true,'start_text','',false,$first_day),
'$adjust' => array('adjust', t('Adjust for viewer timezone'), $a_checked, t('Important for events that happen in a particular place. Not practical for global holidays.'),),
'$a_text' => t('Adjust for viewer timezone'),
'$d_text' => t('Description:'),
'$d_orig' => $d_orig,
'$l_text' => t('Location:'),
'$l_orig' => $l_orig,
'$t_text' => t('Title:'),
'$t_orig' => $t_orig,
'$sh_text' => t('Share this event'),
'$sh_checked' => $sh_checked,
'$preview' => t('Preview'),
'$permissions' => t('Permissions'),
'$acl' => (($orig_event['event_xchan']) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $perm_defaults),false)),
'$submit' => t('Submit')
));
return $o;
}
}

View File

@ -39,6 +39,7 @@ function update_channel_content(&$a) {
$replace = "<img\${1} dst=\"\${2}\"";
// $text = preg_replace($pattern, $replace, $text);
/*
if(! $load) {
$replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
@ -50,6 +51,7 @@ function update_channel_content(&$a) {
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
}
*/
/**
* reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well

View File

@ -20,7 +20,7 @@ function update_display_content(&$a) {
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";
// $text = preg_replace($pattern, $replace, $text);
/*
if(! $load) {
$replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
@ -32,7 +32,7 @@ function update_display_content(&$a) {
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
}
*/
echo str_replace("\t",' ',$text);
echo (($_GET['msie'] == 1) ? '</div>' : '</section>');
echo "</body></html>\r\n";

View File

@ -16,7 +16,7 @@ function update_home_content(&$a) {
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";
// $text = preg_replace($pattern, $replace, $text);
/*
if(! $load) {
$replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
@ -28,7 +28,7 @@ function update_home_content(&$a) {
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
}
*/
echo str_replace("\t",' ',$text);
echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '</div>' : '</section>');
echo "</body></html>\r\n";

View File

@ -18,7 +18,7 @@ function update_network_content(&$a) {
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";
// $text = preg_replace($pattern, $replace, $text);
/*
if(! $load) {
$replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
@ -30,7 +30,7 @@ function update_network_content(&$a) {
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
}
*/
echo str_replace("\t",' ',$text);
echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '</div>' : '</section>');
echo "</body></html>\r\n";

View File

@ -16,7 +16,7 @@ function update_public_content(&$a) {
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";
// $text = preg_replace($pattern, $replace, $text);
/*
if(! $load) {
$replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
@ -28,7 +28,7 @@ function update_public_content(&$a) {
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
}
*/
echo str_replace("\t",' ',$text);
echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '</div>' : '</section>');
echo "</body></html>\r\n";

View File

@ -41,7 +41,7 @@ function update_search_content(&$a) {
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";
// $text = preg_replace($pattern, $replace, $text);
/*
if(! $load) {
$replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
$pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
@ -53,7 +53,7 @@ function update_search_content(&$a) {
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
}
*/
/**
* reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well
*/

View File

@ -1 +1 @@
2015-11-23.1225
2015-11-25.1227

View File

@ -178,7 +178,6 @@ a.wall-item-name-link {
/* comment_item */
.comment-edit-text-empty, .comment-edit-text-full {
float: left;
width: 100%;
}
@ -246,3 +245,18 @@ a.wall-item-name-link {
color: #FF0000;
font-size: 1em !important;
}
/* event item */
.event-title h3 {
margin: 0px 0px 10px 0px;
font-weight: bold;
}
.event-description {
padding-bottom: 10px;
}
.event-label {
font-weight: bold;
}

View File

@ -4,57 +4,7 @@
margin-bottom: -1px;
}
#event-desc-textarea, #event-location-textarea {
width: 400px;
}
#event-summary-text, #event-start-text, #event-finish-text {
width: 200px;
float: left;
}
#event-summary, #start_text {
width: 95%;
float: left;
}
#finish_text {
width: 100%;
float: left;
}
#event-category-wrap {
margin-top: 15px;
}
.event-cats {
margin-top: 15px;
}
.bootstrap-tagsinput {
width: 100%;
padding: 6px 12px;
}
.required {
float: left;
cursor: default;
}
#event-datetime-break {
clear: both;
}
#event-nofinish-break {
margin-bottom: 10px;
}
#event-desc-text, #event-location-text, .event-form-location-end {
margin-top: 15px;
}
#event-edit-preview-btn {
margin-right: 15px;
}

View File

@ -81,7 +81,7 @@ $a->config['system']['php_path'] = '{{$phpath}}';
// Configure how we communicate with directory servers.
// DIRECTORY_MODE_NORMAL = directory client, we will find a directory
// DIRECTORY_MODE_SECONDARY = caching directory or mirror
// DIRECTORY_MODE_PRIMARY = main directory server
// DIRECTORY_MODE_PRIMARY = master directory server - one per realm
// DIRECTORY_MODE_STANDALONE = "off the grid" or private directory services
$a->config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL;

File diff suppressed because it is too large Load Diff

View File

@ -5,173 +5,6 @@ function string_plural_select_it($n){
return ($n != 1);;
}}
;
$a->strings["photo"] = "la foto";
$a->strings["event"] = "l'evento";
$a->strings["channel"] = "il canale";
$a->strings["status"] = "il messaggio di stato";
$a->strings["comment"] = "il commento";
$a->strings["%1\$s likes %2\$s's %3\$s"] = "A %1\$s piace %3\$s di %2\$s";
$a->strings["%1\$s doesn't like %2\$s's %3\$s"] = "A %1\$s non piace %3\$s di %2\$s";
$a->strings["%1\$s is now connected with %2\$s"] = "%1\$s adesso è connesso con %2\$s";
$a->strings["%1\$s poked %2\$s"] = "%1\$s ha mandato un poke a %2\$s";
$a->strings["poked"] = "ha ricevuto un poke";
$a->strings["__ctx:mood__ %1\$s is %2\$s"] = "%1\$s è %2\$s";
$a->strings["__ctx:title__ Likes"] = "Mi piace";
$a->strings["__ctx:title__ Dislikes"] = "Non mi piace";
$a->strings["__ctx:title__ Agree"] = "D'accordo";
$a->strings["__ctx:title__ Disagree"] = "Non d'accordo";
$a->strings["__ctx:title__ Abstain"] = "Astenuti";
$a->strings["__ctx:title__ Attending"] = "Partecipano";
$a->strings["__ctx:title__ Not attending"] = "Non partecipano";
$a->strings["__ctx:title__ Might attend"] = "Forse partecipano";
$a->strings["Select"] = "Scegli";
$a->strings["Delete"] = "Elimina";
$a->strings["Private Message"] = "Messaggio privato";
$a->strings["Message signature validated"] = "Messaggio con firma verificata";
$a->strings["Message signature incorrect"] = "Massaggio con firma non corretta";
$a->strings["View %s's profile @ %s"] = "Vedi il profilo di %s @ %s";
$a->strings["Categories:"] = "Categorie:";
$a->strings["Filed under:"] = "Classificato come:";
$a->strings["from %s"] = "da %s";
$a->strings["last edited: %s"] = "ultima modifica: %s";
$a->strings["Expires: %s"] = "Scadenza: %s";
$a->strings["View in context"] = "Vedi nel contesto";
$a->strings["Please wait"] = "Attendere";
$a->strings["remove"] = "rimuovi";
$a->strings["Loading..."] = "Caricamento in corso...";
$a->strings["Delete Selected Items"] = "Elimina gli oggetti selezionati";
$a->strings["View Source"] = "Vedi il sorgente";
$a->strings["Follow Thread"] = "Segui la discussione";
$a->strings["Stop Following"] = "Non seguire più la discussione";
$a->strings["View Status"] = "Bacheca";
$a->strings["View Profile"] = "Profilo";
$a->strings["View Photos"] = "Foto";
$a->strings["Activity/Posts"] = "Attività e Post";
$a->strings["Connect"] = "Aggiungi";
$a->strings["Edit Connection"] = "Modifica il contatto";
$a->strings["Send PM"] = "Messaggio privato";
$a->strings["Poke"] = "Poke";
$a->strings["Unknown"] = "Sconosciuto";
$a->strings["%s likes this."] = "Piace a %s.";
$a->strings["%s doesn't like this."] = "Non piace a %s.";
$a->strings["<span %1\$s>%2\$d people</span> like this."] = array(
0 => "",
1 => "Piace a <span %1\$s>%2\$d persone</span>.",
);
$a->strings["<span %1\$s>%2\$d people</span> don't like this."] = array(
0 => "",
1 => "Non piace a <span %1\$s>%2\$d persone</span>.",
);
$a->strings["and"] = "e";
$a->strings[", and %d other people"] = array(
0 => "",
1 => "e altre %d persone",
);
$a->strings["%s like this."] = "Piace a %s.";
$a->strings["%s don't like this."] = "Non piace a %s.";
$a->strings["Visible to <strong>everybody</strong>"] = "Visibile a <strong>tutti</strong>";
$a->strings["Please enter a link URL:"] = "Inserisci l'indirizzo del link:";
$a->strings["Please enter a video link/URL:"] = "Inserisci l'indirizzo del video:";
$a->strings["Please enter an audio link/URL:"] = "Inserisci l'indirizzo dell'audio:";
$a->strings["Tag term:"] = "Tag:";
$a->strings["Save to Folder:"] = "Salva nella cartella:";
$a->strings["Where are you right now?"] = "Dove sei ora?";
$a->strings["Expires YYYY-MM-DD HH:MM"] = "Scade il YYYY-MM-DD HH:MM";
$a->strings["Preview"] = "Anteprima";
$a->strings["Share"] = "Condividi";
$a->strings["Page link name"] = "Nome del link alla pagina";
$a->strings["Post as"] = "Pubblica come ";
$a->strings["Bold"] = "Grassetto";
$a->strings["Italic"] = "Corsivo";
$a->strings["Underline"] = "Sottolineato";
$a->strings["Quote"] = "Citazione";
$a->strings["Code"] = "Codice";
$a->strings["Upload photo"] = "Carica foto";
$a->strings["upload photo"] = "carica foto";
$a->strings["Attach file"] = "Allega file";
$a->strings["attach file"] = "allega file";
$a->strings["Insert web link"] = "Inserisci un indirizzo web";
$a->strings["web link"] = "link web";
$a->strings["Insert video link"] = "Inserisci l'indirizzo del video";
$a->strings["video link"] = "link video";
$a->strings["Insert audio link"] = "Inserisci l'indirizzo dell'audio";
$a->strings["audio link"] = "link audio";
$a->strings["Set your location"] = "La tua località";
$a->strings["set location"] = "la tua località";
$a->strings["Toggle voting"] = "Abilita/disabilita il voto";
$a->strings["Clear browser location"] = "Rimuovi la località data dal browser";
$a->strings["clear location"] = "rimuovi la località";
$a->strings["Title (optional)"] = "Titolo (facoltativo)";
$a->strings["Categories (optional, comma-separated list)"] = "Categorie (facoltative, lista separata da virgole)";
$a->strings["Permission settings"] = "Permessi dei tuoi contatti";
$a->strings["permissions"] = "permessi";
$a->strings["Public post"] = "Post pubblico";
$a->strings["Example: bob@example.com, mary@example.com"] = "Per esempio: mario@esempio.com, simona@esempio.com";
$a->strings["Set expiration date"] = "Data di scadenza";
$a->strings["Set publish date"] = "Data di uscita programmata";
$a->strings["Encrypt text"] = "Cifratura del messaggio";
$a->strings["OK"] = "OK";
$a->strings["Cancel"] = "Annulla";
$a->strings["Discover"] = "Scopri";
$a->strings["Imported public streams"] = "Contenuti pubblici importati";
$a->strings["Commented Order"] = "Ultimi commenti";
$a->strings["Sort by Comment Date"] = "Per data del commento";
$a->strings["Posted Order"] = "Ultimi post";
$a->strings["Sort by Post Date"] = "Per data di creazione";
$a->strings["Personal"] = "Personali";
$a->strings["Posts that mention or involve you"] = "Post che ti riguardano";
$a->strings["New"] = "Novità";
$a->strings["Activity Stream - by date"] = "Elenco attività - per data";
$a->strings["Starred"] = "Preferiti";
$a->strings["Favourite Posts"] = "Post preferiti";
$a->strings["Spam"] = "Spam";
$a->strings["Posts flagged as SPAM"] = "Post marcati come spam";
$a->strings["Channel"] = "Canale";
$a->strings["Status Messages and Posts"] = "Post e messaggi di stato";
$a->strings["About"] = "Informazioni";
$a->strings["Profile Details"] = "Dettagli del profilo";
$a->strings["Photos"] = "Foto";
$a->strings["Photo Albums"] = "Album foto";
$a->strings["Files"] = "Archivio file";
$a->strings["Files and Storage"] = "Archivio file";
$a->strings["Chatrooms"] = "Chat";
$a->strings["Bookmarks"] = "Segnalibri";
$a->strings["Saved Bookmarks"] = "Segnalibri salvati";
$a->strings["Webpages"] = "Pagine web";
$a->strings["Manage Webpages"] = "Gestisci le pagine web";
$a->strings["View all"] = "Vedi tutto";
$a->strings["__ctx:noun__ Like"] = array(
0 => "Mi piace",
1 => "Mi piace",
);
$a->strings["__ctx:noun__ Dislike"] = array(
0 => "Non mi piace",
1 => "Non mi piace",
);
$a->strings["__ctx:noun__ Attending"] = array(
0 => "Partecipa",
1 => "Partecipano",
);
$a->strings["__ctx:noun__ Not Attending"] = array(
0 => "Non partecipa",
1 => "Non partecipano",
);
$a->strings["__ctx:noun__ Undecided"] = array(
0 => "Indeciso",
1 => "Indecisi",
);
$a->strings["__ctx:noun__ Agree"] = array(
0 => "D'accordo",
1 => "D'accordo",
);
$a->strings["__ctx:noun__ Disagree"] = array(
0 => "Non d'accordo",
1 => "Non d'accordo",
);
$a->strings["__ctx:noun__ Abstain"] = array(
0 => "Astenuto",
1 => "Astenuti",
);
$a->strings["No username found in import file."] = "Impossibile trovare il nome utente nel file da importare.";
$a->strings["Unable to create a unique channel address. Import failed."] = "Impossibile creare un indirizzo univoco per il canale. L'import è fallito.";
$a->strings["Import completed."] = "L'importazione è terminata con successo.";
@ -182,6 +15,8 @@ $a->strings["Addressbook"] = "Rubrica";
$a->strings["Calendar"] = "Calendario";
$a->strings["Schedule Inbox"] = "Appuntamenti ricevuti";
$a->strings["Schedule Outbox"] = "Appuntamenti inviati";
$a->strings["Unknown"] = "Sconosciuto";
$a->strings["Files"] = "Archivio file";
$a->strings["Total"] = "Totale";
$a->strings["Shared"] = "Condiviso";
$a->strings["Create"] = "Crea";
@ -191,6 +26,7 @@ $a->strings["Type"] = "Tipo";
$a->strings["Size"] = "Dimensione";
$a->strings["Last Modified"] = "Ultima modifica";
$a->strings["Edit"] = "Modifica";
$a->strings["Delete"] = "Elimina";
$a->strings["You are using %1\$s of your available file storage."] = "Stai usando %1\$s dello spazio disponibile per i tuoi file.";
$a->strings["You are using %1\$s of %2\$s available file storage. (%3\$s&#37;)"] = "Stai usando %1\$s di %2\$s che hai a disposizione per i file. (%3\$s&#37;)";
$a->strings["WARNING:"] = "ATTENZIONE:";
@ -289,6 +125,8 @@ $a->strings["Enable Voting Tools"] = "Permetti i post con votazione";
$a->strings["Provide a class of post which others can vote on"] = "Rende possibile la creazione di post in cui sarà possibile votare";
$a->strings["Delayed Posting"] = "Pubblicazione ritardata";
$a->strings["Allow posts to be published at a later date"] = "Per scegliere una data e un'ora a cui far uscire i post";
$a->strings["Suppress Duplicate Posts/Comments"] = "Impedisci post e commenti duplicati";
$a->strings["Prevent posts with identical content to be published with less than two minutes in between submissions."] = "Scarta post e commenti se sono identici ad altri inviati meno di due minuti prima.";
$a->strings["Network and Stream Filtering"] = "Filtraggio dei contenuti";
$a->strings["Search by Date"] = "Ricerca per data";
$a->strings["Ability to select posts by date ranges"] = "Per selezionare i post in un intervallo tra date";
@ -421,6 +259,7 @@ $a->strings["public profile"] = "profilo pubblico";
$a->strings["%1\$s changed %2\$s to &ldquo;%3\$s&rdquo;"] = "%1\$s ha cambiato %2\$s in &ldquo;%3\$s&rdquo;";
$a->strings["Visit %1\$s's %2\$s"] = "Guarda %2\$s di %1\$s ";
$a->strings["%1\$s has an updated %2\$s, changing %3\$s."] = "%1\$s ha aggiornato %2\$s cambiando %3\$s.";
$a->strings["Connect"] = "Aggiungi";
$a->strings["New window"] = "Nuova finestra";
$a->strings["Open the selected location in a different window or browser tab"] = "Apri l'indirizzo selezionato in una nuova scheda o finestra";
$a->strings["User '%s' deleted"] = "Utente '%s' eliminato";
@ -441,6 +280,169 @@ $a->strings["Collection is empty."] = "L'insieme di canali è vuoto.";
$a->strings["Collection: %s"] = "Insieme: %s";
$a->strings["Connection: %s"] = "Contatto: %s";
$a->strings["Connection not found."] = "Contatto non trovato.";
$a->strings["photo"] = "la foto";
$a->strings["event"] = "l'evento";
$a->strings["channel"] = "il canale";
$a->strings["status"] = "il messaggio di stato";
$a->strings["comment"] = "il commento";
$a->strings["%1\$s likes %2\$s's %3\$s"] = "A %1\$s piace %3\$s di %2\$s";
$a->strings["%1\$s doesn't like %2\$s's %3\$s"] = "A %1\$s non piace %3\$s di %2\$s";
$a->strings["%1\$s is now connected with %2\$s"] = "%1\$s adesso è connesso con %2\$s";
$a->strings["%1\$s poked %2\$s"] = "%1\$s ha mandato un poke a %2\$s";
$a->strings["poked"] = "ha ricevuto un poke";
$a->strings["__ctx:mood__ %1\$s is %2\$s"] = "%1\$s è %2\$s";
$a->strings["__ctx:title__ Likes"] = "Mi piace";
$a->strings["__ctx:title__ Dislikes"] = "Non mi piace";
$a->strings["__ctx:title__ Agree"] = "D'accordo";
$a->strings["__ctx:title__ Disagree"] = "Non d'accordo";
$a->strings["__ctx:title__ Abstain"] = "Astenuti";
$a->strings["__ctx:title__ Attending"] = "Partecipano";
$a->strings["__ctx:title__ Not attending"] = "Non partecipano";
$a->strings["__ctx:title__ Might attend"] = "Forse partecipano";
$a->strings["Select"] = "Scegli";
$a->strings["Private Message"] = "Messaggio privato";
$a->strings["Message signature validated"] = "Messaggio con firma verificata";
$a->strings["Message signature incorrect"] = "Massaggio con firma non corretta";
$a->strings["View %s's profile @ %s"] = "Vedi il profilo di %s @ %s";
$a->strings["Categories:"] = "Categorie:";
$a->strings["Filed under:"] = "Classificato come:";
$a->strings["from %s"] = "da %s";
$a->strings["last edited: %s"] = "ultima modifica: %s";
$a->strings["Expires: %s"] = "Scadenza: %s";
$a->strings["View in context"] = "Vedi nel contesto";
$a->strings["Please wait"] = "Attendere";
$a->strings["remove"] = "rimuovi";
$a->strings["Loading..."] = "Caricamento in corso...";
$a->strings["Delete Selected Items"] = "Elimina gli oggetti selezionati";
$a->strings["View Source"] = "Vedi il sorgente";
$a->strings["Follow Thread"] = "Segui la discussione";
$a->strings["Unfollow Thread"] = "Non seguire la discussione";
$a->strings["View Status"] = "Bacheca";
$a->strings["View Profile"] = "Profilo";
$a->strings["View Photos"] = "Foto";
$a->strings["Activity/Posts"] = "Attività e Post";
$a->strings["Edit Connection"] = "Modifica il contatto";
$a->strings["Send PM"] = "Messaggio privato";
$a->strings["Poke"] = "Poke";
$a->strings["%s likes this."] = "Piace a %s.";
$a->strings["%s doesn't like this."] = "Non piace a %s.";
$a->strings["<span %1\$s>%2\$d people</span> like this."] = array(
0 => "",
1 => "Piace a <span %1\$s>%2\$d persone</span>.",
);
$a->strings["<span %1\$s>%2\$d people</span> don't like this."] = array(
0 => "",
1 => "Non piace a <span %1\$s>%2\$d persone</span>.",
);
$a->strings["and"] = "e";
$a->strings[", and %d other people"] = array(
0 => "",
1 => "e altre %d persone",
);
$a->strings["%s like this."] = "Piace a %s.";
$a->strings["%s don't like this."] = "Non piace a %s.";
$a->strings["Visible to <strong>everybody</strong>"] = "Visibile a <strong>tutti</strong>";
$a->strings["Please enter a link URL:"] = "Inserisci l'indirizzo del link:";
$a->strings["Please enter a video link/URL:"] = "Inserisci l'indirizzo del video:";
$a->strings["Please enter an audio link/URL:"] = "Inserisci l'indirizzo dell'audio:";
$a->strings["Tag term:"] = "Tag:";
$a->strings["Save to Folder:"] = "Salva nella cartella:";
$a->strings["Where are you right now?"] = "Dove sei ora?";
$a->strings["Expires YYYY-MM-DD HH:MM"] = "Scade il YYYY-MM-DD HH:MM";
$a->strings["Preview"] = "Anteprima";
$a->strings["Share"] = "Condividi";
$a->strings["Page link name"] = "Nome del link alla pagina";
$a->strings["Post as"] = "Pubblica come ";
$a->strings["Bold"] = "Grassetto";
$a->strings["Italic"] = "Corsivo";
$a->strings["Underline"] = "Sottolineato";
$a->strings["Quote"] = "Citazione";
$a->strings["Code"] = "Codice";
$a->strings["Upload photo"] = "Carica foto";
$a->strings["upload photo"] = "carica foto";
$a->strings["Attach file"] = "Allega file";
$a->strings["attach file"] = "allega file";
$a->strings["Insert web link"] = "Inserisci un indirizzo web";
$a->strings["web link"] = "link web";
$a->strings["Insert video link"] = "Inserisci l'indirizzo del video";
$a->strings["video link"] = "link video";
$a->strings["Insert audio link"] = "Inserisci l'indirizzo dell'audio";
$a->strings["audio link"] = "link audio";
$a->strings["Set your location"] = "La tua località";
$a->strings["set location"] = "la tua località";
$a->strings["Toggle voting"] = "Abilita/disabilita il voto";
$a->strings["Clear browser location"] = "Rimuovi la località data dal browser";
$a->strings["clear location"] = "rimuovi la località";
$a->strings["Title (optional)"] = "Titolo (facoltativo)";
$a->strings["Categories (optional, comma-separated list)"] = "Categorie (facoltative, lista separata da virgole)";
$a->strings["Permission settings"] = "Permessi dei tuoi contatti";
$a->strings["permissions"] = "permessi";
$a->strings["Public post"] = "Post pubblico";
$a->strings["Example: bob@example.com, mary@example.com"] = "Per esempio: mario@esempio.com, simona@esempio.com";
$a->strings["Set expiration date"] = "Data di scadenza";
$a->strings["Set publish date"] = "Data di uscita programmata";
$a->strings["Encrypt text"] = "Cifratura del messaggio";
$a->strings["OK"] = "OK";
$a->strings["Cancel"] = "Annulla";
$a->strings["Discover"] = "Scopri";
$a->strings["Imported public streams"] = "Contenuti pubblici importati";
$a->strings["Commented Order"] = "Ultimi commenti";
$a->strings["Sort by Comment Date"] = "Per data del commento";
$a->strings["Posted Order"] = "Ultimi post";
$a->strings["Sort by Post Date"] = "Per data di creazione";
$a->strings["Personal"] = "Personali";
$a->strings["Posts that mention or involve you"] = "Post che ti riguardano";
$a->strings["New"] = "Novità";
$a->strings["Activity Stream - by date"] = "Elenco attività - per data";
$a->strings["Starred"] = "Preferiti";
$a->strings["Favourite Posts"] = "Post preferiti";
$a->strings["Spam"] = "Spam";
$a->strings["Posts flagged as SPAM"] = "Post marcati come spam";
$a->strings["Channel"] = "Canale";
$a->strings["Status Messages and Posts"] = "Post e messaggi di stato";
$a->strings["About"] = "Informazioni";
$a->strings["Profile Details"] = "Dettagli del profilo";
$a->strings["Photos"] = "Foto";
$a->strings["Photo Albums"] = "Album foto";
$a->strings["Files and Storage"] = "Archivio file";
$a->strings["Chatrooms"] = "Chat";
$a->strings["Bookmarks"] = "Segnalibri";
$a->strings["Saved Bookmarks"] = "Segnalibri salvati";
$a->strings["Webpages"] = "Pagine web";
$a->strings["Manage Webpages"] = "Gestisci le pagine web";
$a->strings["View all"] = "Vedi tutto";
$a->strings["__ctx:noun__ Like"] = array(
0 => "Mi piace",
1 => "Mi piace",
);
$a->strings["__ctx:noun__ Dislike"] = array(
0 => "Non mi piace",
1 => "Non mi piace",
);
$a->strings["__ctx:noun__ Attending"] = array(
0 => "Partecipa",
1 => "Partecipano",
);
$a->strings["__ctx:noun__ Not Attending"] = array(
0 => "Non partecipa",
1 => "Non partecipano",
);
$a->strings["__ctx:noun__ Undecided"] = array(
0 => "Indeciso",
1 => "Indecisi",
);
$a->strings["__ctx:noun__ Agree"] = array(
0 => "D'accordo",
1 => "D'accordo",
);
$a->strings["__ctx:noun__ Disagree"] = array(
0 => "Non d'accordo",
1 => "Non d'accordo",
);
$a->strings["__ctx:noun__ Abstain"] = array(
0 => "Astenuto",
1 => "Astenuti",
);
$a->strings["view full size"] = "guarda nelle dimensioni reali";
$a->strings["\$Projectname Notification"] = "Notifica \$Projectname";
$a->strings["\$projectname"] = "\$projectname";
@ -452,11 +454,9 @@ $a->strings["%1\$s's bookmarks"] = "I segnalibri di %1\$s";
$a->strings["Visible to your default audience"] = "Visibile secondo le impostazioni predefinite";
$a->strings["Show"] = "Mostra";
$a->strings["Don't show"] = "Non mostrare";
$a->strings["Other networks and post services"] = "Invio ad altre reti o a siti esterni";
$a->strings["Permissions"] = "Permessi";
$a->strings["Close"] = "Chiudi";
$a->strings["Cannot create a duplicate channel identifier on this system. Import failed."] = "Non posso creare un canale con un identificativo che già esiste su questo sistema. L'importazione è fallita.";
$a->strings["Channel clone failed. Import failed."] = "Impossibile clonare il canale. L'importazione è fallita.";
$a->strings["Cloned channel not found. Import failed."] = "Impossibile trovare il canale clonato. L'importazione è fallita.";
$a->strings["Image exceeds website size limit of %lu bytes"] = "L'immagine supera il limite massimo di %lu bytes";
$a->strings["Image file is empty."] = "Il file dell'immagine è vuoto.";
$a->strings["Unable to process image"] = "Impossibile elaborare l'immagine";
@ -567,9 +567,10 @@ $a->strings["Profile Photo"] = "Foto del profilo";
$a->strings["Update"] = "Aggiorna";
$a->strings["Install"] = "Installa";
$a->strings["Purchase"] = "Acquista";
$a->strings["Logged out."] = "Uscita effettuata.";
$a->strings["Failed authentication"] = "Autenticazione fallita";
$a->strings["Login failed."] = "Accesso fallito.";
$a->strings["Public Timeline"] = "Diario pubblico";
$a->strings["Cannot create a duplicate channel identifier on this system. Import failed."] = "Non posso creare un canale con un identificativo che già esiste su questo sistema. L'importazione è fallita.";
$a->strings["Channel clone failed. Import failed."] = "Impossibile clonare il canale. L'importazione è fallita.";
$a->strings["Cloned channel not found. Import failed."] = "Impossibile trovare il canale clonato. L'importazione è fallita.";
$a->strings["%s <!item_type!>"] = "%s <!item_type!>";
$a->strings["[Hubzilla:Notify] New mail received at %s"] = "[Hubzilla] Nuovo messaggio su %s";
$a->strings["%1\$s, %2\$s sent you a new private message at %3\$s."] = "%1\$s, %2\$s ti ha mandato un messaggio privato su %3\$s.";
@ -647,7 +648,9 @@ $a->strings["Invalid data packet"] = "Dati ricevuti non validi";
$a->strings["Unable to verify channel signature"] = "Impossibile verificare la firma elettronica del canale";
$a->strings["Unable to verify site signature for %s"] = "Impossibile verificare la firma elettronica del sito %s";
$a->strings["invalid target signature"] = "la firma ricevuta non è valida";
$a->strings["Public Timeline"] = "Diario pubblico";
$a->strings["Logged out."] = "Uscita effettuata.";
$a->strings["Failed authentication"] = "Autenticazione fallita";
$a->strings["Login failed."] = "Accesso fallito.";
$a->strings["Image/photo"] = "Immagine";
$a->strings["Encrypted content"] = "Contenuto cifrato";
$a->strings["Install %s element: "] = "Installa l'elemento %s:";
@ -717,6 +720,79 @@ $a->strings["Edit collection"] = "Modifica l'insieme di canali";
$a->strings["Add new collection"] = "Nuovo insieme";
$a->strings["Channels not in any collection"] = "Canali che non sono in un insieme";
$a->strings["add"] = "aggiungi";
$a->strings["Apps"] = "App";
$a->strings["System"] = "Sistema";
$a->strings["Create Personal App"] = "Crea app personale";
$a->strings["Edit Personal App"] = "Modifica app personale";
$a->strings["Ignore/Hide"] = "Ignora/nascondi";
$a->strings["Suggestions"] = "Suggerimenti";
$a->strings["See more..."] = "Altro...";
$a->strings["You have %1$.0f of %2$.0f allowed connections."] = "Hai attivato %1$.0f delle %2$.0f connessioni permesse.";
$a->strings["Add New Connection"] = "Aggiungi un contatto";
$a->strings["Enter the channel address"] = "Scrivi l'indirizzo del canale";
$a->strings["Example: bob@example.com, http://example.com/barbara"] = "Per esempio: mario@pippo.it oppure http://pluto.com/barbara";
$a->strings["Notes"] = "Note";
$a->strings["Save"] = "Salva";
$a->strings["Remove term"] = "Rimuovi termine";
$a->strings["Archives"] = "Archivi";
$a->strings["Me"] = "Me";
$a->strings["Family"] = "Famiglia";
$a->strings["Acquaintances"] = "Conoscenti";
$a->strings["All"] = "Tutti";
$a->strings["Refresh"] = "Aggiorna";
$a->strings["Account settings"] = "Il tuo account";
$a->strings["Channel settings"] = "Impostazioni del canale";
$a->strings["Additional features"] = "Funzionalità opzionali";
$a->strings["Feature/Addon settings"] = "Componenti aggiuntivi";
$a->strings["Display settings"] = "Aspetto";
$a->strings["Connected apps"] = "App connesse";
$a->strings["Export channel"] = "Esporta il canale";
$a->strings["Connection Default Permissions"] = "Permessi predefiniti dei nuovi contatti";
$a->strings["Premium Channel Settings"] = "Canale premium - impostazioni";
$a->strings["Private Mail Menu"] = "Menu messaggi privati";
$a->strings["Combined View"] = "Vista combinata";
$a->strings["Inbox"] = "In arrivo";
$a->strings["Outbox"] = "Inviati";
$a->strings["New Message"] = "Nuovo messaggio";
$a->strings["Conversations"] = "Conversazioni";
$a->strings["Received Messages"] = "Ricevuti";
$a->strings["Sent Messages"] = "Inviati";
$a->strings["No messages."] = "Nessun messaggio.";
$a->strings["Delete conversation"] = "Elimina la conversazione";
$a->strings["Events Menu"] = "Menu eventi";
$a->strings["Day View"] = "Eventi del giorno";
$a->strings["Week View"] = "Eventi della settimana";
$a->strings["Month View"] = "Eventi del mese";
$a->strings["Export"] = "Esporta";
$a->strings["Import"] = "Importa";
$a->strings["Chat Rooms"] = "Chat";
$a->strings["Bookmarked Chatrooms"] = "Chat nei segnalibri";
$a->strings["Suggested Chatrooms"] = "Chat suggerite";
$a->strings["photo/image"] = "foto/immagine";
$a->strings["Rate Me"] = "Valutami";
$a->strings["View Ratings"] = "Vedi le valutazioni ricevute";
$a->strings["Public Hubs"] = "Hub pubblici";
$a->strings["Forums"] = "Forum";
$a->strings["Tasks"] = "Attività";
$a->strings["Documentation"] = "Guida";
$a->strings["Project/Site Information"] = "Informazioni sul sito/progetto";
$a->strings["For Members"] = "Per gli utenti";
$a->strings["For Administrators"] = "Per gli amministratori";
$a->strings["For Developers"] = "Per sviluppatori";
$a->strings["Site"] = "Sito";
$a->strings["Accounts"] = "Account";
$a->strings["Channels"] = "Canali";
$a->strings["Plugins"] = "Plugin";
$a->strings["Themes"] = "Temi";
$a->strings["Inspect queue"] = "Coda di attesa";
$a->strings["Profile Config"] = "Configurazione del profilo";
$a->strings["DB updates"] = "Aggiornamenti al DB";
$a->strings["Logs"] = "Log";
$a->strings["Admin"] = "Amministrazione";
$a->strings["Plugin Features"] = "Plugin";
$a->strings["User registrations waiting for confirmation"] = "Registrazioni in attesa";
$a->strings["View Photo"] = "Guarda la foto";
$a->strings["Edit Album"] = "Modifica album";
$a->strings["No recipient provided."] = "Devi scegliere un destinatario.";
$a->strings["[no subject]"] = "[nessun titolo]";
$a->strings["Unable to determine sender."] = "Impossibile determinare il mittente.";
@ -803,71 +879,6 @@ $a->strings["database storage failed."] = "scrittura su database fallita.";
$a->strings["Empty path"] = "La posizione è vuota";
$a->strings["Attachments:"] = "Allegati:";
$a->strings["\$Projectname event notification:"] = "Notifica evento \$Projectname:";
$a->strings["Apps"] = "App";
$a->strings["System"] = "Sistema";
$a->strings["Create Personal App"] = "Crea app personale";
$a->strings["Edit Personal App"] = "Modifica app personale";
$a->strings["Ignore/Hide"] = "Ignora/nascondi";
$a->strings["Suggestions"] = "Suggerimenti";
$a->strings["See more..."] = "Altro...";
$a->strings["You have %1$.0f of %2$.0f allowed connections."] = "Hai attivato %1$.0f delle %2$.0f connessioni permesse.";
$a->strings["Add New Connection"] = "Aggiungi un contatto";
$a->strings["Enter the channel address"] = "Scrivi l'indirizzo del canale";
$a->strings["Example: bob@example.com, http://example.com/barbara"] = "Per esempio: mario@pippo.it oppure http://pluto.com/barbara";
$a->strings["Notes"] = "Note";
$a->strings["Save"] = "Salva";
$a->strings["Remove term"] = "Rimuovi termine";
$a->strings["Archives"] = "Archivi";
$a->strings["Me"] = "Me";
$a->strings["Family"] = "Famiglia";
$a->strings["Acquaintances"] = "Conoscenti";
$a->strings["All"] = "Tutti";
$a->strings["Refresh"] = "Aggiorna";
$a->strings["Account settings"] = "Il tuo account";
$a->strings["Channel settings"] = "Impostazioni del canale";
$a->strings["Additional features"] = "Funzionalità opzionali";
$a->strings["Feature/Addon settings"] = "Componenti aggiuntivi";
$a->strings["Display settings"] = "Aspetto";
$a->strings["Connected apps"] = "App connesse";
$a->strings["Export channel"] = "Esporta il canale";
$a->strings["Connection Default Permissions"] = "Permessi predefiniti dei nuovi contatti";
$a->strings["Premium Channel Settings"] = "Canale premium - impostazioni";
$a->strings["Private Mail Menu"] = "Menu messaggi privati";
$a->strings["Combined View"] = "Vista combinata";
$a->strings["Inbox"] = "In arrivo";
$a->strings["Outbox"] = "Inviati";
$a->strings["New Message"] = "Nuovo messaggio";
$a->strings["Conversations"] = "Conversazioni";
$a->strings["Received Messages"] = "Ricevuti";
$a->strings["Sent Messages"] = "Inviati";
$a->strings["No messages."] = "Nessun messaggio.";
$a->strings["Delete conversation"] = "Elimina la conversazione";
$a->strings["Chat Rooms"] = "Chat";
$a->strings["Bookmarked Chatrooms"] = "Chat nei segnalibri";
$a->strings["Suggested Chatrooms"] = "Chat suggerite";
$a->strings["photo/image"] = "foto/immagine";
$a->strings["Rate Me"] = "Valutami";
$a->strings["View Ratings"] = "Vedi le valutazioni ricevute";
$a->strings["Public Hubs"] = "Hub pubblici";
$a->strings["Forums"] = "Forum";
$a->strings["Tasks"] = "Attività";
$a->strings["Documentation"] = "Guida";
$a->strings["Project/Site Information"] = "Informazioni sul sito/progetto";
$a->strings["For Members"] = "Per gli utenti";
$a->strings["For Administrators"] = "Per gli amministratori";
$a->strings["For Developers"] = "Per sviluppatori";
$a->strings["Site"] = "Sito";
$a->strings["Accounts"] = "Account";
$a->strings["Channels"] = "Canali";
$a->strings["Plugins"] = "Plugin";
$a->strings["Themes"] = "Temi";
$a->strings["Inspect queue"] = "Coda di attesa";
$a->strings["Profile Config"] = "Configurazione del profilo";
$a->strings["DB updates"] = "Aggiornamenti al DB";
$a->strings["Logs"] = "Log";
$a->strings["Admin"] = "Amministrazione";
$a->strings["Plugin Features"] = "Plugin";
$a->strings["User registrations waiting for confirmation"] = "Registrazioni in attesa";
$a->strings["prev"] = "prec";
$a->strings["first"] = "inizio";
$a->strings["last"] = "fine";
@ -912,7 +923,7 @@ $a->strings["depressed"] = "in depressione";
$a->strings["motivated"] = "motivato";
$a->strings["relaxed"] = "rilassato";
$a->strings["surprised"] = "sorpreso";
$a->strings["May"] = "maggio";
$a->strings["May"] = "Mag";
$a->strings["Unknown Attachment"] = "Allegato non riconoscuto";
$a->strings["unknown"] = "sconosciuta";
$a->strings["remove category"] = "rimuovi la categoria";
@ -921,7 +932,7 @@ $a->strings["Click to open/close"] = "Clicca per aprire/chiudere";
$a->strings["Link to Source"] = "Link al sito d'origine";
$a->strings["default"] = "predefinito";
$a->strings["Page layout"] = "Layout della pagina";
$a->strings["You can create your own with the layouts tool"] = "Con la configurazione del layout puoi crearne uno tuo";
$a->strings["You can create your own with the layouts tool"] = "Puoi creare un tuo layout dalla configurazione delle pagine web";
$a->strings["Page content type"] = "Tipo di contenuto della pagina";
$a->strings["Select an alternate language"] = "Seleziona una lingua diversa";
$a->strings["activity"] = "l'attività";
@ -1243,8 +1254,6 @@ $a->strings["Album name could not be decoded"] = "Non è stato possibile leggere
$a->strings["Contact Photos"] = "Foto dei contatti";
$a->strings["Show Newest First"] = "Prima i più recenti";
$a->strings["Show Oldest First"] = "Prima i più vecchi";
$a->strings["View Photo"] = "Guarda la foto";
$a->strings["Edit Album"] = "Modifica album";
$a->strings["Permission denied. Access to this item may be restricted."] = "Permesso negato. L'accesso a questo elemento può essere stato limitato.";
$a->strings["Photo not available"] = "Foto non disponibile";
$a->strings["Use as profile photo"] = "Usa come foto del profilo";
@ -1266,20 +1275,6 @@ $a->strings["In This Photo:"] = "In questa foto:";
$a->strings["Map"] = "Mappa";
$a->strings["View Album"] = "Guarda l'album";
$a->strings["Recent Photos"] = "Foto recenti";
$a->strings["Invalid message"] = "Messaggio non valido";
$a->strings["no results"] = "nessun risultato";
$a->strings["Delivery report for %1\$s"] = "Rapporto di consegna - %1\$s";
$a->strings["channel sync processed"] = "sincronizzazione del canale effettuata";
$a->strings["queued"] = "in coda";
$a->strings["posted"] = "inviato";
$a->strings["accepted for delivery"] = "accettato per la spedizione";
$a->strings["updated"] = "aggiornato";
$a->strings["update ignored"] = "aggiornamento ignorato";
$a->strings["permission denied"] = "permessi non sufficienti";
$a->strings["recipient not found"] = "Destinatario non trovato";
$a->strings["mail recalled"] = "messaggio richiamato dal mittente";
$a->strings["duplicate mail received"] = "ricevuto messaggio duplicato";
$a->strings["mail delivered"] = "messaggio recapitato";
$a->strings["Item not found"] = "Elemento non trovato";
$a->strings["Delete block?"] = "Vuoi eliminare questo block?";
$a->strings["Insert YouTube video"] = "Inserisci video da YouTube";
@ -1560,9 +1555,8 @@ $a->strings["l, F j"] = "l j F";
$a->strings["Edit event"] = "Modifica l'evento";
$a->strings["Delete event"] = "Elimina l'evento";
$a->strings["calendar"] = "calendario";
$a->strings["Create New Event"] = "Crea un nuovo evento";
$a->strings["Export"] = "Esporta";
$a->strings["Import"] = "Importa";
$a->strings["New Event"] = "Nuovo evento";
$a->strings["Today"] = "Oggi";
$a->strings["Event removed"] = "Evento eliminato";
$a->strings["Failed to remove event"] = "Impossibile eliminare l'evento";
$a->strings["Event details"] = "Dettagli evento";
@ -1615,6 +1609,7 @@ $a->strings["Description: "] = "Descrizione:";
$a->strings["Unable to locate original post."] = "Impossibile trovare il messaggio originale.";
$a->strings["Empty post discarded."] = "Il post vuoto è stato ignorato.";
$a->strings["Executable content type not permitted to this channel."] = "I contenuti eseguibili non sono permessi su questo canale.";
$a->strings["Duplicate post suppressed."] = "I post duplicati sono scartati.";
$a->strings["System error. Post not saved."] = "Errore di sistema. Post non salvato.";
$a->strings["Unable to obtain post information from database."] = "Impossibile caricare il post dal database.";
$a->strings["You have reached your limit of %1$.0f top level posts."] = "Hai raggiunto il limite massimo di %1$.0f post sulla pagina principale.";
@ -1684,19 +1679,6 @@ $a->strings["Remote Authentication"] = "Accedi tramite il tuo hub";
$a->strings["Enter your channel address (e.g. channel@example.com)"] = "Inserisci l'indirizzo del tuo canale (ad esempio lucia@esempio.com)";
$a->strings["Authenticate"] = "Accedi";
$a->strings["Insufficient permissions. Request redirected to profile page."] = "Permessi insufficienti. Sarà visualizzata la pagina del profilo.";
$a->strings["Version %s"] = "Versione %s";
$a->strings["Installed plugins/addons/apps:"] = "App e componenti installati:";
$a->strings["No installed plugins/addons/apps"] = "Nessuna app o componente installato";
$a->strings["This is a hub of \$Projectname - a global cooperative network of decentralized privacy enhanced websites."] = "Questo è un hub di \$Projectname - una rete cooperativa e decentralizzata di siti ad elevata privacy. ";
$a->strings["Tag: "] = "Tag: ";
$a->strings["Last background fetch: "] = "Ultima acquisizione:";
$a->strings["Current load average: "] = "Carico medio attuale:";
$a->strings["Running at web location"] = "In esecuzione sull'indirizzo web";
$a->strings["Please visit <a href=\"http://hubzilla.org\">hubzilla.org</a> to learn more about \$Projectname."] = "Visita <a href=\"http://hubzilla.org\">hubzilla.org</a> per maggiori informazioni su \$Projectname.";
$a->strings["Bug reports and issues: please visit"] = "Per segnalare bug e problemi: visita";
$a->strings["\$projectname issues"] = "Problematiche note su \$projectname";
$a->strings["Suggestions, praise, etc. - please email \"redmatrix\" at librelist - dot com"] = "Per consigli, ringraziamenti, ecc. - scrivi a \"redmatrix\" at librelist - dot com";
$a->strings["Site Administrators"] = "Amministratori del sito";
$a->strings["Your service plan only allows %d channels."] = "Il tuo account permette di creare al massimo %d canali.";
$a->strings["Nothing to import."] = "Non c'è niente da importare.";
$a->strings["Unable to download data from old server"] = "Impossibile importare i dati dal vecchio hub";
@ -1715,6 +1697,20 @@ $a->strings["For either option, please choose whether to make this hub your new
$a->strings["Make this hub my primary location"] = "Rendi questo hub il mio indirizzo primario";
$a->strings["Import existing posts if possible (experimental - limited by available memory"] = "Importa i contenuti pubblicati, se possibile (sperimentale)";
$a->strings["This process may take several minutes to complete. Please submit the form only once and leave this page open until finished."] = "Questa funzione potrebbe impiegare molto tempo a terminare. Per favore lanciala *una volta sola* e resta su questa pagina finché non avrà finito.";
$a->strings["Invalid message"] = "Messaggio non valido";
$a->strings["no results"] = "nessun risultato";
$a->strings["Delivery report for %1\$s"] = "Rapporto di consegna - %1\$s";
$a->strings["channel sync processed"] = "sincronizzazione del canale effettuata";
$a->strings["queued"] = "in coda";
$a->strings["posted"] = "inviato";
$a->strings["accepted for delivery"] = "accettato per la spedizione";
$a->strings["updated"] = "aggiornato";
$a->strings["update ignored"] = "aggiornamento ignorato";
$a->strings["permission denied"] = "permessi non sufficienti";
$a->strings["recipient not found"] = "Destinatario non trovato";
$a->strings["mail recalled"] = "messaggio richiamato dal mittente";
$a->strings["duplicate mail received"] = "ricevuto messaggio duplicato";
$a->strings["mail delivered"] = "messaggio recapitato";
$a->strings["Thing updated"] = "L'oggetto è stato aggiornato";
$a->strings["Object store: failed"] = "Impossibile memorizzare l'oggetto.";
$a->strings["Thing added"] = "L'Oggetto è stato aggiunto";
@ -1907,7 +1903,7 @@ $a->strings["%Y - current year, %m - current month"] = "%Y - anno corrente, %m
$a->strings["Default file upload folder"] = "Cartella predefinita per i file caricati";
$a->strings["Personal menu to display in your channel pages"] = "Menu personale da mostrare sulle pagine del tuo canale";
$a->strings["Remove this channel."] = "Elimina questo canale.";
$a->strings["Firefox Share \$Projectname provider"] = "Funzionalità Firefox Share per \$Projectname";
$a->strings["Firefox Share \$Projectname provider"] = "Attiva Firefox Share per \$Projectname";
$a->strings["Xchan Lookup"] = "Ricerca canale";
$a->strings["Lookup xchan beginning with (or webbie): "] = "Cerca un canale (o un webbie) che inizia per:";
$a->strings["You have created %1$.0f of %2$.0f allowed channels."] = "Hai creato %1$.0f dei %2$.0f canali permessi.";
@ -1981,7 +1977,7 @@ $a->strings["Primary Location"] = "Indirizzo primario";
$a->strings["Drop location"] = "Elimina un indirizzo";
$a->strings["Sync now"] = "Sincronizza ora";
$a->strings["Please wait several minutes between consecutive operations."] = "Si raccomanda di attendere alcuni minuti prima di effettuare una nuova sincronizzazione.";
$a->strings["When possible, drop a location by logging into that website/hub and removing your channel."] = "Quando possibile, riduci il numero di cloni del tuo canale effettuando il login sui loro hub e rimuovendoli.";
$a->strings["When possible, drop a location by logging into that website/hub and removing your channel."] = "Quando possibile, riduci il numero di cloni del tuo canale effettuando il login sul relativo hub e rimuovendoli.";
$a->strings["Use this form to drop the location if the hub is no longer operating."] = "Usa questo modulo per abbandonare un canale su un hub che non è più funzionante.";
$a->strings["Remote authentication blocked. You are logged into this site locally. Please logout and retry."] = "L'autenticazione tramite il tuo hub non è disponibile. Puoi provare a disconnetterti per tentare di nuovo.";
$a->strings["Share content from Firefox to \$Projectname"] = "Condividi i contenuti su \$Projectname da Firefox";
@ -2074,6 +2070,19 @@ $a->strings["Files: shared with me"] = "File: condivisi con me";
$a->strings["NEW"] = "NOVITÀ";
$a->strings["Remove all files"] = "Elimina tutti i file";
$a->strings["Remove this file"] = "Elimina questo file";
$a->strings["Version %s"] = "Versione %s";
$a->strings["Installed plugins/addons/apps:"] = "App e componenti installati:";
$a->strings["No installed plugins/addons/apps"] = "Nessuna app o componente installato";
$a->strings["This is a hub of \$Projectname - a global cooperative network of decentralized privacy enhanced websites."] = "Questo è un hub di \$Projectname - una rete cooperativa e decentralizzata di siti ad elevata privacy. ";
$a->strings["Tag: "] = "Tag: ";
$a->strings["Last background fetch: "] = "Ultima acquisizione:";
$a->strings["Current load average: "] = "Carico medio attuale:";
$a->strings["Running at web location"] = "In esecuzione sull'indirizzo web";
$a->strings["Please visit <a href=\"http://hubzilla.org\">hubzilla.org</a> to learn more about \$Projectname."] = "Visita <a href=\"http://hubzilla.org\">hubzilla.org</a> per maggiori informazioni su \$Projectname.";
$a->strings["Bug reports and issues: please visit"] = "Per segnalare bug e problemi: visita";
$a->strings["\$projectname issues"] = "Problematiche note su \$projectname";
$a->strings["Suggestions, praise, etc. - please email \"redmatrix\" at librelist - dot com"] = "Per consigli, ringraziamenti, ecc. - scrivi a \"redmatrix\" at librelist - dot com";
$a->strings["Site Administrators"] = "Amministratori del sito";
$a->strings["No suggestions available. If this is a new site, please try again in 24 hours."] = "Nessun suggerimento disponibile. Se questo sito è nuovo, riprova tra 24 ore.";
$a->strings["Profile not found."] = "Profilo non trovato.";
$a->strings["Profile deleted."] = "Profilo eliminato.";

View File

@ -60,7 +60,7 @@ function contact_format(item) {
var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick);
if(typeof desc === 'undefined') desc = '';
if(desc) desc = ' ('+desc+')';
return "<div class='{0}' title='{4}'><img src='{1}'><span class='contactname'>{2}</span><span class='dropdown-sub-text'>{3}</span><div class='clear'></div></div>".format(item.taggable, item.photo, item.name, desc, item.link);
return "<div class='{0}' title='{4}'><img class='dropdown-menu-img-sm' src='{1}'><span class='contactname'>{2}</span><span class='dropdown-sub-text'>{3}</span><div class='clear'></div></div>".format(item.taggable, item.photo, item.name, desc, item.link);
}
else
return "<div>" + item.text + "</div>";

View File

@ -2,33 +2,15 @@
* JavaScript for mod/events
*/
$(document).ready( function() { showHideFinishDate(); });
$(document).ready( function() {
function showHideFinishDate() {
enableDisableFinishDate();
});
function enableDisableFinishDate() {
if( $('#id_nofinish').is(':checked'))
$('#event-finish-wrapper').hide();
$('#id_finish_text').prop("disabled", true);
else
$('#event-finish-wrapper').show();
$('#id_finish_text').prop("disabled", false);
}
function eventGetStart() {
//reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
$('#startModal').modal();
$('#start-modal-OKButton').on('click', function() {
reply=$('#start-date').val();
if(reply && reply.length) {
$('#start-text').val(reply);
$('#startModal').modal('hide');
}
});
}
function eventGetFinish() {
//reply = prompt("{{$expirewhen}}", $('#jot-expire').val());
$('#finishModal').modal();
$('#finish-modal-OKButton').on('click', function() {
reply=$('#finish-date').val();
if(reply && reply.length) {
$('#finish-text').val(reply);
$('#finishModal').modal('hide');
}
});
}

View File

@ -857,57 +857,22 @@ nav .acpopup {
border-color: #ccc !important;
}
.eventcal {
float: left;
font-size: 20px;
.wall-event-item {
padding: 10px;
color: #fff;
background-color: #3A87AD; /* should reflect calendar color */
border-top-left-radius: $radiuspx;
border-top-right-radius: $radiuspx;
}
.vevent .event-end {
padding-bottom: 10px;
}
#event-summary-text {
margin-top: 15px;
}
#event-share-checkbox {
float: left;
margin-top: 10px;
}
#event-share-text {
float: left;
margin-top: 10px;
margin-left: 5px;
}
#event-share-break {
clear: both;
margin-bottom: 10px;
}
.event-wrapper {
width: 400px;
height: auto;
padding: 10px;
}
.vevent {
max-width: 100%;
margin: 10px;
padding: 10px;
border: 1px solid #CCCCCC;
}
.vevent .event-summary {
margin: 10px;
font-weight: bold;
}
.vevent .event-description, .vevent .event-location {
margin-left: 10px;
margin-right: 10px;
}
.vevent .event-start {
margin-left: 10px;
margin-right: 10px;
}
#new-event-link {
margin-bottom: 10px;
@ -920,29 +885,13 @@ nav .acpopup {
margin-bottom: 15px;
}
.event-description:before {
content: url('../../../../images/calendar.png');
margin-right: 15px;
}
.event-start, .event-end {
margin-left: 10px;
width: 300px;
clear: both;
}
.event-owner img {
padding: 10px;
padding-bottom: 10px;
padding-right: 10px;
}
.event-buttons {
margin-top: 10px;
margin-left: 10px;
}
.event-start .dtstart, .event-end .dtend {
float: right;
margin-right: 10px;
}
.event-list-date {
@ -959,14 +908,6 @@ nav .acpopup {
clear: both;
}
.calendar {
font-family: Courier, monospace;
}
.today {
font-weight: bold;
color: #FF0000;
}
#cboxOverlay {
z-index: 1050;
@ -1123,31 +1064,6 @@ nav .acpopup {
color: #ff0000;
}
#event-start-text, #event-finish-text {
margin-top: 10px;
margin-bottom: 5px;
}
#event-nofinish-checkbox, #event-nofinish-text, #event-adjust-checkbox, #event-adjust-text {
float: left;
}
#event-datetime-break {
margin-bottom: 10px;
}
#event-nofinish-break, #event-adjust-break {
clear: both;
}
#event-desc-text, #event-location-text {
margin-top: 15px;
margin-bottom: 5px;
}
#event-submit {
margin-top: 10px;
}
#item-delete-selected {
margin-top: 30px;
}
@ -2340,3 +2256,4 @@ nav .badge.mail-update:hover {
.response-list ul {
list-style-type: none;
}

View File

@ -13,6 +13,11 @@
{{$item.photo}}
</div>
{{/if}}
{{if $item.event}}
<div class="wall-event-item" id="wall-event-item-{{$item.id}}">
{{$item.event}}
</div>
{{/if}}
<div class="wall-item-head">
<div class="wall-item-info" id="wall-item-info-{{$item.id}}" >
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}">

View File

@ -13,6 +13,11 @@
{{$item.photo}}
</div>
{{/if}}
{{if $item.event}}
<div class="wall-event-item" id="wall-event-item-{{$item.id}}">
{{$item.event}}
</div>
{{/if}}
<div class="wall-item-head">
<div class="wall-item-info" id="wall-item-info-{{$item.id}}" >
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}">

View File

@ -1,16 +1,16 @@
{{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}}" height="64" width="64" />{{$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="icon-external-link btn btn-default" ></i></a>{{/if}}
{{if $event.edit}}<a href="{{$event.edit.0}}" title="{{$event.edit.1}}" class="edit-event-link"><i class="icon-pencil btn btn-default"></i></a>{{/if}}
{{if $event.drop}}<a href="{{$event.drop.0}}" title="{{$event.drop.1}}" class="drop-event-link"><i class="icon-trash btn btn-default"></i></a>{{/if}}
</div>
</div>
<div class="clear"></div>
<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="icon-external-link btn btn-default" ></i></a>{{/if}}
{{if $event.edit}}<a href="{{$event.edit.0}}" title="{{$event.edit.1}}" class="edit-event-link"><i class="icon-pencil btn btn-default"></i></a>{{/if}}
{{if $event.drop}}<a href="{{$event.drop.0}}" title="{{$event.drop.1}}" class="drop-event-link"><i class="icon-trash btn btn-default"></i></a>{{/if}}
</div>
<div class="clear"></div>
</div>
</div>
{{/foreach}}

View File

@ -1,177 +1,123 @@
<div class="generic-content-wrapper-styled">
<h3>{{$title}}</h3>
<p>
{{$desc}}
</p>
<form id="event-edit-form" action="{{$post}}" method="post" >
<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" />
<div id="event-summary-text">{{$t_text}}</div>
<input type="text" id="event-summary" name="summary" value="{{$t_orig}}" />{{$required}}
<div class="clear"></div>
<div id="event-start-text">{{$s_text}}</div>
{{$s_dsel}}
<div class="clear"></div><br />
<div class='field checkbox'>
<label class="mainlabel" for='id_nofinish'>{{$n_text}}</label>
<div class="pull-right"><input type="checkbox" name='nofinish' id='id_nofinish' value="1" {{$n_checked}} onclick="showHideFinishDate(); return true;" >
<label class="switchlabel" for='id_nofinish'> <span class="onoffswitch-inner" data-on='' data-off='' ></span>
<span class="onoffswitch-switch"></span> </label></div><span class='field_help'></span>
</div>
<div id="event-nofinish-break"></div>
<div id="event-finish-wrapper">
<div id="event-finish-text">{{$f_text}}</div>
{{$f_dsel}}
</div>
<div id="event-datetime-break"></div>
{{include file="field_checkbox.tpl" field=$adjust}}
<div id="event-adjust-break"></div>
<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 $catsenabled}}
<div id="event-category-wrap">
<input name="category" id="event-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" class="event-cats" style="display: block;" data-role="cat-tagsinput" />
</div>
{{/if}}
{{$s_dsel}}
{{$f_dsel}}
{{include file="field_checkbox.tpl" field=$nofinish}}
<div id="event-desc-text">{{$d_text}}</div>
<div id="advanced" style="display:none">
<textarea id="comment-edit-text-desc" class="comment-edit-text-full" name="desc" >{{$d_orig}}</textarea>
<div class="clear"></div>
<div id="comment-tools-desc" class="comment-tools" style="display: block;" >
<div id="comment-edit-bb-desc" class="btn-toolbar pull-left">
<div class='btn-group'>
<button class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('{{$comment}}','b', 'desc'); return false;">
<i class="icon-bold comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('{{$comment}}','i', 'desc'); return false;">
<i class="icon-italic comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('{{$comment}}','u', 'desc'); return false;">
<i class="icon-underline comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('{{$comment}}','quote','desc'); return false;">
<i class="icon-quote-left comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('{{$comment}}','code', 'desc'); return false;">
<i class="icon-terminal comment-icon"></i>
</button>
{{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 id="event-desc-text"><b>{{$d_text}}</b></div>
<textarea id="comment-edit-text-desc" class="form-control" name="desc" >{{$d_orig}}</textarea>
<div id="comment-tools-desc" class="comment-tools" style="display: block;" >
<div id="comment-edit-bb-desc" class="btn-toolbar">
<div class='btn-group'>
<button type="button" class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'desc');">
<i class="icon-bold comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'desc');">
<i class="icon-italic comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'desc');">
<i class="icon-underline comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('none','quote','desc');">
<i class="icon-quote-left comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'desc');">
<i class="icon-terminal comment-icon"></i>
</button>
</div>
<div class='btn-group'>
<button type="button" class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'desc');">
<i class="icon-camera comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'desc');">
<i class="icon-link comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'desc');">
<i class="icon-facetime-video comment-icon"></i>
</button>
</div>
</div>
</div>
</div>
<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 id="comment-tools-loc" class="comment-tools" style="display: block;" >
<div id="comment-edit-bb-loc" class="btn-toolbar">
<div class='btn-group'>
<button type="button" class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('none','b', 'loc');">
<i class="icon-bold comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('none','i', 'loc');">
<i class="icon-italic comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('none','u', 'loc');">
<i class="icon-underline comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('none','quote','loc');">
<i class="icon-quote-left comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('none','code', 'loc');">
<i class="icon-terminal comment-icon"></i>
</button>
</div>
<div class='btn-group'>
<button type="button" class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('none','img', 'loc');">
<i class="icon-camera comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('none','url', 'loc');">
<i class="icon-link comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('none','video', 'loc');">
<i class="icon-facetime-video comment-icon"></i>
</button>
<button type="button" class="btn btn-default btn-xs" title="{{$mapper}}" onclick="insertbbcomment('none','map','loc');">
<i class="icon-globe comment-icon"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<div class='btn-group'>
<button class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('{{$comment}}','img', 'desc'); return false;">
<i class="icon-camera comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('{{$comment}}','url', 'desc'); return false;">
<i class="icon-link comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('{{$comment}}','video', 'desc'); return false;">
<i class="icon-facetime-video comment-icon"></i>
</button>
{{if ! $eid}}
{{include file="field_checkbox.tpl" field=$share}}
{{$acl}}
{{/if}}
<div class="clear"></div>
<button type="button" class="btn btn-default" onclick="openClose('advanced');">{{$advanced}}</button>
<div class="btn-group pull-right">
<button id="event-edit-preview-btn" class="btn btn-default" type="button" title="{{$preview}}" onclick="doEventPreview();"><i class="icon-eye-open" ></i></button>
{{if ! $eid}}
<button id="dbtn-acl" class="btn btn-default" type="button" data-toggle="modal" data-target="#aclModal" title="{{$permissions}}"><i id="jot-perms-icon"></i></button>
{{/if}}
<button id="event-submit" class="btn btn-primary" type="submit" name="submit">{{$submit}}</button>
</div>
</div>
</div>
<div class="clear"></div>
<div id="event-location-text">{{$l_text}}</div>
<textarea id="comment-edit-text-loc" class="comment-edit-text-full" name="location">{{$l_orig}}</textarea>
<div class="clear"></div>
<div id="comment-tools-loc" class="comment-tools" style="display: block;" >
<div id="comment-edit-bb-loc" class="btn-toolbar pull-left">
<div class='btn-group'>
<button class="btn btn-default btn-xs" title="{{$edbold}}" onclick="insertbbcomment('{{$comment}}','b', 'loc'); return false;">
<i class="icon-bold comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$editalic}}" onclick="insertbbcomment('{{$comment}}','i', 'loc'); return false;">
<i class="icon-italic comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$eduline}}" onclick="insertbbcomment('{{$comment}}','u', 'loc'); return false;">
<i class="icon-underline comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edquote}}" onclick="insertbbcomment('{{$comment}}','quote','loc'); return false;">
<i class="icon-quote-left comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edcode}}" onclick="insertbbcomment('{{$comment}}','code', 'loc'); return false;">
<i class="icon-terminal comment-icon"></i>
</button>
</div>
<div class='btn-group'>
<button class="btn btn-default btn-xs" title="{{$edimg}}" onclick="insertbbcomment('{{$comment}}','img', 'loc'); return false;">
<i class="icon-camera comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edurl}}" onclick="insertbbcomment('{{$comment}}','url', 'loc'); return false;">
<i class="icon-link comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$edvideo}}" onclick="insertbbcomment('{{$comment}}','video', 'loc'); return false;">
<i class="icon-facetime-video comment-icon"></i>
</button>
<button class="btn btn-default btn-xs" title="{{$mapper}}" onclick="insertbbcomment('{{$comment}}','map','loc'); return false;">
<i class="icon-globe comment-icon"></i>
</button>
</div>
</div>
</div>
<br />
<div class="clear event-form-location-end"></div>
{{if ! $eid}}
<div class='field checkbox'>
<label class="mainlabel" for='id_share'>{{$sh_text}}</label>
<div class="pull-right"><input type="checkbox" name='share' id='id_share' value="1" {{$sh_checked}} >
<label class="switchlabel" for='id_share'> <span class="onoffswitch-inner" data-on='' data-off='' ></span>
<span class="onoffswitch-switch"></span> </label></div><span class='field_help'></span>
</div>
<div id="event-share-break"></div>
<button id="event-permissions-button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$permissions}}</button>
{{$acl}}
{{/if}}
<div class="clear"></div>
<button id="event-edit-preview-btn" class="btn btn-default" title="{{$preview}}" onclick="doEventPreview(); return false;"><i class="icon-eye-open" ></i></button>
<input id="event-submit" type="submit" name="submit" value="{{$submit}}" />
</form>
</div>

View File

@ -56,45 +56,51 @@
},
loading: function(isLoading, view) {
if(!isLoading) {
$('td.fc-day').dblclick(function() { window.location.href='/events/new?start='+$(this).data('date'); });
$('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-event-title").html(
"<img src='{0}' style='height:10px;width:10px'>{1} : {2}".format(
element.find(".fc-title").html(
"<img src='{0}' style='height:10px;width:10px'>&nbsp;{1}: {2}".format(
event.item['author']['xchan_photo_s'],
event.item['author']['xchan_name'],
event.title
));
break;
case "agendaWeek":
element.find(".fc-event-title").html(
"<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format(
element.find(".fc-title").html(
"<img src='{0}' style='height:10px; width:10px'>&nbsp;{1}: {2}<p>{3}</p><p>{4}</p>".format(
event.item['author']['xchan_photo_s'],
event.item['author']['xchan_name'],
event.item.desc,
event.title,
event.item.description,
event.item.location
));
break;
case "agendaDay":
element.find(".fc-event-title").html(
"<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format(
element.find(".fc-title").html(
"<img src='{0}' style='height:10px;width:10px'>&nbsp;{1}: {2}<p>{3}</p><p>{4}</p>".format(
event.item['author']['xchan_photo_s'],
event.item['author']['xchan_name'],
event.item.desc,
event.title,
event.item.description,
event.item.location
));
break;
}
}
})
});
// center on date
var args=location.href.replace(baseurl,"").split("/");
@ -110,26 +116,30 @@
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>
<script>
$(document).ready(function() {
// ACL
$('#id_share').change(function() {
if ($('#id_share').is(':checked')) {
$('#event-permissions-button').show();
$('#dbtn-acl').show();
}
else {
$('#event-permissions-button').hide();
$('#dbtn-acl').hide();
}
}).trigger('change');
$('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
var selstr;
$('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {

View File

@ -1,8 +1,8 @@
<div class="generic-content-wrapper">
<div class="section-title-wrapper">
<div class="pull-right">
<button class="btn btn-default btn-xs" onclick="openClose('event-tools');"><i class="icon-cog"></i></button>
<button class="btn btn-success btn-xs" onclick="window.location.href='{{$new_event.0}}'; return false;" >{{$new_event.1}}</button>
<button class="btn btn-default btn-xs" onclick="openClose('event-tools'); closeMenu('form');"><i class="icon-cog"></i></button>
<button class="btn btn-success btn-xs" onclick="openClose('form'); closeMenu('event-tools');">{{$new_event.1}}</button>
<div class="btn-group">
<button class="btn btn-default btn-xs" onclick="changeView('prev', false);" title="{{$prev}}"><i class="icon-backward"></i></button>
@ -13,6 +13,9 @@
<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 id="event-tools" class="section-content-tools-wrapper" style="display:none;">
<div class="form-group">
<button class="btn btn-primary btn-xs" onclick="exportDate(); return false;"><i class="icon-download"></i>&nbsp;{{$export.1}}</button>

View File

@ -1,210 +0,0 @@
<div id="profile-jot-wrapper">
<form id="profile-jot-form" action="{{$action}}" method="post">
{{if $parent}}
<input type="hidden" name="parent" value="{{$parent}}" />
{{/if}}
<input type="hidden" name="obj_type" value="{{$ptyp}}" />
<input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
<input type="hidden" name="return" value="{{$return_path}}" />
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
<input type="hidden" name="expire" id="jot-expire" value="{{$defexpire}}" />
<input type="hidden" name="created" id="jot-created" value="{{$defpublish}}" />
<input type="hidden" name="media_str" id="jot-media" value="" />
<input type="hidden" name="source" id="jot-source" value="{{$source}}" />
<input type="hidden" name="coord" id="jot-coord" value="" />
<input type="hidden" name="post_id" value="{{$post_id}}" />
<input type="hidden" name="webpage" value="{{$webpage}}" />
<input type="hidden" name="preview" id="jot-preview" value="0" />
<input type="hidden" id="jot-consensus" name="consensus" value="{{if $consensus}}{{$consensus}}{{else}}0{{/if}}" />
{{if $showacl}}{{$acl}}{{/if}}
{{$mimeselect}}
{{$layoutselect}}
{{if $id_select}}
<div class="channel-id-select-div">
<span class="channel-id-select-desc">{{$id_seltext}}</span> {{$id_select}}
</div>
{{/if}}
{{if $webpage}}
<div id="jot-pagetitle-wrap" class="jothidden">
<input name="pagetitle" id="jot-pagetitle" type="text" placeholder="{{$placeholdpagetitle}}" value="{{$pagetitle}}">
</div>
{{/if}}
<div id="jot-title-wrap" class="jothidden">
<input name="title" id="jot-title" type="text" placeholder="{{$placeholdertitle}}" tabindex=1 value="{{$title}}">
</div>
{{if $catsenabled}}
<div id="jot-category-wrap" class="jothidden">
<input name="category" id="jot-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" data-role="cat-tagsinput">
</div>
{{/if}}
<div id="jot-text-wrap">
<textarea class="profile-jot-text" id="profile-jot-text" name="body" tabindex=2 placeholder="{{$share}}">{{$content}}</textarea>
</div>
{{if $attachment}}
<div id="jot-attachment-wrap">
<input class="jot-attachment" name="attachment" id="jot-attachment" type="text" value="{{$attachment}}" readonly="readonly" onclick="this.select();">
</div>
{{/if}}
<div id="profile-jot-submit-wrapper" class="jothidden">
<div id="profile-jot-submit-left" class="btn-toolbar pull-left">
<div class="btn-group">
{{if $writefiles}}
<button id="wall-file-upload" class="btn btn-default btn-sm" title="{{$attach}}" >
<i id="wall-file-upload-icon" class="icon-paper-clip jot-icons"></i>
</button>
{{/if}}
</div>
<div class="btn-group hidden-xs">
<button id="profile-link-wrapper" class="btn btn-default btn-sm" title="{{$weblink}}" ondragenter="linkdropper(event);" ondragover="linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink(); return false;">
<i id="profile-link" class="icon-link jot-icons"></i>
</button>
<button id="main-editor-code" class="btn btn-default btn-sm" title="{{$code}}" onclick="inserteditortag('code', 'profile-jot-text'); return false;">
<i class="icon-terminal jot-icons"></i>
</button>
<button id="main-editor-quote" class="btn btn-default btn-sm" title="{{$quote}}" onclick="inserteditortag('quote', 'profile-jot-text'); return false;">
<i class="icon-quote-left jot-icons"></i>
</button>
</div>
<div class="btn-group hidden-xs">
<button id="main-editor-bold" class="btn btn-default btn-sm" title="{{$bold}}" onclick="inserteditortag('b', 'profile-jot-text'); return false;">
<i class="icon-bold jot-icons"></i>
</button>
<button id="main-editor-italic" class="btn btn-default btn-sm" title="{{$italic}}" onclick="inserteditortag('i', 'profile-jot-text'); return false;">
<i class="icon-italic jot-icons"></i>
</button>
<button id="main-editor-underline" class="btn btn-default btn-sm" title="{{$underline}}" onclick="inserteditortag('u', 'profile-jot-text'); return false;">
<i class="icon-underline jot-icons"></i>
</button>
</div>
<div class="btn-group">
{{if $feature_encrypt}}
<button id="profile-encrypt-wrapper" class="btn btn-default btn-sm" title="{{$encrypt}}" onclick="red_encrypt('{{$cipher}}','#profile-jot-text',$('#profile-jot-text').val());return false;">
<i id="profile-encrypt" class="icon-key jot-icons"></i>
</button>
{{/if}}
{{if $feature_future}}
<button id="profile-future-wrapper" class="btn btn-default btn-sm" title="{{$future_txt}}" onclick="jotGetPubDate();return false;">
<i id="profile-future" class="icon-time jot-icons"></i>
</button>
{{/if}}
{{if $feature_expire}}
<button id="profile-expire-wrapper" class="btn btn-default btn-sm" title="{{$expires}}" onclick="jotGetExpiry();return false;">
<i id="profile-expires" class="icon-eraser jot-icons"></i>
</button>
{{/if}}
<button id="profile-location-wrapper" class="btn btn-default btn-sm" title="{{$setloc}}" onclick="jotGetLocation();return false;">
<i id="profile-location" class="icon-globe jot-icons"></i>
</button>
{{if $noloc}}
<button id="profile-nolocation-wrapper" class="btn btn-default btn-sm" title="{{$noloc}}" onclick="jotClearLocation();return false;" disabled="disabled">
<i id="profile-nolocation" class="icon-circle-blank jot-icons"></i>
</button>
{{/if}}
{{if $showacl}}
<button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" onclick="return false;">
<i id="jot-perms-icon" class="icon-{{$lockstate}} jot-icons"></i>{{if $bang}}&nbsp;<i class="icon-exclamation jot-icons"></i>{{/if}}
</button>
{{/if}}
</div>
<div class="btn-group hidden-xs visible-sm">
<button type="button" id="more-tools" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<i id="more-tools-icon" class="icon-caret-down jot-icons"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<!--li class="visible-xs"><a href="#" onclick="preview_post();return false;"><i class="icon-eye-open"></i>&nbsp;{{$preview}}</a></li-->
{{if $visitor}}
<li class="divider visible-xs"></li>
{{if $writefiles}}
<!--li class="visible-xs"><a id="wall-file-upload-sub" href="#" ><i class="icon-paper-clip"></i>&nbsp;{{$attach}}</a></li-->
{{/if}}
<li class="visible-xs"><a href="#" onclick="jotGetLink(); return false;"><i class="icon-link"></i>&nbsp;{{$weblink}}</a></li>
<!--li class="visible-xs"><a href="#" onclick="jotVideoURL(); return false;"><i class="icon-facetime-video"></i>&nbsp;{{$video}}</a></li-->
<!--li class="visible-xs"><a href="#" onclick="jotAudioURL(); return false;"><i class="icon-volume-up"></i>&nbsp;{{$audio}}</a></li-->
{{/if}}
<li class="divider visible-xs"></li>
<!--li class="visible-xs visible-sm"><a href="#" onclick="jotGetLocation(); return false;"><i class="icon-globe"></i>&nbsp;{{$setloc}}</a></li-->
{{if $noloc}}
<!--li class="visible-xs visible-sm"><a href="#" onclick="jotClearLocation(); return false;"><i class="icon-circle-blank"></i>&nbsp;{{$noloc}}</a></li-->
{{/if}}
{{if $feature_expire}}
<!--li class="visible-xs visible-sm"><a href="#" onclick="jotGetExpiry(); return false;"><i class="icon-eraser"></i>&nbsp;{{$expires}}</a></li-->
{{/if}}
{{if $feature_encrypt}}
<!--li class="visible-xs visible-sm"><a href="#" onclick="red_encrypt('{{$cipher}}','#profile-jot-text',$('#profile-jot-text').val());return false;"><i class="icon-key"></i>&nbsp;{{$encrypt}}</a></li-->
{{/if}}
{{if $feature_voting}}
<li class="visible-xs visible-sm"><a href="#" onclick="toggleVoting(); return false;"><i id="profile-voting-sub" class="icon-check-empty"></i>&nbsp;{{$voting}}</a></li>
{{/if}}
</ul>
</div>
</div>
<div id="profile-rotator-wrapper">
<div id="profile-rotator"></div>
</div>
<div id="profile-jot-submit-right" class="btn-group">
{{if $preview}}
<button class="btn btn-default btn-sm" onclick="preview_post();return false;" title="{{$preview}}">
<i class="icon-eye-open jot-icons" ></i>
</button>
{{/if}}
</div>
<div id="profile-jot-submit-right" class="btn-group pull-right">
<button id="dbtn-submit" class="btn btn-primary btn-sm" type="submit" tabindex=3 name="button-submit" >{{$share}}</button>
</div>
<div id="profile-jot-perms-end"></div>
<div id="profile-jot-plugin-wrapper">
{{$jotplugins}}
</div>
</div>
<div id="profile-jot-text-loading"></div>
<div id="profile-jot-end" class="clear"></div>
<div id="jot-preview-content" style="display:none;"></div>
</form>
</div>
<!-- Modal for item expiry-->
<div class="modal" id="expiryModal" tabindex="-1" role="dialog" aria-labelledby="expiryModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="expiryModalLabel">{{$expires}}</h4>
</div>
<!-- <div class="modal-body"> -->
<div class="modal-body form-group" style="width:90%">
<div class='date'><input type='text' placeholder='yyyy-mm-dd HH:MM' name='start_text' id='expiration-date' class="form-control" /></div><script type='text/javascript'>$(function () {var picker = $('#expiration-date').datetimepicker({format:'Y-m-d H:i', minDate: 0 }); })</script>
</div>
<!-- </div> -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{$expiryModalCANCEL}}</button>
<button id="expiry-modal-OKButton" type="button" class="btn btn-primary">{{$expiryModalOK}}</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Modal for item created-->
<div class="modal" id="createdModal" tabindex="-1" role="dialog" aria-labelledby="createdModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="createdModalLabel">{{$future_txt}}</h4>
</div>
<!-- <div class="modal-body"> -->
<div class="modal-body form-group" style="width:90%">
<div class='date'><input type='text' placeholder='yyyy-mm-dd HH:MM' name='created_text' id='created-date' class="form-control" /></div><script type='text/javascript'>$(function () {var picker = $('#created-date').datetimepicker({format:'Y-m-d H:i', minDate: 0 }); })</script>
</div>
<!-- </div> -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{$expiryModalCANCEL}}</button>
<button id="created-modal-OKButton" type="button" class="btn btn-primary">{{$expiryModalOK}}</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
{{if $content || $attachment || $expanded}}
<script>initEditor();</script>
{{/if}}

View File

@ -7,6 +7,11 @@
{{$item.photo}}
</div>
{{/if}}
{{if $item.event}}
<div class="wall-event-item" id="wall-event-item-{{$item.id}}">
{{$item.event}}
</div>
{{/if}}
<div class="wall-item-head">
<div class="wall-item-info" id="wall-item-info-{{$item.id}}" >
<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}">