Skip to content
Snippets Groups Projects
Commit 223ff733 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

custom index page

parent fb1c5e16
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Elgg customindex plugin
* This plugin substitutes the frontpage with a custom one
*
* @package Customdash
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Boris Glumpler
* @copyright Boris Glumpler 2008
* @link /travel-junkie.com
*/
// Load Elgg engine
// require_once(dirname(dirname(dirname(__FILE__))) . '/engine/start.php');
// Get view
$area1 = elgg_view('customindex/content', $vars);
// Format
$body = elgg_view_layout('one_column', $area1);
// Draw page
echo page_draw(elgg_echo('this will be the page title'), $body);
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest>
<field key="author" value="Boris Glumpler" />
<field key="version" value="1.0" />
<field key="description" value="Custom index page" />
<field key="website" value="http://travel-junkie.com/" />
<field key="copyright" value="(C) Travel-Junkie.com 2008" />
<field key="licence" value="GNU Public License version 2" />
</plugin_manifest>
\ No newline at end of file
<?php
/**
* Elgg customindex plugin
* This plugin substitutes the frontpage with a custom one
*
* @package Customdash
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Boris Glumpler
* @copyright Boris Glumpler 2008
* @link /travel-junkie.com
*/
function customindex_init() {
register_plugin_hook('index','system','new_index');
extend_view('metatags','customindex/metatags');
extend_view('css','customindex/css');
}
function new_index() {
if (!@include_once(dirname(dirname(__FILE__))) . "/customindex/index.php") return false;
return true;
}
register_elgg_event_handler('init','system','customindex_init');
?>
\ No newline at end of file
<?php
/**
* Elgg customindex plugin
* This plugin substitutes the frontpage with a custom one
*
* @package Customdash
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Boris Glumpler
* @copyright Boris Glumpler 2008
* @link /travel-junkie.com
*/
// Put your content below
?>
<!-- begin splash code from ucommcoleman/workspace/wdntempaltes/splash.shtml -->
<div class="four_col">
<div id="splash">
<div id="headlines">
<div id="headline1" class="activepanel">
<div class="splash_headline">
<h4>Huskers Around the World</h4>
<p>
Alumni, students, faculty, staff and friends of the University of Nebraska-Lincoln are doing fantastic stuff around the world. Check out these Huskers:
</p>
<p>
<img onclick="window.openHerbie(window.herbieLabel);return false;" src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?lastcache=1245432975&username=demouser&size=tiny" />
</p>
</div>
</div>
<div id="headline2">
<div class="splash_headline">
<h4>Put Yourself On The Map</h4>
<p>
Join UNL's new social network and join other alumni and supporters of UNL. Click here to get started!
</p>
</div>
</div>
<div id="headline3">
<div class="splash_headline">
<h4>National TV Spot</h4>
<p>
Check out the commercial, created by Chris Evan, a Class of '00 Alum, that is played during every televised Husker sporting event.
</p>
</div>
</div>
</div>
<div id="posters">
<div id="poster1">
<div id="globeInner" style="opacity:1 !important; display: block !important;width:640px;height:480px;background-color:#000;"></div>
</div>
<div id="poster2">
<p>Beginning May 11, several of the artist's large ceramic pieces will be placed in Sheldon's Great Hall. On June 19, his paintings and works on paper will open in three second-floor galleries. The exhibition will be on view through Oct. 11. <a href="http://newsroom.unl.edu/releases/2009/04/29/Paintings%2C+objects+of+Jun+Kaneko+opens+May+11+at+Sheldon+Museum+of+Art">Read the full news release.</a></p>
</div>
<div id="poster3">
<object data="http://www.youtube.com/v/-omonwFkkrY%26hl=en%26fs=1%26color1=0x3a3a3a%26color2=0x999999%26enablejsapi=1%26playerapiid=video1" wmode="transparent" id="video1" type="application/x-shockwave-flash" height="340" width="640"><param value="always" name="allowScriptAccess"></object>
</div>
</div>
</div>
</div>
<!-- end moded splash code -->
<?php
/**
* Elgg customindex plugin
* This plugin substitutes the frontpage with a custom one
*
* @package Customdash
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Boris Glumpler
* @copyright Boris Glumpler 2008
* @link /travel-junkie.com
*/
//Put some extra CSS below if needed
?>
#one_column {
-moz-border-radius: 0px;
background:transparent;
padding:0;
margin:0;
}
div.four_col {
border-top:1px solid #ddd;
border-bottom:1px solid #ddd;
padding:1px 0;
}
#splash * {
margin:0;
padding:0;
}
#splash {
height:480px;
width:940px;
}
#headlines {
height:480px;
width: 320px;
float:right;
z-index:10;
}
#headlines>div {
padding-left:20px;
position:relative;
}
#headlines>div.activepanel {
background:url('http://ucommcoleman.unl.edu/workspace/wdntemplates/wdn/templates_3.0/css/variations/images/splash_selector.png') no-repeat 0 30%;
z-index:100;
}
#headlines>div.activepanel div.splash_headline,
#headlines div.splash_headline:hover {
background:#b80302;
color:#fff;
border-top:1px solid #660000;
}
#headlines div.splash_headline {
background:#efefef;
height:135px;
border-top:1px solid #ccc;
color:#666;
padding:12px 16px;
}
#headline1 div.splash_headline {
border:0 !important;
height:136px !important;
}
#headlines {
font-size:0.9em;
line-height:1.2em;
}
#headlines h4 {
font-size:1.4em;
}
#headlines>div.activepanel h4, #headlines>div:hover h4{
color:#fff;
}
#posters {
position:relative;
}
#posters div {
width:640px;
height:480px;
position:absolute;
top:0;left:0;
background:#d2d2d2;
}
#poster1 {
z-index:5;
}
#poster2, #poster3 {
z-index:0;
}
#FE_InfoWindow { z-index: 9999; }
\ No newline at end of file
<?php
/**
* Elgg customindex plugin
* This plugin substitutes the frontpage with a custom one
*
* @package Customdash
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Boris Glumpler
* @copyright Boris Glumpler 2008
* @link /travel-junkie.com
*/
// Put your metadata and js below
?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#headlines>div").click(function(){
panelClicked = jQuery(this).attr("id").split('headline')[1];
jQuery("#headlines>div").removeClass("activepanel");
jQuery(this).addClass("activepanel");
jQuery("#posters>div").css({'z-index':'0'});
jQuery("#poster"+panelClicked+"").css({'z-index':'99'});
if(jQuery(this).attr("id") == "headline1"){
jQuery("#FE_InfoWindow").css({'z-index':'9999'});
} else {
jQuery("#FE_InfoWindow").css({'z-index':'0'});
}
});
});
</script>
<!-- begin poly9 globe js -->
<script type="text/javascript" src="http://globe.poly9.com/api.js"></script>
<script type="text/javascript">
//<![CDATA[
function createOnClick(country) {
return function(marker) {
marker.openInfoWindowHtml('Hello from ' + country + '!', 200, 32);
}
}
function onMapLoad() {
// start the globe out with Lincoln
var LincolnNE = new FE.LatLng(40.813620,-96.707739);
this.toggleDashboard();
//this.setTargetLatLng(LincolnNE);
var self = this;
var herbieLabel = window.herbieLabel = new FE.Pushpin(LincolnNE);
window.openHerbie = function(herbieLabel) {
self.panTo(LincolnNE,1.5,"easeInOutQuad");
self.zoomTo(19505000,1.5,"easeInOutQuad");
herbieLabel.openInfoWindowHtml('<div style="padding: 26px 20px; color: #333; font-family: helvetica, arial, sans-serif; padding-bottom: 4px;"><img src="http://ucommjuhl.unl.edu/UNL_Elgg/elgg/mod/profile/icondirect.php?lastcache=1245432975&username=demouser&size=small" style="float:left; padding: 0 6px 6px 0;" /><h1 style="font-size:16px; padding-bottom: 4px;">Herbie Husker</h1><p style="font-style:italic; font-size: 10px; color:green; padding-bottom: 4px;">Lincoln, NE</p><p style="padding-bottom: 10px;">Class of \'96</p><p style="font-size: 11px; line-height: 14px;">I can\'t wait for football season. Goooooo biiiiiiiiig reeeeeeeeeeeeed!</p></div>', 256, 154);
};
FE.Event.addListener(herbieLabel, 'click', window.openHerbie );
this.addOverlay(herbieLabel);
var sandiegoCA = new FE.LatLng(32.715685,-117.161724);
};
jQuery(document).ready(function() {
var map = new FE.Map(document.getElementById("globeInner"));
map.onLoad = onMapLoad;
map.load();
});
//]]>
</script>
<!-- end poly9 globe js -->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment