Skip to content

Instantly share code, notes, and snippets.

@Raistlfiren
Created December 2, 2015 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raistlfiren/9f80b5e9aff098732fb3 to your computer and use it in GitHub Desktop.
Save Raistlfiren/9f80b5e9aff098732fb3 to your computer and use it in GitHub Desktop.
<?php
if (isset($taxonomy['listing_records'])) {
$amount = $taxonomy['listing_records'];
} else {
$amount = $app['config']->get('general/listing_records');
}
if (isset($taxonomy['listing_sort'])) {
$amount = $taxonomy['listing_sort'];
} else {
$order = $app['config']->get('general/listing_sort');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment