Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skeleton FX Theme
#1
My next theme - to your attention...
Skeleton-FX (Futured eXpandable) designed specifically for professional web designers.
Skeleton-FX - it is not just a simple theme, this PHP-HTML-CSS3 Framework with its own responsive grid system, animated multilevel drop-down menu and other necessary elements for the modern web design.
Theme Skeleton-FX packed with great features like:
  1. Solid Core subsystem, which has three modules:
    • It's own responsive, mobile ready Grid system;
    • All needed Typography elements;
    • Multilanguage animated multilevel drop-down Menu + Breadcrumbs (from own internal functions).
  2.   Advanced Features subsystem, which has five modules:
    • Output Objects including CSS Accordion, Tabs and Tables elements;
    • Image Tools including Image Gallery, Ken Burns and Parallax effects;
    • Full featured two types Sliders with images, texts and navigation animations;
    • Extended Elements suit which contain Alerts, Modal windows, Animated Blocks, ToolTips and cool Text Animation effects;
    • Advanced Form Controls elements including CSS Buttons, Text Input Objects, Badges, Pagination, Progress Bars, Check & Radios and Animated Buttons.
  3. Full featured Search engine and Contact pages.
  4. All objects provided with detailed description and Source Code for easiest deploy, just copy needed element Source Code, paste it to your page and replace texts and images to your own.
Using this theme possibilities can be straightforward to create different levels of sites, from simple few pages sites to modern, full-featured portals.
These theme the main feature is that it completely does not use Javascript or jQuery. All elements presented on the Live Demo site (see link below) realized by using pure PHP-HTML-CSS capabilities. Therefore, sites realized on the basis of this theme will be lightweight and fast. Because the theme uses only one external source - minimized CSS file (style.css).
Themes expansion options and its appearance can be changed on the settings page. They are built using LESS system. You can at any time simple turn on the required or turn off redundant opportunity. And then generate a new style sheets CSS file (minimized or not). All themes structure elements appearance can be changed using the LESS variables, which are defined in the main file (variables.less). All elements LESS files can be also edited on the settings page in the special LESS graphic Editor.
More detailed description and downloadable source can be find on my site (see it LIVE):
http://pigios-svetaines.eu/projects/skeleton-fx/

Important! To have access to the theme administration page and for correct functioning of all it's elements you need to install my modified plugin "Theme Settings MOD" (which is already included in the theme installer).

If plugin "Theme Settings MOD" not installed or activated - theme will work without them with default settings.
It looks like this:


[Image: screenshot.png]
Reply
#2
Couldn't find the Theme Settings MOD plugin. It seems not to be part of the installer.
May I know where to get it from?
Reply
#3
(2017-04-18, 03:01:31)hhj Wrote: Couldn't find the Theme Settings MOD plugin. It seems not to be part of the installer.
May I know where to get it from?

How is it not to be part of the installer? Are you really that sure?
I can guarantee you that in the both installation archives (from GS Extend and from my site) "Theme Settings MOD" plugin is included.
Just open your downloaded installer and look inside them...
You should see 2 folders and one file (install.txt).
Inside folder "plugins" is your searched plugin.
Read install.txt file there is a second point about the plugin installation:
"unzip the archive plugins directory content to the site folder plugin".
I do not know how else more intelligible to write.
So just copy folder "theme_settings" and file theme_settings.php to your site plugins directory.
And everything will be as needed.
Reply
#4
Well, I am not sure what I did wrong then. I installed it as required but can't get the Configure Theme working for Skeleton-Fx. The plugin is enabled. It shows its version 0.4a.
On the contrary Configure Theme works for GS Evolve theme.
Reply
#5
(2017-04-22, 06:19:19)hhj Wrote: Well, I am not sure what I did wrong then. I installed it as required but can't get the Configure Theme working for Skeleton-Fx. The plugin is enabled. It shows its version 0.4a.
On the contrary Configure Theme works for GS Evolve theme.

