PHP Class Give_i18n_Banner, Give

显示文件 Open project: wordimpress/give

Public Methods

Method Description
__construct ( $args ) Give_i18n constructor.
promo ( ) Outputs a promo box

Private Methods

Method Description
find_or_initialize_translation_details ( ) : object | null Try to find the transient for the translation set or retrieve them.
hide_promo ( ) : boolean Check whether the promo should be hidden or not.
init ( array $args ) This is where you decide where to display the messages and where you set the plugin specific variables.
parse_translation_set ( object $set ) Set the needed private variables based on the results from Give Translate.
promo_message ( ) : boolean | string Generates a promo message.
retrieve_translation_details ( ) : object | null Retrieve the translation details from Give Translate.
translation_details ( ) Try to get translation details from cache, otherwise retrieve them, then parse them.

Method Details

__construct() public method

Give_i18n constructor.
public __construct ( $args )
$args

promo() public method

Outputs a promo box
public promo ( )