Nave bar in Sidebar
163590
function onNavBarToggle() {
        $(Selector.NAVBAR_SIDEBAR).toggleClass(ClassName.OPEN);
        if (($(Selector.NAVBAR_SIDEBAR).hasClass(ClassName.NAVBAR_SIDEBAR)) && $(Selector.NAVBAR_SIDEBAR).hasClass(ClassName.OPEN)) {
            $(Selector.OVERLAY).addClass(ClassName.OVERLAY_ACTIVE);
            $(Selector.BODY).addClass(ClassName.BODY_OPEN);
        } else {
            $(Selector.OVERLAY).removeClass(ClassName.OVERLAY_ACTIVE);
            $(Selector.BODY).addClass(ClassName.BODY_OPEN);
        }
    }
912834
def add_sidebar(self, component: Component) -> None:
        
        if not self.sidebar:
            raise NoSidebarError('Set `sidebar=True` if you want to use the sidebar.')

        if not isinstance(component, Component):
            raise ValueError('component must be Component type, found {}'.format(component))
        # self._track_widget(widget)
        self._controllers.append(component)
178238
private function displayRightSide()
    {
        if ($this->currentPage != $this->maxPage) {
            echo '<a href="' . $this->buildHref($this->currentPage + 1) . '">&gt;</a>';
            if ($this->currentPage + 4 < $this->maxPage) {
                echo '<a href="' . $this->buildHref($this->maxPage) . '">»</a>';
            }
        }
    }
143747
function posBar(_pos) {
            if (this.bar) {
                var was = css(this.bar, this.origin.pos),
                    will = +_pos + 'px'

                if (will && will != was) {
                    css(this.bar, this.origin.pos, will)
                }
            }
        }
1220877
function optionsframework_admin_bar() {

		$menu = $this->menu_settings();

		global $wp_admin_bar;

		if ( 'menu' == $menu['mode'] ) {
			$href = admin_url( 'admin.php?page=' . $menu['menu_slug'] );
		} else {
			$href = admin_url( 'themes.php?page=' . $menu['menu_slug'] );
		}

		$args = array(
			'parent' => 'appearance',
			'id' => 'of_theme_options',
			'title' => $menu['menu_title'],
			'href' => $href
		);

		$wp_admin_bar->add_menu( apply_filters( 'optionsframework_admin_bar', $args ) );
	}
1358619
function changeLayout(cls) {
        $('body').toggleClass(cls)
        $layout.fixSidebar()
        if ($('body').hasClass('fixed') && cls == 'fixed') {
            $pushMenu.expandOnHover()
            $layout.activate()
        }
        $controlSidebar.fix()
    }
242046
protected function _configureGraphBar()
    {
        $entity = $this->getController()->getItem();
        $viewer = get_viewer();
        $types = array();

        if ($entity->isFollowable()) {
            $types[] = 'Followers';
        }

        if ($entity->isLeadable()) {
            $types[] = 'Leaders';

            if (!$viewer->guest() && !$entity->eql($viewer)) {
                $types[] = 'CommonLeaders';
            }
        }

        if ($entity->authorize('administration', array('strict' => true))) {
            $types[] = 'Blockeds';
        }

        $filter = $this->getService('anahita:filter.cmd');

        foreach ($types as $type) {
            $label = array(strtoupper('COM-'.$this->getIdentifier()->package.'-NAV-LINK-SOCIALGRAPH-'.$type));
            $label[] = 'COM-ACTORS-NAV-LINK-SOCIALGRAPH-'.strtoupper($type);
            $cmd = strtolower($filter->sanitize($type));

            if ($cmd == 'followers' && $this->getController()->type == 'leadables') {
                $active = true;
            } elseif ($cmd === $this->getController()->type) {
                $active = true;
            } else {
                $active = false;
            }

            $this->addNavigation('navbar-'.$cmd, translate($label), $entity->getURL().'&get=graph&type='.$cmd, $active);
        }

        $title = array(strtoupper('COM-'.$this->getIdentifier()->package.'-NAV-TITLE-SOCIALGRAPH'));

        $title[] = 'COM-ACTORS-NAV-TITLE-SOCIALGRAPH';

        $this->setTitle(sprintf(translate($title), $entity->name));

        $this->setActor($entity);
    }
370697
def share_bar_for_post(post)
      return "" unless Blogit.configuration.include_share_bar
      render(partial: "blogit/posts/share_bar", locals: { post: post})
    end
