/**
  * Defines custom fields
  *
  * @access public
  * @param array $metaboxes
  * @return array
  */
 public static function fields(array $metaboxes)
 {
     if (is_super_admin()) {
         $metaboxes['user_general'] = array('id' => REALIA_USER_PREFIX . 'general', 'title' => __('General', 'realia'), 'object_types' => array('user'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('id' => REALIA_USER_PREFIX . 'package_title', 'name' => __('Package Information', 'realia'), 'type' => 'title'), array('id' => REALIA_USER_PREFIX . 'package', 'name' => __('Package', 'realia'), 'type' => 'select', 'options' => Realia_Packages::get_packages(true)), array('id' => REALIA_USER_PREFIX . 'package_valid', 'name' => __('Valid', 'realia'), 'type' => 'text_date_timestamp')));
     }
     return $metaboxes;
 }
Exemplo n.º 2
0
				<?php 
        } else {
            ?>
					<?php 
            echo sprintf(__('Your subscription already expired at <strong>%s</strong>. All your items has been deactivated until you pay for new subscription.', 'realia'), $date);
            ?>
				<?php 
        }
        ?>
			</div>
		<?php 
    }
    ?>

		<?php 
    $packages = Realia_Packages::get_packages();
    ?>
		<?php 
    $package_payment_id = get_theme_mod('realia_submission_payment_page', false);
    ?>

		<?php 
    if (!$package_payment_id) {
        ?>
			<p><?php 
        echo __('Payment page has been not set.', 'realia');
        ?>
</p>
		<?php 
    }
    ?>