Sorry, it's my fault.
Left one mistake from my continuous installation (when it was on the localhost).
Now I have corrected the error and update installation archive. So everything should be OK.
Please re-download archive file and update Theme Settings plugin on your site.
Thank you for your help in finding this mistake.
Have a nice day. Andrejus.
Reply
#6
Now it works. Thank you very much.
Reply
#7
Version changed to 0.1.1
1. Add Multi-language support. Just install "i18n_base" plugin and create Multi-language pages. For menu items and breadcrumbs outputs, Theme use own internal functions. So "i18n_navigation" plugin install not needed.
    1.1 Theme comes with 3 prepared translation files: English, Russian and Lithuanian.
2. Improved internal Search engine:
    2.1 Improved Search page provided information: On top displayed searched keywords; Removed short-codes and illegal characters; Improved text Excerpt mechanism.
    2.2 To the upper right Search field add submit button for mobile users convenience.
3. In the Theme settings page insert a new management area "Search settings" which has 5 fields:
    2.1 "Always use internal Search function" - if checked will be used Internal Search function, even if on site is installed "i18n_search" plugin.
    2.2 "Search the keywords in the 'Meta' fields" (if checked search try to find also in the "Tags & Keywords" and "Meta Description" fields).
    2.3 "Open the found page in a new tab" (if checked found link will be opened in the new Tab).
    2.4 "Search keywords condition (logical AND)" - if checked search try to find whole row of keywords, if unchecked search try to find each keyword separately.
    2.5 "Search Page excerpt size (in symbols)" - you can change Excerpt value, if empty used default value 200 characters.
4. In the installation archive "plugins" folder was added modified "i18n_lang_menu" plugin which is specially adapted for this theme.
Reply
#8
Hi! I like your mulitlanguage support. Could you please explain, how can I do this to my own template? I would like to create language packs for my website like you did, it is more convinient than many components.

I guess it has to do with function.php but I can't figure out how to take and apply those functions to my template to make it use language variables..

Thank you!
Reply
#9
(2017-09-01, 15:38:28)0zz Wrote: Hi! I like your mulitlanguage support. Could you please explain, how can I do this to my own template? I would like to create language packs for my website like you did, it is more convinient than many components.

I guess it has to do with function.php but I can't figure out how to take and apply those functions to my template to make it use language variables..

Thank you!

Hello, Ozz.
Yes, all you need placed in the functions.php file. You can copy all the code from Skeleton-FX functions.php to yours functions file.
In the Skeleton-FX theme multilanguage menus, breadcrumbs and Search engine functions call placed in the header.inc.php file. You can open this file and see how it's realized.
For the menu items population used function - get_navigation_items(). You can see this function using modes and avalaible parameters here:
http://pigios-svetaines.eu/projects/skel...tion-menu/
For the breadcrumbs items population use function - print_breadcrumbs(return_page_slug());
You can place this function call where you want.
For Search engine activation using HTML block in the header.inc.php on line 44. So you can copy this block to you theme header.inc.php file.
Pages content multilanguage realized by i18n_base plugin. So for multilanguage content populating you must install this plugin and create multilanguage Pages structure.
Good luck. Andrejus.
Reply
#10
Thank you for your reply!

As I said I only want language variables for template, like you did that.

So I have copied and pasted the following your code to my functions.php 
PHP Code:
<?php

