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


PHP bp_is_group_creation_step函数代码示例

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


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

示例1: create_screen

        function create_screen()
        {
            global $bp;
            if (!bp_is_group_creation_step($this->slug)) {
                return false;
            }
            ?>
			<p><?php 
            _e("Add RSS feeds of blogs you'd like to attach to this group in the box below.\n\t\t\t\t Any future posts on these blogs will show up on the group page and be recorded\n\t\t\t\t in activity streams.", 'bp-groups-externalblogs');
            ?>
			</p>
			<p class="desc"><?php 
            _e("Seperate URL's with commas.", 'bp-groups-externalblogs');
            ?>
</span>
			<p>
				<label for="blogfeeds"><?php 
            _e("Feed URL's:", 'bp-groups-externalblogs');
            ?>
</label>
				<textarea name="blogfeeds" id="blogfeeds"><?php 
            echo attribute_escape(implode(', ', (array) groups_get_groupmeta($bp->groups->current_group->id, 'blogfeeds')));
            ?>
</textarea>
			</p>
			<?php 
            wp_nonce_field('groups_create_save_' . $this->slug);
        }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:28,代码来源:bp-groups-externalblogs.php

示例2: create_screen

        function create_screen()
        {
            global $bp, $groups_template;
            if (!bp_is_group_creation_step($this->slug)) {
                return false;
            }
            ?>
			<div class="editfield">
				<label for=""><?php 
            _e('Group Slug', 'bp-edit-group-slug');
            ?>
</label>
				<p><?php 
            _e('This slug has been automatically created from the group name you entered in step 1.', 'bp-edit-group-slug');
            ?>
</p>
				<p><?php 
            _e('You can keep it, or change it to something more accurate.', 'bp-edit-group-slug');
            ?>
</p>
				<div>
					<?php 
            echo $this->get_group_slug_screen($bp->groups->current_group->id);
            ?>
				</div>
			</div>
<?php 
            wp_nonce_field('groups_create_save_' . $this->slug);
        }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:29,代码来源:bp-edit-group-slug.php

示例3: create_screen

        function create_screen($group_id = NULL)
        {
            if (!bp_is_group_creation_step($this->slug)) {
                return false;
            }
            // HOOK to add PER GROUP MEDIA enable/diable option in rtMedia PRO
            do_action('rtmedia_group_media_control_create');
            global $rtmedia;
            $options = $rtmedia->options;
            ?>
            <div class='rtmedia-group-media-settings'>
            <?php 
            if (isset($options['general_enableAlbums']) && $options['general_enableAlbums'] == 1) {
                // album is enabled
                ?>

                    <h4><?php 
                _e('Album Creation Control', 'rtmedia');
                ?>
</h4>
                    <p><?php 
                _e('Who can create Albums in this group?', 'rtmedia');
                ?>
</p>
                    <div class="radio">
                        <label>
                            <input name="rt_album_creation_control" type="radio" id="rt_media_group_level_all" checked="checked" value="all">
                            <strong><?php 
                _e('All Group Members', 'rtmedia');
                ?>
</strong>
                        </label>
                        <label>
                            <input name="rt_album_creation_control" type="radio" id="rt_media_group_level_moderators" value="moderators">
                            <strong><?php 
                _e('Group Admins and Mods only', 'rtmedia');
                ?>
</strong>
                        </label>
                        <label>
                            <input name="rt_album_creation_control" type="radio" id="rt_media_group_level_admin" value="admin">
                            <strong><?php 
                _e('Group Admin only', 'rtmedia');
                ?>
</strong>
                        </label>
                    </div>

                <?php 
            }
            ?>

                <?php 
            do_action('rtmedia_playlist_creation_settings_create_group');
            ?>
            </div>
            <?php 
            wp_nonce_field('groups_create_save_' . $this->slug);
        }
开发者ID:EfncoPlugins,项目名称:rtMedia,代码行数:59,代码来源:RTMediaGroupExtension.php

