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
| .rounded-corners-gradient-borders { | |
| width: 300px; | |
| height: 80px; | |
| border: double 4px transparent; | |
| border-radius: 80px; | |
| background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff); | |
| background-origin: border-box; | |
| background-clip: content-box, border-box; | |
| } |
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 Code: | |
| -------------- | |
| <?php | |
| // Only process POST reqeusts. | |
| if ($_SERVER["REQUEST_METHOD"] == "POST") { | |
| // Get the form fields and remove whitespace. | |
| $name = strip_tags(trim($_POST["name"])); | |
| $name = str_replace(array("\r","\n"),array(" "," "),$name); | |
| $email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL); |
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
| add_action( 'wp_enqueue_scripts', 'jk_masonry' ); | |
| function jk_masonry() { | |
| wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) ); | |
| } | |
| /* | |
| How to use? | |
| $('#container').masonry({ singleMode: true }); |
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
| Root url for website | |
| --------------------------------------------------------- | |
| <?php site_url(); ?> | |
| <?php bloginfo('url'); ?> | |
| title of specific post/page | |
| --------------------------------------------------------- | |
| <?php wp_title(); ?> | |
| Title of site |