initial commit

This commit is contained in:
2026-06-25 13:03:45 +06:00
commit 4589f4a8d0
3229 changed files with 941958 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
<?php
$lang = $_COOKIE['blog_lang'];
if($lang == "spa" ) {
define('LBL_HOME', 'INICIO');
define('LBL_MOBILE_APPS', 'Aplicaciones para móvil');
define('LBL_FAQ', 'Preguntas frecuentes');
define('LBL_FEEDBACK', 'Comentarios');
define('LBL_MY_EXPENSES', 'MY GROUPS');
define('LBL_BLOG', 'BLOG');
define('LBL_GROUP_EXPENSE', 'WeXpense');
define('LBL_MESS_EXPENSE', 'MessXpense');
define('LBL_FAMILY_EXPENSE', 'MyXpense');
define('LBL_WE_NEED_VOLUNTEER', 'Necesitamos voluntarios');
define('LBL_EXPENSECOUNT_IN_YOUR_LANGUAGE', 'ExpenseCount en tu idioma');
define('LBL_EXPENSECOUNT_WE_ARE_LOOKING_FOR_VOLUMNTEER', '¿ExpenseCount no está disponible en tu idioma aún? Estamos buscando traductores voluntarios. ¿Estás interesado');
define('LBL_HERE', 'aquí');
define('LBL_NEWS', 'Noticias');
define('LBL_DO_YOU_WANT_USE_EXPENSECOUNT_MOBILE', '¿Quieres usar ExpenseCount en tu teléfono móvil? Por favor, visita la página para descargar la app móvil y selecciona el tipo de gastos.');
define('LBL_MOBILE_APP_DOWNLOAD_LINK', 'Enlace de descarga de la app móvil:');
define('LBL_APPS_ARE_AVAILABLE_TO_DOWNLOAD_BELOW', 'Las apps están disponibles para tu móvil. Por favor, haz clic en un tipo de gasto de los indicados abajo para descargar la app:');
define('LBL_DOWNLOAD_APP_FOR_GGROUP_EXPENSE', 'Descargar app para Gastos de grupo');
define('LBL_DOWNLOAD_APP_FOR_MESS_EXPENSE', 'Descargar app para Gastos de alojamiento');
define('LBL_DOWNLOAD_APP_FOR_FAMILY_EXPENSE', 'Descargar app para Gastos personal');
define('LBL_ABOUT_US', 'Sobre nosotros');
define('LBL_TERMS_OF_USE', 'Términos de uso');
define('LBL_ALLRIGHT_RESERVED', ' todos los derechos reservados.');
define('LBL_LOGO', '/images/spa/logo.png');
define('LBL_GOOGLE_PLAY_LOGO', '/images/spa/google-play.png');
define('LBL_APP_STORE_LOGO', '/images/spa/app-store.png');
define('LBL_100_PERCENT_FREE', '/images/spa/en_100-percent-free.png');
} else {
define('LBL_HOME', 'HOME');
define('LBL_MOBILE_APPS', 'MOBILE APP');
define('LBL_FAQ', 'FAQ');
define('LBL_FEEDBACK', 'FEEDBACK');
define('LBL_MY_EXPENSES', 'MY GROUPS');
define('LBL_BLOG', 'BLOG');
define('LBL_GROUP_EXPENSE', 'WeXpense');
define('LBL_MESS_EXPENSE', 'MessXpense');
define('LBL_FAMILY_EXPENSE', 'MyXpense');
define('LBL_WE_NEED_VOLUNTEER', 'We need volunteer');
define('LBL_EXPENSECOUNT_IN_YOUR_LANGUAGE', 'ExpenseCount in your language');
define('LBL_EXPENSECOUNT_WE_ARE_LOOKING_FOR_VOLUMNTEER', 'ExpenseCount is not yet available in your language? We are looking for volunteer translators. Interested?');
define('LBL_HERE', 'here');
define('LBL_NEWS', 'News');
define('LBL_DO_YOU_WANT_USE_EXPENSECOUNT_MOBILE', 'Do you want to use ExpenseCount in your mobile phone? Please visit mobile app download page and select expense type.');
define('LBL_MOBILE_APP_DOWNLOAD_LINK', 'Mobile App download link:');
define('LBL_APPS_ARE_AVAILABLE_TO_DOWNLOAD_BELOW', 'Apps are available for your mobile. Please click on an expense type below to download app:');
define('LBL_DOWNLOAD_APP_FOR_GGROUP_EXPENSE', 'Download WeXpense app');
define('LBL_DOWNLOAD_APP_FOR_MESS_EXPENSE', 'Download MessXpense app');
define('LBL_DOWNLOAD_APP_FOR_FAMILY_EXPENSE', 'Download MyXpense app');
define('LBL_ABOUT_US', 'ABOUT US');
define('LBL_TERMS_OF_USE', 'TERMS OF USE');
define('LBL_ALLRIGHT_RESERVED', ' All Rights Reserved.');
define('LBL_LOGO', '/images/eng/logo.png');
define('LBL_GOOGLE_PLAY_LOGO', '/images/eng/google-play.png');
define('LBL_APP_STORE_LOGO', '/images/eng/app-store.png');
define('LBL_100_PERCENT_FREE', '/images/eng/en_100-percent-free.png');
}

