?> </dt> <dd> <table width="100%" class="form-table"> <tr> <th scope="row"><?php _e('Gallery template:', $this->PID); ?> </th> <td> <?php if ($this->allowAdmin('gallery_template')) { ?> <select name="settings[gallery_template]"> <?php $templates = ak_get_templates(aoc_template_paths(), 'gallery-'); foreach ($templates as $tpl => $t_name) { ?> <option value="<?php echo $tpl; ?> " <?php selected($tpl, $settings['gallery_template']); ?> > <?php echo $t_name; ?> </option> <?php
?> </dt> <dd> <table width="100%" class="form-table"> <tr> <th scope="row"><?php _e('Profile template:', $this->PID); ?> </th> <td> <?php if ($this->allowAdmin('profile_template')) { ?> <select name="profiles[profile_template]"> <?php $templates = ak_get_templates(aoc_template_paths(), 'profile-'); foreach ($templates as $tpl => $t_name) { ?> <option value="<?php echo $tpl; ?> " <?php selected($tpl, $settings['profile_template']); ?> > <?php echo $t_name; ?> </option> <?php
/** * Returns a list of templates in the /templates dir. * * @deprecated since 0.10 * @see ak_get_templates() * * @param $prefix Templates prefix. Each component uses a diferent prefix followed by a dash and the template name. * @return array List of templates found. */ function aoc_get_templates($prefix) { $folders = aoc_template_paths(); return ak_get_templates($folders, $prefix . '-'); }
} ?> </td> </tr> <tr> <th scope="row"><?php _e('Global template:', $this->PID); ?> </th> <td> <?php if ($this->allowAdmin('wall_template')) { ?> <select name="settings[wall_template]"> <?php $templates = ak_get_templates(aoc_template_paths(), 'wall-'); foreach ($templates as $tpl => $t_name) { ?> <option value="<?php echo $tpl; ?> " <?php selected($tpl, $settings['wall_template']); ?> > <?php echo $t_name; ?> </option> <?php