XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 29, 2009, 2:09:34 PM (15 years ago)
Author:
toemon
Message:

デフォルトテーマxpress_defaultの調整 bump Ver0.18
メインメニューにwordPress管理とXPressME設定を追加

Location:
trunk/wp-content/plugins/xpressme/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/include/custom_functions.php

    r140 r141  
    264264function xpress_conditional_title($display = true) 
    265265{ 
    266         $output = __('Main', 'xpress'); 
     266        $output = __('Main', 'xpressme'); 
    267267        if (is_category()) 
    268                 $output = sprintf(__('Archive for the ‘%s’ Category', 'xpress'), single_cat_title('', false)); 
     268                $output = sprintf(__('Archive for the ‘%s’ Category', 'xpressme'), single_cat_title('', false)); 
    269269        if (is_tag()) 
    270                 $output = sprintf(__('Posts Tagged ‘%s’', 'xpress'), single_tag_title('', false) ); 
     270                $output = sprintf(__('Posts Tagged ‘%s’', 'xpressme'), single_tag_title('', false) ); 
    271271        if (is_day()) 
    272                 $output = sprintf(_c('Archive for %s|Daily archive page', 'xpress'), get_the_time(__('F jS, Y', 'xpress'))); 
     272                $output = sprintf(__('Archive for %s|Daily archive page', 'xpressme'), get_the_time(__('F jS, Y', 'xpressme'))); 
    273273        if (is_month()) 
    274                 $output = sprintf(_c('Archive for %s|Monthly archive page', 'xpress'), get_the_time(__('F, Y', 'xpress'))); 
     274                $output = sprintf(__('Archive for %s|Monthly archive page', 'xpressme'), get_the_time(__('F, Y', 'xpressme'))); 
    275275        if (is_year()) 
    276                 $output = sprintf(_c('Archive for %s|Yearly archive page', 'xpress'), get_the_time(__('Y', 'xpress'))); 
     276                $output = sprintf(__('Archive for %s|Yearly archive page', 'xpressme'), get_the_time(__('Y', 'xpressme'))); 
    277277        if (is_author()) 
    278                 $output = get_author_name( get_query_var('author')); __('Author Archive', 'xpress'); 
     278                $output = sprintf(__('Archive for the ‘%s’ Author', 'xpressme'), get_author_name( get_query_var('author'))); 
    279279        if (is_search()) 
    280                 $output = __('Search Results', 'xpress'); 
     280                $output = __('Search Results', 'xpressme'); 
    281281                 
    282282        if ($display)  
  • trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r140 r141  
    128128} 
    129129 
     130function block_cache_refresh()  
     131{  
     132        global $xoops_db;  
     133        $mid = get_xpress_modid();  
     134        $sql = "SELECT bid,options,func_file FROM " . get_xoops_prefix() . "newblocks WHERE mid = $mid";  
     135        $blocks = $xoops_db->get_results($sql);  
     136        $mydirname = get_xpress_dir_name();  
     137        require_once get_xpress_dir_path() . '/include/xpress_block_render.php';  
     138 
     139 
     140        foreach($blocks as $block){  
     141                $func_file = $block->func_file;  
     142                $call_theme_function_name = str_replace(".php", "", $func_file);  
     143                $inc_theme_file_name = str_replace(".php", "", $func_file) . '_theme.php';  
     144                $cache_title = str_replace(".php", "", $func_file);  
     145                $blockID = $block->bid;  
     146                $options = explode("|", $block->options);  
     147 
     148                $block_theme_file = get_block_file_path($mydirname,$inc_theme_file_name);  
     149                require_once $block_theme_file;  
     150                $block_render = $call_theme_function_name($options);            //The block name and the called function name should be assumed to be the same name.                      
     151                $xml['block'] = $block_render;  
     152                $xml['block']['options'] = $block->options;  
     153                xpress_block_cache_write($mydirname,$cache_title. $blockID, $xml);  
     154        }  
     155} 
    130156?> 
Note: See TracChangeset for help on using the changeset viewer.