The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin Documentation Standards?
#5
I write a text file all the information to each plugin, collected the crumbs on the forum
Code:
компоненты
<?php get_i18n_component('sidebar');    ?>

для выбора языка

      <div class="language">
<?php
  $fullurl = $_SERVER["REQUEST_URI"];
  if (strpos($fullurl,'setlang=') !== false) $fullurl = substr($fullurl, 0, strpos($fullurl,'setlang=')-1);
  $fullurl .= strpos($fullurl,'?') === false ? '?' : '&amp;';
?>
        <a href="<?php echo $fullurl; ?>setlang=ru">русский</a>
        <a href="<?php echo $fullurl; ?>setlang=en">english</a>
      </div>

Меню

<ul><?php get_i18n_navigation(return_page_slug(),0,0); ?></ul>

для мультиязычных сайтов
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_LANGUAGE); ?></ul>

<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_MENU); ?></ul>
для карты сайта
все страницы
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_PAGES); ?></ul>
страницы только из меню
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_MENU); ?></ul>
для мультиязычных сайтов
<ul><?php get_i18n_navigation(return_page_slug(),0,99, I18N_SHOW_LANGUAGE); ?></ul>

ДЛЯ ВСТАВКИ СТРАНИЦ В СТРАНИЦЫ
<?php get_i18n_content('news-1'); ?>

<div class="breadcrumbs">
  <a href="<?php echo find_url('index',null); ?>">home</a>
  <?php get_i18n_breadcrumbs(return_page_slug()); ?>
</div>
Reply


Messages In This Thread
Plugin Documentation Standards? - by mvlcek - 2011-06-10, 20:01:53
Plugin Documentation Standards? - by yojoe - 2011-06-10, 23:53:51
Plugin Documentation Standards? - by mvlcek - 2011-06-11, 00:48:12
Plugin Documentation Standards? - by Oleg06 - 2011-06-11, 00:56:30
Plugin Documentation Standards? - by Connie - 2011-06-11, 00:58:10
Plugin Documentation Standards? - by RobA - 2011-06-11, 08:03:46
Plugin Documentation Standards? - by Connie - 2011-06-11, 16:16:59
Plugin Documentation Standards? - by ccagle8 - 2011-06-12, 00:48:57
Plugin Documentation Standards? - by ccagle8 - 2011-06-12, 23:57:06
Plugin Documentation Standards? - by mvlcek - 2011-06-13, 02:23:49
Plugin Documentation Standards? - by ccagle8 - 2011-06-13, 02:55:57



Users browsing this thread: 1 Guest(s)