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


PHP slidedeck2_html_input函数代码示例

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


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

示例1: get_dailymotion_playlists_from_username

 function get_dailymotion_playlists_from_username($user_id = false, $slidedeck = null)
 {
     $playlists = false;
     $args = array('sslverify' => false);
     // Get the last 100 playlists (max)
     $feed_url = "https://api.dailymotion.com/user/{$user_id}/playlists?limit=100&fields=id,name,created_time";
     if (isset($user_id) && !empty($user_id)) {
         $playlists = array();
         $response = wp_remote_get($feed_url, $args);
         if (!is_wp_error($response)) {
             $response_json = json_decode($response['body']);
             if (!empty($response_json)) {
                 foreach ($response_json->list as $key => $entry) {
                     $playlists[] = array('href' => "https://api.dailymotion.com/playlist/{$entry->id}/videos", 'title' => $entry->name, 'created' => $entry->created_time, 'updated' => $entry->created_time);
                 }
             }
         }
     }
     // Dailymotion User playlists Call
     $playlists_select = array('recent' => __('Recent Uploads', $this->namespace));
     if ($playlists) {
         foreach ($playlists as $playlist) {
             $playlists_select[$playlist['href']] = $playlist['title'];
         }
     }
     $html_input = array('type' => 'select', 'label' => "Playlist", 'attr' => array('class' => 'fancy'), 'values' => $playlists_select);
     return slidedeck2_html_input('options[dailymotion_playlist]', $slidedeck['options']['dailymotion_playlist'], $html_input, false);
 }
开发者ID:danaiser,项目名称:hollandLawns,代码行数:28,代码来源:source.php

示例2: get_vimeo_playlists_from_username

 function get_vimeo_playlists_from_username($user_id = false, $slidedeck = null)
 {
     $playlists = false;
     $args = array('sslverify' => false);
     $feed_url = "http://vimeo.com/api/v2/{$user_id}/albums.json";
     if (isset($user_id) && !empty($user_id)) {
         // Attempt to read the cache (no cache here)
         $playlists = false;
         // If cache doesn't exist
         if (!$playlists) {
             $playlists = array();
             $response = wp_remote_get($feed_url, $args);
             if (!is_wp_error($response)) {
                 $response_json = json_decode($response['body']);
                 if (!empty($response_json)) {
                     foreach ($response_json as $key => $entry) {
                         $playlists[] = array('href' => "http://vimeo.com/api/v2/album/{$entry->id}/videos.json", 'title' => $entry->title, 'created' => $entry->created_on, 'updated' => $entry->last_modified);
                     }
                 }
             } else {
                 return false;
             }
         }
     }
     // Vimeo User playlists Call
     $playlists_select = array('recent' => __('Recent Uploads', $this->namespace));
     if ($playlists) {
         foreach ($playlists as $playlist) {
             $playlists_select[$playlist['href']] = $playlist['title'];
         }
     }
     $html_input = array('type' => 'select', 'label' => "Vimeo Album", 'attr' => array('class' => 'fancy'), 'values' => $playlists_select);
     return slidedeck2_html_input('options[vimeo_album]', $slidedeck['options']['vimeo_album'], $html_input, false);
 }
开发者ID:danaiser,项目名称:hollandLawns,代码行数:34,代码来源:source.php

示例3: get_youtube_playlists_from_username

 function get_youtube_playlists_from_username($user_id = false, $slidedeck = null)
 {
     $playlists = false;
     $args = array('sslverify' => false);
     $feed_url = "https://gdata.youtube.com/feeds/api/users/{$user_id}/playlists?alt=json&orderby=updated&max-results=50";
     if (isset($user_id) && !empty($user_id)) {
         // Create a cache key
         $cache_key = $slidedeck['id'] . $feed_url;
         // Attempt to read the cache (no cache)
         $playlists = false;
         // If cache doesn't exist
         if (!$playlists) {
             $playlists = array();
             $response = wp_remote_get($feed_url, $args);
             if (!is_wp_error($response)) {
                 $response_json = json_decode($response['body']);
                 /**
                  * If this is empty, the user probably has no playlists
                  */
                 if (isset($response_json->feed->entry) && !empty($response_json->feed->entry)) {
                     foreach ((array) $response_json->feed->entry as $key => $entry) {
                         $playlist_feed = $entry->{'yt$playlistId'}->{'$t'};
                         $playlists[] = array('href' => 'https://gdata.youtube.com/feeds/api/playlists/' . $playlist_feed, 'title' => $entry->title->{'$t'}, 'created' => $entry->published->{'$t'}, 'updated' => $entry->updated->{'$t'});
                     }
                 }
             } else {
                 return false;
             }
         }
     }
     // YouTube User playlists Call
     $playlists_select = array('recent' => __('Recent Uploads', $this->namespace));
     if ($playlists) {
         foreach ($playlists as $playlist) {
             $playlists_select[$playlist['href']] = $playlist['title'];
         }
     }
     $html_input = array('type' => 'select', 'label' => "YouTube Playlist", 'attr' => array('class' => 'fancy'), 'values' => $playlists_select);
     return slidedeck2_html_input('options[youtube_playlist]', $slidedeck['options']['youtube_playlist'], $html_input, false);
 }
