Skip to content

Commit

Permalink
add social
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Oct 6, 2016
1 parent 48e8165 commit 7b58286
Show file tree
Hide file tree
Showing 21 changed files with 882 additions and 15 deletions.
46 changes: 46 additions & 0 deletions assets/css/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Intro to JavaScript amCharts</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="images/style.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<p><img src="images/logo.png" /></p>
<hr>
<h2>A very short tutorial for those who don't like reading</h2>
<ul>
<li>Copy <b>amcharts</b> folder to your working dir.</li>
<li>Go to <i>samples</i> folder and open one of HTML files in your browser - you should see a chart.</li>
<li>View source of the page or open this HTML file with text editor.</li>
<li>Try to make some changes.</li>
<li>Copy/Paste everything to your html/php/asp/etc file and fix paths to scripts</li>
<li>Open your file in browser - you should see the same chart.</li>
<li>Now it's time to read all the tutorials and check the examples :)</li>
</ul>
<hr>
<h2>Documentation</h2>
<ul>
<li><a href="http://docs.amcharts.com/3/javascriptcharts/">JavaScript reference</a></li>
</ul>
<hr>
<h2>Live Editor</h2>
<ul>
<li>It's a lot esier to configure your charts using our <a href="http://live.amcharts.com/">Live Editor</a>. Even if you are not programmer, you can create stunning charts!</li>
</ul>
<hr>
<h2>Tutorials</h2>
<ul>
<li>For the latest list of tutorials, <a href="http://www.amcharts.com/tutorials/">visit tutorials page</a>.</li>
</ul>
<hr>
<h2>Examples</h2>
We think that the best way to start learning amCharts (and any other similar software) is to study examples. Check samples folder - there are plenty of them! In case you prefer working in jsFiddle, visit our web site - all samples have a link to jsFiddle where you can edit and view the result instantly.
<h2>Support</h2>
In case you have a question, go to our <a href="http://www.amcharts.com/support/">support section</a>. You'll find a lot of information there, and if you won't - you can always ask.
<hr>
<h2>Good luck!</h2>
<hr>
</body>
</html>
150 changes: 150 additions & 0 deletions assets/css/social.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
.seolink a {display: inline-block;}

.seolink img {
margin-left: 25px;
}

span.textseolik {
font-size: 6em;
display: inline-block;
position: relative;
line-height: 0.8;
margin-left: 70%;
color: #5f8ecc;
font-family: Tahoma;
}

.sbup {
background-color: #f8f8f8;
}

.sbup img {
margin-left: 15%;
box-shadow: 0px 0px 5px #d27f5e;
}

.prcy img {
margin-top: 3px !important;
margin-left: -5px;
}

.prcy {
background-color: #435173;
color: #fff;
text-indent: 3%;
}

.vkcount, .gpluscount, .ytcount {
font-size: 5em;
line-height: 0.8;
}

.fbcount {
font-size: 2.2em; line-height: 0.8;
}

.vkinfo, .gplusinfo, .fbinfo, .ytinfo {
display: inline-block;
font-size: 0.7em;
position: absolute;
left: -135px;
margin-top: 25px !important;
}

.socialblocks {
display: block;
font-size: 1.3em;
font-family: Tahoma;
}

.twitdiv:not(:last-child) {
padding-right: 20px !important;
}

.themes, .photo, .video, .users, .links, .divtwitext {font-weight: bold;}

.socialblocks > div {
position: relative;
display: inline-block;
width: 30%;
margin: 3px 0px;
padding: 22px;
height: 100px;
overflow: auto;
box-shadow: 0px 2px 10px #ccc;
}
.socialblocks img {
margin-top: -5px;
height: 96px;
position: absolute;
}
.okcount div, .twitterblock .twitdiv {
display: table-cell;
line-height: 1.8;
padding: 0px 10px 0px 0px;
text-align: center;
}

.gplusinfo {
left: 3px !important;
top: 85px;
}