示例4: create_screen

 /**
  * The content of the My Group Extension tab of the group creation process
  *
  * Don't need a group creation step? In the __construct() method:
  *
  *     $this->enable_create_step = false;
  */
 function create_screen()
 {
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     $this->show_enable_chat_button();
     wp_nonce_field('groups_create_save_' . $this->slug);
 }
开发者ID:VLabsInc,项目名称:WordPressPlatforms,代码行数:15,代码来源:wpmudec_chat_buddypress_group_1.7.2.php

示例5: create_screen

 public function create_screen($group_id = null)
 {
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     bcg_admin_form();
     wp_nonce_field('groups_create_save_' . $this->slug);
 }
开发者ID:WP--plugins,项目名称:blog-categories-for-groups,代码行数:8,代码来源:bcg-admin.php

示例6: create_screen

 /**
  * The content of the BP group documents tab of the group creation process
  *
  */
 function create_screen($group_id = null)
 {
     $bp = buddypress();
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     $this->edit_create_markup($bp->groups->new_group_id);
     wp_nonce_field('groups_create_save_' . $this->slug);
 }
开发者ID:igniterealtime,项目名称:community-plugins,代码行数:13,代码来源:buddypress-group-documents.php

示例7: create_screen

 /**
  * The content of the BP group documents tab of the group creation process
  *
  */
 function create_screen()
 {
     global $bp;
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     $this->edit_create_markup($bp->groups->new_group_id);
     wp_nonce_field('groups_create_save_' . $this->slug);
 }
开发者ID:lilarock3rs,项目名称:bp-group-documents,代码行数:13,代码来源:buddypress-group-documents.php

示例8: create_screen

 function create_screen()
 {
     global $bp;
     /* If we're not at this step, go bye bye */
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     invite_anyone_create_screen_content('create');
     wp_nonce_field('groups_create_save_' . $this->slug);
 }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:10,代码来源:group-invites.php

示例9: cfbgr_is_restriction_js

/**
 * Load the js only when needed
 *
 * @return bool
 */
function cfbgr_is_restriction_js()
{
    // Group create
    if (bp_is_group_create() && bp_is_group_creation_step('group-settings')) {
        return true;
    }
    // Group manage
    if (bp_is_group() && bp_is_group_admin_screen('group-settings')) {
        return true;
    }
    return false;
}
开发者ID:WeFoster,项目名称:buddypress-group-restrictions,代码行数:17,代码来源:functions.php

示例10: create_screen

 function create_screen()
 {
     global $bp, $groupblog_create_screen;
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     $groupblog_create_screen = true;
     // Attaching the markup via a hook, so that plugins can unhook and replace with
     // their own markup. This is a bit of a hack.
     add_action('bp_groupblog_create_screen_markup', 'bp_groupblog_signup_blog');
     do_action('bp_groupblog_create_screen_markup');
     echo '<input type="hidden" name="groupblog-group-id" value="' . $bp->groups->current_group->id . '" />';
     echo '<input type="hidden" name="groupblog-create-save" value="groupblog-create-save" />';
     wp_nonce_field('groups_create_save_' . $this->slug);
 }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:15,代码来源:bp-groupblog-classes.php

