コード例 #1
0
ファイル: images.php プロジェクト: matthisamoto/Graphfan
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>
コード例 #2
0
// 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 
コード例 #3
0
ファイル: images.php プロジェクト: matthisamoto/Graphfan
			<?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>
コード例 #4
0
ファイル: cms.php プロジェクト: matthisamoto/Graphfan
 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;
     }
 }
コード例 #5
0
ファイル: default.php プロジェクト: matthisamoto/Graphfan
	<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 
コード例 #6
0
ファイル: detail.php プロジェクト: kurt-planet/BigTree-CMS
			<?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 />
コード例 #7
0
			</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 
コード例 #8
0
ファイル: home.php プロジェクト: kurt-planet/BigTree-CMS
				<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>
コード例 #9
0
ファイル: detail.php プロジェクト: jesseglaves/Samples
" 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');
コード例 #10
0
ファイル: upload.php プロジェクト: kurt-planet/BigTree-CMS
        ?>
" 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 
コード例 #11
0
ファイル: images.php プロジェクト: kurt-planet/BigTree-CMS
// 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 
        }