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


PHP get_albums函数代码示例

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


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

示例1: adi_facebook_albums

function adi_facebook_albums()
{
    global $wp_query;
    print '<div class="wrap">';
    print '<h2>ADI Facebook</h2>';
    print '<p>';
    print 'This page displays the current Facebook albums and their IDs.';
    print '</p>';
    get_albums();
    //if(isset($_POST['submit']) && is_array($_POST['coda_slider_post_id']))update_coda_slider_post();
}
开发者ID:khjohnson1972,项目名称:adi-wordpress-fbook-galleries,代码行数:11,代码来源:settings-page.php

示例2: generate_move_menu

function generate_move_menu($level)
{
    if ($level == 'albums') {
        $parent = 'collections';
    }
    if ($level == 'pictures') {
        $parent = 'albums';
    }
    $output = "\n\t\t\t" . '<input class="submit" type="submit" name="move_checked" value="' . plog_tr('Move Checked To') . '" />';
    if ($level == 'pictures') {
        $albums = get_albums();
        $output .= generate_albums_menu($albums);
    } else {
        $output .= "\n\t\t\t" . '<select class="move-del-manage" id="group_id" name="group_id">';
        $collections = get_collections();
        foreach ($collections as $collection) {
            $output .= "\n\t\t\t\t" . '<option value="' . $collection['id'] . '">' . SmartStripSlashes($collection['name']) . '</option>';
        }
        $output .= "\n\t\t\t" . '</select>';
    }
    return $output;
}
开发者ID:joshuasiler,项目名称:Rebuilding-Together,代码行数:22,代码来源:plog-manage.php

示例3: generate_move_menu

function generate_move_menu($level)
{
    if ($level == "albums") {
        $parent = "collections";
    }
    if ($level == "pictures") {
        $parent = "albums";
    }
    $output .= '<input class="submit" type="submit" name="move_checked" value="' . plog_tr("Move Checked To") . '"/>';
    if ($level == "pictures") {
        $albums = get_albums();
        $output .= generate_albums_menu($albums);
    } else {
        $output .= '<select name="group_id">';
        $collections = get_collections();
        foreach ($collections as $collection) {
            $output .= '<option value="' . $collection["id"] . '">' . SmartStripSlashes($collection["name"]);
            $output .= '</option>';
        }
        $output .= '</select>';
    }
    return $output;
}
开发者ID:alanhaggai,项目名称:plogger,代码行数:23,代码来源:plog-manage.php