/***  Function to get variables from Lang array  ***/
function get_lang_param($name="") {
 
   if(empty($name)) return false;
 
   if(isset($_COOKIE['current_lang'])) $def_lang $_COOKIE['current_lang'];
 
   if(!isset($def_lang)) {
 
       global $language;
 
       if(isset($language) && !empty($language)) $def_lang=$language;
 
       else {
 
           $LANG getDefaultLanguage();
 
           if(isset($LANG) && !empty($LANG) && substr($LANG,0,2)!="en"$def_lang getDefaultLanguage();
 
           else $def_lang="en_US";
 
       }
 
       if($def_lang == "en"$def_lang "en_US";
 
       if(strlen($def_lang)<3$def_lang $def_lang.'_'.strtoupper($def_lang);
 
   }
 
   if (file_exists(str_replace('\\','/',dirname(__FILE__)).'/lang/'.$def_lang.'.php')) {
 
       require(str_replace('\\','/',dirname(__FILE__)).'/lang/'.$def_lang.'.php');
 
   }
 
   if(isset($set_lang[$name]) && !empty($set_lang[$name])) $lang_param $set_lang[$name];
 
   else $lang_param "Search";
 
   return $lang_param;
}


/***  i18n Set Language function  ***/
function getDefaultLanguage() {
 
   if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
 
   return parseDefaultLanguage($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
 
   else return parseDefaultLanguage(NULL);
}
function 
parseDefaultLanguage($http_accept$deflang "en") {
 
   if(function_exists('return_theme_setting') && return_theme_setting('site_deflang') && strlen(return_theme_setting('site_deflang')) > 1) {
 
       $deflang return_theme_setting('site_deflang');
 
   }
 
   elseif(isset($http_accept) && strlen($http_accept) > 1 {
 
       # Split possible languages into array
 
       $x explode(",",$http_accept);
 
       foreach ($x as $val) {
 
           #check for q-value and create associative array. No q-value means 1 by rule
 
           if(preg_match("/(.*);q=([0-1]{0,1}.\d{0,4})/i",$val,$matches))
 
           $lang[$matches[1]] = (float)$matches[2];
 
           else
            $lang
[$val] = 1.0;
 
       }
 
       #return default language (highest q-value)
 
       $qval 0.0;
 
       foreach ($lang as $key => $value) {
 
           if ($value $qval) {
 
               $qval = (float)$value;
 
               $deflang $key;
 
           }
 
       }
 
   }
 
   return $deflang;
}
function 
check_language($long true) {
 
   global $language;
 
   global $set_lang;
 
   if(isset($_GET['setlang'])) {
 
       $langas $_GET['setlang'];
 
       if(strlen($langas) == 2) {
 
           if($langas == "en"$langas $langas."_US";
 
           else $langas $langas."_".strtoupper($langas);
 
       }
 
       if (isset($_COOKIE['current_lang'])) {
 
           setcookie("current_lang"$langastime()-100 '/');
 
           $_COOKIE['current_lang']=$langas;
 
       }
 
       setcookie("current_lang"$langastime()+3600 '/');
 
   }
 
   if(isset($_COOKIE['current_lang'])) $langas $_COOKIE['current_lang'];
 
   elseif(!isset($langas) || empty($langas) || strlen($langas)<2) {
 
       if(isset($language)) {
 
           if($long$langas $language."_".strtoupper($language);
 
           else $langas $language;
 
       }
 
       else $langas getDefaultLanguage();
 
   }
 
   if(!isset($langas) || empty($langas) || strlen($langas)<2) {
 
       if($long$langas "en_US";
 
       else $langas "en";
 
   }
 
   if(strpos($langas"-") !== false$langas str_replace("-""_"$langas);
 
   if (file_exists(str_replace('\\','/',dirname(__FILE__)).'/lang/'.$langas.'.php')) {
 
       include(str_replace('\\','/',dirname(__FILE__)).'/lang/'.$langas.'.php');
 
   }
 
   else {
 
       include(str_replace('\\','/',dirname(__FILE__)).'/lang/en_US.php');
 
   }
}
?>

Now I have two files: en_US.php and ru_RU.php in my lang folder in the theme directory.

And I do have i18n and other plugins installed and two languages so far..

Now in my template.php I suppose I must use something like:
PHP Code:
<?php echo $set_lang['FX_MYTEXT']; ?>

and get relevant translations from those two lang files.

But I don't get any output for some reason. What could you suggest?
Reply
#11
Function get_lang_param(string $name) used to get needed variable value from language array described in the your language file, in example:
in the language file is named some variable, like this
<?php
$set_lang = array ( 'FX_SEARCH_FOUND'=>'The following pages have been found', ); ?>

so in order to get it value in different languages we can use this function call with needed string as parameter:
<?php echo get_lang_param('FX_SEARCH_FOUND'); ?>
The function will print line "The following pages have been found" if active language is EN, or "Следующие страницы были найдены" if active language is RU and so on.

To get active language code and multilanguage mechanizm organizing Skeleton-FX use main function check_language(). Just add this function call to the top of your header.inc.php, like that:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }?>
<?php check_language(); ?>

That would be enough.
In the your functions.php you must to add this main function PHP realization code and also 2 of her subsidiary functions - getDefaultLanguage() and parseDefaultLanguage().
I believed that I helped you. Andrejus.
Reply
#12
Yes, thank you so much, Andrejus!!!
Reply




Users browsing this thread: 1 Guest(s)
Free HDTV Channels Residential Solar Panels