示例11: create_screen

        /**
         * Create screen.
         *
         * @param int $group_id The group ID.
         */
        public function create_screen($group_id = null)
        {
            if (!bp_is_group_creation_step($this->slug)) {
                return false;
            }
            $times = array('10', '15', '20', '30', '60');
            echo '<label for="fetch-time">' . _e('Refresh time:', 'bp-groups-externalblogs') . '</label>';
            echo "<select id='fetch-time' name='fetch-time'>";
            $default = __('Default', 'buddysuite');
            echo "<option value='30'>{$default}</option>";
            foreach ($times as $time) {
                $selected = $fetch == $time ? 'selected="selected"' : '';
                echo "<option value='{$time}' {$selected}>{$time}</option>";
            }
            echo "</select>  ";
            ?>

			<p><?php 
            _e("Add RSS feeds of blogs you'd like to attach to this group in the box below.\n\t\t\t\t Any future posts on these blogs will show up on the group page and be recorded\n\t\t\t\t in activity streams.", 'bp-groups-externalblogs');
            ?>
			</p>

			<p>

				<span class="desc"><?php 
            _e("Seperate URL's with commas.", 'bp-groups-externalblogs');
            ?>
</span>
				<label for="blogfeeds"><?php 
            _e("Feed URL's:", 'bp-groups-externalblogs');
            ?>
</label>
				<textarea name="blogfeeds" id="blogfeeds"><?php 
            echo implode(', ', array_map('esc_url', (array) groups_get_groupmeta(bp_get_current_group_id(), 'blogfeeds')));
            ?>
</textarea>
			</p>

			<?php 
            wp_nonce_field('groups_create_save_' . $this->slug);
            ?>

		<?php 
        }
开发者ID:rpi-virtuell,项目名称:external-group-blogs,代码行数:49,代码来源:bp-groups-externalblogs.php

示例12: create_screen

        /**
         *
         * @since    0.0.1
         * @access  public
         * @static
         * @return bool
         */
        function create_screen($group_id = NULL)
        {
            global $bp;
            if (!bp_is_group_creation_step($this->slug)) {
                return false;
            }
            $fetch = groups_get_groupmeta($bp->groups->current_group->id, 'rw-group-blogs-fetchtime');
            $times = array('10', '15', '20', '30', '60');
            echo '<label for="fetch-time">' . _e('Refresh time:', RW_Group_Blogs::$textdomain) . '</label>';
            echo "<select id='fetch-time' name='fetch-time'>";
            $default = __('Default', RW_Group_Blogs::$textdomain);
            echo "<option value='30'>{$default}</option>";
            foreach ($times as $time) {
                $selected = $fetch == $time ? 'selected="selected"' : '';
                echo "<option value='{$time}' {$selected}>{$time}</option>";
            }
            echo "</select>  ";
            ?>
            <p><?php 
            _e("Add RSS feeds of blogs you'd like to attach to this group in the box below.\n\t\t\t\t Any future posts on these blogs will show up on the group page and be recorded\n\t\t\t\t in activity streams.", RW_Group_Blogs::$textdomain);
            ?>
            </p>

            <p>

                <span class="desc"><?php 
            _e("Seperate URL's with commas.", RW_Group_Blogs::$textdomain);
            ?>
</span>
                <label for="blogfeeds"><?php 
            _e("Feed URL's:", RW_Group_Blogs::$textdomain);
            ?>
</label>
                <textarea name="blogfeeds"
                          id="blogfeeds"><?php 
            echo attribute_escape(implode(', ', (array) groups_get_groupmeta($bp->groups->current_group->id, 'rw-group-blogs-feeds')));
            ?>
</textarea>
            </p>
            <?php 
            wp_nonce_field('groups_create_save_' . $this->slug);
        }
开发者ID:rpi-virtuell,项目名称:rw-group-blogs,代码行数:49,代码来源:RW_Group_Blogs_Extension.php

示例13: bp_attachments_cover_image_is_edit

/**
 * Are we on a page to edit a cover image ?
 *
 * @since  2.4.0
 *
 * @return bool True if on a page to edit a cover image, false otherwise
 */
