Skip to content

Instantly share code, notes, and snippets.

View felixge's full-sized avatar

Felix Geisendörfer felixge

View GitHub Profile
<?php $javascript->link('member_search_form'); ?>
<h1>People</h1>
<div id="rightcol">
<?php echo $this->element('../users/find_a_member')?>
<?php echo $this->element('top_contributors'); ?>
</div>
<div id="leftcol">
<div class="block">
<div class="top"><div class="right"></div>Search Results</div>
<?php $javascript->link('member_search_form'); ?>
<h1>People</h1>
<div id="rightcol">
<?php echo $this->element('../users/find_a_member')?>
<?php echo $this->element('top_contributors'); ?>
</div>
<div id="leftcol">
<div class="block">
<div class="top"><div class="right"></div>Search Results</div>
<?php
// @todo Make this a bit more generic and put into elements/tabs.ctp --felix
$tabs = array(
'Overview' => array('action' => 'view'),
'News' => array('count' => $newsCount),
'Discussions' => array('count' => $newsCount),
'Conferences' => array('count' => $newsCount),
'Conditions' => array(),
'Related Drugs' => array(),
);
<?php
// @todo Make this a bit more generic and put into elements/tabs.ctp --felix
$tabs = array(
'Overview' => array('action' => 'view'),
'News' => array('count' => $newsCount),
'Discussions' => array('count' => $newsCount),
'Conferences' => array('count' => $newsCount),
'Conditions' => array(),
'Related Drugs' => array(),
);
Activity after 7-25-2008
Results for Felix Geisendörfer:
# of commits : 23
# of lines committed: 4050
Results for Tim Koschützki:
# of commits : 3
# of lines committed: 3764
Felix Geisendörfer wins in commit count with 23 commits!
<?php
class CommunitiesController extends AppController{
/**
* undocumented function
*
* @return void
* @access public
*/
function index() {
$communities = $this->Community->find('all');
<?php
class CommunitiesController extends AppController{
/**
* undocumented function
*
* @return void
* @access public
*/
function index() {
$communities = $this->Community->find('all');
$.fn.expandable = function(options) {
options = $.extend({
more: 'more È',
less: 'Ç hide',
length: 20,
greedy: true,
}, options || {});
return this.each(function() {
var $this = $(this), text = $this.text(), truncated = text.substr(0, options.length), after = text.substr(options.length);
http://gist.github.com/3107
$.fn.expandable = function(options) {
options = $.extend({
more: 'more »',
less: '« hide',
length: 20,
greedy: true,
}, options || {});
return this.each(function() {
var $this = $(this), text = $this.text(), truncated = text.substr(0, options.length), after = text.substr(options.length);