This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> | |
</script> | |
<meta charset='utf-8' /> | |
<title> | |
infinite loop carousel(horizontal) | |
</title> |
This file contains 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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.6 - 10/2022 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
This file contains 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 | |
/* Automatically Set the Featured Image in WordPress from the first image in the post */ | |
$posts = get_posts( array( | |
'post_type' => 'post', | |
'numberposts' => -1, | |
'post_status' => 'publish', | |
) ); | |
if ( $posts ) { | |
foreach ( $posts as $post ) { |
This file contains 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 | |
// Add Meta Box to post | |
add_action('admin_init', 'single_rapater_meta_boxes', 2); | |
function single_rapater_meta_boxes() { | |
add_meta_box( 'single-repeter-data', 'Single Rapeter', 'single_repeatable_meta_box_callback', 'post', 'normal', 'default'); | |
} | |
function single_repeatable_meta_box_callback($post) { |
This file contains 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 | |
add_action('admin_init', 'gpm_add_meta_boxes', 2); | |
function gpm_add_meta_boxes() { | |
add_meta_box( 'gpminvoice-group', 'Custom Repeatable', 'Repeatable_meta_box_display', 'page', 'normal', 'default'); | |
} | |
function Repeatable_meta_box_display() { | |
global $post; | |
$gpminvoice_group = get_post_meta($post->ID, 'customdata_group', true); |
This file contains 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
<FilesMatch "\.(?i:pdf)$"> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</FilesMatch> |
This file contains 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
<div class="prq"> | |
<?php | |
# ARGUMEN START | |
$args = array ( | |
'post_type' => 'post', | |
'posts_per_page' => 5, | |
'order' => 'ASC' | |
); |
This file contains 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 | |
/* | |
* Source: https://gist.github.com/HechtMediaArts/aceadf06b5e4431dc33d | |
*/ | |
//emoji aus dem header entfernen | |
function disable_emoji_dequeue_script() { | |
wp_dequeue_script( 'emoji' ); | |
} | |
add_action( 'wp_print_scripts', 'disable_emoji_dequeue_script', 100 ); | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); |
This file contains 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
p { margin-top:6px; margin-bottom:6px;} | |
.bgwa, | |
.wabg { | |
background-color:darkgreen; | |
} | |
.bgcall, | |
.callbg { | |
background-color: darkred; |
This file contains 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
<html> | |
<p style="width: 70%;margin: auto;margin-top: 5%;font-size:larger;text-align:center"> | |
Download a file from any URL</p> | |
<form method="post" style="width: 70%;margin: auto;margin-top: 10%;"> | |
<input name="url" size="50" placeholder="Source URL" style="width: 100%;height: 10%;font-size: 1.5em;padding:10px" required> | |
<input name="submit" type="submit" value="Download" style="width: 30%;height: 10%;margin: 5% auto; display: block;"> | |
<p style="width: 70%;margin: auto;margin-top: 10%;font-size:larger;text-align:center"> | |
To <?php echo getcwd(); ?></p> | |
<p style="width: 70%;margin: auto;font-size: smaller;text-align: center;position: fixed;bottom: 0;background: #fff;"> | |
Powered by: <a href="https://karthikbhat.net/portfolio" target="_blank" style="color:#f60;text-decoration:none;">Karthik</a></p> |