Esempio n. 1
0
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
if (isset($view)) {
    addView($title, $view);
}
if (isset($type)) {
    $title[] = $type;
    shRemoveFromGETVarsList('type');
}
if (isset($filter)) {
    $title[] = $filter;
    shRemoveFromGETVarsList('filter');
}
if (isset($listId)) {
    $title[] = getListAlias($listId);
    shRemoveFromGETVarsList('listId');
}
if (isset($appId)) {
    $title[] = getAppAlias($appId);
    shRemoveFromGETVarsList('appId');
}
if (isset($filterid)) {
    $title[] = $filterid;
    shRemoveFromGETVarsList('filterid');
}
if (isset($groupId)) {
    $title[] = getGroupAlias($groupId);
    shRemoveFromGETVarsList('groupId');
}
Esempio n. 2
0
    $title[] = getUserAlias($userid);
    shRemoveFromGETVarsList('userid');
}
// Add the view to the list of titles
if (isset($view)) {
    addView($title, $view);
}
// Determine which type does the photo belong to
if (isset($type)) {
    $title[] = JString::ucwords(JText::_('COM_EASYSOCIAL_SH404_PHOTOS_TYPE_' . strtoupper($type)));
    if (isset($uid)) {
        if ($type == SOCIAL_TYPE_USER) {
            $alias = getUserAlias($uid);
        }
        if ($type == SOCIAL_TYPE_GROUP) {
            $alias = getGroupAlias($uid);
        }
        if ($type == SOCIAL_TYPE_EVENT) {
            $alias = getEventAlias($uid);
        }
        $title[] = $alias;
        shRemoveFromGETVarsList('uid');
    }
    shRemoveFromGETVarsList('type');
}
// For photos, we need to get the beautiful title
if (isset($id)) {
    $photo = FD::table('Photo');
    $photo->load((int) $id);
    // Remove known extensions from title
    $extensions = array('jpg', 'png', 'gif');
Esempio n. 3
0
* EasySocial is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
if (isset($view)) {
    addView($title, $view);
}
if (isset($layout)) {
    addLayout($title, $view, $layout);
}
// Determine how is the user's current id being set.
if (isset($id) && isset($view) && $view == 'groups' && isset($layout) && $layout == 'item') {
    $title[] = getGroupAlias($id);
    shRemoveFromGETVarsList('id');
}
if (isset($categoryid)) {
    $title[] = getGroupCategoryAlias($categoryid);
    shRemoveFromGETVarsList('categoryid');
}
// Get the category alias
if (isset($id) && isset($view) && $view == 'groups' && isset($layout) && $layout == 'category') {
    $category = FD::table('GroupCategory');
    $category->load($id);
    $alias = $category->getAlias();
    $alias = str_ireplace(':', '-', $alias);
    $title[] = $alias;
    shRemoveFromGETVarsList('id');
}