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


PHP op_include_list函数代码示例

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


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

示例1: use_helper

<?php

use_helper('opDiary');
?>

<?php 
$list = array();
foreach ($diaryList as $diary) {
    $list[] = sprintf('[%s] %s', op_format_date($diary->created_at, 'XShortDate'), link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary));
}
$moreInfo = array();
if (count($diaryList)) {
    $moreInfo[] = link_to(__('More'), 'diary_list_mine');
}
$moreInfo[] = link_to(__('Post a diary'), 'diary_new');
$options = array('title' => __('My Diaries'), 'border' => true, 'moreInfo' => $moreInfo);
op_include_list('myDiaryList', $list, $options);
开发者ID:meruto,项目名称:opDiaryPlugin,代码行数:17,代码来源:_myDiaryList.php

示例2: array

<?php

$acl = opCommunityTopicAclBuilder::buildCollection($community, array($sf_user->getMember()));
?>

<?php 
if ($acl->isAllowed($sf_user->getMemberId(), null, 'view')) {
    use_helper('Date');
    $list = array();
    foreach ($communityEvents as $communityEvent) {
        $list[] = sprintf("[%s] %s", op_format_date($communityEvent->getUpdatedAt(), 'XShortDate'), link_to(sprintf("%s(%d)", op_truncate($communityEvent->getName(), 28), $communityEvent->getCommunityEventComment()->count()), '@communityEvent_show?id=' . $communityEvent->getId()));
    }
    $moreInfo = array();
    if (count($communityEvents)) {
        $moreInfo[] = link_to(__('More'), '@communityEvent_list_community?id=' . $community->getId());
    }
    if ($acl->isAllowed($sf_user->getMemberId(), null, 'add')) {
        $moreInfo[] = link_to(__('Create a new event'), '@communityEvent_new?id=' . $community->getId());
    }
    $option = array('title' => __('Recently Posted This %Community% Events'), 'border' => true, 'moreInfo' => $moreInfo);
    op_include_list('communityEvent', $list, $option);
}
开发者ID:te-koyama,项目名称:openpne,代码行数:22,代码来源:_communityEventList.php

示例3: __

        echo $form->renderHiddenFields();
        ?>
<input type="submit" name="accept" value="<?php 
        echo __('Accept');
        ?>
" class="input_submit" />
<input type="submit" value="<?php 
        echo __('Reject');
        ?>
" class="input_submit" />
</form>
<?php 
        end_slot();
        $list_html[] = get_slot('_list_html');
    }
    op_include_list('confirmList', $list_html, array('border' => true));
    ?>

<?php 
} else {
    echo __('You don\'t have any pending requests', array('title' => __($config[$category])));
}
?>

<hr color="<?php 
echo $op_color['core_color_11'];
?>
">

