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
| <h2>Heading 2</h2> | |
| Lorem ipsum dolor sit amet, <a href="http://www.example.org">consectetuer adipiscing</a> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud <strong>exerci tation</strong> ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. | |
| Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse <em>molestie consequat</em>, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio <abbr title="dignissim qui blandit">dqb</abbr> praesent luptatum | |
| zzril delenit augue duis dolore te feugait nulla facilisi. | |
| <a href="#"><img class="alignright" src="http://placehold.it/150x100" alt="" /></a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam,ac | |
| quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem v |
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_filter( 'acf_rwp_query', 'wp_doin_add_bbpress_forum_topics' ); | |
| function wp_doin_add_bbpress_forum_topics($query) { | |
| $query['post_type'] = 'topic'; | |
| // this is the id of the specific forum | |
| $query['post_parent'] = 126; | |
| return $query; | |
| } |
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 | |
| //Заставляем работать форму авторизации GF | |
| /* | |
| * This hook fires after the form was submitted and the whole data was validate, we’ll bind it to the form which have just created. | |
| */ | |
| // the _14 prefix has to match the id of the form you have created | |
| add_action( "gform_after_submission_14", "login_form_after_submission", 10, 2 ); | |
| function login_form_after_submission($entry, $form) { |
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
| /** | |
| * Handler for Widget Filters | |
| * ********************************************************************************** | |
| */ | |
| var obj = {}; | |
| var obj_ajax = {}; | |
| var out = ''; | |
| // on each widget input click | |
| $('.widget_attributes input').click(function (e) { |
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
| <p> | |
| <a href="http://r3summit.dev/wp-content/uploads/2015/09/pic_article-big.jpg"> | |
| <img src="http://r3summit.dev/wp-content/uploads/2015/09/pic_article-big.jpg" alt="pic_article-big" width="328" height="246" class="alignleft size-full wp-image-96"> | |
| </a> | |
| </p> |
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_shortcode( 'div', 'wp_doin_div_shortcode' ); | |
| function wp_doin_div_shortcode($atts, $content = null) { | |
| ob_start(); | |
| // let's fetch all of the arguments of the shortcode | |
| $atts = shortcode_atts( array( | |
| 'class' => 'wp-doin', | |
| 'heading' => 'Heading', | |
| 'subheading' => 'Subheading', |
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_filter( 'acf_rwp_query', 'wp_doin_custom_query' ); | |
| /** | |
| * @hook acf_rwp_query | |
| */ | |
| function wp_doin_custom_query($query) { | |
| // say we want to limit the query to only single author | |
| $query['author'] = 1; | |
| return $query; |
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 | |
| remove_filter( 'acp_rwp_before', array( 'ACF_Helper', 'af_bf_content_filter' ) ); | |
| add_filter( 'acp_rwp_before', 'wp_doin_before_custom_text', 999, 3 ); | |
| /** | |
| * @hook acp_rwp_before | |
| */ | |
| function wp_doin_before_custom_text($before, $instance, $id) { |
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
| <script type="text/javascript"> | |
| // let's make call to the global gwrf variable visible after enabling Gravity Forms | |
| window.gwrf; | |
| (function ($) { | |
| gwrf = function (args) { | |
| // prototype arguments, created when we instantiate it | |
| this.formId = args.formId; | |
| this.spinnerUrl = args.spinnerUrl; |