function ActionSharePopup($iPostId) { $iPostId = (int) $iPostId; if ($iPostId) { $sViewingPostUri = $this->_oDb->getPostUriByID($iPostId); $aViewingPost = array('Permalink' => $sViewingPostUri, 'Link' => $this->{$iPostId}); $sViewingPostLink = $this->genBlogLink('show_member_post', $aUser, '', $aViewingPost); $sEntryUrl = $this->genBlogLink('show_member_post', $aUser, '', $aViewingPost, '', true); require_once BX_DIRECTORY_PATH_INC . 'shared_sites.inc.php'; header('Content-type:text/html;charset=utf-8'); echo getSitesHtml($sEntryUrl, _t('_Share')); } exit; }
function actionSharePopup($iEntry) { header('Content-type:text/html;charset=utf-8'); $sUri = $this->_oConfig->getUri(); $aEntry = $this->_oDb->getEntries(array('sample_type' => 'id', 'id' => (int) $iEntry)); if (!$aEntry) { echo MsgBox(_t('_' . $sUri . '_msg_no_results')); exit; } $sEntryUrl = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aEntry['uri']; require_once BX_DIRECTORY_PATH_INC . "shared_sites.inc.php"; echo getSitesHtml($sEntryUrl); exit; }
function actionSharePopup($iEntryId) { header('Content-type:text/html;charset=utf-8'); $iEntryId = (int) $iEntryId; if (!($aDataEntry = $this->_oDb->getAdInfo($iEntryId))) { echo MsgBox(_t('_Empty')); exit; } $sEntryUrl = $this->genUrl($iEntryId, $aDataEntry['EntryUri'], 'entry'); require_once BX_DIRECTORY_PATH_INC . "shared_sites.inc.php"; echo getSitesHtml($sEntryUrl); exit; }
function _actionSharePopup($iEntryId, $sTitle, $bAddTempleateExt = false) { header('Content-type:text/html;charset=utf-8'); $iEntryId = (int) $iEntryId; if (!($aDataEntry = $this->_oDb->getEntryByIdAndOwner($iEntryId, 0, true))) { echo MsgBox(_t('_Empty')); exit; } $sEntryUrl = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aDataEntry[$this->_oDb->_sFieldUri]; require_once BX_DIRECTORY_PATH_INC . "shared_sites.inc.php"; echo getSitesHtml($sEntryUrl, $sTitle); exit; }