Version Notes
1.1.0
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | VkShare_button |
| Version | 1.1.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.1.0
app/code/community/Magazento/VkButton/Block/Info.php
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class Magazento_VkButton_Block_Info extends Mage_Adminhtml_Block_System_Config_Form_Fieldset {
|
| 4 |
+
|
| 5 |
+
public function render(Varien_Data_Form_Element_Abstract $element) {
|
| 6 |
+
|
| 7 |
+
$html = $this->_getHeaderHtml($element);
|
| 8 |
+
|
| 9 |
+
$html.= $this->_getFieldHtml($element);
|
| 10 |
+
|
| 11 |
+
$html .= $this->_getFooterHtml($element);
|
| 12 |
+
|
| 13 |
+
return $html;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
protected function _getFieldHtml($fieldset) {
|
| 17 |
+
$content = 'This extension is developed by <a href="http://Magazento.com/" target="_blank">Magazento.com</a></br>';
|
| 18 |
+
$content.= 'Magento Store Setup, modules,data migration,templates, upgrades and much more!';
|
| 19 |
+
return $content;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
}
|
app/code/community/Magazento/VkButton/etc/system.xml
CHANGED
|
@@ -63,6 +63,15 @@
|
|
| 63 |
</coners>
|
| 64 |
</fields>
|
| 65 |
</options>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
</groups>
|
| 67 |
</vkbutton>
|
| 68 |
</sections>
|
| 63 |
</coners>
|
| 64 |
</fields>
|
| 65 |
</options>
|
| 66 |
+
<info translate="label">
|
| 67 |
+
<label>About</label>
|
| 68 |
+
<frontend_type>text</frontend_type>
|
| 69 |
+
<frontend_model>vkbutton/info</frontend_model>
|
| 70 |
+
<sort_order>50</sort_order>
|
| 71 |
+
<show_in_default>1</show_in_default>
|
| 72 |
+
<show_in_website>1</show_in_website>
|
| 73 |
+
<show_in_store>1</show_in_store>
|
| 74 |
+
</info>
|
| 75 |
</groups>
|
| 76 |
</vkbutton>
|
| 77 |
</sections>
|
app/design/frontend/default/default/template/magazento/vkbutton/breadcrumbs.phtml
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
-
<script type="text/javascript" src="http://vkontakte.ru/js/api/share.js?10" charset="windows-1251"></script>
|
| 2 |
-
|
| 3 |
<?php $vk_enable=Mage::getStoreConfig('vkbutton/options/enable'); ?>
|
| 4 |
<?php $vk_coners= Mage::getStoreConfig('vkbutton/options/coners'); ?>
|
| 5 |
<?php $vk_type = Mage::getStoreConfig('vkbutton/options/type'); ?>
|
| 6 |
<?php $vk_text = Mage::getStoreConfig('vkbutton/options/text'); ?>
|
| 7 |
|
| 8 |
-
<? $vk_button="";?>
|
| 9 |
-
<?
|
| 10 |
|
| 11 |
$vk_button['button']='<script type="text/javascript"><!--
|
| 12 |
document.write(VK.Share.button(false,{type: "'.$vk_coners.'", text: "'.$vk_text.'"}));
|
|
@@ -26,42 +24,38 @@ $vk_button['icon']='<script type="text/javascript"><!--
|
|
| 26 |
|
| 27 |
?>
|
| 28 |
|
| 29 |
-
|
| 30 |
-
<
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
<td class="last">
|
| 41 |
-
<?php if ($crumbs && is_array($crumbs)): ?>
|
| 42 |
-
<div class="breadcrumbs">
|
| 43 |
-
<ul>
|
| 44 |
-
<?php foreach ($crumbs as $_crumbName => $_crumbInfo): ?>
|
| 45 |
-
<li class="<?php echo $_crumbName ?>">
|
| 46 |
-
<?php if ($_crumbInfo['link']): ?>
|
| 47 |
-
<a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->htmlEscape($_crumbInfo['title']) ?>"><?php echo $this->htmlEscape($_crumbInfo['label']) ?></a>
|
| 48 |
-
<?php elseif ($_crumbInfo['last']): ?>
|
| 49 |
-
<strong><?php echo $this->htmlEscape($_crumbInfo['label']) ?></strong>
|
| 50 |
-
<?php else: ?>
|
| 51 |
-
<?php echo $this->htmlEscape($_crumbInfo['label']) ?>
|
| 52 |
-
<?php endif; ?>
|
| 53 |
-
<?php if (!$_crumbInfo['last']): ?>
|
| 54 |
-
<span>/ </span>
|
| 55 |
-
<?php endif; ?>
|
| 56 |
-
</li>
|
| 57 |
-
<?php endforeach; ?>
|
| 58 |
-
</ul>
|
| 59 |
-
</div>
|
| 60 |
-
<?php endif; ?>
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
</td>
|
| 64 |
-
</tr>
|
| 65 |
-
</tbody>
|
| 66 |
</table>
|
| 67 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<?php $vk_enable=Mage::getStoreConfig('vkbutton/options/enable'); ?>
|
| 2 |
<?php $vk_coners= Mage::getStoreConfig('vkbutton/options/coners'); ?>
|
| 3 |
<?php $vk_type = Mage::getStoreConfig('vkbutton/options/type'); ?>
|
| 4 |
<?php $vk_text = Mage::getStoreConfig('vkbutton/options/text'); ?>
|
| 5 |
|
| 6 |
+
<?php $vk_button="";?>
|
| 7 |
+
<?php
|
| 8 |
|
| 9 |
$vk_button['button']='<script type="text/javascript"><!--
|
| 10 |
document.write(VK.Share.button(false,{type: "'.$vk_coners.'", text: "'.$vk_text.'"}));
|
| 24 |
|
| 25 |
?>
|
| 26 |
|
| 27 |
+
<? if ($vk_enable) { ?>
|
| 28 |
+
<script type="text/javascript" src="http://vkontakte.ru/js/api/share.js?10" charset="windows-1251"></script>
|
| 29 |
+
<div class="breadcrumbs-table">
|
| 30 |
+
<table>
|
| 31 |
+
<tr class="first last odd">
|
| 32 |
+
<td>
|
| 33 |
+
<div class="vkshare">
|
| 34 |
+
<? echo $vk_button[$vk_type]; ?>
|
| 35 |
+
</div>
|
| 36 |
+
</td>
|
| 37 |
+
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
</table>
|
| 39 |
+
</div>
|
| 40 |
+
<? } ?>
|
| 41 |
+
|
| 42 |
+
<?php if ($crumbs && is_array($crumbs)): ?>
|
| 43 |
+
<div class="breadcrumbs">
|
| 44 |
+
<ul>
|
| 45 |
+
<?php foreach ($crumbs as $_crumbName => $_crumbInfo): ?>
|
| 46 |
+
<li class="<?php echo $_crumbName ?>">
|
| 47 |
+
<?php if ($_crumbInfo['link']): ?>
|
| 48 |
+
<a href="<?php echo $_crumbInfo['link'] ?>" title="<?php echo $this->htmlEscape($_crumbInfo['title']) ?>"><?php echo $this->htmlEscape($_crumbInfo['label']) ?></a>
|
| 49 |
+
<?php elseif ($_crumbInfo['last']): ?>
|
| 50 |
+
<strong><?php echo $this->htmlEscape($_crumbInfo['label']) ?></strong>
|
| 51 |
+
<?php else: ?>
|
| 52 |
+
<?php echo $this->htmlEscape($_crumbInfo['label']) ?>
|
| 53 |
+
<?php endif; ?>
|
| 54 |
+
<?php if (!$_crumbInfo['last']): ?>
|
| 55 |
+
<span>/ </span>
|
| 56 |
+
<?php endif; ?>
|
| 57 |
+
</li>
|
| 58 |
+
<?php endforeach; ?>
|
| 59 |
+
</ul>
|
| 60 |
+
</div>
|
| 61 |
+
<?php endif; ?>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>VkShare_button</name>
|
| 4 |
-
<version>1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>VkShare_button</summary>
|
| 10 |
<description>VkShare_button</description>
|
| 11 |
-
<notes>1.
|
| 12 |
<authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
|
| 13 |
-
<date>2011-01-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="vkbutton.css" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>VkShare_button</name>
|
| 4 |
+
<version>1.1.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>VkShare_button</summary>
|
| 10 |
<description>VkShare_button</description>
|
| 11 |
+
<notes>1.1.0</notes>
|
| 12 |
<authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
|
| 13 |
+
<date>2011-01-29</date>
|
| 14 |
+
<time>22:57:31</time>
|
| 15 |
+
<contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="vkbutton.css" hash="bb30ff7fa7846e8ae107c4260d0b5597"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_vkbutton.xml" hash="4de29e0ed5c6bad3ea1ceab6c112b4b0"/></dir><dir name="template"><dir name="magazento"><dir name="vkbutton"><file name="breadcrumbs.phtml" hash="f338ee1c4403d23850d2a08d06083a32"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="VkButton"><dir name="Block"><dir name="Html"><file name="Breadcrumbs.php" hash="7d90c1b45b11da29744755f8c88c562d"/></dir><file name="Info.php" hash="b987a9de6edba54ff8f714f77cffb856"/></dir><dir name="etc"><file name="config.xml" hash="52bc5894749fed5fcfe6146a11361e68"/><file name="system.xml" hash="e8e0093073ae479fc0eac6e457af50b6"/></dir><dir name="Helper"><file name="Data.php" hash="40665534086f99c2d7c88d0c6e9f6454"/></dir><dir name="Model"><dir name="Source"><file name="Coner.php" hash="a23f4b5221fd5a108514d3bc41cf0dbe"/><file name="Mode.php" hash="599c95aa76a49cb4c4bb750f2321ad41"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_VkButton.xml" hash="387f2ca68d6aeae21964755b955120b1"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
skin/frontend/default/default/css/vkbutton.css
CHANGED
|
@@ -3,11 +3,10 @@
|
|
| 3 |
padding-left: 0px;
|
| 4 |
}
|
| 5 |
.breadcrumbs-table{
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
/* width: auto;*/
|
| 9 |
}
|
| 10 |
-
|
| 11 |
.breadcrumbs {
|
| 12 |
float: left;
|
| 13 |
display: block;
|
|
@@ -16,4 +15,4 @@
|
|
| 16 |
margin: 0px;
|
| 17 |
padding-top: 9px;
|
| 18 |
padding-left: 2px;
|
| 19 |
-
}
|
| 3 |
padding-left: 0px;
|
| 4 |
}
|
| 5 |
.breadcrumbs-table{
|
| 6 |
+
float: left;
|
| 7 |
+
/* width: 100px;*/
|
|
|
|
| 8 |
}
|
| 9 |
+
/*
|
| 10 |
.breadcrumbs {
|
| 11 |
float: left;
|
| 12 |
display: block;
|
| 15 |
margin: 0px;
|
| 16 |
padding-top: 9px;
|
| 17 |
padding-left: 2px;
|
| 18 |
+
}*/
|
