Changeset 26137


Ignore:
Timestamp:
12/23/13 18:38:47 (6 years ago)
Author:
mistic100
Message:
 
Location:
extensions/skeleton/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/skeleton/trunk/include/admin_events.inc.php

    r24182 r26137  
    77function skeleton_admin_plugin_menu_links($menu)  
    88{ 
    9   array_push($menu, array( 
     9  $menu[] = array( 
    1010    'NAME' => l10n('Skeleton'), 
    1111    'URL' => SKELETON_ADMIN, 
    12   )); 
     12    ); 
     13 
    1314  return $menu; 
    1415} 
  • extensions/skeleton/trunk/include/public_events.inc.php

    r24182 r26137  
    4848  if (script_basename()=='index') 
    4949  { 
    50     $template->add_index_button('<li>'.$button.'</li>', EVENT_HANDLER_PRIORITY_NEUTRAL); 
     50    $template->add_index_button($button, EVENT_HANDLER_PRIORITY_NEUTRAL); 
    5151  } 
    5252  else 
  • extensions/skeleton/trunk/include/ws_functions.inc.php

    r24182 r26137  
    1313      'ids' => array('flags'=>WS_PARAM_FORCE_ARRAY, 'info'=>'This one must be an array'), 
    1414      ), 
    15     'Returns phpinfo (don\'t use XML request format)' 
     15    'Returns phpinfo (don\'t use XML request format)', 
     16    null, 
     17    array('hidden' => false) // you can hide your method from reflection.getMethodList method 
    1618    ); 
    1719} 
  • extensions/skeleton/trunk/maintain.inc.php

    r25407 r26137  
    2222   */ 
    2323  private $installed = false; 
     24   
     25  private $default_conf = array( 
     26    'option1' => 10, 
     27    'option2' => true, 
     28    'option3' => 'two', 
     29    ); 
    2430 
    2531  /** 
     
    3743    if (empty($conf['skeleton'])) 
    3844    { 
    39       $conf['skeleton'] = serialize(array( 
    40         'option1' => 10, 
    41         'option2' => true, 
    42         'option3' => 'two', 
    43         )); 
    44  
     45      $conf['skeleton'] = serialize($this->default_conf); 
    4546      conf_update_param('skeleton', $conf['skeleton']); 
    4647    } 
  • extensions/skeleton/trunk/template/my_button.tpl

    r24182 r26137  
    11{strip} 
    2 <a href="javascript:alert('Hello world!');" title="{'This is not the button you are looking for'|translate}" class="pwg-state-default pwg-button" rel="nofollow"> 
     2<a href="javascript:alert('Hello world!');" title="{'This is not the %s you are looking for'|translate:('button'|translate)}" class="pwg-state-default pwg-button" rel="nofollow"> 
    33  <span class="pwg-icon" style="background:url('{$ROOT_URL}{$SKELETON_PATH}template/head.png') center center no-repeat;"> </span> 
    44  <span class="pwg-button-text">{'Skeleton'|translate}</span> 
Note: See TracChangeset for help on using the changeset viewer.