+1 (403) 514-8091 info@rcs-group.ca
* @param WP_Post $post * * @return string */ if ( ! function_exists( 'et_divi_truncate_post_use_custom_content' ) ) : function et_divi_truncate_post_use_custom_content( $custom, $content, $post ) { // If post doesn't use builder, no need to compute a custom value if ( ! et_pb_is_pagebuilder_used( $post->ID ) ) { return false; } $cached = get_post_meta( $post->ID, '_et_pb_truncate_post', true ); if ( $cached ) { $cached_date = get_post_meta( $post->ID, '_et_pb_truncate_post_date', true ); $cached_date = $cached_date ? $cached_date : get_post_field( 'post_modified', $post->ID ); $global_modules = array(); $shortcodes = array(); preg_match_all( '/'. get_shortcode_regex() .'/s', $content, $shortcodes ); if ( is_array( $shortcodes ) && isset( $shortcodes[3] ) ) { foreach ( $shortcodes[3] as $raw_attributes ) { $attributes = shortcode_parse_atts( $raw_attributes ); $attributes = is_array( $attributes ) ? $attributes : array(); $global_id = (int) et_()->array_get( $attributes, 'global_module', 0 ); if ( $global_id > 0 ) { $global_modules[] = $global_id; } } } foreach ( $global_modules as $module_post_id ) { // Dates are using the Y-m-d H:i:s format so we can compare them as strings for simplicity. if ( strcmp( get_post_field( 'post_modified', $module_post_id ), $cached_date ) > 0 ) { // A global module used in the post has been updated more recently than // the post's cached excerpt so we need to invalidate the cache. $cached = ''; break; } } } if ( $cached ) { return $cached; } $custom = apply_filters( 'the_content', $content ); // Save the result because expensive to compute. update_post_meta( $post->ID, '_et_pb_truncate_post', $custom ); update_post_meta( $post->ID, '_et_pb_truncate_post_date', date( 'Y-m-d H:i:s' ) ); return $custom; } endif; add_filter( 'et_truncate_post_use_custom_content', 'et_divi_truncate_post_use_custom_content', 10, 3 ); /** * Caches expensive generation of et_first_image * * @since 3.17.3 * * @param bool $custom * @param string $content * @param WP_Post $post * * @return string */ if ( ! function_exists( 'et_divi_first_image_use_custom_content' ) ) : function et_divi_first_image_use_custom_content( $custom, $content, $post ) { // If post doesn't use builder, no need to compute a custom value if ( ! et_pb_is_pagebuilder_used( $post->ID ) ) { return false; } $cached = get_post_meta( $post->ID, '_et_pb_first_image', true ); if ( $cached ) { return $cached; }

Safety

Protect Your Most Important Assets

RCS Group of Companies maintains a team of highly qualified professionals for all your safety requirements, and we can provide you staff with NCSO, CRSP, COR, and Enform certifications. Applying quality control measures can significantly reduce the occurrence of workplace incidents and accidents. Achieving your goals with the highest level of safety is one of our core responsibilities, and our professional team streamlines this process to create an efficient and safe workplace.

Safety services in your office environment:

  • Health and safety program development.
  • Program implementation and maintenance specific to you company’s needs or accreditations, such as COR (Certificate of Recognition).
  • COR certified internal and external auditors.
  • Preparation for industry or COR certified health and safety audits.
  • ISN & Avetta monitoring & reporting.
  • Mobile training services and online safety training courses.
  • On-site training center in Calgary.
  • Emergency response planning and testing.
  • Digitized safety forms – along with comprehensive data management of all forms.

Safety services on-site and in the field:

  • Comprehensive health and safety program monitoring, managing both on-site auditing and reporting.
  • Field COR audits & reporting.
  • Contractor personnel & equipment evaluations and pre-project audits.
  • An entire team of on-site safety personnel to supply complete field project safety and management.
  • Supplemental on-site safety personnel and management to augment your existing team.
  • Security personnel for construction, oil and gas, mining and hydroelectric projects.
  • Safety equipment rentals.