925367
public function sidebarMenuAuto()
    {
        $menu = false;

        if (!$menu || (isset($_GET['menu_cache']) && $_GET['menu_cache'] == 'false')) {
            $menu = new \Municipio\Helper\NavigationTree(array(
                'include_top_level' => !empty(get_field('nav_sub_include_top_level', 'option')) ? get_field('nav_sub_include_top_level', 'option') : false,
                'render' => get_field('nav_sub_render', 'option'),
                'depth' => get_field('nav_sub_depth', 'option') ? get_field('nav_sub_depth', 'option') : -1,
                'start_depth' => get_field('nav_primariy_second_level', 'option') ? 3 : 1,
                'classes' => 'nav-aside hidden-xs hidden-sm',
                'sidebar' => true
            ));
        }

        if ($menu->itemCount === 0) {
            return '';
        }

        return '<nav id="sidebar-menu">
                    ' . $menu->render(false) . '
                </nav>';
    }
1032939
function() {
    $("body").css({width: $(window).width(), minHeight: $(window).height() });
    var $ass = $(".assignment");
    // reposition the assignment tab
    if ($ass.hasClass("hidden")) { // assignment tab hidden, need to reposition
      $ass.css({left: "-" + $ass.find(".assignmentText").outerWidth() + "px"});
    }
    // position the timer bar
    $("#timer").css({top: $("#header").innerHeight()});
  }
586867
public function admin_bar( $wp_admin_bar ) {

		// Bail if logged out user or single site mode.
		if ( ! is_user_logged_in() || ! is_multisite() ) {
			return;
		}

		$networks = user_has_networks();

		// Bail if user does not have networks or they can't manage networks.
		if ( empty( $networks ) || ! current_user_can( 'manage_networks' ) ) {
			return;
		}

		$wp_admin_bar->add_menu( array(
			'id'    => 'my-networks',
			'title' => __( 'My Networks', 'wp-multi-network' ),
			'href'  => network_admin_url( 'admin.php?page=networks' ),
			'meta'  => array(
				'class' => 'networks-parent',
			),
		) );

		foreach ( $networks as $network_id ) {
			$network = get_network( $network_id );
			if ( ! $network ) {
				continue;
			}

			switch_to_network( $network_id );

			if ( ! current_user_can( 'manage_network' ) ) {
				restore_current_network();
				continue;
			}

			$wp_admin_bar->add_group( array(
				'parent' => 'my-networks',
				'id'     => 'group-network-admin-' . $network_id,
			) );

			$wp_admin_bar->add_menu( array(
				'parent' => 'group-network-admin-' . $network_id,
				'id'     => 'network-admin-' . $network_id,
				'title'  => $network->site_name,
				'href'   => network_admin_url(),
			) );

			$wp_admin_bar->add_menu( array(
				'parent' => 'network-admin-' . $network_id,
				'id'     => 'network-admin-d',
				// phpcs:ignore WordPress.WP.I18n.MissingArgDomain
				'title'  => __( 'Dashboard' ),
				'href'   => network_admin_url(),
			) );

			if ( current_user_can( 'manage_sites' ) ) {
				$wp_admin_bar->add_menu( array(
					'parent' => 'network-admin-' . $network_id,
					'id'     => 'network-admin-s' . $network_id,
					// phpcs:ignore WordPress.WP.I18n.MissingArgDomain
					'title'  => __( 'Sites' ),
					'href'   => network_admin_url( 'sites.php' ),
				) );
			}

			if ( current_user_can( 'manage_network_users' ) ) {
				$wp_admin_bar->add_menu( array(
					'parent' => 'network-admin-' . $network_id,
					'id'     => 'network-admin-u' . $network_id,
					// phpcs:ignore WordPress.WP.I18n.MissingArgDomain
					'title'  => __( 'Users' ),
					'href'   => network_admin_url( 'users.php' ),
				) );
			}

			if ( current_user_can( 'manage_network_themes' ) ) {
				$wp_admin_bar->add_menu( array(
					'parent' => 'network-admin-' . $network_id,
					'id'     => 'network-admin-t' . $network_id,
					// phpcs:ignore WordPress.WP.I18n.MissingArgDomain
					'title'  => __( 'Themes' ),
					'href'   => network_admin_url( 'themes.php' ),
				) );
			}

			if ( current_user_can( 'manage_network_plugins' ) ) {
				$wp_admin_bar->add_menu( array(
					'parent' => 'network-admin-' . $network_id,
					'id'     => 'network-admin-p' . $network_id,
					// phpcs:ignore WordPress.WP.I18n.MissingArgDomain
					'title'  => __( 'Plugins' ),
					'href'   => network_admin_url( 'plugins.php' ),
				) );
			}

			if ( current_user_can( 'manage_network_options' ) ) {
				$wp_admin_bar->add_menu( array(
					'parent' => 'network-admin-' . $network_id,
					'id'     => 'network-admin-o' . $network_id,
					// phpcs:ignore WordPress.WP.I18n.MissingArgDomain
					'title'  => __( 'Settings' ),
					'href'   => network_admin_url( 'settings.php' ),
				) );
			}

			restore_current_network();
		}
	}
