ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10037


Ignore:
Timestamp:
Jan 8, 2009, 2:24:42 PM (11 years ago)
Author:
ebihara
Message:

#3325:added the sns_title configuration to sns_config.yml

Location:
OpenPNE3/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/templates/layout.php

    r10027 r10037  
    22<head>
    33<?php include_http_metas() ?>
     4<?php if ($op_config['sns_title']) : ?>
     5<title><?php echo $op_config['sns_title'] ?></title>
     6<?php else: ?>
    47<title><?php echo $op_config['sns_name'] ?></title>
     8<?php endif; ?>
    59<?php if ($sf_request->getMobile()->isSoftBank()) : ?>
    610<style type="text/css">
  • OpenPNE3/trunk/apps/pc_frontend/templates/_header.php

    r10027 r10037  
    44<?php include_http_metas() ?>
    55<?php include_metas() ?>
     6<?php if ($op_config['sns_title']) : ?>
     7<title><?php echo $op_config['sns_title'] ?></title>
     8<?php else: ?>
    69<title><?php echo $op_config['sns_name'] ?></title>
     10<?php endif; ?>
    711</head>
    812<body><div id="Body">
  • OpenPNE3/trunk/lib/config/config/sns_config.yml

    r10032 r10037  
    77    Default:   "MySNS"
    88    IsRequired: true
     9
     10  sns_title:
     11    Name:      "sns_title"
     12    Caption:   "ページタイトル"
     13    Help:      "HTML の title 要素の内容になります"
     14    FormType:  "input"
     15    ValueType: "text"
     16    Default:   ""
     17    IsRequired: false
    918
    1019  admin_mail_address:
  • OpenPNE3/trunk/lib/form/SnsConfigForm.class.php

    r10030 r10037  
    2525      $this->setValidator($key, $this->generateValidator($value));
    2626      $this->widgetSchema->setLabel($key, $value['Caption']);
     27      if (isset($value['Help']))
     28      {
     29        $this->widgetSchema->setHelp($key, $value['Help']);
     30      }
    2731      $this->setDefault($key, opConfig::get($key));
    2832    }
Note: See TracChangeset for help on using the changeset viewer.