<?php 
foreach ($config as $k => $v) {
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:listSuccess.php

示例4: array

?>

<?php 
$options = array('url' => url_for('community/search'), 'button' => __('Search'), 'method' => 'get', 'align' => 'center');
if (!$isResult) {
    $options['moreInfo'] = array(link_to(__('Create a new %community%'), '@community_edit'));
}
op_include_form('searchCommunity', $filters, $options);
?>

<?php 
if ($isResult) {
    ?>

<?php 
} else {
    $list = array();
    foreach ($categorys as $category) {
        $list[] = link_to(sprintf('%s', $category->getName()), 'community/search', array('query_string' => 'community[community_category_id]=' . $category->getId()));
    }
    $option = array('border' => true, 'title' => __('Categories'));
    op_include_list('searchCategory', $list, $option);
}
?>

<?php 
if ($isResult) {
    slot('op_mobile_footer_menu');
    echo link_to(__('Back'), 'community/search');
    end_slot();
}
开发者ID:kawahara,项目名称:OpenPNE3,代码行数:31,代码来源:searchSuccess.php

示例5: array

    $list = array();
    $checkedIds = array();
    foreach ($pager->getResults() as $member) {
        if (in_array($member->getId(), $sf_data->getRaw('installedFriends'))) {
            $string = __('%0% is already using', array('%0%' => $member->getName()));
        } else {
            $checked = false;
            if (in_array($member->id, $ids->getRawValue())) {
                $checked = true;
                $checkedIds[] = $member->id;
            }
            $string = '<input type="checkbox" name="ids[]" value="' . $member->id . '"' . ($checked ? ' checked' : '') . '>' . $member->getName();
        }
        $list[] = $string;
    }
    op_include_list('memberList', $list);
    echo $form->renderHiddenFields();
    if ($sf_params->has('callback')) {
        ?>
<input type="hidden" name="callback" value="<?php 
        echo $sf_params->get('callback');
        ?>
">
<?php 
    }
    ?>
<input type="hidden" name="nowpage" value="<?php 
    echo $nowpage;
    ?>
">
<?php 
开发者ID:rysk92,项目名称:opOpenSocialPlugin,代码行数:31,代码来源:inviteSuccess.php

示例6: op_mobile_page_title

<?php

op_mobile_page_title(__('My Apps'));
?>

<?php 
if ($pager->getNbResults()) {
    ?>
<center>
<?php 
    op_include_pager_total($pager);
    ?>
</center>
<?php 
    $list = array();
    foreach ($pager->getResults() as $memberApplication) {
        $list[] = link_to($memberApplication->getApplication()->getTitle(), '@application_render?id=' . $memberApplication->getApplicationId());
    }
    op_include_list('memberApplicationList', $list, array('border' => true));
    op_include_pager_navigation($pager, '@my_application_list?page=%d', array('is_total' => false));
} else {
    echo __("You haven't the app.");
    echo __("The Apps can be added from %0%.", array('%0%' => link_to(__('App Gallery'), '@application_gallery')));
}
?>

<?php 
slot('op_mobile_footer_menu');
echo link_to(__('App Gallery'), '@application_gallery');
end_slot();
开发者ID:niryuu,项目名称:opOpenSocialPlugin,代码行数:30,代码来源:listSuccess.php

示例7: use_helper

<?php

use_helper('Date');
$list = array();
$getCommunityComment = 'event' === $type ? 'getCommunityEventComment' : 'getCommunityTopicComment';
foreach ($pager->getResults() as $communityTopic) {
    $list[] = sprintf("%s<br>%s(%s)", op_format_date($communityTopic->getUpdatedAt(), 'XDateTime'), link_to(sprintf("%s(%d)", op_truncate($communityTopic->getName(), 28), $communityTopic->{$getCommunityComment}()->count()), sprintf($link_to_detail, $communityTopic->getId()), $communityTopic), op_truncate($communityTopic->getCommunity()->getName(), 17));
}
op_include_list('communityTopic', $list, array('border' => true));
开发者ID:te-koyama,项目名称:openpne,代码行数:9,代码来源:_partsSearchResultList.php

示例8: op_mobile_page_title

<?php

op_mobile_page_title(__('%Friend% list'));
?>

<center>
<?php 
op_include_pager_total($pager);
?>
</center>

<?php 
$list = array();
foreach ($pager->getResults() as $member) {
    $list[] = op_link_to_member($member->getId(), '@obj_member_profil', array('link_target' => sprintf('%s(%d)', $member->getName(), $member->countFriends())));
}
$option = array('border' => true);
op_include_list('friendList', $list, $option);
?>

<?php 
op_include_pager_navigation($pager, 'friend/list?page=%d&id=' . $id, array('is_total' => false));
?>
<br>

<?php 
if ($relation->isSelf()) {
    slot('op_mobile_footer_menu');
    echo link_to(__('Manage %friend%'), 'friend/manage');
    end_slot();
}
开发者ID:nagata,项目名称:OpenPNE3,代码行数:31,代码来源:listSuccess.php

示例9: pager_total

<?php 
    echo pager_total($pager);
    ?>
</center>
<?php 
    $list = array();
    foreach ($pager->getResults() as $topic) {
        $list_str = op_format_date($topic->getUpdatedAt(), 'XDateTime');
        if ($topic->isEditable($sf_user->getMemberId())) {
            $list_str .= sprintf('&nbsp;[%s]', link_to(__('Edit'), '@communityTopic_edit?id=' . $topic->getId()));
        }
        $list_str .= '<br>' . link_to(sprintf("%s(%d)", op_truncate($topic->getName(), 28), $topic->getCommunityTopicComment()->count()), '@communityTopic_show?id=' . $topic->getId());
        $list[] = $list_str;
    }
    $options = array('border' => true);
    op_include_list('communityTopicList', $list, $options);
    ?>

<?php 
    if ($pager->haveToPaginate()) {
        op_include_pager_navigation($pager, 'communityTopic/listCommunity?id=' . $community->getId() . '&page=%d', array('is_total' => false));
    }
    ?>

<?php 
} else {
    ?>

<?php 
    echo __('There are no topics.');
    ?>
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:listCommunitySuccess.php

示例10: array

<?php

$acl = opCommunityTopicAclBuilder::buildCollection($community, array($sf_user->getMember()));
?>

<?php 
if ($acl->isAllowed($sf_user->getMemberId(), null, 'view')) {
    use_helper('Date');
    $list = array();
    foreach ($communityTopics as $communityTopic) {
        $list[] = sprintf("[%s] %s", op_format_date($communityTopic->getUpdatedAt(), 'XShortDate'), link_to(sprintf("%s(%d)", op_truncate($communityTopic->getName(), 28), $communityTopic->getCommunityTopicComment()->count()), '@communityTopic_show?id=' . $communityTopic->getId()));
    }
    $moreInfo = array();
    if (count($communityTopics)) {
        $moreInfo[] = link_to(__('More'), '@communityTopic_list_community?id=' . $community->getId());
    }
    if ($acl->isAllowed($sf_user->getMemberId(), null, 'add')) {
        $moreInfo[] = link_to(__('Create a new topic'), '@communityTopic_new?id=' . $community->getId());
    }
    $option = array('title' => __('Recently Posted This Community Topics'), 'border' => true, 'moreInfo' => $moreInfo);
    op_include_list('communityTopic', $list, $option);
}
开发者ID:kawahara,项目名称:opCommunityTopicPlugin,代码行数:22,代码来源:_communityTopicList.php

示例11: array

<?php 
$list = array(link_to(__('Edit profile'), '@member_editProfile'));
op_include_list('profileEdit', $list, array('title' => __('Edit profile')));
?>

<?php 
$list = array();
foreach ($categories as $key => $value) {
    if (count($value)) {
        $list[] = link_to(__($categoryCaptions[$key]), 'member/config?category=' . $key);
    }
}
$list[] = link_to(__('Setting easy login'), 'member/configUID');
$list[] = link_to(__('Delete your %1% account', array('%1%' => $op_config['sns_name'])), 'member/delete');
op_include_list('configEdit', $list, array('title' => __('Settings')));
?>

<?php 
if ($mobileBottomGadgets) {
    foreach ($mobileBottomGadgets as $gadget) {
        if ($gadget->isEnabled()) {
            include_component($gadget->getComponentModule(), $gadget->getComponentAction(), array('gadget' => $gadget));
        }
    }
}
?>

<?php 
slot('op_mobile_footer_menu');
?>
开发者ID:te-koyama,项目名称:openpne,代码行数:30,代码来源:homeSuccess.php

示例12: pager_total

        ?>
<center>
<?php 
        echo pager_total($pager);
        ?>
</center>
<?php 
        $list = array();
        foreach ($pager->getResults() as $obj) {
            if ($obj->getForeignObject()) {
                $list[] = op_format_date($obj->getForeignDate()) . link_to($obj->getForeignTitle(), $obj->getForeignUrl()) . $obj->getForeignObject()->getMember()->getName();
            }
        }
        $options = array();
        $options['border'] = false;
        op_include_list("tagSearchResult", $list, $options);
        ?>

<?php 
        op_include_pager_navigation($pager, "tag/search?tag=" . mb_convert_encoding($tag, "SJIS", "UTF-8") . "&page=%s");
    } else {
        op_include_box('searchTagResult', __('No contents matches.'));
    }
    ?>


