Exemplo n.º 1
1
    <div class="ossn-footer-inner">
        <div class="ossn-footer-copyrights">
        &copy;  <a href="<?php 
echo ossn_site_url();
?>
"><?php 
echo $sitename;
?>
</a> 
		          <?php 
echo date('Y');
?>
 -
                  <a target="_blank" href="http://www.opensource-socialnetwork.org/"><?php 
echo ossn_print('powered');
?>
</a>        
        </div>
        <div class="ossn-footer-menu">
            <?php 
echo ossn_view_menu('footer');
?>
        </div>
    </div>
</div>
<?php 
echo ossn_fetch_extend_views('ossn/page/footer');
?>
</body>
</html>
Exemplo n.º 2
1
/**
 * View post menu
 *
 * @param string $hook Name of hook
 * @param string $type Hook type
 * @param string $return mixed data
 * @param array $params Arrays or Objects
 *
 * @return mixed data
 * @access private
 */
function ossn_wall_post_menu($hook, $type, $return, $params)
{
    if ($params['post']->poster_guid == ossn_loggedin_user()->guid || $params['post']->owner_guid == ossn_loggedin_user()->guid || ossn_isAdminLoggedin()) {
        $deleteurl = ossn_site_url("action/wall/post/delete?post={$params['post']->guid}", true);
        ossn_register_menu_link("delete", ossn_print('ossn:post:delete'), array('class' => 'ossn-wall-post-delete', 'href' => $deleteurl, 'data-guid' => $params['post']->guid), 'wallpost');
    } else {
        ossn_unregister_menu('delete', 'wallpost');
    }
    return ossn_view_menu('wallpost', 'wall/menus/post-controls');
}
Exemplo n.º 3
1
    $type = 'annotation';
}
$likes_total = $OssnLikes->CountLikes($comment->id, $type);
$datalikes = '';
if ($likes_total > 0) {
    $datalikes = $likes_total;
    $likes_total = '<span class="dot-likes">.</span><div class="ossn-like-icon"></div>' . $likes_total;
}
?>
<div class="comments-item" id="comments-item-<?php 
echo $comment->id;
?>
">
    <div class="ossn-comment-menu" onclick="Ossn.CommentMenu(this);">
        <?php 
echo ossn_view_menu('comments', 'comments/menu/comments');
?>
    </div>
    <div class="poster-image">
        <img src="<?php 
echo $user->iconURL()->smaller;
?>
"/>
    </div>
    <div class="comment-text">
        <p>
            <?php 
