public static function getLimit($partial = true) {
		if ($partial) {
			$limit = elgg_get_plugin_setting('comments_limit', 'hypeInteractions');
			return $limit ?: 3;
		} else {
			$limit = elgg_get_plugin_setting('comments_load_limit', 'hypeInteractions');
			return min(max((int) $limit, 20), 200);
		}
	}
public static function getLimit($partial = true) {
		if ($partial) {
			$limit = elgg_get_plugin_setting('comments_limit', 'hypeInteractions');
			return $limit ?: 3;
		} else {
			$limit = elgg_get_plugin_setting('comments_load_limit', 'hypeInteractions');
			return min(max((int) $limit, 20), 200);
		}
	}
public static function getLimit ( $ partial = true ) { if ( $ partial ) { $ limit = elgg_get_plugin_setting ( 'comments_limit' , 'hypeInteractions' ) ; return $ limit ? : 3 ; } else { $ limit = elgg_get_plugin_setting ( 'comments_load_limit' , 'hypeInteractions' ) ; return min ( max ( ( int ) $ limit , 20 ) , 200 ) ; } }
Get number of comments to show

@param string $partial Partial or full view
@return string
Get number of comments to show