View File

@@ -0,0 +1,24 @@
<?php
if(! function_exists('expensecount_scripts')) :
function expensecount_scripts() {
wp_enqueue_style( 'expensecount-bootstrap', get_template_directory_uri().'/css/bootstrap.css', array(), '4.0.0', "all" );
wp_enqueue_style( 'expensecount-style', get_stylesheet_uri() );
wp_enqueue_style( 'expensecount-nav', get_template_directory_uri(). '/css/nav.css', array(), '1.0', "all" );
wp_enqueue_style( 'expensecount-carousel', get_template_directory_uri(). '/owlcarousel/assets/owl.carousel.min.css', array(), '2.2.1', "all" );
wp_deregister_script('jquery');
wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, false);
//wp_enqueue_script('jquery');
wp_enqueue_script( 'expensecount-popper', get_template_directory_uri() . '/js/popper.min.js', array(), '20170206', true );
wp_enqueue_script( 'expensecount-owlcarousel', get_template_directory_uri() . '/owlcarousel/owl.carousel.js', array(), '20170206', true );
wp_enqueue_script( 'expensecount-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '4.0.0', true );
wp_enqueue_script( 'expensecount-nav', get_template_directory_uri() . '/js/nav.js', array(), '1.0.0', true );
/*if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}*/
}
add_action( 'wp_enqueue_scripts', 'expensecount_scripts' );
endif;

View File

