本文整理汇总了PHP中c2cTools::multibyte_ucfirst方法的典型用法代码示例。如果您正苦于以下问题:PHP c2cTools::multibyte_ucfirst方法的具体用法?PHP c2cTools::multibyte_ucfirst怎么用?PHP c2cTools::multibyte_ucfirst使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类c2cTools
的用法示例。
在下文中一共展示了c2cTools::multibyte_ucfirst方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
}
}
$is_first = false;
if ($module != 'users') {
// name hierarchical display
$name = $doc['name'];
if ($level > 1 || $reduce_name) {
if ($level > 1) {
$cut_level = 3;
} else {
$cut_level = 2;
}
$name_list = explode(' - ', $name, $cut_level);
$name = array_pop($name_list);
}
$name = c2cTools::multibyte_ucfirst($name);
if (!$is_doc) {
$url = "@document_by_id_lang_slug?module={$module}&id={$doc_id}" . '&lang=' . $doc['culture'] . '&slug=' . make_slug($doc['name']);
}
} else {
$name = $doc['name'];
if (!$is_doc) {
$url = "@document_by_id_lang?module={$module}&id={$doc_id}" . '&lang=' . $doc['culture'];
}
}
echo $is_doc ? '<span class="current">' . $name . '</span>' : link_to($name, $url);
// elevation info
if (isset($doc['lowest_elevation']) && is_scalar($doc['lowest_elevation']) && $doc['lowest_elevation'] != $doc['elevation']) {
echo ' ' . $doc['lowest_elevation'] . __('meters') . __('range separator') . $doc['elevation'] . __('meters');
} else {
if (isset($doc['elevation']) && is_scalar($doc['elevation'])) {
示例2: content_tag
$condition_name = 'conditions_and_equipment';
}
$lang = $needs_translation ? ' lang="' . $needs_translation . '"' : '';
$conditions_title = content_tag('div', __($condition_name), array('class' => 'section_subtitle htext', 'id' => '_' . $condition_name, 'data-tooltip' => '')) . '<div class="field_value"' . $lang . '>';
if ($has_conditions_levels) {
$conditions_levels_string = conditions_levels_data($conditions_levels);
}
$avalanche_string = '';
if ($has_avalanche_date) {
$avalanche_desc_string = '';
if ($has_avalanche_desc) {
$avalanche_desc_string .= parse_links(parse_bbcode($avalanche_desc, $images, false));
}
$avalanche_title = content_tag('div', __('avalanche_infos'), array('class' => 'section_subtitle htext', 'id' => '_avalanche_infos', 'data-tooltip' => '')) . '<div class="field_value"' . $lang . '>';
$avalanche_date_string = field_data_from_list_if_set($document, 'avalanche_date', 'mod_outings_avalanche_date_list', array('multiple' => true, 'raw' => true));
$avalanche_date_string = '<p class="avalanche_date">' . c2cTools::multibyte_ucfirst(trim($avalanche_date_string)) . '.' . '</p>';
$avalanche_string = $avalanche_title . $avalanche_date_string . $avalanche_desc_string . '</div>';
}
$conditions_string = '';
if ($has_conditions) {
$conditions_string = parse_links(parse_bbcode($conditions, $images, false));
}
if ($has_conditions_levels) {
if ($has_conditions) {
$conditions_string = '<div class="field_value"' . $lang . '>' . $conditions_string . '</div>';
}
$conditions_string = $outing_route_desc_string . $conditions_title . $conditions_levels_string . '</div>' . '<div class="col_left col_66">' . $conditions_string . $avalanche_string . '</div>' . $other_conditions;
} else {
$conditions_string = '<div class="col_left col_66 hfirst">' . $outing_route_desc_string . $conditions_title . $conditions_string . '</div>' . $avalanche_string . $other_conditions . '</div>';
}
echo $conditions_string;