.gplusinfoplus {
position: absolute;
right: 120px;
font-size: 0.7em;
top: 100px;
}

.helpbtn {
position: absolute;
bottom: 10px;
right: 10px;
}
.socialblocks > div > div {display: inline-block; margin-left: 25%;}
.socialblocks > div > div + div {display: block; margin-top: 10px;}

.gpluscountplus {
position: absolute;
right: 100px;
font-size: 5em;
top: 36px;
}

@media (max-width: 1600px) {


.vkinfo, .gplusinfo, .fbinfo, .ytinfo {
left: -110px !important;
}

.socialblocks > div {
width: 29%;
}

.socialblocks > div > div {
margin-left: 30%;
}

.okcount div, .twitterblock .twitdiv {
display: flex !important;
line-height: 1.1 !important;
}

.themes, .photo, .video, .users, .links, .divtwitext {
margin-right: 10px !important;
}

.prcy img, .sbup img {
width: 70% !important;
}

span.textseolik {
font-size: 4.5em !important;
line-height: 1 !important;
margin-left: 70%;
}


}
46 changes: 46 additions & 0 deletions assets/img/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Intro to JavaScript amCharts</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="images/style.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<p><img src="images/logo.png" /></p>
<hr>
<h2>A very short tutorial for those who don't like reading</h2>
<ul>
<li>Copy <b>amcharts</b> folder to your working dir.</li>
<li>Go to <i>samples</i> folder and open one of HTML files in your browser - you should see a chart.</li>
<li>View source of the page or open this HTML file with text editor.</li>
<li>Try to make some changes.</li>
<li>Copy/Paste everything to your html/php/asp/etc file and fix paths to scripts</li>
<li>Open your file in browser - you should see the same chart.</li>
<li>Now it's time to read all the tutorials and check the examples :)</li>
</ul>
<hr>
<h2>Documentation</h2>
<ul>
<li><a href="http://docs.amcharts.com/3/javascriptcharts/">JavaScript reference</a></li>
</ul>
<hr>
<h2>Live Editor</h2>
<ul>
<li>It's a lot esier to configure your charts using our <a href="http://live.amcharts.com/">Live Editor</a>. Even if you are not programmer, you can create stunning charts!</li>
</ul>
<hr>
<h2>Tutorials</h2>
<ul>
<li>For the latest list of tutorials, <a href="http://www.amcharts.com/tutorials/">visit tutorials page</a>.</li>
</ul>
<hr>
<h2>Examples</h2>
We think that the best way to start learning amCharts (and any other similar software) is to study examples. Check samples folder - there are plenty of them! In case you prefer working in jsFiddle, visit our web site - all samples have a link to jsFiddle where you can edit and view the result instantly.
<h2>Support</h2>
In case you have a question, go to our <a href="http://www.amcharts.com/support/">support section</a>. You'll find a lot of information there, and if you won't - you can always ask.
<hr>
<h2>Good luck!</h2>
<hr>
</body>
</html>
14 changes: 14 additions & 0 deletions assets/img/logo-prcy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/sbup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/seolik.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions assets/js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Intro to JavaScript amCharts</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="images/style.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<p><img src="images/logo.png" /></p>
<hr>
<h2>A very short tutorial for those who don't like reading</h2>
<ul>
<li>Copy <b>amcharts</b> folder to your working dir.</li>
<li>Go to <i>samples</i> folder and open one of HTML files in your browser - you should see a chart.</li>
<li>View source of the page or open this HTML file with text editor.</li>
<li>Try to make some changes.</li>
<li>Copy/Paste everything to your html/php/asp/etc file and fix paths to scripts</li>
<li>Open your file in browser - you should see the same chart.</li>
<li>Now it's time to read all the tutorials and check the examples :)</li>
</ul>
<hr>
<h2>Documentation</h2>
<ul>
<li><a href="http://docs.amcharts.com/3/javascriptcharts/">JavaScript reference</a></li>
</ul>
<hr>
<h2>Live Editor</h2>
<ul>
<li>It's a lot esier to configure your charts using our <a href="http://live.amcharts.com/">Live Editor</a>. Even if you are not programmer, you can create stunning charts!</li>
</ul>
<hr>
<h2>Tutorials</h2>
<ul>
<li>For the latest list of tutorials, <a href="http://www.amcharts.com/tutorials/">visit tutorials page</a>.</li>
</ul>
<hr>
<h2>Examples</h2>
We think that the best way to start learning amCharts (and any other similar software) is to study examples. Check samples folder - there are plenty of them! In case you prefer working in jsFiddle, visit our web site - all samples have a link to jsFiddle where you can edit and view the result instantly.
<h2>Support</h2>
In case you have a question, go to our <a href="http://www.amcharts.com/support/">support section</a>. You'll find a lot of information there, and if you won't - you can always ask.
<hr>
<h2>Good luck!</h2>
<hr>
</body>
</html>
43 changes: 43 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,49 @@
description="Для графика"
default=""/>
</fieldset>
<fieldset name="socialblock" label="Социальные сети">
<field
name="vksocialname"
type="text"
label="Адрес группы в VK"
description=""
default=""/>
<field
name="vk_ID_uids"
type="text"
label="ID группы в VK"
description=""
default=""/>
<field
name="fbsocialname"
type="text"
label="Адрес группы в FB"
description=""
default=""/>
<field
name="gplussocialname"
type="text"
label="Адрес группы в G+"
description=""
default=""/>
<field
name="oksocialname"
type="text"
label="Адрес страницы в OK"
description=""
default=""/>
<field
name="twittersocialname"
type="text"
label="Имя пользователя в twitter"
description="Для графика"
default=""/>
<field
name="youtubesocialname"
type="text"
label="Полная ссылка на ютуб канал"
default=""/>
</fieldset>
<fieldset name="disqus" label="Disqus" addfieldpath="administrator/components/com_myjbzoostat/elements">
<field
name="disqus_url"
Expand Down
7 changes: 7 additions & 0 deletions elements/paramsetc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
$fillbad = $params->countpageviewyambad;
$fillgood = $params->countpageviewyamgood;
$fillnorm = $params->countpageviewyamnorm;
$vksocialname= $params->vksocialname;
$vk_ID_uids= $params->vk_ID_uids;
$fbsocialname= $params->fbsocialname;
$gplussocialname= $params->gplussocialname;
$oksocialname= $params->oksocialname;
$twittersocialname= $params->twittersocialname;
$youtubesocialname= $params->youtubesocialname;