示例4: get_nv

    $P1 = get_nv($n1, $v1);
    $P2 = get_nv($n2, $v2);
    $P3 = get_nv($n3, $v3);
    if ($step) {
        extract(unserialize($step));
    } else {
        $a1 = 1;
        $p1 = $item['price'];
        $a2 = $a3 = $p2 = $p3 = '';
    }
    $unit or $unit = $L['unit'];
    $adddate = timetodate($addtime, 3);
    $editdate = timetodate($edittime, 3);
    $linkurl = $MOD['linkurl'] . $linkurl;
    $thumbs = get_albums($item);
    $albums = get_albums($item, 1);
    $album_js = 1;
    $amount = number_format($amount, 0, '.', '');
    $update = '';
    include DT_ROOT . '/include/update.inc.php';
    $head_canonical = $linkurl;
    $head_title = $title . $DT['seo_delimiter'] . $head_title;
    $head_keywords = $keyword;
    $head_description = $introduce ? $introduce : $title;
    if ($EXT['mobile_enable']) {
        $head_mobile = $EXT['mobile_url'] . mobileurl($moduleid, 0, $itemid, $page);
    }
} else {
    $typeid = isset($typeid) ? intval($typeid) : 0;
    $view = isset($view) ? 1 : 0;
    $url = "file={$file}";
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:mall.inc.php

示例5: foreach

    if ($json) {
        foreach ($json as $result) {
            $results['artist'][] = html_entity_decode($result->artist, ENT_COMPAT, "UTF-8");
        }
    }
}
if ($search == "title") {
    $json = json_decode(get_tracks());
    if ($json) {
        foreach ($json as $result) {
            $results['title'][] = html_entity_decode($result->title, ENT_COMPAT, "UTF-8");
        }
    }
}
if ($search == "album") {
    $json = json_decode(get_albums());
    if ($json) {
        foreach ($json as $result) {
            $results['albums'][] = html_entity_decode($result->title, ENT_COMPAT, "UTF-8");
        }
    }
}
$found = array();
if (isset($results[@$search])) {
    $txt = strtolower(@$value);
    $len = strlen($txt);
    $i = 0;
    foreach ($results[$search] as $res) {
        if (isset($limit)) {
            if (substr(strtolower($res), 0, $len) === $txt && $i < $limit) {
                $found[] = htmlentities($res, ENT_COMPAT, "UTF-8");
开发者ID:BackupTheBerlios,项目名称:gdrestfulwebint-svn,代码行数:31,代码来源:inc.search.php

示例6: get_feed

echo 'processing fb feeds...';
$param->connection = 'feed';
$param->table_name = 'feed_raw_data';
get_feed($param);
echo "done<br/>";
//me/photos
echo 'processing fb photos...';
$param->connection = 'photos';
$param->table_name = 'photos_raw_data';
get_photo($param);
echo "done<br/>";
//me/albums
echo 'processing fb albums...';
$param->connection = 'albums';
$param->table_name = 'albums_raw_data';
$album_ids = get_albums($param);
echo "done<br/>";
//album_id/photos
echo 'processing fb photos inside albums...';
$param->connection = 'photos';
$param->table_name = 'album_photos_raw_data';
$param->graph_url = 'https://graph.facebook.com/';
get_album_photos($param, $album_ids);
echo "done<br/>";
$execution_time['end'] = get_time();
$totaltime = $execution_time['end'] - $execution_time['start'];
echo "<br/>totaltime : {$totaltime}";
logme("Facebook ID:{$fbid}");
logme("Total Execution Time: {$totaltime}");
logme("============================================================================");
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
开发者ID:vlad1500,项目名称:example-code,代码行数:31,代码来源:fbdata_updater.php

示例7: foreach

     if ($limitType == 'collections') {
         if ($total == $limit) {
             break;
         }
         $total++;
     }
     $collection["thumb_path"] = "plog-thumb.php?id=" . $collection["thumbnail_id"];
     $xml .= '<collection';
     // Put together the tag attributes
     foreach ($collection as $var => $val) {
         $xml .= ' ' . $var . '="' . htmlspecialchars($val) . '"';
     }
     $xml .= '>';
 }
 if (isset($_GET["albums"]) || isset($_GET["album_id"])) {
     $albums = get_albums($collection["id"], "mod", "DESC");
 } else {
     if (isset($_GET["pictures"]) || isset($_GET["picture_id"]) || isset($_GET["comments"]) || isset($_GET["comment_id"])) {
         $albums = get_album_ids($collection["id"], "mod", "DESC");
     } else {
         $albums = array();
     }
 }
 foreach ($albums as $album) {
     if (isset($_GET["collection_id"]) && $_GET["collection_id"] == $album["collection_id"] || !isset($_GET["collection_id"])) {
         if (isset($_GET["albums"]) && $_GET["albums"] == 1 || isset($_GET["album_id"]) && $_GET["album_id"] == $album["album_id"]) {
             if ($limitType == 'albums') {
                 if ($total == $limit) {
                     break;
                 }
                 $total++;
开发者ID:alanhaggai,项目名称:plogger,代码行数:31,代码来源:plog-xml.php

示例8: sprintf

		</tr>
		<tr>
			<td class="cssbox-upload-body">
				<div class="no-margin-top no-margin-bottom">
					<label class="no-margin-top" accesskey="n" for="userfile">' . sprintf(plog_tr('File<em>n</em>ame (%s limit)'), ini_get('upload_max_filesize')) . ':</label>
					<input class="no-margin-top" tabindex="10" id="userfile" name="userfile" value="Vali fail" type="file" onchange="checkArchive(this)" />';
if (!is_writable(PLOGGER_DIR . 'plog-content/uploads/')) {
    $output .= "\n\t\t\t\t\t" . '<p class="actions" id="zip-alert" style="display: none;">' . sprintf(plog_tr('Please make sure the %s directory is writable before uploading a %s file'), '<strong>plog-content/uploads/</strong>', '.zip') . '</p>';
}
$output .= "\n\t\t\t\t\t" . '<label accesskey="c" for="caption">' . plog_tr('Picture <em>C</em>aption (optional)') . ':</label>
					<input class="no-margin-top" tabindex="20" name="caption" id="caption" style="width: 90%;" />
					<label accesskey="d" for="description">' . plog_tr('<em>D</em>escription (optional)') . ':</label>
					<textarea class="no-margin-top" tabindex="30" name="description" id="description" style="width: 90%;" cols="43" rows="6"></textarea>
				</div><!-- /no-margin-top no-margin-bottom -->
			</td>';
$albums = get_albums();
$output .= "\n\t\t\t" . '<td style="width: 2%;">&nbsp;</td>
			<td class="cssbox-upload-body">
				<div class="no-margin-bottom">
					<input tabindex="40" onclick="var k=document.getElementsByName(\'albums_menu\');k[0].focus();" type="radio" name="destination_radio" id="destination_radio" accesskey="a" value="existing" checked="checked" />
					<label for="destination_radio" style="display: inline;">' . plog_tr('Existing <em>A</em>lbum') . '</label>
					' . generate_albums_menu($albums) . '
				</div><!-- /no-margin-bottom -->
				<h3 style="text-indent: 10px; margin-bottom: 15px;">' . plog_tr('-- OR --') . '</h3>
				<div>
					<input tabindex="60" onclick="var k=document.getElementsByName(\'new_album_name\');k[0].focus();" type="radio" name="destination_radio" accesskey="b" value="new" />
					<label for="new_album_name" style="display: inline;">' . plog_tr('Create a New Al<em>b</em>um') . '</label>
					<label class="no-margin-bottom" for="new_album_name" style="font-weight: normal;">' . plog_tr('New Album Name') . ':</label>
					<input class="no-margin-top" tabindex="70" style="width: 79%;" onclick="var k=document.getElementsByName(\'destination_radio\');k[1].checked=true;" type="text" id="new_album_name" name="new_album_name" />
					<label class="no-margin-bottom" for="collections_menu" style="font-weight: normal;">' . plog_tr('In Collection') . ':</label>
					' . generate_collections_menu() . '
开发者ID:joshuasiler,项目名称:Rebuilding-Together,代码行数:31,代码来源:plog-upload.php

示例9: foreach

        foreach ($photos['response'] as $value) {
            echo '<a href="/albums.php?id=' . $id . '&aid=' . $value['aid'] . '&pid=' . $value['pid'] . '" ><img src="' . $value['src'] . '"></a>';
        }
    }
}
function get_photo($id, $aid, $pid)
{
    $vk = new VK\VK(APP_ID, ACCES_CODE);
    $photo = $vk->api('photos.get', array('owner_id' => $id, 'album_id' => $aid, 'photo_ids' => $pid));
    echo '<a href="/albums.php?id=' . $id . '&aid=' . $aid . '"><<< НАЗАД</a><br />';
    if (isset($photo['response']['0']['src_big'])) {
        echo '<img src="' . $photo['response']['0']['src_big'] . '">';
    } else {
        echo "<p>Нет доступа к фотографии...<br> Фотография скрыта настройками приватности :(";
    }
    if (isset($photo['response']['0']['text'])) {
        echo '<p>' . $photo['response']['0']['text'] . '</p>';
    }
}
if (isset($id)) {
    get_albums($id);
} else {
    exit;
}
if ($pid !== '') {
    get_photo($id, $aid, $pid);
    exit;
} elseif (isset($aid)) {
    get_photos($id, $aid);
    exit;
}
开发者ID:kuzmich-,项目名称:VkLitePhotoViewer,代码行数:31,代码来源:albums.php

示例10: get_album_photos

    $limit = "12";
    $photo_list = get_album_photos($_GET['id'], $limit);
    $tpl = "photos_album_view_tpl.php";
}
// Просмотр фотографии
if ($_GET['action'] == 'view' && empty($error)) {
    $view_photo = get_photo($_GET['id']);
    $tpl = "photos_view_tpl.php";
}
// добавление или изменение фотографии
if (($_GET['action'] == 'add' || $_GET['action'] == 'edit') && empty($error)) {
    if ($_GET['action'] == 'edit' && isset($_GET['id']) && empty($error)) {
        $photo_list = get_photo($_GET['id']);
    }
    $album_list = get_albums();
    $tpl = "photos_add_tpl.php";
}
// выводим список альбомов
if ($_GET['action'] == 'album_list') {
    $albums_list = get_albums();
    $root_album = get_album_photos('0');
    $tpl = "photos_album_list_tpl.php";
}
// добавление или изменение альбома
if ($_GET['action'] == 'album_edit' && isset($_GET['id']) || $_GET['action'] == 'album_add' && empty($error)) {
    if ($_GET['action'] == 'album_edit') {
        $album_edit = get_album($_GET['id']);
    }
    $tpl = "photos_album_add_tpl.php";
}
include "photos_main_tpl.php";
开发者ID:rad-li,项目名称:Cafe-CMS,代码行数:31,代码来源:index.php

示例11: json_decode

         # cddbid / level 3 specified?
         print "<div class='searchresults border-left'>\n";
         $tracklist = json_decode(get_album_tracks($sourceid));
         write_tracklist($tracklist);
         print "</div>\n";
     }
     print "</div>\n";
 }
 /// Albums by Title
 if (strcmp($level0, "al-ti") == 0) {
     write_alphabet("browse.php?level0=al-ti&level1=", $level1);
     print "<div class='results'>\n";
     print "<div class='searchresults'>\n";
     print "<table borders=\"0\">\n";
     print "<th class='brslist_level2'>Albums</th>";
     $albumlist = json_decode(get_albums());
     if ($albumlist) {
         foreach ($albumlist as $album) {
             if (isset($level1)) {
                 if (preg_match("/^" . stripslashes($level1) . "/i", $album->title)) {
                     print "<tr><td class='brslist_level1'>\n";
                     write_albumlink("browse.php?level0=al-ti&level1={$level1}&sourceid=", $album->cddbid, html_entity_decode($album->title, ENT_COMPAT, "UTF-8"), $sourceid);
                     print "</td></tr>\n";
                 }
             } else {
                 print "<tr><td class='brslist_level1'>\n";
                 write_albumlink("browse.php?level0=al-ti&level1={$level1}&sourceid=", $album->cddbid, html_entity_decode($album->title, ENT_COMPAT, "UTF-8"), $sourceid);
                 print "</td></tr>\n";
             }
         }
     }
开发者ID:BackupTheBerlios,项目名称:gdrestfulwebint-svn,代码行数:31,代码来源:browse.php


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