KoolSocialShare Class [PHP]

Summary

Properties Description
Align Set the alignment of share buttons, whether "left" or "right"; the defaut value is "left"
id Get the id of KoolSocialShare.
scriptFolder Get or set the path to folder which contains KoolSocialShare script.
styleFolder Get or set the folder which KoolSocialShare will load css to render.
TitleToShare Get or set the title that you want to share.
UrlToShare Get or set the page url that you want to share.
Width Get or set the width of KoolSocialShare.
Methods Description
ShowAllShareButtons Automatically add and show all available sharing buttons.
Add Add a social button.
Render Render the KoolSocialShare
RegisterScript Return html to register js library for KoolSocialShare.
RegisterCSS Return html to register CSS for KoolSocialShare
RenderGrid Return html content of KoolSocialShare body
StartupScript Regiser script to be at client from sever-side.

Properties Detail

AlignTop

string Align

Set the alignment of share buttons, whether "left" or "right"; the defaut value is "left"

Allowed values :

  • "left" : Buttons align in left side
  • "right" : Buttons align in right side

Show/Hide Code

Supported from version: 1.0.0.0

idTop

string id

Get the id of KoolSocialShare.

Show/Hide Code

Supported from version: 1.0.0.0

scriptFolderTop

string scriptFolder

Get or set the path to folder which contains KoolSocialShare script.

Show/Hide Code

Supported from version: 1.0.0.0

styleFolderTop

string styleFolder

Get or set the folder which KoolSocialShare will load css to render.

Show/Hide Code

Supported from version: 1.0.0.0

TitleToShareTop

string TitleToShare

Get or set the title that you want to share.

Show/Hide Code

Supported from version: 1.0.0.0

UrlToShareTop

string UrlToShare

Get or set the page url that you want to share.

Show/Hide Code

Supported from version: 1.0.0.0

WidthTop

string Width

Get or set the width of KoolSocialShare.

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

ShowAllShareButtonsTop

void ShowAllShareButtons()

Automatically add and show all available sharing buttons.

Show/Hide Code

Supported from version: 1.0.0.0

AddTop

SocialButton Add(SocialButton $social_button)

Add a social button. The returned value is the added social button object.

Show/Hide Code

Supported from version: 1.0.0.0

RenderTop

void Render()

Render the KoolSocialShare

Show/Hide Code

Supported from version: 1.0.0.0

RegisterScriptTop

string RegisterScript()

Return html to register js library for KoolSocialShare.

Show/Hide Code

Supported from version: 1.0.0.0

RegisterCSSTop

string RegisterCSS()

Return html to register CSS for KoolSocialShare

Show/Hide Code

Supported from version: 1.0.0.0

RenderGridTop

string RenderGrid()

Return html content of KoolSocialShare body

Show/Hide Code

Supported from version: 1.0.0.0

StartupScriptTop

void StartupScript(string $script)

Regiser script to be at client from sever-side.

Show/Hide Code

Supported from version: 1.0.0.0