328623
public function hookDisplayAdminNavBarBeforeEnd()
    {
        if (!$this->onBoarding->isFinished()) {
            $this->onBoarding->showModuleContentForNavBar($this->context->link);
        }
    }
906337
public Button addSubNavEntry(final NavEntry navEntry) {

        Button button = CmsDefaultAppButtonProvider.createIconButton(
            navEntry.getName(),
            navEntry.getDescription(),
            navEntry.getIcon());
        m_subNav.addComponent(button);
        return button;
    }
1173959
public function adminBar()
    {
        if (isset($_GET['id'])) {
            if (is_numeric($_GET['id']) && $_GET['id'] > 0) {
                $post = get_post($_GET['id']);

                if (!$post) {
                    return;
                }

                setup_postdata($post);

                add_action('admin_bar_menu', function () use ($post) {
                    global $wp_admin_bar;
                    $wp_admin_bar->add_node(array(
                        'id' => 'view_page',
                        'title' => __('View Page'),
                        'href' => get_permalink($post->ID),
                        'meta' => array(
                            'target' => '_blank'
                        )
                    ));
                }, 1050);

                self::$isEditing = array(
                    'id' => $post->ID,
                    'title' => $post->post_title
                );

                wp_reset_postdata();
            } else {
                global $archive;
                $archive = $_GET['id'];

                self::$isEditing = array(
                    'id' => null,
                    'title' => $archive
                );
            }

            self::$isEditing = apply_filters('Modularity/is_editing', self::$isEditing);

            add_action('Modularity/options_page_title_suffix', function () {
                echo ': ' . self::$isEditing['title'];
            });
        }
    }
1166810
public function sidebars()
    {
        $sidebars = $this->sidebars;
        uasort($sidebars, [$this, 'sortSidebarsByPriority']);
        foreach ($sidebars as $sidebarIdent => $sidebar) {
            if (!$sidebar->active()) {
                continue;
            }

            if ($sidebar->template()) {
                $template = $sidebar->template();
            } else {
                $template = 'charcoal/admin/widget/form.sidebar';
            }

            $GLOBALS['widget_template'] = $template;
            yield $sidebarIdent => $sidebar;
            $GLOBALS['widget_template'] = '';
        }
    }
959285
public function sidebars()
    {
        $sidebars = $this->app->make('sidebars.collection')->all();

        $headers = ['Slug', 'Title', 'Description', 'Has widgets'];

        $dataset = array_map(function ($sidebar) {
            return [
                $sidebar->getSlug(),
                $sidebar->getSingular(),
                $sidebar->getArgument('description'),
                $sidebar->hasWidgets() ? 'true' : 'false',
            ];
        }, $sidebars);

        $this->table($headers, $dataset);
    }
869862
function Sidenav(el, options) {
      _classCallCheck(this, Sidenav);

      var _this31 = _possibleConstructorReturn(this, (Sidenav.__proto__ || Object.getPrototypeOf(Sidenav)).call(this, Sidenav, el, options));

      _this31.el.M_Sidenav = _this31;
      _this31.id = _this31.$el.attr('id');

      /**
       * Options for the Sidenav
       * @member Sidenav#options
       * @prop {String} [edge='left'] - Side of screen on which Sidenav appears
       * @prop {Boolean} [draggable=true] - Allow swipe gestures to open/close Sidenav
       * @prop {Number} [inDuration=250] - Length in ms of enter transition
       * @prop {Number} [outDuration=200] - Length in ms of exit transition
       * @prop {Function} onOpenStart - Function called when sidenav starts entering
       * @prop {Function} onOpenEnd - Function called when sidenav finishes entering
       * @prop {Function} onCloseStart - Function called when sidenav starts exiting
       * @prop {Function} onCloseEnd - Function called when sidenav finishes exiting
       */
      _this31.options = $.extend({}, Sidenav.defaults, options);

      /**
       * Describes open/close state of Sidenav
       * @type {Boolean}
       */
      _this31.isOpen = false;

      /**
       * Describes if Sidenav is fixed
       * @type {Boolean}
       */
      _this31.isFixed = _this31.el.classList.contains('sidenav-fixed');

      /**
       * Describes if Sidenav is being draggeed
       * @type {Boolean}
       */
      _this31.isDragged = false;

      // Window size variables for window resize checks
      _this31.lastWindowWidth = window.innerWidth;
      _this31.lastWindowHeight = window.innerHeight;

      _this31._createOverlay();
      _this31._createDragTarget();
      _this31._setupEventHandlers();
      _this31._setupClasses();
      _this31._setupFixed();

      Sidenav._sidenavs.push(_this31);
      return _this31;
    }