Browse Source

- Updated smileys

pull/16/head
Jaussoin Timothée 12 years ago
parent
commit
07d0c279cf
  1. 24
      app/widgets/Bookmark/Bookmark.php
  2. 28
      app/widgets/Media/Media.php
  3. 2
      app/widgets/WidgetCommon/WidgetCommon.php
  4. 34
      app/widgets/WidgetCommon/_submit_form.tpl
  5. 2
      lib/RainTPL.php
  6. 30
      system/User.php
  7. 47
      system/Utils.php
  8. 1
      themes/movim/css/forms.css
  9. 19
      themes/movim/css/style.css
  10. BIN
      themes/movim/img/smileys/angry.png
  11. BIN
      themes/movim/img/smileys/biggrin.gif
  12. BIN
      themes/movim/img/smileys/bof.gif
  13. BIN
      themes/movim/img/smileys/confused.png
  14. BIN
      themes/movim/img/smileys/cool.png
  15. BIN
      themes/movim/img/smileys/emoticon_evilgrin.png
  16. BIN
      themes/movim/img/smileys/emoticon_grin.png
  17. BIN
      themes/movim/img/smileys/emoticon_happy.png
  18. BIN
      themes/movim/img/smileys/emoticon_smile.png
  19. BIN
      themes/movim/img/smileys/emoticon_surprised.png
  20. BIN
      themes/movim/img/smileys/emoticon_tongue.png
  21. BIN
      themes/movim/img/smileys/emoticon_unhappy.png
  22. BIN
      themes/movim/img/smileys/emoticon_waii.png
  23. BIN
      themes/movim/img/smileys/emoticon_wink.png
  24. BIN
      themes/movim/img/smileys/evil.png
  25. BIN
      themes/movim/img/smileys/grin.png
  26. BIN
      themes/movim/img/smileys/happy.png
  27. BIN
      themes/movim/img/smileys/heart.png
  28. BIN
      themes/movim/img/smileys/locked.png
  29. BIN
      themes/movim/img/smileys/loop.png
  30. BIN
      themes/movim/img/smileys/love.gif
  31. BIN
      themes/movim/img/smileys/neutral.png
  32. BIN
      themes/movim/img/smileys/pencil.png
  33. BIN
      themes/movim/img/smileys/sad.png
  34. BIN
      themes/movim/img/smileys/shocked.png
  35. BIN
      themes/movim/img/smileys/smile.gif
  36. BIN
      themes/movim/img/smileys/smiley.png
  37. BIN
      themes/movim/img/smileys/sol.gif
  38. BIN
      themes/movim/img/smileys/tongue.gif
  39. BIN
      themes/movim/img/smileys/tongue.png
  40. BIN
      themes/movim/img/smileys/users.png
  41. BIN
      themes/movim/img/smileys/wink.gif
  42. BIN
      themes/movim/img/smileys/wink.png
  43. BIN
      themes/movim/img/smileys/wondering.png

24
app/widgets/Bookmark/Bookmark.php

@ -234,17 +234,19 @@ class Bookmark extends WidgetBase
<input name="name" placeholder="'.t('Name').'"/>
</div>
</fieldset>
<a
class="button icon yes black merged left"
onclick="'.$submit.'"
>'.
t('Add').'
</a><a
class="button icon no black merged right"
onclick="movim_toggle_display(\'#bookmarkadd\')"
>'.
t('Close').'
</a>
<div class="menu">
<a
class="button icon yes black merged left"
onclick="'.$submit.'"
>'.
t('Add').'
</a><a
class="button icon no black merged right"
onclick="movim_toggle_display(\'#bookmarkadd\')"
>'.
t('Close').'
</a>
</div>
</form>
</div>
';

28
app/widgets/Media/Media.php