开发者ID:danaiser,项目名称:hollandLawns,代码行数:40,代码来源:source.php

示例4: slidedeck2_html_input

         }
         $input_html .= slidedeck2_html_input("options[{$name}]", $slidedeck['options'][$name], $option, false);
     } else {
         foreach ($option as $sub_name => $sub_option) {
             if (!isset($sub_option['interface']) || empty($sub_option['interface'])) {
                 // Create attr property if it doesn't exist
                 if (!isset($sub_option['attr'])) {
                     $sub_option['attr'] = array('class' => "");
                 }
                 // Create class attribute if it doesn't exist
                 if (!isset($sub_option['attr']['class'])) {
                     $sub_option['attr']['class'] = "";
                 }
                 $sub_option['attr']['class'] .= " fancy";
             }
             $input_html .= slidedeck2_html_input('options[' . $name . '][' . $sub_name . ']', $slidedeck['options'][$name][$sub_name], $sub_option, false);
         }
     }
     if (array_key_exists('type', $option) && $option['type'] == 'hidden') {
         $hidden_options .= $input_html;
     } else {
         $html .= $input_html;
     }
     if ($is_hidden !== true) {
         $html .= "</li>";
     }
     echo $html;
 }
 ?>
                         
                     <?php 
开发者ID:w392807287,项目名称:FirstRepository,代码行数:31,代码来源:_options.php

示例5: slidedeck2_html_input

            </li>
            <li<?php 
echo $tags_hidden;
?>
>
                <?php 
slidedeck2_html_input('options[flickr_tags_mode]', $slidedeck['options']['flickr_tags_mode'], array('type' => 'radio', 'attr' => array('class' => 'fancy'), 'label' => __('Tag mode: ', $this->namespace), 'values' => array('any' => __('Any of these', $this->namespace), 'all' => __('All of these', $this->namespace))));
?>
            </li>
            <li class="add-button-li"<?php 
echo $tags_hidden;
?>
>
                <div class="add-button-wrapper flickr">
                    <?php 
$tooltip = __('Enter one or more tags separated by commas.') . "<br />" . __('Tags can only be used with recent photos.');
slidedeck2_html_input('flickr-add-tag-field', '', array('label' => __("Flickr Tags", $this->namespace) . '<span class="tooltip" title="' . $tooltip . '"></span>', 'attr' => array('size' => 10, 'maxlength' => 255)));
?>
                    <a class="flickr-tag-add add-button" href="#add"><?php 
_e("Add", $this->namespace);
?>
</a>
                </div>
                <div id="flickr-tags-wrapper"><?php 
echo $tags_html;
?>
</div>
            </li>
        </ul>
    </div>
</div>
开发者ID:jocher,项目名称:httpdocs,代码行数:31,代码来源:show.php

示例6: slidedeck_setup_options_bottom

 /**
  * Append options to bottom of the setup list
  * 
  * @param array $slidedeck
  */
 function slidedeck_setup_options_bottom($slidedeck)
 {
     if ($this->is_valid($slidedeck['lens'])) {
         echo '<li>' . slidedeck2_html_input("options[navigation-position]", $slidedeck['options']['navigation-position'], $this->options_model['Setup']['navigation-position'], false) . '</li>';
     }
 }
开发者ID:rigelstpierre,项目名称:Everlovin-Press,代码行数:11,代码来源:lens.php

示例7: _e

        <strong><?php 
_e("Preferred Image Size", $namespace);
?>
</strong>
        <?php 
slidedeck2_html_input('_preferred_image_size', $slide->meta['_preferred_image_size'], $preferred_image_size_params);
?>
    </li>
    
    <li class="image-scaling option">
        <strong><?php 
_e("Image Scaling", $namespace);
?>
</strong>
        <?php 
slidedeck2_html_input("_image_scaling", $slide->meta['_image_scaling'], $image_scaling_params);
?>
    </li>
    
    <li class="last text-position option">
        <strong><?php 
