Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I intall I18N
#1
I am very confused. I tried reading and understanding the direction provided but The zip has

I18N_base folder
I18N_common folder
I18N_navigation folder
I18N_base.php
I18N_navigation.php

I do not know where to install in? Direction do not seem to be updated mentioning those files above. I am trying to get submenu to working at bettylineclc.com

Thanks
Reply
#2
This is GEtsimple installed on my pc via localhost
[Image: capture2oqp.png]
See in the picture?
1. Copy all of these files in the zip to the plugins folder located one click away from the root folder of GS. Be sure to maintain the same structure as you see in the zip php files and the seperate folders
2. "in your template(s) replace get_navigation(return_page_slug()) with get_i18n_navigation(return_page_slug()) and get_component(id) with get_i18n_component(id)."
In /theme/Innovation/header.inc.php
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File:             header.php
* @Package:        GetSimple
* @Action:        Innovation theme for the GetSimple 3.0
*
*****************************************************/
?><!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title><?php get_page_clean_title(); ?> - <?php get_site_name(); ?></title>
    
    <meta name="robots" content="index, follow">

    <link href='//fonts.googleapis.com/css?family=Yanone+Kaffeesatz' rel='stylesheet' type='text/css'>
    <link href="<?php get_theme_url(); ?>/assets/css/reset.css" rel="stylesheet">
    <link href="<?php get_theme_url(); ?>/style.css?v=<?php echo get_site_version(); ?>" rel="stylesheet">
    
    <!--[if lt IE 9]>
        <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
    <!--[if lt IE 7 ]>
    <script src="<?php get_theme_url(); ?>/assets/js/dd_belatedpng.js"></script>
    <script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script>
  <![endif]-->

    <?php get_header(); ?>
    
</head>
<body id="<?php get_page_slug(); ?>" >
    
    <!-- site header -->
    <header>
        <div class="header">
            <div class="wrapper">
                
                <!-- logo/sitename -->
                <a href="<?php get_site_url(); ?>" id="logo" ><?php get_site_name(); ?></a>
                
                <!-- main navigation -->
                <nav id="main-nav">
                    <ul>
Replace This<?php get_navigation(get_page_slug(FALSE)); ?>
with
<?php get_i18n_navigation(return_page_slug(FALSE)); ?>
                  
</ul>
                </nav>
            </div>
        </div>
        
        <!-- breadcrumbs: only show when NOT on homepage -->
        <p class="breadcrumbs" >
            <span class="wrapper">
                <a href="<?php get_site_url(); ?>">Home</a> &nbsp;&nbsp;•&nbsp;&nbsp; <?php Innovation_Parent_Link(get_parent(FALSE)); ?> <b><?php get_page_clean_title(); ?></b>
            </span>
        </p>
        
  </header>
In /theme/Innovation/sidebar.inc.php
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File:             sidebar.php
* @Package:        GetSimple
* @Action:        Innovation theme for the GetSimple 3.0
*
*****************************************************/
?><aside id="sidebar">

    <div class="section" id="socialmedia" >
        <h2>Connect</h2>
        <div class="icons">
            
            <!-- Social Media URLs are set within this theme's settings plugin -->
            <?php if (defined('FACEBOOK')) { ?>
                <a href="<?php echo FACEBOOK; ?>"><img src="<?php get_theme_url(); ?>/assets/images/facebook.png" /></a>
            <?php } ?>
            <?php if (defined('TWITTER')) { ?>
                <a href="<?php echo TWITTER; ?>"><img src="<?php get_theme_url(); ?>/assets/images/twitter.png" /></a>
            <?php } ?>
            <?php if (defined('LINKEDIN')) { ?>
                <a href="<?php echo LINKEDIN; ?>"><img src="<?php get_theme_url(); ?>/assets/images/linkedin.png" /></a>
            <?php } ?>
            
            <img src="<?php get_theme_url(); ?>/assets/images/break.png" />
            
            <!-- addthis popup - you can add your username if you want analytics: http://www.addthis.com/help/customizing-addthis -->
            <div class="addthis_toolbox" style="display:inline;width:24px;" >
                <a href="//www.addthis.com/bookmark.php?v=250" class="addthis_button_compact"><img src="<?php get_theme_url(); ?>/assets/images/share.png" /></a>
            </div>
            <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script>
        </div>
    </div>
    
    
    <!-- wrap each sidebar section like this -->
    <div class="section">
        Replace <?php get_component('sidebar'); ?>
with
<?php get_i18n_component('sidebar'); ?>
    </div>

    
</aside>
3. When in Page edit mode, where it gives you the option of naming the Page SLUG normally you have something like index, instead, put index_es (Spanish) or index_de (German) SLUG+_+language code, which will create another language.
Full instructions:
http://mvlcek.bplaced.net/get-simple/i18
Instructions for adding navigation to your theme, again this will involving adding a php include to your theme with a set of css rules to style the menu.
http://mvlcek.bplaced.net/get-simple/mul...avigation/
Todo arde si le aplicas la chispa adecuada.
Reply




Users browsing this thread: 1 Guest(s)