![]() | ![]() |
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
Supported from version: 1.0.0.0
scriptFolderTop
string scriptFolder
Get or set the path to folder which contains KoolSocialShare script.
Supported from version: 1.0.0.0
styleFolderTop
string styleFolder
Get or set the folder which KoolSocialShare will load css to render.
Supported from version: 1.0.0.0
Methods Detail
AddTop
SocialButton Add(SocialButton $social_button)
Add a social button. The returned value is the added social button object.
Supported from version: 1.0.0.0
RegisterScriptTop
string RegisterScript()
Return html to register js library for KoolSocialShare.
Supported from version: 1.0.0.0
RegisterCSSTop
string RegisterCSS()
Return html to register CSS for KoolSocialShare
Supported from version: 1.0.0.0
RenderGridTop
string RenderGrid()
Return html content of KoolSocialShare body
Supported from version: 1.0.0.0
StartupScriptTop
void StartupScript(string $script)
Regiser script to be at client from sever-side.
Supported from version: 1.0.0.0
![]() | ![]() |