_e("Caption Position", $namespace);
?>
</strong>
        <?php 
foreach ($caption_positions as $position => $label) {
    ?>
            <label><input type="radio" class="fancy" name="_caption_position" value="<?php 
    echo $position;
    ?>
"<?php 
开发者ID:danaiser,项目名称:hollandLawns,代码行数:31,代码来源:show.php

示例8: get_youtube_playlists_from_username

 function get_youtube_playlists_from_username($user_id = false, $slidedeck = null)
 {
     $playlists = false;
     $args = array('sslverify' => false);
     /* Get youtube api key which is passed as query parameter to get the response */
     $last_used_youtube_api_key = get_option($this->namespace . '_last_saved_youtube_api_key');
     /* 
      * Added by Ranjith
      * Build the channel url to retrieve all channels id's asociated with the user 
      */
     $channel_url = 'https://www.googleapis.com/youtube/v3/channels?part=id&forUsername=' . $user_id . '&key=' . $last_used_youtube_api_key;
     $response = wp_remote_get($channel_url, $args);
     if (!is_wp_error($response)) {
         $response_json = json_decode($response['body']);
         if (isset($response_json->items)) {
             $channel_count = count($response_json->items);
         } else {
             $channel_count = 0;
         }
         /* Loop through the channels to get the playlist */
         for ($j = 0; $j < $channel_count; $j++) {
             $channel_id = $response_json->items[$j]->id;
             /* 
              * Added by Ranjith
              * Build playlist url to retrieve all the playlists available in channel 
              */
             if (isset($channel_id) && !empty($channel_id)) {
                 $feed_url = 'https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelId=' . $channel_id . '&maxResults=50&key=' . $last_used_youtube_api_key;
             }
             if (isset($user_id) && !empty($user_id)) {
                 // Create a cache key
                 $cache_key = $slidedeck['id'] . $feed_url;
                 // Attempt to read the cache (no cache)
                 $playlists = false;
                 // If cache doesn't exist
                 if (!$playlists) {
                     $playlists = array();
                     $response = wp_remote_get($feed_url, $args);
                     if (!is_wp_error($response)) {
                         $response_json = json_decode($response['body']);
                         $item_count = count($response_json->items);
                         /**
                          * If this is empty, the user probably has no playlists
                          */
                         if ($item_count) {
                             /* Build playlist items url to retreive items from playlist */
                             for ($i = 0; $i < $item_count; $i++) {
                                 $playlist_id = $response_json->items[$i]->id;
                                 $playlists[] = array('href' => 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=' . $playlist_id, 'title' => $response_json->items[$i]->snippet->title, 'created' => $response_json->items[$i]->snippet->publishedAt, 'updated' => $response_json->items[$i]->snippet->publishedAt);
                             }
                         }
                     } else {
                         return false;
                     }
                 }
             }
         }
     }
     // YouTube User playlists Call
     $playlists_select = array('recent' => __('Recent Uploads', $this->namespace));
     if ($playlists) {
         foreach ($playlists as $playlist) {
             $playlists_select[$playlist['href']] = $playlist['title'];
         }
     }
     $html_input = array('type' => 'select', 'label' => "YouTube Playlist", 'attr' => array('class' => 'fancy'), 'values' => $playlists_select);
     return slidedeck2_html_input('options[youtube_playlist]', $slidedeck['options']['youtube_playlist'], $html_input, false);
 }
开发者ID:elmehdiboutaleb,项目名称:mjwebsite,代码行数:68,代码来源:source.php

示例9: slidedeck2_html_input

?>
                            </li>
                            <li>
                            	<?php 
slidedeck2_html_input('data[disable_edit_create]', $data['disable_edit_create'], array('attr' => array('class' => 'fancy'), 'type' => 'checkbox', 'label' => "Disable the ability to Add New and Edit SlideDecks for non Admins"));
?>
                            </li>
                            <li>
                            	<?php 
slidedeck2_html_input('data[twitter_user]', $data['twitter_user'], array('attr' => array('class' => 'fancy'), 'label' => "Twitter user to tweet via for overlays"));
?>
                            </li>
                            <li>
                            	<?php 
slidedeck2_html_input('last_saved_instagram_access_token', $last_saved_instagram_access_token, array('attr' => array('class' => 'fancy'), 'label' => "Last used Instagram Access Token"));
?>
                            </li>
                            <li>
                            	<?php 
slidedeck2_html_input('last_saved_gplus_api_key', $last_saved_gplus_api_key, array('attr' => array('class' => 'fancy'), 'label' => "Last used Google+ API Key"));
?>
                            </li>
                        </ul>
                    </div>
                    <input type="submit" class="button-primary" value="Update Options" />
                </formset>
            </form>
        </div>
    </div>
</div>
开发者ID:rigelstpierre,项目名称:Everlovin-Press,代码行数:30,代码来源:admin-options.php

示例10: slidedeck2_html_input

?>
" />
    <div class="inner">
        <ul class="content-source-fields">
            <li>
				<?php 
slidedeck2_html_input('options[feedUrl]', $slidedeck['options']['feedUrl'], array('label' => __("RSS Feed URL", $this->namespace), 'attr' => array('rows' => 3), 'required' => true, 'type' => 'textarea'));
?>
                
                <em><?php 
echo __('(you can enter multiple feeds, one per line)', $this->namespace);
?>
</em>
                <em><?php 
echo sprintf(__('Needs to be a valid RSS feed. See the %1$sW3C Feed Validator Service%2$s to check your feed. NOTE: Some servers are not configured to follow redirects, make sure you are using the feed URL&rsquo;s final destination URL.', $this->namespace), "<a href='http://validator.w3.org/feed/' target='_blank'>", "</a>");
?>
</em>
            </li>
            <li>
				<?php 
slidedeck2_html_input('options[rssImageSource]', $slidedeck['options']['rssImageSource'], $this->options_model['Setup']['rssImageSource']);
?>
            </li>
            <li>
				<?php 
slidedeck2_html_input('options[rssValidateImages]', $slidedeck['options']['rssValidateImages'], $this->options_model['Setup']['rssValidateImages']);
?>
            </li>
        </ul>
    </div>
</div>
开发者ID:danaiser,项目名称:hollandLawns,代码行数:31,代码来源:show.php

示例11: slidedeck2_html_input

but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SlideDeck.  If not, see <http://www.gnu.org/licenses/>.
*/
?>

<div id="content-source-pinterest">
    <input type="hidden" name="source[]" value="<?php 
echo $this->name;
?>
" />
    <div class="inner">
        <ul class="content-source-fields">
            <li>
                <?php 
slidedeck2_html_input('options[pinterest_url]', $slidedeck['options']['pinterest_url'], array('label' => __("A Pinterest URL", $this->namespace), 'attr' => array('size' => 20, 'maxlength' => 255), 'required' => true));
?>
            </li>
        </ul>
        <em class="note-below">
        	eg: A user - <strong><a href="http://pinterest.com/hbwsl/">http://pinterest.com/hbwsl/</a></strong><br />
        	eg: A board - <strong><a href="http://pinterest.com/dtelepathy/innovation-inspiration/">http://pinterest.com/hbwsl/innovation-inspiration/</a></strong>
        </em>
        <em class="note-below disclaimer">
        	We are using an unofficial API (RSS) for this Pinterest source.<br />This could and probably will change in the future.
        </em>
    </div>
</div>
开发者ID:elmehdiboutaleb,项目名称:mjwebsite,代码行数:31,代码来源:show.php

示例12: __

            </li>
            <li>
				<?php 
$tooltip = __('Choose whether to show all posts or just your own.', $namespace);
?>
			    <?php 
slidedeck2_html_input('options[facebook_page_show_other_users]', $slidedeck['options']['facebook_page_show_other_users'], array('type' => 'radio', 'attr' => array('class' => 'fancy'), 'label' => __('Which Posts?', $namespace), 'values' => array('page' => __('Posts by Page', $namespace), 'everyone' => __('All Posts', $namespace)), 'description' => "Choose whether to show all posts or just posts by page owner."));
?>
            </li>
            <li>
				<?php 
$tooltip = __('Facebook\'s API requires an access token to get your content.', $namespace);
$tooltip .= '<br />';
?>
				<?php 
slidedeck2_html_input('options[facebook_access_token]', $token, array('type' => 'password', 'label' => __("Access Token", $namespace) . '<span class="tooltip" title="' . $tooltip . '"></span>', array('size' => 40, 'maxlength' => 255), 'required' => true));
?>
				<em class="note-below">Facebook expires access tokens after 60 days, we will still display your cached content in the event that your access token expires.<br/><br/>Get your access token <a href="<?php 
echo admin_url('admin-ajax.php');
?>
?action=<?php 
echo $namespace;
?>
_get_facebook_access_token&_wpnonce_get_facebook_access_token=<?php 
echo wp_create_nonce($namespace . '-get-facebook-access-token');
?>
" id="get-facebook-access-token-link">here</a>.</em>
            </li>
        </ul>
    </div>
</div>
开发者ID:danaiser,项目名称:hollandLawns,代码行数:31,代码来源:show.php

示例13: wp_nonce_field

        <input type="hidden" name="action" value="slidedeck_medialibrary_image_properties" />
        <input type="hidden" name="ID" value="<?php 
echo $media['post']->ID;
?>
" />
        <?php 
wp_nonce_field('slidedeck-medialibrary-image-properties');
?>
        
        <p><?php 
slidedeck2_html_input("title", $media['post']->post_title, array('label' => "Title"));
?>
</p>
        <p><?php 
slidedeck2_html_input("caption", $media['post']->post_excerpt, array('label' => "Caption"));
?>
</p>
        <p><?php 
slidedeck2_html_input("media_link", $media['media_link'], array('label' => "Link"));
?>
</p>
        
    </fieldset>
    
    <p class="submit-row">
        <a href="#close" class="close-modal">Cancel</a>
        <input type="submit" value="Save Changes" class="button button-primary" />
    </p>
    
</form>
开发者ID:rigelstpierre,项目名称:Everlovin-Press,代码行数:30,代码来源:medialibrary-image-properties.php

示例14: sprintf

$tooltip .= '<br />';
$tooltip .= sprintf(__('Click %1$shere%2$s to get your token. (You only need to do this once)', $this->namespace), "<a href='https://instagram.com/oauth/authorize/?client_id=529dede105394ad79dd253e0ec0ac090&redirect_uri=http%3A%2F%2Fwww.slidedeck.com%2Finstagram%3Fautofill_url%3D" . urlencode(WP_PLUGIN_URL) . "%2F&response_type=code' target='_blank'>", '</a>');
?>
				<?php 
slidedeck2_html_input('options[instagram_access_token]', $token, array('label' => __("Access Token" . '<span class="tooltip" title="' . $tooltip . '"></span>', $this->namespace), array('size' => 40, 'maxlength' => 255), 'required' => true));
?>
				<em class="note-below">Get your access token <a href="https://instagram.com/oauth/authorize/?client_id=529dede105394ad79dd253e0ec0ac090&redirect_uri=http%3A%2F%2Fwww.slidedeck.com%2Finstagram%3Fautofill_url%3D<?php 
echo base64_encode(admin_url('admin.php?') . http_build_query($_GET));
?>
&response_type=code">here</a>.</em>
            </li>
            <li>
				<?php 
$tooltip = __('This can be your Username or another user\'s Username', $this->namespace);
?>
			    <?php 
slidedeck2_html_input('options[instagram_username]', $slidedeck['options']['instagram_username'], array('label' => __("Username" . '<span class="tooltip" title="' . $tooltip . '"></span>', $this->namespace), array('size' => 20, 'maxlength' => 255)));
?>
            </li>
            <li class="last dribbble cache-duration">
            	<?php 
$tooltip = __('This is how often we will fetch new data from Instagram', $this->namespace);
include SLIDEDECK2_DIRNAME . '/views/elements/_feed_cache_dration_slider.php';
?>
            </li>
        </ul>
    </div>
    <?php 
include SLIDEDECK2_DIRNAME . '/views/elements/_flyout-action-row.php';
?>
</div>
开发者ID:rigelstpierre,项目名称:Everlovin-Press,代码行数:31,代码来源:_instagram.php

示例15: slidedeck2_html_input

?>
            </li>
            <li class="twitter-username"<?php 
echo $username_hidden;
?>
>
        		<?php 
slidedeck2_html_input('options[twitter_username]', $slidedeck['options']['twitter_username'], array('label' => __('Twitter Username', $this->namespace), 'attr' => array('size' => 20, 'maxlength' => 255), 'required' => true));
?>
            </li>
            <?php 
if (false) {
    ?>
            <li>
                <?php 
    slidedeck2_html_input('options[twitter_scrape_images]', $slidedeck['options']['twitter_scrape_images'], array('type' => 'checkbox', 'label' => __("Image Scraping?", $this->namespace), 'attr' => array('class' => 'fancy')));
    ?>
            </li>
            <?php 
}
?>
            <li class="last twitter cache-duration">
            	<?php 
$tooltip = __('This is how often we will fetch new data from Twitter', $this->namespace);
include SLIDEDECK2_DIRNAME . '/views/elements/_feed_cache_dration_slider.php';
?>
            </li>
        </ul>
    </div>
    <?php 
include SLIDEDECK2_DIRNAME . '/views/elements/_flyout-action-row.php';
开发者ID:rigelstpierre,项目名称:Everlovin-Press,代码行数:31,代码来源:_twitter.php


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