diff --git a/images/icons/10/lock.png b/images/icons/10/lock.png index ad8079c23..2ddf98d08 100644 Binary files a/images/icons/10/lock.png and b/images/icons/10/lock.png differ diff --git a/images/icons/10/unlock.png b/images/icons/10/unlock.png new file mode 100644 index 000000000..d18088416 Binary files /dev/null and b/images/icons/10/unlock.png differ diff --git a/images/icons/16/lock.png b/images/icons/16/lock.png index f4432bbe4..189bfd29e 100644 Binary files a/images/icons/16/lock.png and b/images/icons/16/lock.png differ diff --git a/images/icons/16/unlock.png b/images/icons/16/unlock.png new file mode 100644 index 000000000..c56495d02 Binary files /dev/null and b/images/icons/16/unlock.png differ diff --git a/images/icons/22/lock.png b/images/icons/22/lock.png index 92c8c4905..13b755810 100644 Binary files a/images/icons/22/lock.png and b/images/icons/22/lock.png differ diff --git a/images/icons/22/unlock.png b/images/icons/22/unlock.png new file mode 100644 index 000000000..9be196f55 Binary files /dev/null and b/images/icons/22/unlock.png differ diff --git a/images/icons/48/lock.png b/images/icons/48/lock.png index 9943bb17d..b9db282ac 100644 Binary files a/images/icons/48/lock.png and b/images/icons/48/lock.png differ diff --git a/images/icons/48/unlock.png b/images/icons/48/unlock.png new file mode 100644 index 000000000..9bf72a4c6 Binary files /dev/null and b/images/icons/48/unlock.png differ diff --git a/images/icons/Makefile b/images/icons/Makefile index ec57b943e..00c4fa4c2 100644 --- a/images/icons/Makefile +++ b/images/icons/Makefile @@ -2,7 +2,7 @@ IMAGES=add.png edit.png gear.png info.png menu.png \ notify_off.png star.png delete.png feed.png group.png \ lock.png notice.png notify_on.png user.png link.png \ - play.png plugin.png + play.png plugin.png unlock.png DESTS=10/ 16/ 22/ 48/ \ $(addprefix 10/, $(IMAGES)) \ diff --git a/images/icons/lock.png b/images/icons/lock.png index 7e58ead2e..91a8f3ef2 100644 Binary files a/images/icons/lock.png and b/images/icons/lock.png differ diff --git a/images/icons/lock.png.tmp b/images/icons/lock.png.tmp new file mode 100644 index 000000000..7e58ead2e Binary files /dev/null and b/images/icons/lock.png.tmp differ diff --git a/images/icons/unlock.png b/images/icons/unlock.png new file mode 100644 index 000000000..4bf7e7eae Binary files /dev/null and b/images/icons/unlock.png differ diff --git a/include/config.php b/include/config.php index f565ab117..92694f519 100644 --- a/include/config.php +++ b/include/config.php @@ -145,8 +145,9 @@ function get_pconfig($uid,$family, $key, $instore = false) { ); if(count($ret)) { - $a->config[$uid][$family][$key] = $ret[0]['v']; - return $ret[0]['v']; + $val = (preg_match("|^a:[0-9]+:{.*}$|", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']); + $a->config[$uid][$family][$key] = $val; + return $val; } else { $a->config[$uid][$family][$key] = '!!'; @@ -177,20 +178,23 @@ function set_pconfig($uid,$family,$key,$value) { global $a; + // manage array value + $dbvalue = (is_array($value)?serialize($value):$value); + if(get_pconfig($uid,$family,$key,true) === false) { $a->config[$uid][$family][$key] = $value; $ret = q("INSERT INTO `pconfig` ( `uid`, `cat`, `k`, `v` ) VALUES ( %d, '%s', '%s', '%s' ) ", intval($uid), dbesc($family), dbesc($key), - dbesc($value) + dbesc($dbvalue) ); if($ret) return $value; return $ret; } $ret = q("UPDATE `pconfig` SET `v` = '%s' WHERE `uid` = %d AND `cat` = '%s' AND `k` = '%s' LIMIT 1", - dbesc($value), + dbesc($dbvalue), intval($uid), dbesc($family), dbesc($key) diff --git a/include/conversation.php b/include/conversation.php index d4d6a5569..4a53060e3 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -813,8 +813,7 @@ function status_editor($a,$x, $notes_cid = 0) { '$audurl' => t("Please enter an audio link/URL:"), '$term' => t('Tag term:'), '$whereareu' => t('Where are you right now?'), - '$title' => t('Enter a title for this item'), - '$addtitle' => t('click here to add a title') + '$title' => t('Enter a title for this item') )); @@ -858,15 +857,24 @@ function status_editor($a,$x, $notes_cid = 0) { '$action' => 'item', '$share' => (($x['button']) ? $x['button'] : t('Share')), '$upload' => t('Upload photo'), + '$shortupload' => t('upload photo'), '$attach' => t('Attach file'), + '$shortattach' => t('attach file'), '$weblink' => t('Insert web link'), + '$shortweblink' => t('web link'), '$video' => t('Insert video link'), + '$shortvideo' => t('video link'), '$audio' => t('Insert audio link'), + '$shortaudio' => t('audio link'), '$setloc' => t('Set your location'), + '$shortsetloc' => t('set location'), '$noloc' => t('Clear browser location'), - '$title' => t('Set title'), + '$shortnoloc' => t('clear location'), + '$title' => "", + '$placeholdertitle' => t('Set title'), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), + '$shortpermset' => t('permissions'), '$ptyp' => (($notes_cid) ? 'note' : 'wall'), '$content' => '', '$post_id' => '', @@ -882,8 +890,6 @@ function status_editor($a,$x, $notes_cid = 0) { '$acl' => $x['acl'], '$bang' => $x['bang'], '$profile_uid' => $x['profile_uid'], - '$addtitle' => t('click here to add a title') - )); return $o; @@ -958,4 +964,4 @@ function find_thread_parent_index($arr,$x) { if($v['id'] == $x['parent']) return $k; return false; -} \ No newline at end of file +} diff --git a/mod/photos.php b/mod/photos.php index d2f45652f..7ec6c8794 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1368,30 +1368,36 @@ function photos_content(&$a) { intval($a->pager['itemspage']) ); - $o .= '

' . t('Recent Photos') . '

'; - if($can_post) { - $o .= ''; - } - $tpl = get_markup_template('photo_top.tpl'); + $photos = array(); if(count($r)) { foreach($r as $rr) { - $o .= replace_macros($tpl,array( - '$id' => $rr['id'], - '$photolink' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $rr['resource-id'], - '$phototitle' => t('View Photo'), - '$imgsrc' => $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . ((($rr['scale']) == 6) ? 4 : $rr['scale']) . '.jpg', - '$albumlink' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($rr['album']), - '$albumname' => template_escape($rr['album']), - '$albumalt' => t('View Album'), - '$imgalt' => template_escape($rr['filename']) - )); - + $photos[] = array( + 'id' => $rr['id'], + 'link' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $rr['resource-id'], + 'title' => t('View Photo'), + 'src' => $a->get_baseurl() . '/photo/' . $rr['resource-id'] . '-' . ((($rr['scale']) == 6) ? 4 : $rr['scale']) . '.jpg', + 'alt' => template_escape($rr['filename']), + 'album' => array( + 'link' => $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($rr['album']), + 'name' => template_escape($rr['album']), + 'alt' => t('View Album'), + ), + + ); } - $o .= '
'; } + + $tpl = get_markup_template('photos_recent.tpl'); + $o .= replace_macros($tpl,array( + '$title' => t('Recent Photos'), + '$can_post' => $can_post, + '$upload' => array(t('Upload New Photos'), $a->get_baseurl().'/photos/'.$a->data['user']['nickname'].'/upload'), + '$photos' => $photos, + )); + + $o .= paginate($a); return $o; } diff --git a/view/contact_template.tpl b/view/contact_template.tpl index e1a080b67..f2749656a 100644 --- a/view/contact_template.tpl +++ b/view/contact_template.tpl @@ -1,23 +1,21 @@ -
-
-
+
+
$name - menu -
-
    - $contact_photo_menu -
-
+ menu +
-
-
$name
+
$name
+ -
+ diff --git a/view/directory_item.tpl b/view/directory_item.tpl index 031f4ff22..b45da4465 100644 --- a/view/directory_item.tpl +++ b/view/directory_item.tpl @@ -1,14 +1,11 @@
-
-
$alt-text +
+
+ $alt-text +
+
+ +
$name
+
$details
-
-
-
-
$name
-
-
-
$details
-
-
\ No newline at end of file diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 1a9016f5d..352c48647 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -82,7 +82,7 @@ function initEditor(cb){ ed.onInit.add(function(ed) { ed.pasteAsPlainText = true; $("#profile-jot-text-loading").hide(); - $("#profile-jot-submit-wrapper").show(); + $(".jothidden").show(); if (typeof cb!="undefined") cb(); }); @@ -99,6 +99,12 @@ function initEditor(cb){ } } +function enableOnUser(){ + if (editor) return; + $(this).val(""); + initEditor(); +} + {{ endif }} + + +
- -
- -
-
- $bang -
-
-
-
- $acl -
-
$emailcc
-
- $jotnets -
-
- -
- -
- + +
+
+ $acl +
+
$emailcc
+
+ $jotnets +
+
+ + + + diff --git a/view/nets.tpl b/view/nets.tpl index b0cb8890c..0953e66a6 100644 --- a/view/nets.tpl +++ b/view/nets.tpl @@ -1,10 +1,12 @@

$title

$desc
- $all + +
diff --git a/view/photo_top.tpl b/view/photo_top.tpl index ab88c5ff5..04a054b52 100644 --- a/view/photo_top.tpl +++ b/view/photo_top.tpl @@ -1,6 +1,8 @@
- $imgalt - + + $photo.alt + +
-
+ diff --git a/view/photos_recent.tpl b/view/photos_recent.tpl new file mode 100644 index 000000000..b8cb924b7 --- /dev/null +++ b/view/photos_recent.tpl @@ -0,0 +1,10 @@ +

$title

+{{ if $can_post }} +$upload.0 +{{ endif }} + +
+{{ for $photos as $photo }} + {{ inc photo_top.tpl }}{{ endinc }} +{{ endfor }} +
diff --git a/view/settings_oauth.tpl b/view/settings_oauth.tpl index bc5866bec..0de0dbe98 100644 --- a/view/settings_oauth.tpl +++ b/view/settings_oauth.tpl @@ -23,8 +23,8 @@ $tabs {{ endif }} {{ endif }} {{ if $app.my }} -   -   +   +   {{ endif }} {{ endfor }} diff --git a/view/theme/darkzero/style.css b/view/theme/darkzero/style.css index 1aa1efe87..25ae0c71f 100644 --- a/view/theme/darkzero/style.css +++ b/view/theme/darkzero/style.css @@ -70,3 +70,21 @@ input#dfrn-url { color: #000088; } +#jot-perms-icon { + float: left; +} + + +#jot-title { + background-color: #333333; + border: 1px solid #333333; +} + +#jot-title::-webkit-input-placeholder{ color: #555555!important;} +#jot-title:-moz-placeholder{color: #555555!important;} + + +#jot-title:hover, +#jot-title:focus { + border: 1px solid #cccccc; +} diff --git a/view/theme/dispy/nets.tpl b/view/theme/dispy/nets.tpl new file mode 100644 index 000000000..b0cb8890c --- /dev/null +++ b/view/theme/dispy/nets.tpl @@ -0,0 +1,10 @@ +
+

$title

+
$desc
+ $all + +
diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css index 08582f1d5..f2807b36f 100644 --- a/view/theme/dispy/style.css +++ b/view/theme/dispy/style.css @@ -570,6 +570,10 @@ div[id$="wrapper"] br { clear: left; } /** * photos **/ +.photos { + height: auto; + overflow: auto; +} #photo-top-links { margin-bottom:30px; } diff --git a/view/theme/quattro/jot.tpl b/view/theme/duepuntozero/jot.tpl similarity index 80% rename from view/theme/quattro/jot.tpl rename to view/theme/duepuntozero/jot.tpl index 36008c5a1..e6ea1c1bd 100644 --- a/view/theme/quattro/jot.tpl +++ b/view/theme/duepuntozero/jot.tpl @@ -14,42 +14,37 @@ -
- - - -
- + {{ if $content }}{{ endif }} -