$name=" ";
						$aid=Factory::getApplication()->input->get("id");
						$db =& Factory::getDBO();
						$db->setQuery("SELECT title FROM #__content WHERE id=$aid");
						$name=$db->loadResult();
						$invite_url=urlencode(base64_encode('index.php?option=com_content&view=article&layout=default&id=' . $event->aid));$link = "index.php?option=com_invitex&view=invites";
			require_once JPATH_SITE . '/components/com_invitex/helper.php';$this->invhelperObj = new cominvitexHelper();
			$itemid =$this->invhelperObj->getItemId($link);$link .= "&Itemid=".$itemid;
			$link = Route::_($link);$link .= strpos($link,'?')?"&catch_act=":"?catch_act=";$link.="&invite_type=6&invite_anywhere=1&invite_url=".$invite_url."&tag=[name=".$name."]";&lt;a href=&quot;&lt;?php echo $link ;?&gt;&quot;&gt;Invite Anywhere&lt;/a&gt;