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 | |
/** | |
* Kullanicinin kullandigi isletim sistemi bilgisini alir. | |
* | |
* @since 2.0 | |
*/ | |
function getOS() { | |
$user_agent = $_SERVER['HTTP_USER_AGENT']; |
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
Commands | |
-------------- | |
show the present location--> pwd | |
Go to root--> cd ~ | |
Go to back folder cd .. | |
Go to forword folder cd (folder name) | |
Go to shibling folder cd ../(folder name) | |
For go to back folder from present folder ----> cd ../ | |
For go to any folder ----> cd (folder-name or folder address) | |
Tab to show folder name in present folder. |
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
$post_per_page = 8; | |
$url = 'https://www.feedforall.com/sample.xml'; | |
// $url = 'https://www.feedforall.com/sample-feed.xml'; | |
// $url = 'https://www.feedforall.com/blog-feed.xml'; | |
// $url = 'http://www.rss-specifications.com/blog-feed.xml'; | |
$url = ! empty( $url ) ? $url : ''; | |
while ( stristr( $url, 'http' ) != $url ) { | |
$url = substr( $url, 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
<?php | |
namespace ElementorControls; | |
if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
class Elementor_Custom_Controls { | |
public function includes() { | |
require_once(plugin_dir_path(__FILE__).'inc/elementor/image-selector-control.php'); | |
} |
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 | |
use Elementor\Controls_Manager; | |
use Elementor\Element_Base; | |
use Elementor\Core\Files\CSS\Post; | |
use Elementor\Core\DynamicTags\Dynamic_CSS; | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { | |
exit; |
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 | |
/** | |
* Post URL list | |
*/ | |
if (!function_exists('prefix_get_all_posts_url')) { | |
function prefix_get_all_posts_url($posttype = 'post') { | |
$args = array( | |
'post_type' => $posttype, | |
'post_status' => 'publish', |
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 | |
add_action( 'elementor/widget/before_render_content', 'custom_render_button' ); | |
/** | |
* Adding a new attribute to our button | |
* | |
* @param \Elementor\Widget_Base $button | |
*/ | |
function custom_render_button( $button ) { |
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
https://github.com/elementor/elementor/issues/3744 |
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
$page_1 = isset($_GET['page_1'])? $_GET['page_1'] : 1; | |
$query_args = [ | |
'post_type' => 'post', | |
'posts_per_page' => $settings['posts_per_page'], | |
'orderby' => $settings['orderby'], | |
'order' => $settings['order'], | |
'ignore_sticky_posts' => 1, | |
'post_status' => 'publish', | |
//'paged' => get_query_var('paged') ? absint(get_query_var('paged')) : 1, | |
'paged' => $page_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
(function ($) { | |
"use strict"; | |
$.fn.product_slider = function () { | |
return this.each(function () { | |
var $self = $(this); | |
var $settings = $self.data('settings'); | |
$self.owlCarousel2({ | |
items: 4, | |
loop: true, |