Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions data/build_css.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
include('catalog.php');
include('css_catalog.php');

$newFilePath = '../emoji_new.css';
ob_start();
echo ".emoji { background: url(\"emoji.png\") top left no-repeat; width: 20px; height: 20px; display: -moz-inline-stack; display: inline-block; vertical-align: top; zoom: 1; *display: inline; }\n";

foreach ($catalog as $item){
Expand All @@ -27,4 +29,9 @@

echo ".emoji$unilow { background-position: -{$pos[0]}px -{$pos[1]}px; }\n";
}

$newFileData = ob_get_contents();
ob_end_flush();
file_put_contents($newFilePath,$newFileData);
echo "Now ,u have a new file for emoji.css ,its named emoji_new.css\n";
?>
8 changes: 7 additions & 1 deletion data/build_map.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
# we could just use var_dump, but we get 'better' output this way
#

$newFilePath = '../emoji_new.php';

ob_start();
echo "<"."?php\n";

echo "\n";
Expand Down Expand Up @@ -79,7 +82,10 @@

echo file_get_contents('core_functions.php');


$emoji_new_data = ob_get_contents();
ob_end_clean();
file_put_contents($newFilePath,$emoji_new_data);
echo "Now, u have a new file for emoji.php,its named emoji_new.php\n";

##########################################################################################

Expand Down