mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-08-27 04:38:04 +00:00
Replace sharing buttons to copy to clipboard. Remove unnecessary files.
This commit is contained in:
@@ -178,17 +178,6 @@
|
||||
<p><?= L('this_is_graph_link')?> <br/>
|
||||
<input type="text" name="graphName" id="GraphName" onClick="this.select();">
|
||||
</p>
|
||||
<p><?= L('share_graph_description') ?></p>
|
||||
<? $sharePageURL = $_SERVER['SERVER_NAME'] . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);?>
|
||||
<ul class="share-buttons" id="ShareSavedGraph">
|
||||
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
|
||||
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $sharePageURL ?>?graph=XXXX&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
|
||||
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
|
||||
<li><a href="https://plus.google.com/share?url=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
|
||||
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $sharePageURL ?>?graph=XXXX&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
|
||||
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
|
||||
</ul>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
@@ -198,15 +187,6 @@
|
||||
<fieldset>
|
||||
<? $shareImagePageURL = $_SERVER['SERVER_NAME'] . "/";?>
|
||||
<p id="SaveImageLinks"><a href="http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank"><?= L('open_saved_image_browser')?></a> or <a href="http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" download><?= L('download_saved_image')?></a></p>
|
||||
<p><?= L('share_graph_description') ?></p>
|
||||
<ul class="share-buttons" id="ShareSavedImageGraph">
|
||||
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
|
||||
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
|
||||
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
|
||||
<li><a href="https://plus.google.com/share?url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
|
||||
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
|
||||
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
|
||||
</ul>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@@ -5,33 +5,4 @@
|
||||
|
||||
<h1><?= L('title_notg')?></h1>
|
||||
|
||||
<h2>Почему мы собираем средства</h2>
|
||||
<p><img src="<?= Root('i/image/cat.jpg')?>" alt="Поддержите граф онлайн" style="float:left; padding: 12px"> <?= L('text')?></p>
|
||||
|
||||
<div>
|
||||
<span ></span>
|
||||
</div>
|
||||
|
||||
<h2>Безопасная форма для отправки средств от Яндекса</h2>
|
||||
<div>
|
||||
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://money.yandex.ru/embed/donate.xml?account=41001394497131&quickpay=donate&payment-type-choice=on&mobile-payment-type-choice=on&default-sum=30&targets=%D0%9F%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D1%82%D0%B5+%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82+%D0%93%D1%80%D0%B0%D1%84+%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD.&target-visibility=on&project-name=&project-site=&button-text=01&successURL=" width="522" height="90"></iframe>
|
||||
</div>
|
||||
<!--
|
||||
<h2>Текущий прогресс</h2>
|
||||
<div class="ProgressBar" style="height:96px">
|
||||
<div class="ProgressBarFill" style="width:<?= intval($donates / $totalDonate * 100) ?>%;"></div>
|
||||
<span class="ProgressBarText" style="top:-90px"><p>Cбор средств для добавления новых алгоритмов.</p><p>Осталось собрать- <?= max($totalDonate - $donates, 0) ?> руб</p><p>Последний перевод - <?= $lastDonate ?> руб.</p></span>
|
||||
</div>
|
||||
-->
|
||||
<h2>Расскажите про нас</h2>
|
||||
<? $sharePageURL = $_SERVER['SERVER_NAME'] . "/donate";?>
|
||||
<ul class="share-buttons">
|
||||
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $sharePageURL ?>&text=<?= L('m_description') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
|
||||
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $sharePageURL ?>&t=<?= L('m_description') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
|
||||
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $sharePageURL ?>&text=<?= L('m_description') ?> http://<?= $sharePageURL ?>" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
|
||||
<li><a href="https://plus.google.com/share?url=http://<?= $sharePageURL ?>" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
|
||||
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $sharePageURL ?>&title=<?= L('m_description') ?>&summary=<?= L('m_description') ?> &source=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
|
||||
<li><a href="mailto:?subject=<?= L('m_description') ?>&body=http://<?= $sharePageURL ?>" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
|
||||
</ul>
|
||||
|
||||
<?php IncludeCom('main_tpl/page_btns')?>
|
||||
|
||||
+9
-22
@@ -483,22 +483,12 @@
|
||||
<form>
|
||||
<fieldset>
|
||||
<p><?= L('this_is_graph_link')?> <br/>
|
||||
<input type="text" name="graphName" id="GraphName" onClick="this.select();">
|
||||
<input type="text" name="graphName" id="GraphName" style="width:calc(100% - 40px); " onClick="this.select();">
|
||||
<button type="button" id="CopyGraphLink" class="btn btn-sm"><span class="bi bi-copy"></span></button>
|
||||
</p>
|
||||
<p><?= L('share_graph_description') ?></p>
|
||||
<? $sharePageURL = $_SERVER['SERVER_NAME'] . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);?>
|
||||
<ul class="share-buttons" id="ShareSavedGraph">
|
||||
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
|
||||
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $sharePageURL ?>?graph=XXXX&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
|
||||
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
|
||||
<li><a href="https://plus.google.com/share?url=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
|
||||
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $sharePageURL ?>?graph=XXXX&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
|
||||
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
|
||||
</ul>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="saveImageDialog">
|
||||
<form>
|
||||
@@ -512,15 +502,12 @@
|
||||
<p class="hidden-phone">
|
||||
<a href="<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" class="hidden-phone showShareImage" id="showSavedImageGraphRef"><img src="<?= $protocol . $shareImagePageURL ?>/tmp/saved/XX/XXXXX.png" id="showSavedImageGraph" class="showShareImage"></a>
|
||||
</p>
|
||||
<p><?= L('share_graph_description') ?></p>
|
||||
<ul class="share-buttons" id="ShareSavedImageGraph">
|
||||
<li><a href="http://vkontakte.ru/share.php?url=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
|
||||
<li><a href="https://www.facebook.com/sharer/sharer.php?u=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
|
||||
<li><a href="https://twitter.com/intent/tweet?source=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?> <?= $protocol . $sharePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
|
||||
<li><a href="https://plus.google.com/share?url=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
|
||||
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
|
||||
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=<?= $protocol . $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
|
||||
</ul>
|
||||
<div id="ShareSavedImageGraph">
|
||||
<p><?= L('this_is_graph_image_link')?><br/>
|
||||
<input type="text" name="graphImageName" id="GraphImageName" style="display:inline-block; width:calc(100% - 42px); box-sizing:border-box; vertical-align:middle;" onClick="this.select();">
|
||||
<button type="button" id="CopyGraphImageLink" class="btn btn-sm" style="display:inline-block; vertical-align:middle; margin-left:4px;"><span class="bi bi-copy"></span></button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
+1
-18
@@ -1,21 +1,4 @@
|
||||
|
||||
<h1><?= L('head_no_tags')?></h1>
|
||||
<p><?= L('text')?></p>
|
||||
|
||||
<div style="align:center">
|
||||
<? if (L('current_language') == "ru"): ?>
|
||||
<script type="text/javascript" src="https://vk.com/js/api/openapi.js?168"></script>
|
||||
<!-- VK Widget -->
|
||||
<div id="vk_groups"></div>
|
||||
<script type="text/javascript">
|
||||
VK.Widgets.Group("vk_groups", {mode: 4, wide: 1, width: "600", height: "400"}, 153431694);
|
||||
</script>
|
||||
<? else: ?>
|
||||
<div id="fb-root"></div>
|
||||
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/ru_RU/sdk.js#xfbml=1&version=v8.0" nonce="pfXO5s37"></script>
|
||||
|
||||
<div class="fb-page" data-href="https://www.facebook.com/Graphonline-2230709670325388/" data-tabs="timeline" data-width="600" data-height="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/Graphonline-2230709670325388/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/Graphonline-2230709670325388/">Graphonline</a></blockquote></div>
|
||||
<? endif; ?>
|
||||
|
||||
</div>
|
||||
<p></p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user