Exemplo n.º 1
0
<?php

// no direct access
defined('_JEXEC') or die;
JLoader::register('MvSocialButtonsHelper', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'helper.php');
$urlPath = JURI::base() . "modules/mod_mvsocialbuttons/";
$moduleClassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
$doc = JFactory::getDocument();
/** $doc JDocumentHTML **/
// Loading style.css
if ($params->get("loadCss")) {
    $doc->addStyleSheet($urlPath . "style.css");
}
$link = JURI::getInstance()->toString();
$title = $doc->getTitle();
$title = rawurlencode($title);
$link = rawurlencode($link);
// Short URL service
if ($params->get("shortUrlService")) {
    $link = MvSocialButtonsHelper::getShortUrl($link, $params);
}
$stylePath = $urlPath . "images/" . $params->get("icons_package");
require JModuleHelper::getLayoutPath('mod_mvsocialbuttons', $params->get('layout', 'default'));
Exemplo n.º 2
0
if ($params->get("displayLinkedIn")) {
    echo MvSocialButtonsHelper::getLinkedInButton($title, $link, $stylePath);
}
if ($params->get("displayBobrdobr")) {
    echo MvSocialButtonsHelper::getBobrdobrButton($title, $link, $stylePath);
}
if ($params->get("displayLiveinternet")) {
    echo MvSocialButtonsHelper::getLiveinternetButton($title, $link, $stylePath);
}
if ($params->get("displayLivejournal")) {
    echo MvSocialButtonsHelper::getLivejournalButton($title, $link, $stylePath);
}
if ($params->get("displayMoymir")) {
    echo MvSocialButtonsHelper::getMoymirButton($title, $link, $stylePath);
}
if ($params->get("displayOdnoklassniki")) {
    echo MvSocialButtonsHelper::getOdnoklassnikiButton($title, $link, $stylePath);
}
if ($params->get("displayVkcom")) {
    echo MvSocialButtonsHelper::getVkcomButton($title, $link, $stylePath);
}
if ($params->get("displayYaru")) {
    echo MvSocialButtonsHelper::getYaruButton($title, $link, $stylePath);
}
?>
        <?php 
echo MvSocialButtonsHelper::getExtraButtons($title, $link, $params);
?>
        </div>
   </div>
</div>