Skip to content

Instantly share code, notes, and snippets.

@AlesiaDal
AlesiaDal / button.sass
Created June 24, 2017 14:32 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
<form action="" method="get">
<input type="text" name="search" value="Поиск" onfocus="if(this.value=='Поиск')this.value=''" onblur="if(this.value=='')this.value='Поиск'" />
<input type="image" src="images/search-btn.jpg"/>
</form>
<?php
$tags = get_tags();
if ($tags) {
foreach ($tags as $tag) {
echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
}
}
?>
<?php
$tags = wp_get_post_tags($post->ID);
<?php if ( has_post_thumbnail() ) : ?>
<a class="popup" href="<?php
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
echo $large_image_url[0];
?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(array(400, 400)); ?>
</a>
<?php endif; ?>
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>
<form class="form-inline">
<div class="row">
<div class="form-group col-sm-4 ">
<input type="text" name="name" class="form-control" placeholder="Your full name">
</div><!--/.form-group col-sm-4-->
<div class="form-group col-sm-4">
<input type="email" name="email" class="form-control" placeholder="Your email adres">
</div><!--/.form-group col-sm-4-->
<div class="form-group col-sm-4">
<a href="contact.html" rel="#overlay">
<?php
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
function arphabet_widgets_init() {
register_sidebar( array(
'name' => 'Home right sidebar',
'id' => 'home_right_1',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
<div class="hidden">
<div class="portf_descr" id="work_1">
<div class="modal-box-content">
<button class="mfp-close" type="button" title="Close(Esc)">x</button>
<h3> Заголовок работы</h3>
<p>Описание работы: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officia quasi reprehenderit saepe provident dolorem porro, alias culpa velit, recusandae quis. Quo reprehenderit esse sunt earum dolorum aspernatur eius distinctio facilis.</p>
<img src="img/portfolio-images/1.jpg" alt="Alt">
</div>
Css
<div class="mix col-md-3 portfolio_item category-1" >
<img src="img/portfolio-images/1.jpg" alt="Alt">
<div class="port_item_cont">
<h3>Заголовок работы</h3>
<p>Описание работы</p>
<a> Посмотреть </a>
</div>
</div>
Css