<hr color="<?php 
    echo $op_color['core_color_11'];
    ?>
" />
<?php 
开发者ID:te-koyama,项目名称:openpne,代码行数:31,代码来源:searchSuccess.php

示例13: __

<?php

if ($commentPager->getNbResults()) {
    ?>
<hr color="<?php 
    echo $op_color['core_color_11'];
    ?>
">
<center>
<?php 
    echo __('Comments', array(), 'form_community');
    ?>
<br>
<?php 
    op_include_pager_total($commentPager);
    ?>
</center>

<?php 
    foreach ($commentPager->getResults() as $comment) {
        $list[] = get_partial('communityTopicComment/comment', array('comment' => $comment));
    }
    op_include_list('commentList', $list, array('border' => true));
    if ($commentPager->haveToPaginate()) {
        op_include_pager_navigation($commentPager, '@communityTopic_show?id=' . $communityTopic->getId() . '&page=%d');
    }
}
开发者ID:te-koyama,项目名称:openpne,代码行数:27,代码来源:_list.php

示例14: use_helper

<?php

use_helper('opDiary');
?>

<?php 
if (count($diaryList)) {
    $list = array();
    foreach ($diaryList as $diary) {
        $list[] = sprintf("[%s] %s<br>%s", op_format_date($diary->created_at, 'XShortDate'), $diary->Member->name, link_to(op_diary_get_title_and_count($diary, false, 28), 'diary_show', $diary));
    }
    $moreInfo = array();
    $moreInfo[] = link_to(__('More'), 'diary/listFriend');
    $options = array('title' => __('Recently Posted Diaries of %my_friend%', array('%my_friend%' => $op_term['my_friend']->pluralize()->titleize())), 'border' => true, 'moreInfo' => $moreInfo);
    op_include_list('friendDiaryList', $list, $options);
}
开发者ID:kawahara,项目名称:opDiaryPlugin,代码行数:16,代码来源:_friendDiaryList.php

示例15: op_mobile_page_title

<?php

op_mobile_page_title(__('Ranking'), __('Participation number No1 %community%'));
if ($ranking['number']) {
    echo '<center>' . __('It is a ranking of a lot of %community% of the participant that are.', array('%community%' => $op_term['community']->pluralize())) . '</center>';
    $list = array();
    for ($i = 0; $i < $ranking['number']; $i++) {
        $community = $ranking['model'][$i];
        $list[] = __('No%0%', array('%0%' => $ranking['rank'][$i])) . '<br>' . link_to($community->getName(), 'community/home?id=' . $community->getId()) . ' ' . __(':%0% member', array('%0%' => $ranking['count'][$i]));
    }
    $options = array('border' => true);
    op_include_list('rankingList', $list, $options);
} else {
    echo '<center>' . __('No %community%') . '</center>';
}
开发者ID:kawahara,项目名称:opRankingPlugin,代码行数:15,代码来源:_community.php


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