当前位置: 首页>>代码示例>>PHP>>正文


PHP op_include_parts函数代码示例

本文整理汇总了PHP中op_include_parts函数的典型用法代码示例。如果您正苦于以下问题:PHP op_include_parts函数的具体用法?PHP op_include_parts怎么用?PHP op_include_parts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了op_include_parts函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: link_to

    $subAdminCaption .= "<li>" . link_to($m->getName(), '@member_profile?id=' . $m->getId()) . "</li>\n";
}
if ($subAdminCaption) {
    $list[__('Sub Administrator')] = '<ul>' . $subAdminCaption . '</ul>';
}
$list[__('Count of Members')] = $community->countCommunityMembers();
foreach ($community->getConfigs() as $key => $config) {
    if ('%community% Description' === $key) {
        $list[__('%community% Description', array('%community%' => $op_term['community']->titleize()), 'form_community')] = op_url_cmd(nl2br($community->getConfig('description')));
    } else {
        $list[__($key, array(), 'form_community')] = $config;
    }
}
$list[__('Register policy', array(), 'form_community')] = __($community->getRawValue()->getRegisterPolicy());
$options = array('title' => __('%community%', array('%community%' => $op_term['community']->titleize())), 'list' => $list);
op_include_parts('listBox', 'communityHome', $options);
?>

<ul>
<?php 
if ($isEditCommunity) {
    ?>
<li><?php 
    echo link_to(__('Edit this %community%'), 'community/edit?id=' . $community->getId());
    ?>
</li>
<?php 
}
?>

<?php 
开发者ID:TadahiroKudo,项目名称:OpenPNE3,代码行数:31,代码来源:homeSuccess.php

示例2: unset

    unset($form['target']);
    unset($form['id']);
}
op_include_form('searchCommunityWiki', $form, $options);
?>

<?php 
if ($pager->getNbResults()) {
    ?>

<?php 
    $list = array();
    foreach ($pager->getResults() as $key => $topic) {
        $list[$key] = array();
        $list[$key][__('Name', array(), 'community_wiki_form')] = $topic->getName();
        $list[$key][__('%community% Name')] = $topic->getCommunity()->getName();
        $list[$key][__('Body', array(), 'community_wiki_form')] = $topic->getBody();
        $list[$key][__('Date Updated', array(), 'form_community')] = format_datetime($topic->getUpdatedAt(), 'f');
    }
    $options = array('title' => __('Search Results'), 'pager' => $pager, 'link_to_page' => 'communityWiki/search?page=%d', 'list' => $list, 'link_to_detail' => $link_to_detail);
    op_include_parts('searchResultList', 'searchResultCommunityWiki', $options);
} else {
    if ('topic' === $type) {
        $message = __('Your search queries did not match any community topics.');
    } else {
        if ('wiki' === $type) {
            $message = __('Your search queries did not match any community events.');
        }
    }
    op_include_box('searchCommunityWikiResult', $message, array('title' => __('Search Results')));
}
开发者ID:hiroyaxxx,项目名称:opCommunityWikiPlugin,代码行数:31,代码来源:searchSuccess.php

示例3: array

<?php

$options = array('title' => __('Members that has "%0%"', array('%0%' => $application->getTitle())), 'list' => $pager->getResults(), 'link_to' => 'member/profile?id=', 'pager' => $pager, 'link_to_pager' => '@application_member?page=%d&id=' . $application->getId(), 'moreInfo' => array(link_to(__('App Information'), '@application_info?id=' . $application->getId())));
op_include_parts('photoTable', 'membersList', $options);
开发者ID:niryuu,项目名称:opOpenSocialPlugin,代码行数:4,代码来源:memberSuccess.php

示例4: op_include_parts

<?php

op_include_parts('memberImagesBox', 'memberImagesBox', array('title' => __("%1%'s Photos", array('%1%' => $member->getName())), 'images' => $member->getMemberImage()));
开发者ID:te-koyama,项目名称:openpne,代码行数:3,代码来源:showImageSuccess.php

示例5: op_mobile_page_title

<?php

op_mobile_page_title($id === $sf_user->getMemberId() ? __('My Activities') : __('Activities of %0%', array('%0%' => $member->getName())));
if ($pager->getNbResults()) {
    ?>
<center>
<?php 
    op_include_pager_total($pager);
    ?>
</center>
<?php 
    include_partial('default/activityBox', array('title' => '', 'activities' => $pager->getResults()));
    op_include_pager_navigation($pager, 'member/showActivity?page=%d&id=' . $id);
} else {
    op_include_parts('box', 'ActivityBox', array('body' => __('There is no activity.')));
}
开发者ID:phenom,项目名称:OpenPNE3,代码行数:16,代码来源:showActivitySuccess.php

