is_enabled()) : ?> get_id()); ?> $post_type) : ?> {$post_type_slug}->enabled) : $post_count = $post_type_limits->get_post_count($post_type_slug); // Calculate width if (empty($post_type_limits->{$post_type_slug}->number)) { // unlimited posts. $width = 5; } else { $width = ($post_count / $post_type_limits->{$post_type_slug}->number * 100); } // end if; if ($width > 100) { $width = 100; } // end if; ?>
  • label; ?>
    / {$post_type_slug}->number) ? __('Unlimited', 'wp-ultimo') : $post_type_limits->{$post_type_slug}->number; ?>
  • get_limitations()->visits->is_enabled()) : ?> get_limitations()->visits; /* * Get the visits count. */ $visits_count = (int) $site->get_visits_count(); /* * Calculates the width of the bar */ $visits_width = empty($visit_limitations->get_limit()) ? 1 : $visits_count / $visit_limitations->get_limit() * 100; ?>
  • / get_limit() == 0 ? __('Unlimited', 'wp-ultimo') : number_format((int) $visit_limitations->get_limit()); ?>