News Update :
Showing posts with label Wordpress. Show all posts
Showing posts with label Wordpress. Show all posts

Vector Graphic Versions

By: Unknown on Monday, 30 March 2015 | 08:33

Monday, 30 March 2015

Computer graphics (such as drawings, but not pictures) that, unlike raster graphics, are represented as geometric shapes by mathematical equations. Vector graphics are generated by illustration software such as Adobe Illustrator or Quark'Xpress can be scaled, rotated, moved, or otherwise manipulated to any degree without any loss of quality, and display or print at whatever resolution is available on a monitor or printer. Also called object based graphics or object oriented graphics.
comments | | Read More...

Parallax

By: Unknown on Thursday, 26 February 2015 | 00:52

Thursday, 26 February 2015

Create the kind Parallax post:


 







function add_theme_scripts() {
 

wp_enqueue_script( 'parallax', get_template_directory_uri() . '/js/jquery.parallax-1.1.3.js', array(), '1.1.3', true );

                        wp_enqueue_script( 'nicescroll', get_template_directory_uri() . '/js/jquery.nicescroll.min.js', array(), '3.5.1', true );

        }

        add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );


        function custom_post_type() {
                    $labels = array(
                        'name'               => _x( 'Parallax', 'general name' ),
                        'singular_name'      => _x( 'Parallax', 'singular name' ),
                        'add_new'            => _x( 'Ajouter un nouveau', 'parallax' ),
                        'add_new_item'       => __( 'Ajouter un parallax' ),
                        'edit_item'          => __( 'Edit Page' ),
                        'new_item'           => __( 'Nouveau parallax' ),
                        'all_items'          => __( 'All Pages' ),
                        'view_item'          => __( 'View Page' ),
                        'search_items'       => __( 'Search Pages' ),
                        'not_found'          => __( 'No pages found' ),
                        'not_found_in_trash' => __( 'No pages found in the Trash' ),
                        'parent_item_colon'  => '',
                        'menu_name'          => 'Parallax'
                    );
                    $args = array(
                        'labels'        => $labels,
                        'public'        => true,
                        'menu_position' => null,
                        'supports'      => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments', 'page-attributes' ),
                        'has_archive'   => true,
                    );
                    register_post_type(__( 'parallax' ), $args);
                }
                add_action( 'init', 'custom_post_type' );
comments | | Read More...

Start a scan with MTR

To find out if there are losses during data transfer between your network and server. MTR software can help you.

 


Install MTR

Run the command:


sudo /usr/local/sbin/mtr -r
 

 Application for Mac


 



Each host in the left column is a "stretch" or, if you prefer, a network component. It represents a unit of equipment in which the signal leaving your computer must pass to reach the server. If you discover that a particular host lost data packets, it is probable that it is the unit where the problem lies. The first host in which the signal passes is the equipment in your home network. Then there is the equipment of your Internet service provider; then the signal joined VIWeb equipment, and finally your server. If you spot a problem in the first sections, please contact your ISP first. If you spot a problem in the last sections, you can still perform some operations to help identify its origin.
comments | | Read More...

Secure access to the WordPress administration via SSL

By: Unknown on Wednesday, 25 February 2015 | 16:29

Wednesday, 25 February 2015

To increase the security of your data and the connection of torque, it is best to force encryption of your connection to avoid being hacked them. 


In other words have a https: // that integrates an SSL key
 

There are extensions, but it is always better to have the least possible extension.

In your wp-config.php file, you can add this line:

define('FORCE_SSL_LOGIN', true);
 
comments | | Read More...

Translate a website with WPML - PHP code in the theme

If you wish to translate a website with WordPress , WPML is a very good solution for the design of multilingual site.

Web-site-translated-WordPress-WPMLFirst, it is important to understand that WordPress is designed in English, then translated from English into another language.

 


 So if we want to build a theme that can be translated , we will put the content in English and wrap a tag that will allow us to translate it later in the desired language.

Here is the PHP code to wrap the HTML you want to translate:


1
<?php _e('English HTML content','theme-text-domain');?>
Ex:


1
<div id="booking"><?php echo _e('<a href="#">My Links</a>','theme-text-domain');?></div>
theme-text-domain must be changed to the name of your theme, you can find the name of the template in your style.css sheet

location-the-theme-wpmlThen go to the dashboard:

WPML / theme Location and extension modules

Click  Apply below Translate with .mo file

WPML will search for new PHP tag inserted in the theme.

Translation-de-strings-wpmlGo to  WPML / chains Translation

You are now ready to translate from English to French.
comments | | Read More...

Download

Blog Archive

 
Contact Us | Privacy policy | Term of use | Advertise with Us | Site map
Copyright © 2011. Blogging Brain . All Rights Reserved.
Design Template by Blogging Brain | | Powered by Blogger