示例6: array

<?php

$list = array();
foreach ($pager->getResults() as $key => $ccccManga) {
    $list[$key] = array();
    $list[$key][__('Manga Title')] = $ccccManga->getTitle();
    $list[$key][__('Description')] = $ccccManga->getDescription();
    $list[$key][__('Author')] = $ccccManga->getMember()->getName();
}
$options = array('title' => __('4 Coma Manga of %1%', array('%1%' => $member->getName())), 'pager' => $pager, 'link_to_page' => 'ccccManga/listMember?page=%d', 'link_to_detail' => 'ccccManga/index?id=%d', 'list' => $list);
op_include_parts('searchResultList', 'searchMangaResult', $options);
开发者ID:nothan,项目名称:opCCCCPlugin,代码行数:11,代码来源:listMemberSuccess.php

示例7: link_to

        $list[$key] = link_to(__($categoryCaptions[$key]), '@member_config?category=' . $key);
    }
}
op_include_parts('pageNav', 'pageNav', array('list' => $list, 'current' => $categoryName));
?>

<?php 
$list = array();
if (opConfig::get('enable_connection')) {
    $list[] = link_to(__('Connecting with External Application'), '@connection_list');
}
if (opConfig::get('enable_openid')) {
    $list[] = link_to(__('OpenID Configuration'), '@openid_list');
}
if ($list) {
    op_include_parts('pageNav', 'connection', array('list' => $list));
}
?>

<?php 
$list = array(link_to(__('Delete your %1% account', array('%1%' => $op_config['sns_name'])), '@member_delete'));
op_include_parts('pageNav', 'navForDelete', array('list' => $list));
end_slot();
?>

<?php 
if ($categoryName) {
    op_include_form($categoryName . 'Form', $form, array('title' => __($categoryCaptions[$categoryName]), 'url' => url_for('@member_config?category=' . $categoryName)));
} else {
    op_include_box('configInformation', __('Please select the item that wants to be set from the menu.'), array('title' => __('Change Settings')));
}
开发者ID:kawahara,项目名称:OpenPNE3,代码行数:31,代码来源:configSuccess.php

示例8: __

<?php

$mode = $form->isNew() ? __('Add') : __('Edit');
op_include_form('mangaForm', $form, array('title' => '4コマ漫画の' . $mode, 'button' => $mode));
?>

<?php 
if (!$form->isNew()) {
    ?>

<?php 
    op_include_parts('buttonBox', 'deleteForm', array('body' => __('この4コマ漫画をします。協力して描かれた作品である場合、あらかじめ削除する旨を協力者に伝えてください。'), 'title' => __('4コマ漫画を削除する'), 'button' => __('Delete'), 'method' => 'get', 'url' => url_for('ccccManga/delete?id=' . $form->getObject()->getId())));
    ?>

<?php 
}
开发者ID:nothan,项目名称:opCCCCPlugin,代码行数:16,代码来源:editSuccess.php

示例9: op_mobile_page_title

<?php op_mobile_page_title(__('Do you really delete it?')) ?>
<?php op_include_parts('yesNo', 'delete_introfriend', array(
  'yes_form' => new BaseForm(),
  'yes_method' => 'post',
  'no_method' => 'get',
  'no_url' => $uri,
)) ?>
开发者ID:nise-nabe,项目名称:opIntroFriendPlugin,代码行数:7,代码来源:deleteSuccess.php

示例10: op_include_parts

<?php op_include_parts('ButtonBox', 'opAuthMailAddressPluginRegisterBox', array(
  'title'  => __('Registration with your e-mail address'),
  'body'   => __('You can go to the registration page by clicking the button below.'),
  'button' => __('Go to the registration page'),
  'url'    => url_for($sf_user->getRegisterInputAction()),
  'method' => 'get',
)) ?>
开发者ID:nothan,项目名称:opAuthMailAddressPlugin,代码行数:7,代码来源:_registerBox.php

