-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
ec8c775
commit faf772e
Showing
10 changed files
with
174 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* AnsPress. | ||
* | ||
* @package AnsPress | ||
* @author Rahul Aryan <admin@rahularyan.com> | ||
* @license GPL-2.0+ | ||
* @link http://rahularyan.com | ||
* @copyright 2014 Rahul Aryan | ||
*/ | ||
|
||
class AP_Email | ||
{ | ||
/** | ||
* Instance of this class. | ||
*/ | ||
protected static $instance = null; | ||
/** | ||
* Return an instance of this class. | ||
* @return object A single instance of this class. | ||
*/ | ||
public static function get_instance() | ||
{ | ||
|
||
// If the single instance hasn't been set, set it now. | ||
if (null == self::$instance) { | ||
self::$instance = new self; | ||
} | ||
|
||
return self::$instance; | ||
} | ||
/** | ||
* Initialize the plugin by setting localization and loading public scripts | ||
* and styles. | ||
*/ | ||
public function __construct() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="ap-user-card" data-id="<?php echo $f->ID; ?>"> | ||
<div class="ap-user-inner clearfix"> | ||
<div class="ap-cover" <?php ap_user_cover_style($f->ID); ?>><span class="ap-cover-layer"></span></div> | ||
<div class="ap-user-summary clearfix"> | ||
<?php ap_follow_btn_html($f->ID); ?> | ||
<a class="ap-user-avatar" href="<?php echo ap_user_link($f->ID); ?>"> | ||
<?php echo get_avatar( $f->ID, 40 ); ?> | ||
</a> | ||
<div class="no-overflow"> | ||
<a class="user-name" href="<?php echo ap_user_link($f->ID); ?>"><?php echo $data->display_name; ?></a> | ||
<?php echo ap_get_rank_title($f->ID); ?> | ||
</div> | ||
</div> | ||
<ul class="ap-point-ff ap-inline-list clearfix"> | ||
<li><a href="<?php echo ap_user_link($f->ID, 'followers'); ?>"><b data-view="ap-followers"><?php echo ap_get_current_user_meta('followers') ?></b><span><?php _e('Followers', 'ap') ?></span></a></li> | ||
<li><a href="<?php echo ap_user_link($f->ID, 'following'); ?>"><b data-view="ap-following"><?php echo ap_get_current_user_meta('following') ?></b><span><?php _e('Following', 'ap') ?></span></a></li> | ||
<li><a href="<?php echo ap_user_link($f->ID, 'points'); ?>"><b data-view="ap-points"><?php echo ap_get_points($f->ID, true); ?></b><span><?php _e('Points', 'ap') ?></span></a></li> | ||
</ul> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
<div id="ap-followers" class="ap-users-lists clearfix"> | ||
|
||
<?php | ||
|
||
if ( ! empty( $followers ) ) { | ||
foreach ( $followers as $f ) { | ||
$data = $f->data; | ||
?> | ||
<div class="ap-user"> | ||
<div class="ap-user-inner clearfix"> | ||
<div class="ap-cover"></div> | ||
<div class="ap-user-summary"> | ||
<a class="ap-user-avatar" href="<?php echo ap_user_link($f->ID); ?>"> | ||
<?php echo get_avatar( $f->ID, 50 ); ?> | ||
</a> | ||
<a class="user-name" href="<?php echo ap_user_link($f->ID); ?>"><?php echo $data->display_name; ?></a> | ||
<?php echo ap_get_rank_title($f->ID); ?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php | ||
$current_user_meta = array_map( function( $a ){ return $a[0]; }, get_user_meta($f->ID)); | ||
include(ap_get_theme_location('content-user.php')); | ||
} | ||
} else { | ||
echo 'No followers yet.'; | ||
_e('No users found.', 'ap'); | ||
} | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
User following | ||
<div id="ap-following" class="ap-users-lists clearfix"> | ||
<?php | ||
|
||
if ( ! empty( $following ) ) { | ||
foreach ( $following as $f ) { | ||
$data = $f->data; | ||
$current_user_meta = array_map( function( $a ){ return $a[0]; }, get_user_meta($f->ID)); | ||
include(ap_get_theme_location('content-user.php')); | ||
} | ||
|
||
} else { | ||
_e('No users found.', 'ap'); | ||
} | ||
?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters