In the folder project
1 |
git init |
Link to url project
1 |
git remote add origin url-projet |
Add file to commit
1 |
git add . |
Do a commit
1 |
git commit -a -m "initial modification" |
Push the project
1 |
git push origin master |
In the folder project
1 |
npm install -g @angular/cli |
Create the app
1 |
ng new my-app |
Reach the folder
1 |
cd my-app |
Start the server
1 |
ng serve |
functions.php
1 2 3 4 5 6 7 8 9 |
// ADDONS ULTIMATES VC ON EVERY PAGES add_action( 'wp_enqueue_scripts', 'add_theme_stylesheet' ); function add_theme_stylesheet() { // register js wp_enqueue_script('ultimate-script',plugins_url('Ultimate_VC_Addons/assets/min-js/ultimate.min.js')); // register css wp_enqueue_style('ultimate-style-min',plugins_url('Ultimate_VC_Addons/assets/min-css/ultimate.min.css')); } |
1 2 3 4 5 |
Previous Post URL <?php echo get_permalink( get_adjacent_post( false, '', true ) ); ?> Next Post URL <?php echo get_permalink( get_adjacent_post( false, '', false ) ); ?> |
1 2 3 4 5 |
image-rendering: -moz-crisp-edges; /* Firefox */ image-rendering: -o-crisp-edges; /* Opera */ image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */ image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */ |
1 2 3 4 5 6 |
//CSS wp_enqueue_style( "style", "/wp-content/themes/saturnthemes-financebank-child/assets/css/jquery.tabSlideOut.css" ); //JAVASCRIPT wp_enqueue_script( "jquery.tabSlideOut", "/wp-content/themes/saturnthemes-financebank-child/assets/js/jquery.tabSlideOut.js", array( "jquery" ), '1.0.0', true ); wp_enqueue_script( "custom", "/wp-content/themes/saturnthemes-financebank-child/assets/js/custom.js", array( "jquery" ), '1.0.0', true ); |
1 2 3 4 |
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php [L] |
1 2 3 4 5 6 7 8 9 10 |
// Create links to other language function icl_post_languages(){ $languages = icl_get_languages('skip_missing=1'); if(1 < count($languages)){ foreach($languages as $l){ if(!$l['active']) $langs[] = '<a href="'.$l['url'].'">'.$l['native_name'].'</a>'; } echo join(', ', $langs); } } |
1 2 |
// Call functions by php <!--?php icl_post_languages(); ?--> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
//CREATE CUSTOM DYNAMIC MENU // DEFINE POSITION OF THE ADDING MENU ITEMS add_filter('wp_nav_menu_items', 'new_nav_menu_items', 10, 2); function new_nav_menu_items($items, $args) { if( ($args->theme_location == 'primary-menu')){ $items_array = array(); while ( false !== ( $item_pos = strpos ( $items, '<li', 1 ) ) ){ $items_array[] = substr($items, 0, $item_pos); $items = substr($items, $item_pos); } $items_array[] = $items; $add_menu_item = '<ul class="sub-menu">'; $terms = get_terms('event-category'); foreach ( $terms as $term ) { //echo $term->name.'<br />'; $add_menu_item .= '<li class="menu-item"><a href="'.get_site_url().'/programmation/?_sft_event-category='.$term->slug.'" class="menu-item-link">'.$term->name.'</a></li>'; } $add_menu_item .= '</ul>'; array_splice($items_array, 2, 0, $add_menu_item); $items = implode('', $items_array); } return $items; } |