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 | |
$custom_query_args = array ( | |
'post_type' => 'news', | |
'posts_per_page' => '4' | |
); | |
$custom_query_args['paged'] = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; | |
$custom_query = new WP_Query( $custom_query_args ); |
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
<!-- banner-area --> | |
<div id="owl-id" class="aaaaaa owl-carousel owl-theme"> | |
<!-- single item --> | |
<?php if(have_rows('hero_slider_item')) :?> | |
<?php while(have_rows('hero_slider_item')) : the_row(); | |
$add_single_slider = get_sub_field('add_single_slider'); | |
$slider_title = get_sub_field('slider_title'); | |
$slider_sub_title = get_sub_field('slider_sub_title'); | |
$learn_more_button_text = get_sub_field('learn_more_button_text'); |
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 if(have_rows('onup_row')) : ?> | |
<?php $i = 0; while(have_rows('onup_row')) : the_row(); $i++; | |
$title = get_sub_field( 'title' ); | |
$img = get_sub_field( 'image' ); | |
?> | |
<?php if($i %2 !=0) : ?> | |
<!-- left image content --> | |
<img src="<?php echo $img['url'];?>"> | |
<h2><?php echo $title;?></h2> |
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
if ( is_front_page() ) : | |
get_header( 'front' ); | |
else : | |
get_header(); | |
endif; | |
<?php if(is_front_page()){ ?> | |
<div class="logo"> |
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 lang="en" > | |
<head> | |
<meta charset="UTF-8"> | |
<title>An Anonymous Pen on CodePen</title> | |
<link rel="stylesheet" href="./style.css"> | |
</head> | |
<body> | |
<!-- partial:index.partial.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
<section class="header_logo"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="logo"> | |
<a href="index.html"> | |
<img src="assets/images/LOGO.png" alt="logo"> | |
</a> | |
</div> | |
</div> |
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
::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | |
color: pink; | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: pink; | |
} | |
:-ms-input-placeholder { /* IE 10+ */ | |
color: pink; | |
} | |
:-moz-placeholder { /* Firefox 18- */ |
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
select::-ms-expand { | |
display: none !important; | |
} | |
select { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
text-indent: 1px; | |
text-overflow: ''; | |
} |
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> | |
<style> | |
div { | |
-webkit-user-select: none; /* Safari 3.1+ */ | |
-moz-user-select: none; /* Firefox 2+ */ | |
-ms-user-select: none; /* IE 10+ */ | |
user-select: none; /* Standard syntax */ | |
} |
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> | |
<body> | |
<p>Click on the button to copy</p> | |
<input type="text" value="Hello World" id="myInput"> | |
<button onclick="myFunction()">Copy text</button> | |
<p>The document.execCommand() method is not supported in IE8 and earlier.</p> |
NewerOlder