Ejemplo n.º 1
0
     output_error("Could not add 'show_history` option for community [" . $new_community_id . "]. Database said: " . $db->ErrorMsg());
 }
 output_success("Inserted all community page options.");
 //fetch all of the top level parent community pages from the community to copy
 $query = "\tSELECT *\n\t\t\tFROM " . DATABASE_NAME . ".`community_pages`\n\t\t\tWHERE `community_id` = " . $COMMUNITY_ID . "\n\t\t\tAND `parent_id` = '0'\n\t\t\tORDER BY cpage_id ASC";
 $community_pages_arr = $db->GetAll($query);
 //insert each community page with the new community id.
 if ($community_pages_arr) {
     foreach ($community_pages_arr as $page) {
         //Insert new page if it is active
         if ($page["page_active"] != 0) {
             $new_parent_id = insert_community_page($db, $page, $new_community_id, $user_data["id"]);
             //create the new gallery and copy the images
             if ($page["page_type"] == "galleries") {
                 $gallery_id = array();
                 $gallery_id = create_gallery($db, $COMMUNITY_ID, $page["cpage_id"], $new_community_id, $new_parent_id, $user_data["id"]);
                 if (is_array($gallery_id)) {
                     copy_images($db, $COMMUNITY_ID, $gallery_id["old_gallery_id"], $new_community_id, $gallery_id["new_gallery_id"], $user_data["id"]);
                 }
             }
             //add all of the child pages for this page.
             create_child_pages($db, $page["cpage_id"], $COMMUNITY_ID, $new_parent_id, $new_community_id, $user_data["id"]);
         }
     }
 }
 //Validate that all pages were copied by comparing the given community ID to the new community ID.
 $query = "\tSELECT *\n\t\t\tFROM " . DATABASE_NAME . ".`community_pages`\n\t\t\tWHERE `community_id` = " . $COMMUNITY_ID . "\n\t\t\tAND page_active = 1";
 $old_community_pages_arr = $db->GetAll($query);
 $query = "\tSELECT *\n\t\t\tFROM " . DATABASE_NAME . ".`community_pages`\n\t\t\tWHERE `community_id` = " . $new_community_id . "\n\t\t\tAND page_active = 1";
 $new_community_pages_arr = $db->GetAll($query);
 $old_num_of_pages = sizeof($old_community_pages_arr);
Ejemplo n.º 2
0
        return FALSE;
    }
}
?>
<nav>
	<div class="container_12">
		<div class="grid_12">
			<div class="ribbon">
				<strong class="ribbon-content">
					<ul class="filters">
						<li class="active"><a href="" data-filter="*">Everything</a></li>
						<li><a href="" data-filter=".print">Print Design</a></li>
						<li><a href="" data-filter=".logo">Logo Design</a></li>
						<li><a href="" data-filter=".web">Web Design</a></li>
					</ul>
				</strong>
			</div>
		</div>
	</div><!-- end container -->
</nav>
<div class="container_12 projects">
	<div class="grid_12">
		<ul id="da-thumbs" class="da-thumbs">
			<?php 
create_gallery();
?>
		</ul>
	</div>
</div>
<?php 
include 'includes/footer.php';
Ejemplo n.º 3
0
<div class="container">
    <h3>Paris Photos 2015</h3>
    <p>Gallery of photos taken during my 2015 semester abroad in Paris.</p>
    <?php 
create_gallery("images/artwork/photos/paris/");
?>
</div>
<div class="container">
    <h3>Graphics</h3>
    <p>Gallery of graphics I have designed. I have included both raw and vectorized / colored graphics.</p>
    <?php 
create_gallery("images/artwork/graphics/");
?>
</div>