Changeset 9789


Ignore:
Timestamp:
Mar 20, 2011, 2:26:37 PM (14 years ago)
Author:
mistic100
Message:

[extentions] Smilies Support

Location:
extensions/SmiliesSupport
Files:
2 added
3 edited
4 moved

Legend:

Unmodified
Added
Removed
  • extensions/SmiliesSupport/admin.php

    r9764 r9789  
    1515       
    1616        $conf_smiliessupport = array(
    17                 isset($_POST['text1']) ? $_POST['text1'] : 'plugins/SmiliesSupport/smilies',
    18                 isset($_POST['text2']) ? $_POST['text2'] : '5',
    19                 isset($_POST['text3']) ? $_POST['text3'] : 'sourire.gif',
     17                isset($_POST['text1']) ? $_POST['text1'] : 'plugins/SmiliesSupport/smilies_1',
     18                isset($_POST['text2']) ? $_POST['text2'] : '6',
     19                isset($_POST['text3']) ? $_POST['text3'] : 'smile.png',
    2020        );
    2121       
    22         if (empty($_POST['text'])) $_POST['text'] = ':)         sourire.gif';
     22        if (empty($_POST['text'])) $_POST['text'] = ':)         smile.png';
    2323               
    2424    $new_value_smiliessupport = implode (",", $conf_smiliessupport);
     
    4343}
    4444
    45 $template->assign(array('TEXT1_VALUE' => $conf_smiliessupport[0]));
    46 $template->assign(array('TEXT2_VALUE' => $conf_smiliessupport[1]));
    47 $template->assign(array('TEXT3_VALUE' => $conf_smiliessupport[2]));
     45$template->assign(array(
     46        'TEXT1_VALUE' => $conf_smiliessupport[0],
     47        'TEXT2_VALUE' => $conf_smiliessupport[1],
     48        'TEXT3_VALUE' => $conf_smiliessupport[2],
     49));
    4850
    4951include_once(SMILIES_PATH . '/smiliessupport.inc.php');
     
    5153
    5254$smilies_file = PHPWG_ROOT_PATH.$conf_smiliessupport[0].'/smilies.txt';
    53 $content_file = null;
    5455
    5556if (file_exists($smilies_file)) {
     
    5859}
    5960       
    60 $template->set_filename('smiliessupport_conf', dirname(__FILE__).'/smiliessupport_admin.tpl');
     61$template->assign('SMILIES_PATH', SMILIES_PATH);
     62$template->set_filename('smiliessupport_conf', dirname(__FILE__).'/template/smiliessupport_admin.tpl');
    6163$template->assign_var_from_handle('ADMIN_CONTENT', 'smiliessupport_conf');
    6264
  • extensions/SmiliesSupport/main.inc.php

    r9764 r9789  
    3232                array_push($menu, array(
    3333                        'NAME' => 'Smilies Support',
    34                          'URL' => get_root_url().'admin.php?page=plugin-' . SMILIES_DIR));
     34                        'URL' => get_root_url().'admin.php?page=plugin-' . SMILIES_DIR));
    3535                return $menu;
    3636        }
  • extensions/SmiliesSupport/smiliessupport.inc.php

    r9764 r9789  
    3333
    3434        $cnt = 1;
    35         $template->set_filename('smiliessupport_page', dirname(__FILE__).'/smiliessupport_page.tpl');
     35        $template->assign('SMILIES_PATH', SMILIES_PATH);
     36        $template->set_filename('smiliessupport_page', dirname(__FILE__).'/template/smiliessupport_page.tpl');
    3637        $template->assign(array('REPRESENTANT' => PHPWG_ROOT_PATH.$conf_smiliessupport[0].'/'.$conf_smiliessupport[2]));
    3738
  • extensions/SmiliesSupport/template/smiliessupport_admin.tpl

    r9764 r9789  
    1 {combine_script id='jquery'}
    21{combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
    32{include file='include/autosize.inc.tpl'}
    43
    5 {footer_script}
     4{footer_script require="jquery.cluetip"}
    65{literal}
    76        jQuery().ready(function(){
  • extensions/SmiliesSupport/template/smiliessupport_page.tpl

    r9728 r9789  
    11{combine_script id="jquery"}
    2 {combine_script id="smiliessupport" path=$ROOT_URL|@cat:"plugins/SmiliesSupport/smiliessupport.js"}
    3 {combine_css path=$ROOT_URL|@cat:"plugins/SmiliesSupport/smiliessupport_page.css"}
     2{combine_script id="smiliessupport" path=$SMILIES_PATH|@cat:"template/smiliessupport.js"}
     3{combine_css path=$SMILIES_PATH|@cat:"template/smiliessupport_page.css"}
    44
    55<div width="500pt">
Note: See TracChangeset for help on using the changeset viewer.