Skip to content

Commit

Permalink
fixed include error
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-crimmins committed Aug 29, 2012
1 parent f9b8455 commit 91c686e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
Empty file modified README.md 100644 → 100755
Empty file.
9 changes: 6 additions & 3 deletions recent-activities-widget.php 100644 → 100755
Expand Up @@ -81,7 +81,9 @@ public function widget( $args, $instance ){
extract($instance); extract($instance);




include (get_template_url . '/classes/communities_profile.php');
// include (get_template_directory_url() . '/classes/communities_profile.php');
get_template_part('classes/communities_profile');


$category = (! empty($recent_act_cats)) ? $recent_act_cats : null; $category = (! empty($recent_act_cats)) ? $recent_act_cats : null;


Expand All @@ -91,8 +93,9 @@ public function widget( $args, $instance ){
->category($category) ->category($category)
->get_all_activities() ->get_all_activities()
->activities; ->activities;


include ('views/recent_activites.php');
include ('views/recent-activities.php');


} }


Expand Down
18 changes: 10 additions & 8 deletions views/recent-activities.php 100644 → 100755
@@ -1,3 +1,10 @@
<section class="span12">
<section class="content-container recent-activity">

<hgroup class="content-header"><h3><?php echo $recent_act_title;?></h3></hgroup>

<ol class="content-body result clearfix">

<?php <?php


$activities_text = array('question' => 'Asked this: ', $activities_text = array('question' => 'Asked this: ',
Expand All @@ -19,16 +26,11 @@




?> ?>
<section class="span4">
<section class="content-container recent-activity">

<hgroup class="content-header"><h3><?php echo $recent_act_title;?></h3></hgroup>

<ol class="content-body result clearfix">


<li class="clearfix"> <li class="clearfix">
<?php get_partial( 'parts/crest', array( "user_id" => $activity->author, "width" => '', "titling" => true, "show_name" => false ) ); ?> <?php get_partial( 'parts/crest', array( "user_id" => $activity->author, "width" => 'span4' ) ); ?>
<div class="span9"> <div class="span8">
<h3> <h3>
<span><?php echo $activity_text; ?></span> <span><?php echo $activity_text; ?></span>
<time class="content-date" datetime="<?php echo date( "Y-m-d", strtotime($activity->date)); ?>" pubdate="pubdate"><?php echo date( "F j, Y g:ia", strtotime($activity->date)); ?></time> <time class="content-date" datetime="<?php echo date( "Y-m-d", strtotime($activity->date)); ?>" pubdate="pubdate"><?php echo date( "F j, Y g:ia", strtotime($activity->date)); ?></time>
Expand Down

0 comments on commit 91c686e

Please sign in to comment.