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 |
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
$(document).ready(function(){ | |
var urlParams; | |
(window.onpopstate = function () { | |
var match, | |
pl = /\+/g, // Regex for replacing addition symbol with a space | |
search = /([^&=]+)=?([^&]*)/g, | |
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }, | |
query = window.location.search.substring(1); |
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
TS Config (root edit and code insert) | |
TCEFORM.tt_content.header_layout { | |
addItems { | |
10 = Gray Header | |
11 = Orange Header | |
12 = Red Header | |
} | |
} |
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
.htaccess | |
RewriteEngine On | |
RewriteRule ^typo3$ - [L] | |
RewriteRule ^typo3/.*$ - [L] | |
RewriteRule ^uploads/.*$ - [L] | |
RewriteRule ^fileadmin/.*$ - [L] | |
RewriteRule ^typo3conf/.*$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-l |