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


PHP BigTree::prefixFile方法代码示例

本文整理汇总了PHP中BigTree::prefixFile方法的典型用法代码示例。如果您正苦于以下问题:PHP BigTree::prefixFile方法的具体用法?PHP BigTree::prefixFile怎么用?PHP BigTree::prefixFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BigTree的用法示例。


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

示例1: foreach

BigTree::globalizeArray($view);
?>
<div class="table" id="" class="image_list">
	<summary><h2>Search Results</h2></summary>
	<header>
		<span class="view_column">Click an image to edit it.</span>
	</header>
	<section>
		<ul id="image_list_<?php 
echo $view["id"];
?>
" class="image_list">
			<?php 
foreach ($items as $item) {
    if ($options["preview_prefix"]) {
        $preview_image = BigTree::prefixFile($item[$options["image"]], $options["preview_prefix"]);
    } else {
        $preview_image = $item[$options["image"]];
    }
    ?>
			<li id="row_<?php 
    echo $item["id"];
    ?>
">
				<a class="image" href="<?php 
    echo $view["edit_url"] . $item["id"];
    ?>
/"><img src="<?php 
    echo $preview_image;
    ?>
" alt="" /></a>
开发者ID:matthisamoto,项目名称:Graphfan,代码行数:31,代码来源:images.php

示例2: is_array

// Modified Photo Gallery to add Attribution and Link attributes
$photos = is_array($field["value"]) ? $field["value"] : array();
$max = count($photos);
$current = 0;
$button_options = htmlspecialchars(json_encode(array("minWidth" => $field["options"]["min_width"], "minHeight" => $field["options"]["min_height"])));
?>
<div class="photo_gallery_widget" id="<?php 
echo $field["id"];
?>
">
	<ul>
		<?php 
foreach ($photos as $photo) {
    if ($field["options"]["preview_prefix"]) {
        $preview_image = BigTree::prefixFile($photo["image"], $field["options"]["preview_prefix"]);
    } else {
        $preview_image = $photo["image"];
    }
    ?>
		<li>
			<figure>
				<img src="<?php 
    echo $preview_image;
    ?>
" alt="" />
			</figure>
			<input type="hidden" name="<?php 
    echo $field["key"];
    ?>
[<?php 
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:30,代码来源:photo-gallery.php

示例3: foreach

			<?php 
}
?>
		</ul>
	</section>
	<?php 
if (count($pending_items)) {
    ?>
	<header><span>Pending</span></header>
	<section>
		<ul>
			<?php 
    foreach ($pending_items as $item) {
        $item["column1"] = str_replace(array("{wwwroot}", "{staticroot}"), array(WWW_ROOT, STATIC_ROOT), $item["column1"]);
        if ($prefix) {
            $preview_image = BigTree::prefixFile($item["column1"], $prefix);
        } else {
            $preview_image = $item["column1"];
        }
        ?>
			<li id="row_<?php 
        echo $item["id"];
        ?>
" class="non_draggable">
				<a class="image" href="<?php 
        echo $bigtree["view"]["edit_url"] . $item["id"];
        ?>
/"><img src="<?php 
        echo $preview_image;
        ?>
" alt="" /></a>
开发者ID:matthisamoto,项目名称:Graphfan,代码行数:31,代码来源:images.php

示例4: getInternalPageLink

 function getInternalPageLink($ipl)
 {
     // Regular links
     if (substr($ipl, 0, 6) != "ipl://" && substr($ipl, 0, 6) != "irl://") {
         return $this->replaceRelativeRoots($ipl);
     }
     $ipl = explode("//", $ipl);
     $navid = $ipl[1];
     // Resource Links
     if ($ipl[0] == "irl:") {
         // See if it's in the cache.
         if (isset($this->IRLCache[$navid])) {
             if ($ipl[2]) {
                 return BigTree::prefixFile($this->IRLCache[$navid], $ipl[2]);
             } else {
                 return $this->IRLCache[$navid];
             }
         } else {
             $r = sqlfetch(sqlquery("SELECT * FROM bigtree_resources WHERE id = '" . sqlescape($navid) . "'"));
             $file = $r ? $this->replaceRelativeRoots($r["file"]) : false;
             $this->IRLCache[$navid] = $file;
             if ($ipl[2]) {
                 return BigTree::prefixFile($file, $ipl[2]);
             } else {
                 return $file;
             }
         }
     }
     // New IPLs are encoded in JSON
     $c = json_decode(base64_decode($ipl[2]));
     // Help with transitions.
     if (!is_array($c)) {
         $c = unserialize(base64_decode($ipl[2]));
     }
     // If it can't be rectified, we still don't want a warning.
     if (is_array($c) && count($c)) {
         $last = end($c);
         $commands = implode("/", $c);
         if (strpos($last, "#") === false && strpos($last, "?") === false) {
             $commands .= "/";
         }
     } else {
         $commands = "";
     }
     // See if it's in the cache.
     if (isset($this->IPLCache[$navid])) {
         return $this->IPLCache[$navid] . $commands;
     } else {
         // Get the page's path
         $f = sqlfetch(sqlquery("SELECT path FROM bigtree_pages WHERE id = '" . sqlescape($navid) . "'"));
         // Set the cache
         $this->IPLCache[$navid] = WWW_ROOT . $f["path"] . "/";
         return WWW_ROOT . $f["path"] . "/" . $commands;
     }
 }
开发者ID:matthisamoto,项目名称:Graphfan,代码行数:55,代码来源:cms.php

示例5: foreach

	<section>
		<ul class="image_list">
			<?php 
        foreach ($mod["changes"] as $change) {
            if ($view_data) {
                if ($change["item_id"]) {
                    $item = $view_data[$change["item_id"]];
                } else {
                    $item = $view_data["p" . $change["id"]];
                }
            } else {
                $item = array("id" => $change["item_id"] ? $change["item_id"] : "p" . $change["id"]);
            }
            $image = str_replace(array("{staticroot}", "{wwwroot}"), array(STATIC_ROOT, WWW_ROOT), $item["column1"]);
            if ($view["options"]["prefix"]) {
                $image = BigTree::prefixFile($image, $view["options"]["prefix"]);
            }
            ?>
			<li class="non_draggable">
				<p><?php 
            echo $change["user"]["name"];
            ?>
</p>
				<a class="image" href="<?php 
            echo $view["edit_url"] . $item["id"];
            ?>
/"><img src="<?php 
            echo $image;
            ?>
" alt="" /></a>
				<?php 
开发者ID:matthisamoto,项目名称:Graphfan,代码行数:31,代码来源:default.php

示例6: foreach

			<?php 
    foreach ($tree["gallery"] as $photo) {
        ?>
			<figure class="mobile-half tablet-fourth desktop-fourth thumbnail">
				<a href="<?php 
        echo $photo["image"];
        ?>
" class="lightbox" rel="gallery" data-attribution="<?php 
        echo $photo["attribution"];
        ?>
" data-link="<?php 
        echo $photo["link"];
        ?>
">
					<img src="<?php 
        echo BigTree::prefixFile($photo["image"], "thumb_");
        ?>
" />
					<div class="cover">Explore</div>
				</a>
			</figure>
			<?php 
    }
    ?>
		</div>
		<?php 
}
?>
		<div class="mobile-full tablet-4 tablet-push-1 desktop-6 desktop-push-3">
			<nav class="pagination clearfix">
				<hr />
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:detail.php

示例7: foreach

			</li>
			<?php 
        }
        ?>
		</ul>
		<?php 
    }
    if (count($pending_items)) {
        ?>
		<header class="image_pending_divider">Pending Entries</header>
		<ul>
			<?php 
        foreach ($pending_items as $item) {
            $item["column1"] = str_replace(array("{wwwroot}", "{staticroot}"), array(WWW_ROOT, STATIC_ROOT), $item["column1"]);
            if ($options["prefix"]) {
                $preview_image = BigTree::prefixFile($item["column1"], $options["prefix"]);
            } else {
                $preview_image = $item["column1"];
            }
            ?>
			<li id="row_<?php 
            echo $item["id"];
            ?>
" class="non_draggable">
				<a class="image<?php 
            if (!isset($bigtree["view"]["actions"]["edit"])) {
                ?>
 image_disabled<?php 
            }
            ?>
" href="<?php 
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:images-grouped.php

示例8: foreach

				<span class="author"><?php 
echo $quote["author"];
if ($quote["source"]) {
    echo ', <em>' . $quote["source"] . '</em>';
}
?>
</span>
			</blockquote>
			<hr />
		</div>
		<section class="mobile-full tablet-full desktop-8 desktop-push-2 post_list">
			<?php 
foreach ($trees as $tree) {
    ?>
			<article class="post wallpapered" data-wallpaper-options='{"source":"<?php 
    echo BigTree::prefixFile($tree["cover"], "large_");
    ?>
"}'>
				<a href="<?php 
    echo $tree["detail_link"];
    ?>
">
					<div class="cover">
						<h2><?php 
    echo $tree["title"];
    ?>
</h2>
						<span class="button">Read About <?php 
    echo $tree["title"];
    ?>
</span>
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:home.php

示例9:

" style="position:relative;">
                
						<div class="content">
                            
							<?php 
if ($item["featured"] == "on") {
    ?>
                                <span class="glyphicon glyphicon-bookmark" style="font-size:24px;position:absolute;top:-4px;left:8px;z-index:1;color:#f2de6d;"></span>
                            <?php 
}
?>
                            
                            <div class="details">
                            
                                <a href="<?php 
echo BigTree::prefixFile($item["image"], "boxer_");
?>
" class="boxer" title="<?php 
echo $item["title"];
?>
">
                                    <img src="<?php 
echo $item["image"];
?>
" style="width:300px;height:auto;float:left;margin:0 25px 20px 0;" />
                                </a>
                            
                                <?php 
// Start Date
$startdate = DateTime::createFromFormat('Y-m-d', $item["date_route"]);
$startmonth = $startdate->format('M');
开发者ID:jesseglaves,项目名称:Samples,代码行数:31,代码来源:detail.php

示例10: htmlspecialchars

        ?>
" value="<?php 
        echo $field["value"];
        ?>
" />
		<strong>Currently:</strong> <?php 
        echo $pathinfo["basename"];
        ?>
 <a href="#" class="remove_resource">Remove</a>
	</div>
	<?php 
    }
} else {
    if ($field["value"]) {
        if ($field["options"]["preview_prefix"]) {
            $preview_image = BigTree::prefixFile($field["value"], $field["options"]["preview_prefix"]);
        } else {
            $preview_image = $field["value"];
        }
    } else {
        $preview_image = false;
    }
    // Generate the file manager restrictions
    $button_options = htmlspecialchars(json_encode(array("minWidth" => $min_width, "minHeight" => $min_height, "currentlyKey" => $field["key"])));
    if (!defined("BIGTREE_FRONT_END_EDITOR") && !$bigtree["form"]["embedded"]) {
        ?>
	<span class="or">OR</span>
	<a href="#<?php 
        echo $field["id"];
        ?>
" data-options="<?php 
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:31,代码来源:upload.php

示例11: foreach

// Setup the preview action if we have a preview URL and field.
if ($bigtree["view"]["preview_url"]) {
    $bigtree["view"]["actions"]["preview"] = "on";
}
?>
<div class="table auto_modules image_list">
	<summary>
		<h2>Filtered Data</h2>
	</summary>
	<section>
		<ul id="image_list">
			<?php 
foreach ($items as $item) {
    if ($prefix) {
        $preview_image = BigTree::prefixFile($item[$bigtree["view"]["options"]["image"]], $prefix);
    } else {
        $preview_image = $item[$bigtree["view"]["options"]["image"]];
    }
    $item_permission = $admin->getAccessLevel($bigtree["module"], $item, $bigtree["form"]["table"]);
    if ($item_permission && $item_permission != "n") {
        ?>
			<li id="row_<?php 
        echo $item["id"];
        ?>
" class="non_draggable">
				<a class="image<?php 
        if (!isset($bigtree["view"]["actions"]["edit"])) {
            ?>
 image_disabled<?php 
        }
开发者ID:kurt-planet,项目名称:BigTree-CMS,代码行数:30,代码来源:images.php


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