global.func.php 568 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * 广告模板配置函数
  4. */
  5. function get_types() {
  6. $poster_template = getcache('poster_template_'.get_siteid(), 'commons');
  7. $TYPES = array();
  8. if (is_array($poster_template) && !empty($poster_template)){
  9. foreach ($poster_template as $k => $template) {
  10. $TYPES[$k] = $template['name'];
  11. }
  12. } else {
  13. $TYPES = array('banner'=>L('banner', '', 'poster'), 'fixure'=>L('fixure'), 'float'=>L('float'), 'couplet'=>L('couplet'), 'imagechange'=>L('imagechange'), 'imagelist'=>L('imagelist'), 'text'=>L('text'), 'code'=>L('code'),);
  14. }
  15. return $TYPES;
  16. }
  17. ?>