@@ -0,0 +1,76 @@
<?php
if ( ! function_exists( 'expensecount_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function expensecount_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on Shareideas, use a find and replace
* to change 'shareideas' to the name of your theme in all the template files.
*/
load_theme_textdomain( 'expensecount', get_template_directory() . '/languages' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
add_image_size('post-image', 300, 300, true);
add_image_size('recent_idea_img', 100, 75, false);
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => esc_html__( 'Primary', 'shareideas' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
/*
* Enable support for Post Formats.
* See https://developer.wordpress.org/themes/functionality/post-formats/
*/
add_theme_support( 'post-formats', array(
'aside',
'image',
'video',
'quote',
'link',
'audio',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'expensecount_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
}
endif;
add_action( 'after_setup_theme', 'expensecount_setup' );

View File

@@ -0,0 +1,220 @@
<?php
/**
* SVG icons related functions and filters
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
*/
/**
* Add SVG definitions to the footer.
*/
function twentyseventeen_include_svg_icons() {
// Define SVG sprite file.
$svg_icons = get_parent_theme_file_path( '/assets/images/svg-icons.svg' );
// If it exists, include it.
if ( file_exists( $svg_icons ) ) {
require_once( $svg_icons );
}
}
add_action( 'wp_footer', 'twentyseventeen_include_svg_icons', 9999 );
/**
* Return SVG markup.
*
* @param array $args {
* Parameters needed to display an SVG.
*
* @type string $icon Required SVG icon filename.
* @type string $title Optional SVG title.
* @type string $desc Optional SVG description.
* }
* @return string SVG markup.
*/
function twentyseventeen_get_svg( $args = array() ) {
// Make sure $args are an array.
if ( empty( $args ) ) {
return __( 'Please define default parameters in the form of an array.', 'twentyseventeen' );
}
// Define an icon.
if ( false === array_key_exists( 'icon', $args ) ) {
return __( 'Please define an SVG icon filename.', 'twentyseventeen' );
}
// Set defaults.
$defaults = array(
'icon' => '',
'title' => '',
'desc' => '',
'fallback' => false,
);
// Parse args.
$args = wp_parse_args( $args, $defaults );
// Set aria hidden.
$aria_hidden = ' aria-hidden="true"';
// Set ARIA.
$aria_labelledby = '';
/*
* Twenty Seventeen doesn't use the SVG title or description attributes; non-decorative icons are described with .screen-reader-text.
*
* However, child themes can use the title and description to add information to non-decorative SVG icons to improve accessibility.
*
* Example 1 with title: <?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right', 'title' => __( 'This is the title', 'textdomain' ) ) ); ?>
*
* Example 2 with title and description: <?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right', 'title' => __( 'This is the title', 'textdomain' ), 'desc' => __( 'This is the description', 'textdomain' ) ) ); ?>
*
* See https://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/.
*/
if ( $args['title'] ) {
$aria_hidden = '';
$unique_id = uniqid();
$aria_labelledby = ' aria-labelledby="title-' . $unique_id . '"';
if ( $args['desc'] ) {
$aria_labelledby = ' aria-labelledby="title-' . $unique_id . ' desc-' . $unique_id . '"';
}
}
// Begin SVG markup.
$svg = '<svg class="icon icon-' . esc_attr( $args['icon'] ) . '"' . $aria_hidden . $aria_labelledby . ' role="img">';
// Display the title.
if ( $args['title'] ) {
$svg .= '<title id="title-' . $unique_id . '">' . esc_html( $args['title'] ) . '</title>';
// Display the desc only if the title is already set.
if ( $args['desc'] ) {
$svg .= '<desc id="desc-' . $unique_id . '">' . esc_html( $args['desc'] ) . '</desc>';
}
}
/*
* Display the icon.
*
* The whitespace around `<use>` is intentional - it is a work around to a keyboard navigation bug in Safari 10.
*
* See https://core.trac.wordpress.org/ticket/38387.
*/
$svg .= ' <use href="#icon-' . esc_html( $args['icon'] ) . '" xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';
// Add some markup to use as a fallback for browsers that do not support SVGs.
if ( $args['fallback'] ) {
$svg .= '<span class="svg-fallback icon-' . esc_attr( $args['icon'] ) . '"></span>';
}
$svg .= '</svg>';
return $svg;
}
/**
* Display SVG icons in social links menu.
*
* @param string $item_output The menu item output.
* @param WP_Post $item Menu item object.
* @param int $depth Depth of the menu.
* @param array $args wp_nav_menu() arguments.
* @return string $item_output The menu item output with social icon.
*/
function twentyseventeen_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
// Get supported social icons.
$social_icons = twentyseventeen_social_links_icons();
// Change SVG icon inside social links menu if there is supported URL.
if ( 'social' === $args->theme_location ) {
foreach ( $social_icons as $attr => $value ) {
if ( false !== strpos( $item_output, $attr ) ) {
$item_output = str_replace( $args->link_after, '</span>' . twentyseventeen_get_svg( array( 'icon' => esc_attr( $value ) ) ), $item_output );
}
}
}
return $item_output;
}
add_filter( 'walker_nav_menu_start_el', 'twentyseventeen_nav_menu_social_icons', 10, 4 );
/**
* Add dropdown icon if menu item has children.
*
* @param string $title The menu item's title.
* @param WP_Post $item The current menu item.
* @param array $args An array of wp_nav_menu() arguments.
* @param int $depth Depth of menu item. Used for padding.
* @return string $title The menu item's title with dropdown icon.
*/
function twentyseventeen_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) {
if ( 'top' === $args->theme_location ) {
foreach ( $item->classes as $value ) {
if ( 'menu-item-has-children' === $value || 'page_item_has_children' === $value ) {
$title = $title . twentyseventeen_get_svg( array( 'icon' => 'angle-down' ) );
}
}
}
return $title;
}
add_filter( 'nav_menu_item_title', 'twentyseventeen_dropdown_icon_to_menu_link', 10, 4 );
/**
* Returns an array of supported social links (URL and icon name).
*
* @return array $social_links_icons
*/
function twentyseventeen_social_links_icons() {
// Supported social links icons.
$social_links_icons = array(
'behance.net' => 'behance',
'codepen.io' => 'codepen',
'deviantart.com' => 'deviantart',
'digg.com' => 'digg',
'docker.com' => 'dockerhub',
'dribbble.com' => 'dribbble',
'dropbox.com' => 'dropbox',
'facebook.com' => 'facebook',
'flickr.com' => 'flickr',
'foursquare.com' => 'foursquare',
'plus.google.com' => 'google-plus',
'github.com' => 'github',
'instagram.com' => 'instagram',
'linkedin.com' => 'linkedin',
'mailto:' => 'envelope-o',
'medium.com' => 'medium',
'pinterest.com' => 'pinterest-p',
'pscp.tv' => 'periscope',
'getpocket.com' => 'get-pocket',
'reddit.com' => 'reddit-alien',
'skype.com' => 'skype',
'skype:' => 'skype',
'slideshare.net' => 'slideshare',
'snapchat.com' => 'snapchat-ghost',
'soundcloud.com' => 'soundcloud',
'spotify.com' => 'spotify',
'stumbleupon.com' => 'stumbleupon',
'tumblr.com' => 'tumblr',
'twitch.tv' => 'twitch',
'twitter.com' => 'twitter',
'vimeo.com' => 'vimeo',
'vine.co' => 'vine',
'vk.com' => 'vk',
'wordpress.org' => 'wordpress',
'wordpress.com' => 'wordpress',
'yelp.com' => 'yelp',
'youtube.com' => 'youtube',
);
/**
* Filter Twenty Seventeen social links icons.
*
* @since Twenty Seventeen 1.0
*
* @param array $social_links_icons Array of social links icons.
*/
return apply_filters( 'twentyseventeen_social_links_icons', $social_links_icons );
}