views_counter.php 439 B

12345678910111213
  1. <?php
  2. namespace AU\ViewsCounter;
  3. $entity_type = get_input('entity_type', 'user');
  4. $title = elgg_echo('views_counter:admin_page');
  5. // Shows the types pulldown that the admin may add a views counter system
  6. echo elgg_view('views_counter/forms/types_pulldown', array('entity_type' => $entity_type));
  7. // List the entities of the previous selected subtype
  8. echo elgg_view('views_counter/list_entities', array('entity_type' => $entity_type));