This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // check url | |
| var url = window.location.pathname; | |
| var output = url.split('/'); | |
| //alert (output[0]); | |
| if (output[0] == "condition") { | |
| // do something |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( "#menu-item-11" ).addClass( "download" ); | |
| $( ".pages ul").removeClass( "btn btn-primary" ).addClass( "btn btn-success" ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( '.left li a' ).append( '<i class="fa fa-arrow-circle-right pull-right"></i>' ); | |
| http://api.jquery.com/append/ | |
| http://api.jquery.com/prepend/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( ".left li a i" ).css({ "padding-top" : "3px" }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wpcf7_add_shortcode('postdropdown', 'createbox', true); | |
| function createbox(){ | |
| global $post; | |
| $args = array('numberposts' => 0, 'category' => 5 ); | |
| $myposts = get_posts( $args ); | |
| $output = "<select name='cursus' id='cursus' onchange='document.getElementById(\"cursus\").value=this.value;'><option></option>"; | |
| foreach ( $myposts as $post ) : setup_postdata($post); | |
| $title = get_the_title(); | |
| $output .= "<option value='$title'> $title </option>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $include = get_pages('include=5'); | |
| $title = apply_filters('the_title',$include[0]->post_title); | |
| echo $title; | |
| $include = get_pages('include=5'); | |
| $content = apply_filters('the_content',$include[0]->post_content); | |
| echo $content; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php echo do_shortcode('[contact-form-7 id="4" title="Kontaktni obrazec"]'); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wpcf7_add_shortcode('postdropdown', 'createbox', true); | |
| function createbox(){ | |
| global $post; | |
| $args1 = array('numberposts' => 0, 'category' => 14 ); | |
| $myposts1 = get_posts( $args1 ); | |
| $args2 = array('numberposts' => 0, 'category' => 19 ); | |
| $myposts2 = get_posts( $args2 ); | |
| $myposts = array_merge($myposts1, $myposts2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Open the terminal | |
| Move downloaded typo3_src-6.2.4.zip to host's root | |
| mv ~/Downloads/typo3_src-6.2.4.zip /Application/MAMP/htdocs/typo3/ | |
| Go to destination folder: | |
| cd /Application/MAMP/htdocs/typo3/ | |
| Still in this location unzip downloaded package (you can remove zip file after that) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $path = getcwd(); | |
| echo "Your Absoluthe Path is: "; | |
| echo $path; | |
| ?> | |
| //for example for Joomla logs or tmp files |