%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 13.59.61.147 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/main.share/templates/.default/handlers/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); __IncludeLang(dirname(__FILE__)."/lang/".LANGUAGE_ID."/twitter.php"); $name = "twitter"; $title = GetMessage("BOOKMARK_HANDLER_TWITTER"); if ( false && is_array($arParams) && array_key_exists("SHORTEN_URL_LOGIN", $arParams) && trim($arParams["SHORTEN_URL_LOGIN"]) <> '' && array_key_exists("SHORTEN_URL_KEY", $arParams) && trim($arParams["SHORTEN_URL_KEY"]) <> '' ) { $icon_url_template = "<script>\n". "if (__function_exists('twitter_click_".$arResult["COUNTER"]."') == false) \n". "{\n". "function twitter_click_".$arResult["COUNTER"]."(longUrl) \n". "{ \n". "BX.loadScript('http://bit.ly/javascript-api.js?version=latest&login=".$arParams["SHORTEN_URL_LOGIN"]."&apiKey=".$arParams["SHORTEN_URL_KEY"]."',\n". "function () \n". "{\n". "BitlyClient.shorten(longUrl, '__get_shorten_url_twitter_".$arResult["COUNTER"]."');\n". "}\n". ");\n". "return false; \n". "} \n". "}\n". "function __get_shorten_url_twitter_".$arResult["COUNTER"]."(data) \n". "{\n". "var first_result;\n". "var shortUrl;\n". "for (var r in data.results) \n". "{\n". "first_result = data.results[r]; \n". "break;\n". "}\n". "if (first_result != null)\n". "{\n". "shortUrl = first_result.shortUrl.toString();\n". "}\n". "window.open('http://twitter.com/home/?status='+encodeURIComponent(shortUrl)+encodeURIComponent(' #PAGE_TITLE#'),'sharer','toolbar=0,status=0,width=726,height=436'); \n". "}\n". "</script>\n". "<a href=\"http://twitter.com/home/?status=#PAGE_URL#+#PAGE_TITLE_ORIG#\" onclick=\"return twitter_click_".$arResult["COUNTER"]."('#PAGE_URL#');\" target=\"_blank\" class=\"twitter\" title=\"".$title."\"></a>\n"; } else { $icon_url_template = "<script>\n". "if (__function_exists('twitter_click_".$arResult["COUNTER"]."') == false) \n". "{\n". "function twitter_click_".$arResult["COUNTER"]."(longUrl) \n". "{ \n". "window.open('http://twitter.com/home/?status='+encodeURIComponent(longUrl)+encodeURIComponent(' #PAGE_TITLE#'),'sharer','toolbar=0,status=0,width=726,height=436'); \n". "return false; \n". "} \n". "}\n". "</script>\n". "<a href=\"http://twitter.com/home/?status=#PAGE_URL#+#PAGE_TITLE_ORIG#\" onclick=\"return twitter_click_".$arResult["COUNTER"]."('#PAGE_URL#');\" target=\"_blank\" class=\"twitter\" title=\"".$title."\"></a>\n"; } $sort = 200; $charsBack = true; ?>