@ -51,21 +51,23 @@ class Media extends WidgetBase {
function listFiles()
{
$html = '<ul class="thumb">';
foreach(scandir($this->user->userdir) as $s) {
if(
$s != '.' &&
$s != '..' &&
substr($s, 0, 6) != 'thumb_' &&
substr($s, 0, 7) != 'medium_' &&
$s != 'index.html')
$html .=
'<li style="background-image: url('.$this->user->useruri.'thumb_'.$s.');">
<a href="'.Route::urlize('media', $s).'">
foreach($this->user->getDir() as $key => $value) {
$html .=
'<li style="background-image: url('.$value['thumb'].');">
<a href="'.Route::urlize('media', $key).'">
</a>
<div class="remove" onclick="'.$this->genCallAjax('ajaxDeleteItem', "'".$s."'").'">x</div>
<div
class="remove"
onclick="'.
$this->genCallAjax(
'ajaxDeleteItem',
"'".$key."'"
).'">
x
</div>
</li>
';
';
}
$html .= '</ul>';

2
app/widgets/WidgetCommon/WidgetCommon.php

@ -366,6 +366,8 @@ class WidgetCommon extends WidgetBase {
$view->assign('toggle_position', $this->genCallAjax('ajaxShowPosition', "'poss'"));
$view->assign('gallery', $this->user->getDir());
$view->assign(
'publish_item',
$this->genCallAjax(

34
app/widgets/WidgetCommon/_submit_form.tpl

@ -8,10 +8,28 @@
<div class="content" id="postpreviewcontent">
</div>
<a
class="button color icon no"
onclick="movim_toggle_display('#postpreview');"
>{$c->t('Close')}</a>
<div class="menu">
<a
class="button color icon no"
onclick="movim_toggle_display('#postpreview');"
>{$c->t('Close')}</a>
</div>
</div>
<div class="popup post" id="galleryselect" style="padding: 0;">
<ul class="thumb">
{loop="gallery"}
<li style="background-image: url({$value.thumb});">
<a href="#"></a>
</li>
{/loop}
</ul>
<div class="menu">
<a
class="button color icon no"
onclick="movim_toggle_display('#galleryselect');"
>{$c->t('Close')}</a>
</div>
</div>
<table id="feedsubmitform">
<tbody>
@ -38,6 +56,14 @@
class="button icon color green icon yes">
{$c->t("Submit")}
</a>
<a
class="button icon color alone merged left images"
style="float: left;"
title="{$c->t('Gallery')}"
onclick="
movim_toggle_display('#galleryselect');
"
></a>
<a
class="button icon color alone merged left preview"
style="float: left;"

2
lib/RainTPL.php

@ -53,7 +53,7 @@ class RainTPL{
*
* @var unknown_type
*/
private $path_replace = true;
private $path_replace = false;
/**

30
system/User.php

@ -42,13 +42,37 @@ class User {
function dirSize()
{
$sum = 0;
foreach($this->getDir() as $s)
$sum = $sum + filesize($s['dir']);
return $sum;
}
/**
* Get a list of the files in the user dir with uri, dir and thumbs
*/
function getDir()
{
$dir = array();
foreach(scandir($this->userdir) as $s) {
if($s != '.' && $s != '..' && $s != 'index.html')
$sum = $sum + filesize($this->userdir.$s);
if(
$s != '.' &&
$s != '..' &&
substr($s, 0, 6) != 'thumb_' &&
substr($s, 0, 7) != 'medium_' &&
$s != 'index.html') {
$file = array(
'uri' => $this->useruri.$s,
'dir' => $this->userdir.$s,
'thumb' => $this->useruri.'thumb_'.$s,
'medium' => $this->useruri.'medium_'.$s);
$dir[$s] = $file;
}
}
return $sum;
return $dir;
}
/**

47
system/Utils.php

@ -38,31 +38,38 @@ function sprintln($string)
function prepareString($string) {
$smileys =
array(
// famfamfam icons
':\)' => 'emoticon_smile.png',
':-\)' => 'emoticon_smile.png',
':\(' => 'emoticon_unhappy.png',
':o' => 'emoticon_surprised.png',
':O' => 'emoticon_surprised.png',
':3' => 'emoticon_waii.png',
':D' => 'emoticon_grin.png',
':d' => 'emoticon_grin.png',
':p' => 'emoticon_tongue.png',
':P' => 'emoticon_tongue.png',
':-P' => 'emoticon_tongue.png',
';D' => 'emoticon_wink.png',
';d' => 'emoticon_wink.png',
'\^\^' => 'emoticon_happy.png',
'\(k\)' => 'heart.png',
// HFR icons
':\/' => 'bof.gif',
';\)' => 'emoticon_wink.png',
'B\)' => 'sol.gif',
":'\(" => 'cry.gif',
':love:'=> 'love.gif',
'O:\)' => 'ange.gif',
'O:-\)' => 'ange.gif',
':redface:' => 'redface.gif',
':petrus:' => 'petrus75.gif',
// famfamfam icons
':\)\)' => 'grin.png',
':\)' => 'smiley.png',
':-\)' => 'smiley.png',
':\(' => 'sad.png',
':o' => 'shocked.png',
':O' => 'shocked.png',
':3' => 'emoticon_waii.png',
':D' => 'grin.png',
':d' => 'grin.png',
':p' => 'tongue.png',
':P' => 'tongue.png',
':-P' => 'tongue.png',
';D' => 'wink.png',
';d' => 'wink.png',
';\)' => 'wink.png',
'\^\^' => 'happy.png',
'\(k\)' => 'heart.png',
'B\)' => 'cool.png',
':s' => 'confused.png',
':S' => 'confused.png',
':\/' => 'wondering.png',
':evil:'=> 'evil.png',
":\|" => 'neutral.png',
// Meme icons
':okay:' => 'okay.gif',

1
themes/movim/css/forms.css

@ -322,6 +322,7 @@ legend {
.icon.no:before { background-image: url(../img/icons/button/close.png); }
.icon.chat:before { background-image: url(../img/icons/button/bubbles.png);}
.icon.image:before { background-image: url(../img/icons/button/image.png);}
.icon.images:before { background-image: url(../img/icons/button/images.png);}
.icon.add:before { background-image: url(../img/icons/button/plus.png); }
.icon.rm:before { background-image: url(../img/icons/button/minus.png); }
.icon.write:before { background-image: url(../img/icons/button/pencil.png); }

19
themes/movim/css/style.css

@ -700,10 +700,11 @@ dl dd {
/* Popup */
.popup {
position: fixed;
top: 10%;
left: 25%;
top: 6em;
left: 50%;
z-index: 10;
width: 50%;
width: 870px;
margin-left: -435px;
max-height: 80%;
overflow-y: auto;
display: none;
@ -727,6 +728,18 @@ dl dd {
pointer-events: none;
}
.popup .menu {
position: fixed;
top: 3em;
left: 50%;
width: 870px;
margin-left: -435px;
background-color: rgba(0, 0, 0, 0.8);
padding-top: 0.5em;
padding-left: 0.5em;
height: 2.5em;
}
.popup span, .popup p, .popup pre, .popup h2, .popup h3, .popup a {
color: white;
}

BIN
themes/movim/img/smileys/angry.png

After

Width: 16  |  Height: 16  |  Size: 452 B

BIN
themes/movim/img/smileys/biggrin.gif

Before

Width: 15  |  Height: 15  |  Size: 105 B

BIN
themes/movim/img/smileys/bof.gif

Before

Width: 19  |  Height: 19  |  Size: 896 B

BIN
themes/movim/img/smileys/confused.png

After

Width: 16  |  Height: 16  |  Size: 422 B

BIN
themes/movim/img/smileys/cool.png

After

Width: 16  |  Height: 16  |  Size: 410 B

BIN
themes/movim/img/smileys/emoticon_evilgrin.png

Before

Width: 16  |  Height: 16  |  Size: 727 B

BIN
themes/movim/img/smileys/emoticon_grin.png

Before

Width: 16  |  Height: 16  |  Size: 714 B

BIN
themes/movim/img/smileys/emoticon_happy.png

Before

Width: 16  |  Height: 16  |  Size: 731 B

BIN
themes/movim/img/smileys/emoticon_smile.png

Before

Width: 16  |  Height: 16  |  Size: 725 B

BIN
themes/movim/img/smileys/emoticon_surprised.png

Before

Width: 16  |  Height: 16  |  Size: 741 B

BIN
themes/movim/img/smileys/emoticon_tongue.png

Before

Width: 16  |  Height: 16  |  Size: 727 B

BIN
themes/movim/img/smileys/emoticon_unhappy.png

Before

Width: 16  |  Height: 16  |  Size: 723 B

BIN
themes/movim/img/smileys/emoticon_waii.png

Before

Width: 16  |  Height: 16  |  Size: 737 B

BIN
themes/movim/img/smileys/emoticon_wink.png

Before

Width: 16  |  Height: 16  |  Size: 712 B

BIN
themes/movim/img/smileys/evil.png

After

Width: 16  |  Height: 17  |  Size: 493 B

BIN
themes/movim/img/smileys/grin.png

After

Width: 16  |  Height: 16  |  Size: 447 B

BIN
themes/movim/img/smileys/happy.png

After

Width: 16  |  Height: 16  |  Size: 442 B

BIN
themes/movim/img/smileys/heart.png

Before

Width: 16  |  Height: 16  |  Size: 749 B

After

Width: 16  |  Height: 16  |  Size: 248 B

BIN
themes/movim/img/smileys/locked.png

After

Width: 16  |  Height: 16  |  Size: 199 B

BIN
themes/movim/img/smileys/loop.png

After

Width: 16  |  Height: 16  |  Size: 133 B

BIN
themes/movim/img/smileys/love.gif

Before

Width: 15  |  Height: 15  |  Size: 355 B

BIN
themes/movim/img/smileys/neutral.png

After

Width: 16  |  Height: 16  |  Size: 360 B

BIN
themes/movim/img/smileys/pencil.png

After

Width: 16  |  Height: 16  |  Size: 203 B

BIN
themes/movim/img/smileys/sad.png

After

Width: 16  |  Height: 16  |  Size: 425 B

BIN
themes/movim/img/smileys/shocked.png

After

Width: 16  |  Height: 16  |  Size: 397 B

BIN
themes/movim/img/smileys/smile.gif

Before

Width: 15  |  Height: 15  |  Size: 93 B

BIN
themes/movim/img/smileys/smiley.png

After

Width: 16  |  Height: 16  |  Size: 442 B

BIN
themes/movim/img/smileys/sol.gif

Before

Width: 16  |  Height: 16  |  Size: 2.2 KiB

BIN
themes/movim/img/smileys/tongue.gif

Before

Width: 15  |  Height: 15  |  Size: 266 B

BIN
themes/movim/img/smileys/tongue.png

After

Width: 16  |  Height: 16  |  Size: 382 B

BIN
themes/movim/img/smileys/users.png

After

Width: 16  |  Height: 16  |  Size: 386 B

BIN
themes/movim/img/smileys/wink.gif

Before

Width: 15  |  Height: 15  |  Size: 94 B

BIN
themes/movim/img/smileys/wink.png

After

Width: 16  |  Height: 16  |  Size: 452 B

BIN
themes/movim/img/smileys/wondering.png

After

Width: 16  |  Height: 16  |  Size: 419 B

Loading…
Cancel
Save