<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[2161] 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single: Fixed a typo, removed the test code</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://gsoc.trac.wordpress.org/changeset/2161">2161</a></dd>
<dt>Author</dt> <dd>merty</dd>
<dt>Date</dt> <dd>2013-07-28 20:32:56 +0000 (Sun, 28 Jul 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Fixed a typo, removed the test code</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#2013mertywpwpcontentthemesprofileswordpressorgmemberssinglememberheaderphp">2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/member-header.php</a></li>
<li><a href="#2013mertywpwpcontentthemesprofileswordpressorgmemberssingleprofilephp">2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/profile.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="2013mertywpwpcontentthemesprofileswordpressorgmemberssinglememberheaderphp"></a>
<div class="modfile"><h4>Modified: 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/member-header.php (2160 => 2161)</h4>
<pre class="diff"><span>
<span class="info">--- 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/member-header.php 2013-07-28 20:18:48 UTC (rev 2160)
+++ 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/member-header.php 2013-07-28 20:32:56 UTC (rev 2161)
</span><span class="lines">@@ -39,8 +39,8 @@
</span><span class="cx"> <?php if ( $deviantart = bp_get_profile_field_data( 'field=Deviantart&user_id=' . $bp->displayed_user->id ) ) : ?>
</span><span class="cx"> <a href="<?php echo $deviantart; ?>"><span class="da"></span></a>
</span><span class="cx"> <?php endif; ?>
</span><del>- <?php if ( $dribble = bp_get_profile_field_data( 'field=Dribble&user_id=' . $bp->displayed_user->id ) ) : ?>
- <a href="<?php echo $dribble; ?>"><span class="dr"></span></a>
</del><ins>+ <?php if ( $dribbble = bp_get_profile_field_data( 'field=Dribbble&user_id=' . $bp->displayed_user->id ) ) : ?>
+ <a href="<?php echo $dribbble; ?>"><span class="dr"></span></a>
</ins><span class="cx"> <?php endif; ?>
</span><span class="cx"> <?php if ( $facebook = bp_get_profile_field_data( 'field=Facebook&user_id=' . $bp->displayed_user->id ) ) : ?>
</span><span class="cx"> <a href="<?php echo $facebook; ?>"><span class="fb"></span></a>
</span></span></pre></div>
<a id="2013mertywpwpcontentthemesprofileswordpressorgmemberssingleprofilephp"></a>
<div class="modfile"><h4>Modified: 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/profile.php (2160 => 2161)</h4>
<pre class="diff"><span>
<span class="info">--- 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/profile.php 2013-07-28 20:18:48 UTC (rev 2160)
+++ 2013/merty/wp/wp-content/themes/profiles.wordpress.org/members/single/profile.php 2013-07-28 20:32:56 UTC (rev 2161)
</span><span class="lines">@@ -1,128 +1,64 @@
</span><span class="cx"> <?php if ( 'edit' == bp_current_action() ) : ?>
</span><del>- <?php locate_template( array( 'members/single/profile/edit.php' ), true ) ?>
</del><ins>+ <?php locate_template( array( 'members/single/profile/edit.php' ), true ) ?>
</ins><span class="cx"> <?php else : ?>
</span><span class="cx">
</span><del>-<?php
- global $bp;
- global $is_ajax;
-
- if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) {
- $is_ajax = true;
-
- $nonce = $_GET['nonce'];
- if ( !wp_verify_nonce( $nonce, "wporg-profiles" ) ) {
- die;
- }
- } else {
- $is_ajax = false;
- }
</del><ins>+<?php
+ global $bp;
+ global $is_ajax;
+
+ if ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) {
+ $is_ajax = true;
+
+ $nonce = $_GET['nonce'];
+ if ( !wp_verify_nonce( $nonce, "wporg-profiles" ) ) {
+ die;
+ }
+ } else {
+ $is_ajax = false;
+ }
</ins><span class="cx">
</span><del>- $wporg_profiles = new wporg_profiles( strtolower( $bp->displayed_user->fullname ), $bp->displayed_user->id, 10 );
-
- if ( !$is_ajax ) {
- get_header();
-
- $plugins = $wporg_profiles->get_plugins();
- $themes = $wporg_profiles->get_themes();
- $favorites = $wporg_profiles->get_favorites();
- $code = $wporg_profiles->get_code();
- }
-
- $plugins = array('items' => array());
- $item = array();
- $item['topic_id'] = 1;
- $item['topic'] = 'WordPress Move';
- $item['slug'] = 'wordpress-move';
- $item['downloads'] = 62192;
- $plugins['items'][] = $item;
- $item = array();
- $item['topic_id'] = 1;
- $item['topic'] = 'Hello Dolly';
- $item['slug'] = 'hello-dolly';
- $item['downloads'] = 385558;
- $plugins['items'][] = $item;
- $item = array();
- $item['topic_id'] = 1;
- $item['topic'] = 'Blogger Importer';
- $item['slug'] = 'blogger-importer';
- $item['downloads'] = 374779;
- $plugins['items'][] = $item;
- $item = array();
- $item['topic_id'] = 1;
- $item['topic'] = 'Jetpack';
- $item['slug'] = 'jetpack';
- $item['downloads'] = 6046705;
- $plugins['items'][] = $item;
-
- $favorites = array('items' => array());
- $item = array();
- $item['topic_id'] = 1;
- $item['topic'] = 'WordPress Move';
- $item['slug'] = 'wordpress-move';
- $item['downloads'] = 62192;
- $item['user_rating'] = 5;
- $favorites['items'][] = $item;
- $item = array();
- $item['topic_id'] = 1;
- $item['topic'] = 'Image Rotation Fixer';
- $item['slug'] = 'image-rotation-fixer';
- $item['downloads'] = 1487;
- $item['user_rating'] = 5;
- $favorites['items'][] = $item;
-
- $themes = array('items' => array());
- $item = array();
- $item['topic'] = 'Matala';
- $item['slug'] = 'matala';
- $item['downloads'] = 4403;
- $themes['items'][] = $item;
- $item = array();
- $item['topic'] = 'Mazeld';
- $item['slug'] = 'mazeld';
- $item['downloads'] = 89;
- $themes['items'][] = $item;
- $item = array();
- $item['topic'] = 'Twenty Ten';
- $item['slug'] = 'twentyten';
- $item['downloads'] = 1417918;
- $themes['items'][] = $item;
- $item = array();
- $item['topic'] = 'Twenty Eleven';
- $item['slug'] = 'twentyeleven';
- $item['downloads'] = 1337163;
- $themes['items'][] = $item;
-
- if ( isset( $_GET['page'] ) ) {
- $cur_page = (int) $_GET['page'];
- } else {
- $cur_page = 1;
- }
-
</del><ins>+ $wporg_profiles = new wporg_profiles( strtolower( $bp->displayed_user->fullname ), $bp->displayed_user->id, 10 );
+
+ if ( !$is_ajax ) {
+ get_header();
+
+ $plugins = $wporg_profiles->get_plugins();
+ $themes = $wporg_profiles->get_themes();
+ $favorites = $wporg_profiles->get_favorites();
+ $code = $wporg_profiles->get_code();
+ }
+
+ if ( isset( $_GET['page'] ) ) {
+ $cur_page = (int) $_GET['page'];
+ } else {
+ $cur_page = 1;
+ }
+
</ins><span class="cx"> ?>
</span><span class="cx">
</span><span class="cx"> <?php if ( !$is_ajax ) { ?>
</span><span class="cx">
</span><del>- <div class="vcard">
- <?php do_action( 'template_notices' ) // (error/success feedback) ?>
</del><ins>+ <div class="vcard">
+ <?php do_action( 'template_notices' ) // (error/success feedback) ?>
</ins><span class="cx">
</span><del>- <div class="inner-tube">
- <script type="text/javascript">
- var nonce = '<?php echo wp_create_nonce( "wporg-profiles" ); ?>';
- function wporg_change_activity( atype, user_domain, page ) {
- //alert( user_domain + "profile/?atype=" + atype + "&page=" + page + "&nonce=" + nonce );
- jQuery.get( user_domain + "profile/?atype=" + atype + "&page=" + page + "&nonce=" + nonce, function( data ) { jQuery( "#ajax-activity" ).html(data); wporg_setup(); } );
- }
-
- function wporg_pagination_change( link ) {
- jQuery.get( link + "&nonce=" + nonce, function( data ) { jQuery( "#ajax-activity" ).html( data ); wporg_setup(); } );
- }
-
- function wporg_setup() {
- jQuery( "#wporg-pagination a").click( function() { wporg_pagination_change( this ); return false; } );
- }
-
- jQuery( document ).ready( function() { wporg_setup(); } );
- </script>
</del><ins>+ <div class="inner-tube">
+ <script type="text/javascript">
+ var nonce = '<?php echo wp_create_nonce( "wporg-profiles" ); ?>';
+ function wporg_change_activity( atype, user_domain, page ) {
+ //alert( user_domain + "profile/?atype=" + atype + "&page=" + page + "&nonce=" + nonce );
+ jQuery.get( user_domain + "profile/?atype=" + atype + "&page=" + page + "&nonce=" + nonce, function( data ) { jQuery( "#ajax-activity" ).html(data); wporg_setup(); } );
+ }
+
+ function wporg_pagination_change( link ) {
+ jQuery.get( link + "&nonce=" + nonce, function( data ) { jQuery( "#ajax-activity" ).html( data ); wporg_setup(); } );
+ }
+
+ function wporg_setup() {
+ jQuery( "#wporg-pagination a").click( function() { wporg_pagination_change( this ); return false; } );
+ }
+
+ jQuery( document ).ready( function() { wporg_setup(); } );
+ </script>
</ins><span class="cx">
</span><span class="cx"> <div class="info-group" id="ajax-activity">
</span><span class="cx"> <h4><?php _e( "Recent Activity", 'buddypress' ); ?></h4>
</span><span class="lines">@@ -168,7 +104,7 @@
</span><span class="cx"> <?php locate_template( array( 'activity/activity-loop.php' ), true ); ?>
</span><span class="cx"> <?php } ?>
</span><span class="cx"> </div>
</span><del>-
</del><ins>+
</ins><span class="cx"> <?php } /* is_ajax */ ?>
</span><span class="cx">
</span><span class="cx"> <div id="main-column">
</span><span class="lines">@@ -234,12 +170,12 @@
</span><span class="cx"> <?php echo esc_html( $plugin['topic'] ); ?>
</span><span class="cx"> </a>
</span><span class="cx"> </h3>
</span><del>- <?php if ( $plugin['user_rating'] ) { ?>
</del><ins>+ <?php if ( $plugin['user_rating'] ) { ?>
</ins><span class="cx"> <p class="user-rating">Rated</p>
</span><del>- <div class="star-holder">
- <div class="star-rating" style="width: <?php echo $plugin['user_rating'] * 12; ?>px"></div>
- </div>
- <?php } ?>
</del><ins>+ <div class="star-holder">
+ <div class="star-rating" style="width: <?php echo $plugin['user_rating'] * 12; ?>px"></div>
+ </div>
+ <?php } ?>
</ins><span class="cx"> </li>
</span><span class="cx"> <?php $favorites_count++; ?>
</span><span class="cx"> <?php } ?>
</span><span class="lines">@@ -248,11 +184,10 @@
</span><span class="cx"> </div>
</span><span class="cx"> <?php } ?>
</span><span class="cx"> </div>
</span><del>- <?php if ( !$is_ajax ) { ?>
- </div>
</del><ins>+ <?php if ( !$is_ajax ) { ?>
+ </div>
</ins><span class="cx"> </div>
</span><span class="cx">
</span><span class="cx"> <?php } ?>
</span><span class="cx">
</span><span class="cx"> <?php endif; ?>
</span><del>-
</del></span></pre>
</div>
</div>
</body>
</html>