Permalink
Browse files

fixed include error

  • Loading branch information...
1 parent f9b8455 commit 91c686ee83637aec1ef4ebceec5b1a18e3dafde5 @dan-crimmins dan-crimmins committed Aug 29, 2012
Showing with 16 additions and 11 deletions.
  1. 0 README.md
  2. +6 −3 recent-activities-widget.php
  3. +10 −8 views/recent-activities.php
View
0 README.md 100644 → 100755
No changes.
View
9 recent-activities-widget.php 100644 → 100755
@@ -81,7 +81,9 @@ public function widget( $args, $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;
@@ -91,8 +93,9 @@ public function widget( $args, $instance ){
->category($category)
->get_all_activities()
->activities;
-
- include ('views/recent_activites.php');
+
+
+ include ('views/recent-activities.php');
}
View
18 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
$activities_text = array('question' => 'Asked this: ',
@@ -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">
- <?php get_partial( 'parts/crest', array( "user_id" => $activity->author, "width" => '', "titling" => true, "show_name" => false ) ); ?>
- <div class="span9">
+ <?php get_partial( 'parts/crest', array( "user_id" => $activity->author, "width" => 'span4' ) ); ?>
+ <div class="span8">
<h3>
<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>

0 comments on commit 91c686e

Please sign in to comment.