Skip to content
(Archived) Ophal social module
Lua CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt
README.md
init.lua
social.css
social.js
socialite.min.js

README.md

Ophal social module

This module is backed by Socialite.js https://github.com/dbushell/Socialite

Usage example

Render a twitter button for Ophal.org:

get_social_button(
  'twitter-share',
  'http://ophal.org',
  'I <3 The Ophal Project',
  {['data-count'] = 'vertical'}
)

Configuration settings

settings.social = {
  -- List of entities that will get the social buttons on
  -- entity_render().
  entities = {
    content = true,
  },

  -- (Optional) Configure the language
  facebook = {lang = 'es_LA'},
  twitter = {lang = 'es', ['data-related'] = 'Your-Twitter-Username'},
  googleplus = {lang = 'es-419'},
}

NOTE: You will need grab the language codes from the corresponding social network documentation pages.

You can’t perform that action at this time.