File: /www/wwwroot/laet.adv.br/wp-content/themes/betheme/muffin-options/fields/custom/field_custom.php
<?php
class MFN_Options_custom extends MFN_Options
{
/**
* Constructor
*/
public function __construct($field = array(), $value = '', $prefix = false)
{
$this->field = $field;
$this->value = $value;
// theme options 'opt_name'
$this->prefix = $prefix;
}
/**
* Render
*/
public function render($meta = false)
{
$action = isset($this->field['action']) ? $this->field['action'] : '';
echo '<div class="mfn-custom-field">';
if ($action == 'wpml') {
// WPML Installer
echo '<p>BeTheme is <a href="https://wpml.org/theme/betheme/?aid=29349&affiliate_key=aCEsSE0ka33p" target="_blank">fully compatible with WPML</a> - the WordPress Multilingual Plugin. WPML lets you add languages to your existing sites and includes advanced translation management.</p>';
echo '<div class="mfn-custom-buttons">';
echo '<a class="btn-blue btn-green" href="https://wpml.org/purchase/?aid=29349&affiliate_key=aCEsSE0ka33p" target="_blank">'. __('Buy and Download', 'mfn-opts') .'</a> ';
echo '<a class="btn-blue" href="https://wpml.org/features/?aid=29349&affiliate_key=aCEsSE0ka33p" target="_blank">'. __('WPML Features', 'mfn-opts') .'</a>';
echo '</div>';
} elseif ($action == 'description') {
echo wp_kses($this->field['desc'], mfn_allowed_html('desc'));
} else {
// default
echo '<p>This is "field_custom" and requires "action" parameter</p>';
}
echo '</div>';
}
}