Beispiel #1
0
echo __('Position', WPL_TEXTDOMAIN);
?>
</th>
                    <th></th>
                    <th scope="col" class="manage-column wpl_actions_td"><?php 
echo __('Actions', WPL_TEXTDOMAIN);
?>
</th>
                </tr>
            </tfoot>
            <tbody class="sortable_activity">
                <?php 
foreach ($this->activities as $activity) {
    $activity_field_name = wpl_activity::get_activity_name_layout($activity->activity);
    /** Skip Backend Activity **/
    if (wpl_activity::check_activity($activity_field_name[0], wpl_activity::ACTIVITY_BACKEND)) {
        continue;
    }
    ?>
                    <tr id="<?php 
    echo $activity->id;
    ?>
">
                        <td class="size-1"><?php 
    echo $activity->id;
    ?>
</td>
                        <td class="wpl_activity_title"><?php 
    echo $activity->title;
    ?>
</td>
Beispiel #2
0
 /**
  * get All Activities in Activity folder and remove Backend Activity
  * @author Kevin J <*****@*****.**>
  * @return array list of Frontend activity list
  */
 public static function get_available_activities()
 {
     $activities_folders = wpl_folder::folders(wpl_activity::get_activity_folder());
     $frontend_activity = array();
     foreach ($activities_folders as $activity) {
         if (wpl_activity::check_activity($activity, wpl_activity::ACTIVITY_FRONTEND)) {
             $frontend_activity[] = $activity;
         }
     }
     return $frontend_activity;
 }