echo ossn_plugin_view('output/url', array('href' => $user->profileURL(), 'text' => $user->fullname, 'class' => 'owner-link'));
if ($comment->type == 'comments:entity') {
    echo ' ' . $comment->getParam('comments:entity');
} elseif ($comment->type == 'comments:post') {
Exemplo n.º 4
0
       </script>   
    
</head>
<body>
   <div class="ossn-header">
      <div class="inner">
         <div class="logo-admin"></div>
      </div>
   </div>
 <?php 
if (ossn_isAdminLoggedin()) {
    ?>
  
   <div class="ossn-admin-topmenu">
     <?php 
    echo ossn_view_menu('topbar_admin');
    ?>
   </div>
 <?php 
}
?>
   <div class="ossn-admin-body">
   <?php 
echo $contents;
?>
   </div>
 <div class="ossn-admin-footer"> 
  <div class="copyrights">
  <?php 
echo ossn_print('copyright');
?>
Exemplo n.º 5
0
?>

        <div class="header-bottom">
            <div class="group-name">
                <a href="<?php 
echo ossn_group_url($params['group']->guid);
?>
"><?php 
echo $params['group']->title;
?>
</a>
            </div>
            <div id="group-header-menu" class="group-header-menu">
                <ul>
                    <?php 
echo ossn_view_menu('groupheader');
?>
                </ul>
            </div>
            <div class="groups-buttons">
                <?php 
if ($params['group']->owner_guid !== ossn_loggedin_user()->guid) {
    if ($params['group']->isMember(NULL, ossn_loggedin_user()->guid)) {
        $ismember = 1;
        ?>
                        <a href="<?php 
        echo ossn_site_url("action/group/member/cancel?group={$params['group']->guid}", true);
        ?>
"
                           class='button-grey'>
                            <?php 
Exemplo n.º 6
0
function search_menu_handler($hook, $type, $return)
{
    $return[] = ossn_view_menu('search');
    return $return;
}
Exemplo n.º 7
0
    ?>
"/>

            <?php 
}
?>
        </div>
    </div>
    <?php 
if ($params['ismember'] === 1) {
    ?>
    <div class="comments-likes">
         <div class="menu-likes-comments-share">
	    	<div class="like_share comments-like-comment-links">
            	<?php 
    echo ossn_view_menu('postextra', 'wall/menus/postextra');
    ?>
            </div>
        </div>        
        <?php 
    if (ossn_is_hook('post', 'likes')) {
        echo ossn_call_hook('post', 'likes', $params['post']);
    }
    ?>
        <div class="comments-item" style="border-bottom:1px solid #ddd;">
            <?php 
    if (ossn_is_hook('post', 'comments')) {
        echo ossn_call_hook('post', 'comments', $params['post']);
    }
    ?>
        </div>
Exemplo n.º 8
0
        ?>
" id="profile-message"
                       data-guid='<?php 
        echo $user->guid;
        ?>
' class='button-grey'>
                        <?php 
        echo ossn_print('message');
        ?>
</a>
                    <a href="javascript::;" class='button-grey' id="profile-extra-menu">
                        <span>...</span>
                    </a>
                    <div class="ossn-profile-extra-menu">
                        <?php 
        echo ossn_view_menu('profile_extramenu', 'profile/menus/extra');
        ?>
                    </div>
                <?php 
    }
}
?>
        </div>
        <div id="cover-menu" class="profile-menu">
            <a href="javascript::;" onclick="Ossn.repositionCOVER();"
               class='button-grey'><?php 
echo ossn_print('save:position');
?>
</a>
        </div>
    </div>
Exemplo n.º 9
0
				<span><a href="<?php 
echo ossn_site_url();
?>
"><?php 
echo ossn_site_settings('site_name');
?>
</a></span>
			</div>
			<div class="col-md-3 text-right right-side">
				<div class="topbar-menu-right">
					<li class="ossn-topbar-dropdown-menu">
						<div class="dropdown">
						<?php 
if (ossn_isLoggedin()) {
    echo ossn_plugin_view('output/url', array('role' => 'button', 'data-toggle' => 'dropdown', 'data-target' => '#', 'text' => '<i class="fa fa-sort-desc"></i>'));
    echo ossn_view_menu('topbar_dropdown');
}
?>
						</div>
					</li>                
					<?php 
if (ossn_isLoggedin()) {
    echo ossn_plugin_view('notifications/page/topbar');
}
?>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- ./ ossn topbar -->
Exemplo n.º 10
0
/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
ossn_trigger_callback('entity', 'load:comment:share:like', $params);
?>
<div class="comments-likes ossn-photos-comments" style="width:525px;">
	<div class="menu-likes-comments-share">
	    	<div class="like_share comments-like-comment-links">
            	<?php 
echo ossn_view_menu('entityextra');
?>
            </div>
	</div>     
 	<?php 
if (ossn_is_hook('post', 'likes:entity')) {
    $entity['entity_guid'] = $params['entity']->guid;
    echo ossn_call_hook('post', 'likes:entity', $entity);
}
?>
    <?php 
if (ossn_is_hook('post', 'comments:entity')) {
    $entity['entity_guid'] = $params['entity']->guid;
    echo ossn_call_hook('post', 'comments:entity', $entity);
}
?>
Exemplo n.º 11
0
    $type = 'annotation';
}
$likes_total = $OssnLikes->CountLikes($comment->id, $type);
$datalikes = '';
if ($likes_total > 0) {
    $datalikes = $likes_total;
    $likes_total = '<span class="dot-likes">.</span><div class="ossn-like-icon"></div>' . $likes_total;
}
?>
<div class="comments-item" id="comments-item-<?php 
echo $comment->id;
?>
">
    <div class="ossn-comment-menu" onclick="Ossn.CommentMenu(this);">
        <?php 
echo ossn_view_menu('comments', 'components/OssnComments/menu/comments');
?>
    </div>
    <div class="poster-image">
        <img src="<?php 
echo $user->iconURL()->smaller;
?>
"/>
    </div>
    <div class="comment-text">
        <p>
            <?php 
echo ossn_view_template('output/url', array('href' => $user->profileURL(), 'text' => $user->fullname, 'class' => 'owner-link'));
if ($comment->type == 'comments:entity') {
    echo ' ' . $comment->getParam('comments:entity');
} elseif ($comment->type == 'comments:post') {
Exemplo n.º 12
0
        ?>
" id="profile-message"
                       data-guid='<?php 
        echo $user->guid;
        ?>
' class='button-grey'>
                        <?php 
        echo ossn_print('message');
        ?>
</a>
                    <a href="javascript::;" class='button-grey' id="profile-extra-menu">
                        <span>...</span>
                    </a>
                    <div class="ossn-profile-extra-menu">
                        <?php 
        echo ossn_view_menu('profile_extramenu', 'components/OssnProfile/menus/extra');
        ?>
                    </div>
                <?php 
    }
}
?>
        </div>
        <div id="cover-menu" class="profile-menu">
            <a href="javascript::;" onclick="Ossn.repositionCOVER();"
               class='button-grey'><?php 
echo ossn_print('save:position');
?>
</a>
        </div>
    </div>