Merge branch 'pull'
This commit is contained in:
		| @@ -489,7 +489,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) { | ||||
| 				} | ||||
|  | ||||
| 				$likebuttons = ''; | ||||
| 				$shareable = ((($profile_owner == local_user()) && ($mode != 'display') && (! $item['private'])) ? true : false); | ||||
| 				$shareable = ((($profile_owner == local_user()) &&  (! $item['private'])) ? true : false); //($mode != 'display') && | ||||
|  | ||||
| 				if($page_writeable) { | ||||
| 					if($toplevelpost) { | ||||
| @@ -821,7 +821,7 @@ function format_like($cnt,$arr,$type,$id) { | ||||
| }} | ||||
|  | ||||
|  | ||||
| function status_editor($a,$x, $notes_cid = 0) { | ||||
| function status_editor($a,$x, $notes_cid = 0, $popup=false) { | ||||
|  | ||||
| 	$o = ''; | ||||
| 		 | ||||
| @@ -885,7 +885,7 @@ function status_editor($a,$x, $notes_cid = 0) { | ||||
|  | ||||
| 	$o .= replace_macros($tpl,array( | ||||
| 		'$return_path' => $a->cmd, | ||||
| 		'$action' => 'item', | ||||
| 		'$action' =>  $a->get_baseurl().'/item', | ||||
| 		'$share' => (($x['button']) ? $x['button'] : t('Share')), | ||||
| 		'$upload' => t('Upload photo'), | ||||
| 		'$shortupload' => t('upload photo'), | ||||
| @@ -924,6 +924,12 @@ function status_editor($a,$x, $notes_cid = 0) { | ||||
| 		'$preview' => t('Preview'), | ||||
| 	)); | ||||
|  | ||||
|  | ||||
| 	if ($popup==true){ | ||||
| 		$o = '<div id="jot-popup" style="display: none;">'.$o.'</div>'; | ||||
| 		 | ||||
| 	} | ||||
|  | ||||
| 	return $o; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -11,6 +11,7 @@ function display_content(&$a) { | ||||
| 	require_once("include/bbcode.php"); | ||||
| 	require_once('include/security.php'); | ||||
| 	require_once('include/conversation.php'); | ||||
| 	require_once('include/acl_selectors.php'); | ||||
|  | ||||
|  | ||||
| 	$o = '<div id="live-display"></div>' . "\r\n"; | ||||
| @@ -66,6 +67,23 @@ function display_content(&$a) { | ||||
| 		notice( t('Access to this profile has been restricted.') . EOL); | ||||
| 		return; | ||||
| 	} | ||||
| 	 | ||||
| 	if ($is_owner) | ||||
| 		$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false); | ||||
|  | ||||
| 		$x = array( | ||||
| 			'is_owner' => true, | ||||
| 			'allow_location' => $a->user['allow_location'], | ||||
| 			'default_location' => $a->user['default_location'], | ||||
| 			'nickname' => $a->user['nickname'], | ||||
| 			'lockstate' => ((($group) || (is_array($a->user) && ((strlen($a->user['allow_cid'])) || (strlen($a->user['allow_gid'])) || (strlen($a->user['deny_cid'])) || (strlen($a->user['deny_gid']))))) ? 'lock' : 'unlock'), | ||||
| 			'acl' => populate_acl((($group || $cid) ? $def_acl : $a->user), $celeb), | ||||
| 			'bang' => (($group || $cid) ? '!' : ''), | ||||
| 			'visitor' => 'block', | ||||
| 			'profile_uid' => local_user() | ||||
| 		);	 | ||||
| 		$o .= status_editor($a,$x,0,true); | ||||
|  | ||||
|  | ||||
| 	$sql_extra = permissions_sql($a->profile['uid'],$remote_contact,$groups); | ||||
|  | ||||
|   | ||||
| @@ -118,7 +118,7 @@ function enableOnUser(){ | ||||
| } | ||||
|  | ||||
| </script> | ||||
| <script type="text/javascript" src="js/ajaxupload.js" ></script> | ||||
| <script type="text/javascript" src="$baseurl/js/ajaxupload.js" ></script> | ||||
| <script> | ||||
| 	var ispublic = '$ispublic'; | ||||
| 	var addtitle = '$addtitle'; | ||||
| @@ -209,6 +209,8 @@ function enableOnUser(){ | ||||
| 	} | ||||
|  | ||||
| 	function jotShare(id) { | ||||
| 		if ($('#jot-popup').length != 0) $('#jot-popup').show(); | ||||
|  | ||||
| 		$('#like-rotator-' + id).show(); | ||||
| 		$.get('share/' + id, function(data) { | ||||
| 			if (!editor) $("#profile-jot-text").val(""); | ||||
|   | ||||
| @@ -78,6 +78,14 @@ | ||||
| 	<div class="wall-item-bottom"> | ||||
| 		<div class="wall-item-links"></div> | ||||
| 		<div class="wall-item-like" id="wall-item-like-$id">$like</div> | ||||
| 		<div class="wall-item-dislike" id="wall-item-dislike-$id">$dislike</div>	 | ||||
| 		<div class="wall-item-dislike" id="wall-item-dislike-$id">$dislike</div> | ||||
| 		{{ if $conv }} | ||||
| 		<div class="wall-item-conv" id="wall-item-conv-$id" > | ||||
| 			<a href='$conv.href' id='context-$id' title='$conv.title'>$conv.title</a> | ||||
| 		{{ endif }} | ||||
| 		</div> | ||||
| 	</div> | ||||
| 	 | ||||
| 	 | ||||
| </div> | ||||
|  | ||||
|   | ||||
							
								
								
									
										94
									
								
								view/theme/quattro-green/colors.less
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										94
									
								
								view/theme/quattro-green/colors.less
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,94 @@ | ||||
| // Quattro Theme LESS file | ||||
|  | ||||
| // "Echo" palette from Inkscape | ||||
| @Blue1:rgb(25,174,255); | ||||
| @Blue2:rgb(0,132,200); | ||||
| @Blue3:rgb(0,92,148); | ||||
| @Red1:rgb(255,65,65); | ||||
| @Red2:rgb(220,0,0); | ||||
| @Red3:rgb(181,0,0); | ||||
| @Orange1:rgb(255,255,62); | ||||
| @Orange2:rgb(255,153,0); | ||||
| @Orange3:rgb(255,102,0); | ||||
| @Brown1:rgb(255,192,34); | ||||
| @Brown2:rgb(184,129,0); | ||||
| @Brown3:rgb(128,77,0); | ||||
| @Green1:rgb(204,255,66); | ||||
| @Green2:rgb(154,222,0); | ||||
| @Green3:rgb(0,145,0); | ||||
| @Purple1:rgb(241,202,255); | ||||
| @Purple2:rgb(215,108,255); | ||||
| @Purple3:rgb(186,0,255); | ||||
| @Metalic1:rgb(189,205,212); | ||||
| @Metalic2:rgb(158,171,176); | ||||
| @Metalic3:rgb(54,78,89); | ||||
| @Metalic4:rgb(14,35,46); | ||||
| @Grey1:rgb(255,255,255); | ||||
| @Grey2:rgb(204,204,204); | ||||
| @Grey3:rgb(153,153,153); | ||||
| @Grey4:rgb(102,102,102); | ||||
| @Grey5:rgb(45,45,45); | ||||
|  | ||||
|  | ||||
| // Theme colors | ||||
| @BodyBackground: @Grey1; | ||||
| @BodyColor:	@Grey5; | ||||
|  | ||||
| @Link: @Green3; | ||||
| @LinkHover: @Green3; | ||||
| @LinkVisited: @Green3; | ||||
|  | ||||
|  | ||||
| @ButtonColor: @Grey1; | ||||
| @ButtonBackgroundColor: @Grey5; | ||||
|  | ||||
| @Banner: @Grey1; | ||||
|  | ||||
| @NavbarBackground:@Green3; | ||||
| @NavbarSelectedBg:@Metalic3; | ||||
| @NavbarSelectedBorder: @Metalic2; | ||||
| @NavbarNotifBg: @Red2; | ||||
|  | ||||
| @Menu: @Grey5; | ||||
| @MenuBg: @Grey1; | ||||
| @MenuBorder: @Metalic3; | ||||
| @MenuItem: @Grey5; | ||||
| @MenuItemHoverBg: @Green1; | ||||
| @MenuItemSeparator: @Metalic2; | ||||
| @MenuEmpty: @Metalic2; | ||||
| @MenuItemDetail: @Metalic2; | ||||
|  | ||||
| @AsideBorder: @Metalic1; | ||||
| @AsideConnect: @Grey1; | ||||
| @AsideConnectBg: @Green3; | ||||
| @AsideConnectHoverBg: @Green1; | ||||
| @VCardLabelColor: @Grey3; | ||||
|  | ||||
| @InfoColor: @Grey1; | ||||
| @InfoBackgroundColor: @Metalic3; | ||||
|  | ||||
| @NoticeColor: @Grey1; | ||||
| @NoticeBackgroundColor: #511919; | ||||
|  | ||||
| @ThreadBackgroundColor: #f6f7f8; | ||||
|  | ||||
| @CommentBoxEmptyColor: @Grey3; | ||||
| @CommentBoxEmptyBorderColor: @Grey3; | ||||
| @CommentBoxFullColor: @Grey5; | ||||
| @CommentBoxFullBorderColor: @Grey5; | ||||
|  | ||||
| @TagColor: @Grey1; | ||||
|  | ||||
| @JotToolsBackgroundColor: @Green3; | ||||
| @JotToolsBorderColor: @Metalic2; | ||||
| @JotToolsOverBackgroundColor: @Green2; | ||||
| @JotToolsOverBorderColor: @Metalic1; | ||||
| @JotToolsText: @Grey5; | ||||
| @JotSubmitBackgroundColor: @Grey2; | ||||
| @JotSubmitText: @Grey4; | ||||
| @JotSubmitOverBackgroundColor: @Green1; | ||||
| @JotSubmitOverText: @Grey4; | ||||
| @JotPermissionUnlockBackgroundColor: @Grey2; | ||||
| @JotPermissionLockBackgroundColor: @Grey4; | ||||
| @JotLoadingBackgroundColor: @Grey1; | ||||
|  | ||||
							
								
								
									
										21
									
								
								view/theme/quattro-green/contact_template.tpl
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								view/theme/quattro-green/contact_template.tpl
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,21 @@ | ||||
|  | ||||
| <div class="contact-wrapper" id="contact-entry-wrapper-$id" > | ||||
| 	<div class="contact-photo-wrapper" > | ||||
| 		<div class="contact-photo mframe" id="contact-entry-photo-$id" | ||||
| 		onmouseover="if (typeof t$id != 'undefined') clearTimeout(t$id); openMenu('contact-photo-menu-button-$id')" onmouseout="t$id=setTimeout('closeMenu(\'contact-photo-menu-button-$id\'); closeMenu(\'contact-photo-menu-$id\');',200)" > | ||||
|  | ||||
| 			<a href="$url" title="$img_hover" /><img src="$thumb" $sparkle alt="$name" /></a> | ||||
|  | ||||
| 			<a href="#" rel="#contact-photo-menu-$id" class="contact-photo-menu-button icon s16 menu" id="contact-photo-menu-button-$id">menu</a> | ||||
| 			<ul class="contact-photo-menu menu-popup" id="contact-photo-menu-$id"> | ||||
| 				$contact_photo_menu | ||||
| 			</ul> | ||||
|  | ||||
| 		</div> | ||||
| 			 | ||||
| 	</div> | ||||
| 	<div class="contact-name" id="contact-entry-name-$id" >$name</div> | ||||
|  | ||||
|  | ||||
| </div> | ||||
|  | ||||
							
								
								
									
										0
									
								
								view/theme/quattro-green/experimental
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										0
									
								
								view/theme/quattro-green/experimental
									
									
									
									
									
										Executable file
									
								
							
							
								
								
									
										1374
									
								
								view/theme/quattro-green/style.css
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										1374
									
								
								view/theme/quattro-green/style.css
									
									
									
									
									
										Executable file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										14
									
								
								view/theme/quattro-green/style.less
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								view/theme/quattro-green/style.less
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Fabio Comuni <http://kirgroup.com/profile/fabrixxm> | ||||
|  **/ | ||||
| // Less file http://lesscss.org/ | ||||
| // compile with lessc | ||||
| // $ lessc style.less > style.css | ||||
|  | ||||
| @import "colors"; | ||||
| @import "../quattro/icons"; | ||||
| @import "../quattro/quattro"; | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| @@ -547,6 +547,13 @@ section { | ||||
| } | ||||
| .wwto .contact-photo { width: 25px; height: 25px; } | ||||
|  | ||||
|  | ||||
| #pause { | ||||
|  position: fixed; | ||||
|  bottom: 5px; | ||||
|  right: 5px; | ||||
| } | ||||
|  | ||||
| /* contacts menu */ | ||||
| .contact-photo-wrapper { position: relative; } | ||||
| .contact-photo {  | ||||
|   | ||||
| @@ -891,6 +891,11 @@ section { | ||||
|   width: 25px; | ||||
|   height: 25px; | ||||
| } | ||||
| #pause { | ||||
|   position: fixed; | ||||
|   bottom: 5px; | ||||
|   right: 5px; | ||||
| } | ||||
| /* contacts menu */ | ||||
| .contact-photo-wrapper { | ||||
|   position: relative; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user