Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Floating Social Sidebar


Rekomendowane odpowiedzi

Opublikowano (edytowane)

Posiadam wtyczkę: Floating Social Sidebar

Jak mogę zmienić w nim kod aby móc np. dodać jeszcze drugi fanpage, bądź twitch z ikonkami takimi jak chcę?

<?xml version="1.0" encoding="UTF-8"?>
<plugin name="Floating Social Sidebar" version_long="10000" version_human="1.0.0" author="onlyME" website="http://ipsviet.com" update_check=""><hooks><hook type="S" class="\IPS\Theme\class_core_front_global"><![CDATA[//<?php

class hook289 extends _HOOK_CLASS_
{

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'globalTemplate' => 
  array (
    0 => 
    array (
      'selector' => '#ipsLayout_footer',
      'type' => 'add_after',
      'content' => '{{if settings.scsb_on == 1}}<script>$.contactButtons({
  effect  : "slide-on-scroll",
  buttons : {
	{{if settings.scsb_facebook}}"facebook": { class: "facebook", use: true, link: "{setting="scsb_facebook"}", extras: "target=_blank" },{{endif}}
    {{if settings.scsb_google}}"google":     { class: "gplus", use: true, link: "{setting="scsb_google"}", extras: "target=_blank" },{{endif}}
    {{if settings.scsb_linkedin}}"linkedin":   { class: "linkedin", use: true, link: "{setting="scsb_linkedin"}", extras: "target=_blank" },{{endif}}
	{{if settings.scsb_twitter}}"twitter":    { class: "twitter", use: true, icon: "twitter", link: "{setting="scsb_twitter"}", extras: "target=_blank" },{{endif}}
	{{if settings.scsb_youtube}}"youtube":  { class: "youtube", use: true, icon: "youtube", link: "{setting="scsb_youtube"}", extras: "target=_blank" },{{endif}}	
	{{if settings.scsb_pinterest}}"pinterest":  { class: "pinterest", use: true, icon: "pinterest", link: "{setting="scsb_pinterest"}", extras: "target=_blank" },{{endif}}

    {{if settings.scsb_contact}}"email": { class: "email separated", use: true, link: "{url="app=core&module=contact&controller=contact" seoTemplate="contact"}" },{{endif}}
  }
});</script>{{endif}}',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */




}]]></hook></hooks><settings><setting><key>scsb_on</key><default>1</default></setting><setting><key>scsb_facebook</key><default></default></setting><setting><key>scsb_google</key><default></default></setting><setting><key>scsb_linkedin</key><default></default></setting><setting><key>scsb_twitter</key><default></default></setting><setting><key>scsb_pinterest</key><default></default></setting><setting><key>scsb_contact</key><default></default></setting><setting><key>scsb_youtube</key><default></default></setting></settings><settingsCode><![CDATA[//<?php
$form->add( new \IPS\Helpers\Form\YesNo( 'scsb_on', \IPS\Settings::i()->scsb_on ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_facebook', \IPS\Settings::i()->scsb_facebook ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_google', \IPS\Settings::i()->scsb_google ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_linkedin', \IPS\Settings::i()->scsb_linkedin ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_twitter', \IPS\Settings::i()->scsb_twitter ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_youtube', \IPS\Settings::i()->scsb_youtube ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_pinterest', \IPS\Settings::i()->scsb_pinterest ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'scsb_contact', \IPS\Settings::i()->scsb_contact ) );

if ( $values = $form->values() )
{
	$form->saveAsSettings();
	return TRUE;
}

class hook289 extends _HOOK_CLASS_
{

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'globalTemplate' => 
  array (
    0 => 
    array (
      'selector' => '#ipsLayout_footer',
      'type' => 'add_after',
      'content' => '{{if settings.scsb_on == 1}}<script>$.contactButtons({
  effect  : "slide-on-scroll",
  buttons : {
	{{if settings.scsb_facebook}}"facebook": { class: "facebook", use: true, link: "{setting="scsb_facebook"}", extras: "target=_blank" },{{endif}}
    {{if settings.scsb_google}}"google":     { class: "gplus", use: true, link: "{setting="scsb_google"}", extras: "target=_blank" },{{endif}}
    {{if settings.scsb_linkedin}}"linkedin":   { class: "linkedin", use: true, link: "{setting="scsb_linkedin"}", extras: "target=_blank" },{{endif}}
	{{if settings.scsb_twitter}}"twitter":    { class: "twitter", use: true, icon: "twitter", link: "{setting="scsb_twitter"}", extras: "target=_blank" },{{endif}}
	{{if settings.scsb_youtube}}"youtube":  { class: "youtube", use: true, icon: "youtube", link: "{setting="scsb_youtube"}", extras: "target=_blank" },{{endif}}	
	{{if settings.scsb_pinterest}}"pinterest":  { class: "pinterest", use: true, icon: "pinterest", link: "{setting="scsb_pinterest"}", extras: "target=_blank" },{{endif}}

    {{if settings.scsb_contact}}"email": { class: "email separated", use: true, link: "{url="app=core&module=contact&controller=contact" seoTemplate="contact"}" },{{endif}}
  }
});</script>{{endif}}',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */




}]]></hook></hooks><settings><setting><key>scsb_on</key><default>1</default></setting><setting><key>scsb_facebook</key><default></default></setting><setting><key>scsb_google</key><default></default></setting><setting><key>scsb_linkedin</key><default></default></setting><setting><key>scsb_twitter</key><default></default></setting><setting><key>scsb_pinterest</key><default></default></setting><setting><key>scsb_contact</key><default></default></setting><setting><key>scsb_youtube</key><default></default></setting></settings><settingsCode><![CDATA[//<?php
$form->add( new \IPS\Helpers\Form\YesNo( 'scsb_on', \IPS\Settings::i()->scsb_on ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_facebook', \IPS\Settings::i()->scsb_facebook ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_google', \IPS\Settings::i()->scsb_google ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_linkedin', \IPS\Settings::i()->scsb_linkedin ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_twitter', \IPS\Settings::i()->scsb_twitter ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_youtube', \IPS\Settings::i()->scsb_youtube ) );
$form->add( new \IPS\Helpers\Form\Url( 'scsb_pinterest', \IPS\Settings::i()->scsb_pinterest ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'scsb_contact', \IPS\Settings::i()->scsb_contact ) );

if ( $values = $form->values() )
{
	$form->saveAsSettings();
	return TRUE;
}

return $form;]]></settingsCode><tasks/><widgets/><htmlFiles/><cssFiles><css filename="floatingSocialSidebar.css">LyohCiAqIENvbnRhY3QgQnV0dG9ucyBQbHVnaW4gRGVtbyAwLjEuMAogKiBodHRwczovL2dpdGh1Yi5jb20vam9lZ2UvY29udGFjdC1idXR0b25zLXBsdWdpbgogKgogKiBDb3B5cmlnaHQgMjAxNSwgSm9zw6kgR29uw6dhbHZlcwogKgogKiBMaWNlbnNlZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2U6CiAqIGh0dHA6Ly93d3cub3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUCiAqLwogCiAjY29udGFjdC1idXR0b25zLWJhciB7CiAgcG9zaXRpb246IGZpeGVkOwogIHRvcDogMTIwcHg7CiAgbGVmdDogLTUwcHg7CiAgd2lkdGg6IDUwcHg7Cn0KCgojY29udGFjdC1idXR0b25zLWJhci5zbGlkZS1vbi1zY3JvbGwgewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKfQoKLmNvbnRhY3QtYnV0dG9uLWxpbmsgIHsKICBkaXNwbGF5OiBibG9jazsKICB3aWR0aDogNTBweDsKICBoZWlnaHQ6IDUwcHg7CiAgcGFkZGluZzogMDsKICBtYXJnaW4tYm90dG9tOiAxcHg7CiAgdGV4dC1hbGlnbjogY2VudGVyOwogIGxpbmUtaGVpZ2h0OiA1MHB4OwogIGZvbnQtc2l6ZTogMjJweDsKICBiYWNrZ3JvdW5kOiAjOGU4ZTkzOwogIGNvbG9yOiAjZmZmOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKICBsZWZ0OiAwOwogIHotaW5kZXg6IDEwMDAwMDAwOwogIC13ZWJraXQtYm94LXNpemluZzogYm9yZGVyLWJveDsKICAgICAtbW96LWJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICAgICAg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tYmFyOmFjdGl2ZSB7CiAgYmFja2dyb3VuZDogIzAwMDsKICBjb2xvcjogI2ZmZjsKICBib3JkZXI6IDA7CiAgb3V0bGluZTogMDsKICBwYWRkaW5nOiAwOwogIHdpZHRoOiA1MHB4Owp9Ci5jb250YWN0LWJ1dHRvbi1saW5rLnNob3ctaGlkZS1jb250YWN0LWJhcjpob3ZlciB7CiAgY29sb3I6ICMwMDA7CiAgYmFja2dyb3VuZDogI2NjYzsKICBwYWRkaW5nOiAwOwogIHdpZHRoOiA1MHB4Owp9</css></cssFiles><jsFiles><js filename="jquery.contact-buttons.js">LyohCiAqIENvbnRhY3QgQnV0dG9ucyBQbHVnaW4gRGVtbyAwLjEuMAogKiBodHRwczovL2dpdGh1Yi5jb20vam9lZ2UvY29udGFjdC1idXR0b25zLXBsdWdpbgogKgogKiBDb3B5cmlnaHQgMjAxNSwgSm9zw6kgR29uw6dhbHZlcwogKgogKiBMaWNlbnNlZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2U6CiAqIGh0dHA6Ly93d3cub3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUCiAqLwogCihmdW5jdGlvbiAoJCkgewogICd1c2Ugc3RyaWN0JzsKCiAgLy8gTWFpbiBmdW5jdGlvbgogICQuY29udGFjdEJ1dHRvbnMgPSBmdW5jdGlvbiggb3B0aW9ucyApewogICAgCiAgICAvLyBEZWZpbmUgdGhlIGRlZmF1bHRzCiAgICB2YXIgZGVmYXVsdHMgPSB7IAogICAgICBlZmZlY3QgIDogJycsIC8vIHNsaWRlLW9uLXNjcm9sbAogICAgICBidXR0b25zIDogewogICAgICAgICdmYWNlYm9vayc6ICAgeyBjbGFzczogJ2ZhY2Vib29rJywgIHVzZTogZmFsc2UsIGljb246ICdmYWNlYm9vaycsICAgIGxpbms6ICcnLCB0aXRsZTogJ0ZvbGxvdyBvbiBGYWNlYm9vaycgfSwKICAgICAgICAnZ29vZ2xlJzogICAgIHsgY2xhc3M6ICdncGx1cycsICAgIC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b0NvbnRhaW5lci5hcHBlbmQoc1Nob3dIaWRlQnRuKTsKICAgICAgCiAgICAgIHZhciBpOwogICAgICBmb3IgKCBpIGluIHNldHRpbmdzLmJ1dHRvbnMgKSB7CiAgICAgICAgdmFyIGJzID0gc2V0dGluZ3MuYnV0dG9uc1tpXSwKICAgICAgICAgICAgc0xpbmsgPSBicy5saW5rLAogICAgICAgICAgICBhY3RpdmUgPSBicy51c2U7CiAgICAgICAgCiAgICAgICAgLy8gQ2hlY2sgaWYgZWxlbWVudCBpcyBhY3RpdmUKICAgICAgICBpZiAoYWN0aXZlKSB7CiAgICAgICAgICAKICAgICAgICAgIC8vIENoYW5nZSB0aGUgbGluayBmb3IgcGhvbmUgYW5kIGVtYWlsIHdoZW4gbmVlZGVkCiAgICAgICAgICBpZiAoYnMudHlwZSA9PT0gJ3Bob25lJykgewogICAgICAgICAgICBzTGluayA9ICd0ZWw6JyArIGJzLmxpbms7CiAgICAgICAgICB9IGVsc2UgaWYgKGJzLnR5cGUgPT09ICdlbWFpbCcpIHsKICAgICAgICAgICAgc0xpbmsgPSAnbWFpbHRvOicgKyBicy5saW5rOwogICAgICAgICAgfQogICAgICAgICAgCiAgICAgICAgICAvLyBJbnNlcnQgdGhlIGxpbmtzCiAgICAgICAgICB2YXIgc0ljb24gPSAnPHNwYW4gY2xhc3M9ImZhIGZhLScgKyBicy5pY29uICsgJyI+PC9zcGFuPicsCiAgICAgICAgICAgICAgc0J1dHRvbiA9ICc8YSBocmVmPSInICsgc0xpbmsgKyAKICAgICAgICAgICAgICAgICAgICAgICAgICAnIiBjbGFzcz0iY29udGFjdC1idXR0b24tbGluayBjYi1hbmNvciAnICsgYnMuY2xhc3MgKyAnIiAnICsgCiAgICAgICAgICAgICAgICAgICAgICAgICAgKGJzLnRpdGxlID8gJ3RpdGxlPSInICsgYnMudGl0bGUgKyAnIicgOiAnJykgKyAKICAgICAgICAgICAgICAgICAgICAgICAgICAoYnMuZXh0cmFzID8gYnMuZXh0cmFzID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Y3JvbGwoZnVuY3Rpb24oKSB7CiAgICAgIGNsZWFyVGltZW91dCggJC5kYXRhKCB0aGlzLCAic2Nyb2xsQ2hlY2siICkgKTsKICAgICAgJC5kYXRhKCB0aGlzLCAic2Nyb2xsQ2hlY2siLCBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkgewogICAgICAgIHZhciBuVG9wID0gJCh3aW5kb3cpLnNjcm9sbFRvcCgpICsgcGFyc2VJbnQoZWwuYXR0cignZGF0YS10b3AnKSk7CiAgICAgICAgZWwuYW5pbWF0ZSh7CiAgICAgICAgICB0b3AgOiBuVG9wCiAgICAgICAgfSwgNTAwKTsKICAgICAgfSwgMjUwKSApOwogICAgfSk7CiAgfSk7CiAgCiB9KCBqUXVlcnkgKSk7Cg==</js></jsFiles><resourcesFiles/><lang><word key="scsb_on" js="0">Enable?</word><word key="scsb_facebook" js="0">Facebook</word><word key="scsb_google" js="0">Google</word><word key="scsb_linkedin" js="0">LinkedIn</word><word key="scsb_twitter" js="0">Twitter</word><word key="scsb_pinterest" js="0">Pinterest</word><word key="scsb_contact" js="0">Contact</word><word key="scsb_contact_desc" js="0">Link to your contact page</word><word key="scsb_youtube" js="0">Youtube</word></lang><versions><version long="10000" human="1.0.0"><![CDATA[//<?php


/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * Install Code
 */
class ips_plugins_setup_install
{
	/**
	 * ...
	 *
	 * @return	array	If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
	 */
	public function step1()
	{
		

		return TRUE;
	}
	
	// You can create as many additional methods (step2, step3, etc.) as is necessary.
	// Each step will be executed in a new HTTP request
}]]></version></versions></plugin>


/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * Install Code
 */
class ips_plugins_setup_install
{
	/**
	 * ...
	 *
	 * @return	array	If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
	 */
	public function step1()
	{
		

		return TRUE;
	}
	
	// You can create as many additional methods (step2, step3, etc.) as is necessary.
	// Each step will be executed in a new HTTP request
}]]></version></versions></plugin>

 

Edytowane przez hoth
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.