Categories

.externalcontentGadgetTwitter()

Categories: UI

.externalcontentGadgetTwitter( [ options ] )

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.externalcontent.gadget.twitter

Description: Inserts twitter button.

  • .externalcontentGadgetTwitter( [ options ] )

    version added: 6.15.0

    options   A map of additional options to pass to the method.

The Widget inserts a twitter button into the target element on which the widget is executed on.

  • The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Tweet (share) button to the page element which shows the as default displayed string "Look at this amazing page!" after klicking on the button.

    Code:
    
    
    <script>
    		jQuery.ready({
    				plugin: [ 'e_epages.externalcontent.gadget.twitter' ],
    				DOM:    true
    			}, function($){
    				var widget = de_epages('<div>').externalcontentGadgettwitter({
    					type :	"share",
    					text :  "Look at this amazing page!"
    				});
    
    			});
    </script>
    
  • The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Follow button to the page element which makes the user follow the Twitteraccount with the passed name "MyFlowerShop".

    Code:
    
    
    <script>
    		jQuery.ready({
    				plugin: [ 'e_epages.externalcontent.gadget.twitter' ],
    				DOM:    true
    			}, function($){
    				var widget = de_epages('<div>').externalcontentGadgettwitter({
    					type :	"follow",
    					username :  "MyFlowerShop"
    				});
    
    			});
    </script>
    
  • The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Twitter search widget which shows all Tweets of the last days with the given searchterm in it. The Title and subject are displayed in the frame of the Widget. The Widget will have the given height and width.

    Code:
    
    
    <script>
    		jQuery.ready({
    				plugin: [ 'e_epages.externalcontent.gadget.twitter' ],
    				DOM:    true
    			}, function($){
    				var widget = de_epages('<div>').externalcontentGadgettwitter({
    					type :	"search",
    					searchterm :  "Tulips",
    					title : "the most wanted Flowers",
    					subject : "by MyFlowerShop",
    					width : 250,
    					height : 400
    				});
    
    			});
    </script>
    
  • The Widget is executed on a pageelement and is called with passing optional parameters. The Widget adds a Twitter profile widget which shows all Tweets of the passed username in the Widget, it will have the given height and width. The shellbackground is the option for the color of the frame around the widget entries, the shellcolor is the one of the the text in the widgetframe. The tweetbackground is the color of the background of the tweet field, the tweetcolor defines the color of the tweetfont and the parameter tweetlink passes the color that in tweets posted links have.

    Code:
    
    
    <script>
    		jQuery.ready({
    				plugin: [ 'e_epages.externalcontent.gadget.twitter' ],
    				DOM:    true
    			}, function($){
    				var widget = de_epages('<div>').externalcontentGadgettwitter({
    					type :	"profile",
    					username: "MyFlowerShop"
    					width : 250,
    					height : 300,
    					shellbackground : '#8ec1da',
    					shellcolor : '#ffffff',
    					tweetbackground : '#ffffff',
    					tweetcolor : '#444444',
    					tweetlinks : '#1985b5',
    				});
    
    			});
    </script>
    
    
    
    
  • url

    version added: 6.15.0

    The URL of the page to share

    Default: if existing epConfig.canonicalUrl, otherwise epConfig.webUrl

  • type

    version added: 6.15.0

    The type of the button or widget to be inserted. Possible values: 'share', 'follow', 'profile', or 'search'

    Default: share

  • username

    version added: 6.15.0

    The username, for either the user to follow (follow button) or to show the profile of (profile widget)

    Default: Twitter

  • showScreenName

    version added: 6.15.0

    Defines if the username should be shown in the tweet or not

    Default: true

  • text

    version added: 6.15.0

    A Default for the Tweet Text

    Default: undefined

  • searchterm

    version added: 6.15.0

    The searchterm for the search Widget

    Default: ePages

  • title

    version added: 6.15.0

    Title of the search widget

    Default: undefined

  • subject

    version added: 6.15.0

    Subtitle of the search widget

    Default: undefined

  • shellbackground

    version added: 6.15.0

    color of the frame around the widget entries

    Default: #8ec1da

  • shellcolor

    version added: 6.15.0

    color of the text in the widgetframe

    Default: #ffffff

  • tweetbackground

    version added: 6.15.0

    color of the background of the tweet field

    Default: #ffffff

  • tweetcolor

    version added: 6.15.0

    color of the tweets

    Default: #444444

  • tweetlinks

    version added: 6.15.0

    color of the links in tweets

    Default: #1985b5

  • width

    version added: 6.15.0

    Width of the Search/Profile Widget

    Default: 250

  • height

    version added: 6.15.0

    Height of the Search/Profile Widget

    Default: 300

  • interval

    version added: 6.15.0

    time interval of refreshing in ms

    Default: 30000

  • behaviour

    version added: 6.15.0

    amount of tweets to show; possible values: 'all', 'default'

    Default: default

  • count

    version added: 6.15.0

    specifying the count annotation rendering of the Share Widget values: 'none', 'vertical', 'horizontal'

    Default: none

  • showcount

    version added: 6.15.0

    defines if the User's followers count is displayed with the Follow Button or not

    Default: false

  • destroy

    • .externatcontentGadgetTwitter('destroy')

      version added: 6.15.0

    This method removes the container on which the Google-Plus button has been appended to.