$httpClientj = JHttpFactory::getHttp();

Expand Down
12 changes: 11 additions & 1 deletion views/articles/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,25 @@ protected function _setToolBar()
if (JComponentHelper::isEnabled('com_zoo') == '1') { $bar->appendButton('Custom', $dhtml, 'list'); }



JToolBarHelper::divider();

$bar = JToolBar::getInstance('toolbar');
$title = JText::_('Disqus');
$dhtml = "<a href=\"/administrator/index.php?option=com_myjbzoostat&view=disqus\" class=\"btn btn-small\"><i class=\"icon-eye\" title=\"$title\"></i>$title</a>";
$dhtml = "<a href=\"/administrator/index.php?option=com_myjbzoostat&view=disqus\" class=\"btn btn-small\"><i class=\"icon-comments-2\" title=\"$title\"></i>$title</a>";
$bar->appendButton('Custom', $dhtml, 'list');

JToolBarHelper::divider();

$bar = JToolBar::getInstance('toolbar');
$title = JText::_('Социальные сети');
$dhtml = "<a href=\"/administrator/index.php?option=com_myjbzoostat&view=social\" class=\"btn btn-small\"><i class=\"icon-tree\" title=\"$title\"></i>$title</a>";
$bar->appendButton('Custom', $dhtml, 'list');

JToolBarHelper::preferences('com_myjbzoostat');



}

}
Loading

0 comments on commit 7b58286

Please sign in to comment.