示例11: __

    if ($profile->getProfile()->isPreset()) {
        $presetConfig = $profile->getProfile()->getPresetConfig();
        $caption = __($presetConfig['Caption']);
    }
    $profileValue = (string) $profile;
    if ('' === $profileValue) {
        continue;
    }
    if ('textarea' == $profile->getFormType()) {
        $profileValue = op_auto_link_text(nl2br($profileValue));
    }
    if ($profile->getProfile()->isPreset()) {
        if ('country_select' === $profile->getFormType()) {
            $profileValue = $culture->getCountry($profileValue);
        } elseif ('op_preset_birthday' === $profile->getName()) {
            $profileValue = op_format_date($profileValue, 'XShortDateJa');
        }
        $profileValue = __($profileValue);
    }
    if ($member->getId() == $sf_user->getMemberId()) {
        if ($profile->getPublicFlag() == ProfileTable::PUBLIC_FLAG_FRIEND) {
            $profileValue .= ' (' . __('Only Open to %my_friend%', array('%my_friend%' => $op_term['my_friend']->titleize()->pluralize())) . ')';
        } elseif ($profile->getPublicFlag() == ProfileTable::PUBLIC_FLAG_WEB && $profile->Profile->is_public_web) {
            $profileValue .= ' (' . __('All Users on the Web') . ')';
        }
    }
    $list[$caption] = $profileValue;
}
$options = array('title' => __('Profile'), 'list' => $list);
op_include_parts('listBox', 'profile', $options);
开发者ID:nise-nabe,项目名称:ppcon-sns,代码行数:30,代码来源:_profileListBox.php

示例12: include_component

}
include_component('default', 'localNav', $localNavOptions);
?>
</div><!-- localNav -->

<div id="Layout<?php 
echo $layout;
?>
" class="Layout">

<?php 
if ($sf_user->hasFlash('error')) {
    op_include_parts('alertBox', 'flashError', array('body' => __($sf_user->getFlash('error'), $sf_data->getRaw('sf_user')->getFlash('error_params', array()))));
}
if ($sf_user->hasFlash('notice')) {
    op_include_parts('alertBox', 'flashNotice', array('body' => __($sf_user->getFlash('notice'), $sf_data->getRaw('sf_user')->getFlash('notice_params', array()))));
}
?>

<?php 
if (has_slot('op_top')) {
    ?>
<div id="Top">
<?php 
    include_slot('op_top');
    ?>
</div><!-- Top -->
<?php 
}
?>
开发者ID:newZinc,项目名称:OpenPNE3,代码行数:30,代码来源:_layout.php

示例13: op_include_parts

<?php

op_include_parts('memberImagesBox', 'memberImageUploadBox', array('title' => __('Edit Photo'), 'images' => $sf_user->getMember()->getMemberImage(), 'form' => $form));
开发者ID:te-koyama,项目名称:openpne,代码行数:3,代码来源:configImageSuccess.php

示例14: slot

<?php

slot('op_sidemenu');
include_partial('pluginInformationBar', array('package' => $release->Package));
end_slot();
?>

<?php 
use_helper('opPluginChannelServerPlugin');
$channelOption = '';
if (opPluginChannelServerToolkit::getConfig('channel_name') !== opPluginManager::OPENPNE_PLUGIN_CHANNEL) {
    $channelOption = ' --channel=' . opPluginChannelServerToolkit::getConfig('channel_name');
}
op_include_parts('listBox', 'releaseInfoList', array('title' => __('Detail of this release'), 'list' => array(__('Plugin') => $release->Package->name, __('Version') => $release->version, __('Stability') => __($release->stability), __('Release Note') => PEAR::isError($info->getRawValue()) ? '' : nl2br($info['notes']), __('Installation') => __('Install the plugin:') . '<br />
      <code>$ ./symfony opPlugin:install ' . $release->Package->name . ' -r ' . $release->version . $channelOption . '</code><br />
      <br />' . __('Migrate your model and database:') . '<br />
      <code>$ ./symfony openpne:migrate --target=' . $release->Package->name . '</code><br />
      ', __('Download') => link_to(get_plugin_download_url($release->Package->name, $release->version, 'tgz'), get_plugin_download_url($release->Package->name, $release->version, 'tgz')))));
if ($release->isAllowed($sf_user->getRawValue()->getMember(), 'delete')) {
    op_include_form('removeRelease', $form, array('title' => __('Do you want to delete this release?'), 'button' => __('Delete'), 'url' => url_for('@release_delete?id=' . $release->id)));
}
开发者ID:balibali,项目名称:opPluginChannelServerPlugin,代码行数:21,代码来源:releaseSuccess.php

示例15: op_include_parts

<?php

op_include_parts('yesNo', 'deleteConfirmForm', array('title' => __('Do you delete this %community%?'), 'yes_form' => '<input type="hidden" name="is_delete">', 'button' => __('Delete')));
开发者ID:Kazuhiro-Murota,项目名称:OpenPNE3,代码行数:3,代码来源:deleteSuccess.php


注:本文中的op_include_parts函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。