| Line 4... |
Line 4... |
| 4 |
<img class="img img-rounded" src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $user['User']['profile_pic'];?>&h=120"/>
|
4 |
<img class="img img-rounded" src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $user['User']['profile_pic'];?>&h=120"/>
|
| 5 |
<?php else:?>
|
5 |
<?php else:?>
|
| 6 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=120" alt="<?php echo $user['User']['username'];?>"/>
|
6 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=120" alt="<?php echo $user['User']['username'];?>"/>
|
| 7 |
<?php endif;?>
|
7 |
<?php endif;?>
|
| 8 |
</div>
|
8 |
</div>
|
| 9 |
<div class="editable text-center first_name" data-url="/users/edit/" data-id="<?php echo $user['User']['id'];?>" data-field="first_name" data-placeholder="Please enter your name"><?php echo $user['User']['first_name'];?></div>
|
9 |
<div class="editable text-center first_name" data-url="/users/edit/" data-id="<?php echo $user['User']['id'];?>" data-field="first_name" data-placeholder="Please enter your name"><?php echo !empty($user['User']['first_name'])?$user['User']['first_name']:'Your Name';?></div>
|
| 10 |
<div class="card address">
|
10 |
<div class="card address">
|
| 11 |
<span class="profilelabel">Ph:</span> <div class="editable mobile_number inline" data-url="/users/edit/" data-id="<?php echo $user['User']['id'];?>" data-field="mobile_number" data-placeholder="Please enter your mobile number"><?php echo $user['User']['mobile_number'];?></div>
|
11 |
<span class="profilelabel">Ph:</span> <div class="editable mobile_number inline" data-url="/users/edit/" data-id="<?php echo $user['User']['id'];?>" data-field="mobile_number" data-placeholder="Please enter your mobile number"><?php echo $user['User']['mobile_number'];?></div>
|
| 12 |
<?php if(!empty($user['User']['address_line_1'])):?>
|
12 |
<?php if(!empty($user['User']['address_line_1'])):?>
|
| 13 |
<div class="editable" data-url="/users/edit/" data-id="<?php echo $user['User']['id'];?>" data-field="address_line_1" data-placeholder="Address Line 1"><?php echo $user['User']['address_line_1'];?></div>
|
13 |
<div class="editable" data-url="/users/edit/" data-id="<?php echo $user['User']['id'];?>" data-field="address_line_1" data-placeholder="Address Line 1"><?php echo $user['User']['address_line_1'];?></div>
|
| 14 |
<?php else:?>
|
14 |
<?php else:?>
|
| Line 45... |
Line 45... |
| 45 |
lineBreaks : false, // Whether or not to convert \n to <br /> (default true)
|
45 |
lineBreaks : false, // Whether or not to convert \n to <br /> (default true)
|
| 46 |
toggleFontSize : false, // Whether or not it should be possible to change font size (default true),
|
46 |
toggleFontSize : false, // Whether or not it should be possible to change font size (default true),
|
| 47 |
closeOnEnter : false, // Whether or not pressing the enter key should close the editor (default false)
|
47 |
closeOnEnter : false, // Whether or not pressing the enter key should close the editor (default false)
|
| 48 |
event : 'click', // The event that triggers the editor (default dblclick)
|
48 |
event : 'click', // The event that triggers the editor (default dblclick)
|
| 49 |
tinyMCE : false, // Integrate with tinyMCE by settings this option to true or an object containing your tinyMCE configuration
|
49 |
tinyMCE : false, // Integrate with tinyMCE by settings this option to true or an object containing your tinyMCE configuration
|
| 50 |
emptyMessage : '<em>'+$(this).data('placeholder')+'</em>', // HTML that will be added to the editable element in case it gets empty (default false)
|
50 |
//emptyMessage : '<em>'+$(this).data('placeholder')+'</em>', // HTML that will be added to the editable element in case it gets empty (default false)
|
| 51 |
callback : function( data ) {
|
51 |
callback : function( data ) {
|
| 52 |
// Callback that will be called once the editor is blurred
|
52 |
// Callback that will be called once the editor is blurred
|
| 53 |
if( data.content ) {
|
53 |
if( data.content ) {
|
| 54 |
var field = data.$el.data('field');
|
54 |
var field = data.$el.data('field');
|
| 55 |
var params = {};
|
55 |
var params = {};
|
| Line 66... |
Line 66... |
| 66 |
// data.$el gives you a reference to the element that was edited
|
66 |
// data.$el gives you a reference to the element that was edited
|
| 67 |
// data.$el.effect('blink');
|
67 |
// data.$el.effect('blink');
|
| 68 |
}
|
68 |
}
|
| 69 |
});
|
69 |
});
|
| 70 |
});
|
70 |
});
|
| 71 |
</script>
|
- |
|
| 72 |
|
71 |
</script>
|
| - |
|
72 |
|