function bp_attachments_cover_image_is_edit()
{
    $retval = false;
    $current_component = bp_current_component();
    if ('profile' === $current_component) {
        $current_component = 'xprofile';
    }
    if (!bp_is_active($current_component, 'cover_image')) {
        return $retval;
    }
    if (bp_is_user_change_cover_image()) {
        $retval = !bp_disable_cover_image_uploads();
    }
    if (bp_is_group_admin_page() && 'group-cover-image' == bp_get_group_current_admin_tab() || bp_is_group_create() && bp_is_group_creation_step('group-cover-image')) {
        $retval = !bp_disable_group_cover_image_uploads();
    }
    return apply_filters('bp_attachments_cover_image_is_edit', $retval, $current_component);
}
开发者ID:mawilliamson,项目名称:wordpress,代码行数:25,代码来源:bp-core-attachments.php

示例14: create_screen

 /**
  * The create screen method
  *
  * @package Rendez Vous
  * @subpackage Groups
  *
  * @since Rendez Vous (1.1.0)
  *
  * @param  int $group_id the group ID
  * @uses   bp_is_group_creation_step() to make sure it's the extension create step
  * @uses   bp_get_new_group_id() to get the just created group ID
  * @uses   Rendez_Vous_Group->edit_screen() to display the group extension settings form
  */
 public function create_screen($group_id = null)
 {
     // Bail if not looking at this screen
     if (!bp_is_group_creation_step($this->slug)) {
         return false;
     }
     // Check for possibly empty group_id
     if (empty($group_id)) {
         $group_id = bp_get_new_group_id();
     }
     return $this->edit_screen($group_id);
 }
开发者ID:socialray,项目名称:surfied-2-0,代码行数:25,代码来源:rendez-vous-groups.php

示例15: admin_markup

        /**
         * Admin markup used on the edit and create admin panels
         *
         * @since 1.0-beta
         */
        function admin_markup()
        {
            if (bp_is_group_creation_step($this->slug)) {
                // Default settings
                $settings = apply_filters('bp_docs_default_group_settings', array('group-enable' => 1, 'can-create' => 'member'));
            } else {
                $settings = bp_docs_get_group_settings($this->maybe_group_id);
            }
            $group_enable = empty($settings['group-enable']) ? false : true;
            $can_create = empty($settings['can-create']) ? false : $settings['can-create'];
            ?>

		<h2><?php 
            _e('Docs', 'bp-docs');
            ?>
</h2>

		<p><?php 
            _e('Docs is a powerful tool for collaboration with members of your group. A cross between document editor and wiki, Docs allows you to co-author and co-edit documents with your fellow group members, which you can then sort and tag in a way that helps your group to get work done.', 'bp-docs');
            ?>
</p>

		<p>
			 <label for="bp-docs[group-enable]"> <input type="checkbox" name="bp-docs[group-enable]" id="bp-docs-group-enable" value="1" <?php 
            checked($group_enable, true);
            ?>
 /> <?php 
            _e('Enable Docs for this group', 'bp-docs');
            ?>
</label>
		</p>

		<div id="group-doc-options" <?php 
            if (!$group_enable) {
                ?>
class="hidden"<?php 
            }
            ?>
>
			<h3><?php 
            _e('Options', 'bp-docs');
            ?>
</h3>

			<table class="group-docs-options">
				<tr>
					<td class="label">
						<label for="bp-docs-can-create"><?php 
            _e('Minimum role to associate Docs with this group:', 'bp-docs');
            ?>
</label>
					</td>

					<td>
						<select name="bp-docs[can-create]" id="bp-docs-can-create">
							<option value="admin" <?php 
            selected($can_create, 'admin');
            ?>
><?php 
            _e('Group admin', 'bp-docs');
            ?>
</option>
							<option value="mod" <?php 
            selected($can_create, 'mod');
            ?>
><?php 
            _e('Group moderator', 'bp-docs');
            ?>
</option>
							<option value="member" <?php 
            selected($can_create, 'member');
            ?>
><?php 
            _e('Group member', 'bp-docs');
            ?>
</option>
						</select>
					</td>
				</tr>

			</table>
		</div>

		<?php 
        }
开发者ID:projectestac,项目名称:wordpress-buddypress-docs,代码行数:90,代码来源:integration-groups.php


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